account-validation

Identify and document account validation points for Solana program instructions.

276|56|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/PlamenTSV/plamen --skill account-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: account-validation
Source: https://github.com/PlamenTSV/plamen/tree/main/agents/skills/solana/account-validation
Command: npx skills add https://github.com/PlamenTSV/plamen --skill account-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents

Core Features & Use Cases

  • Ensure consistent account validation checks across all Solana instructions.
  • Document owner, discriminator, and account types for each instruction.
  • Provide a repeatable audit pattern that guides integration with breadth and depth agent workflows.

Quick Start

Audit a Solana program by enumerating accounts, ownership, and discriminators for every instruction.

Frequently Asked Questions about account-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is Solana account validation and why is it required for program audits?

Solana account validation enforces owner, discriminator, and account type checks across all instruction handlers to prevent misconfigurations. It is required for consistent security audits of cross-account references and sysvar usage.

How do I audit Solana instruction handlers for account ownership and discriminator checks?

Audit Solana instruction handlers by enumerating accounts, documenting ownership, and verifying discriminator checks for each instruction. This identifies and documents all account validation points to ensure consistent security patterns.

Does this account validation pattern apply to sysvar usage and cross-account references in Solana?

Yes, this account validation pattern applies to all instruction handlers, cross-account references, and sysvar usage within Solana audits. It ensures consistent data-matching validation across all program components.

What's the best way to document account types for a Solana program audit?

The best way to document account types for a Solana program audit is to enumerate accounts, ownership, and discriminators for every instruction. This creates a repeatable audit pattern satisfying consistent account type inventory requirements.

Can I integrate Solana account validation checks with breadth and depth agent workflows?

Yes, you can integrate Solana account validation checks with breadth and depth agent workflows. The validation pattern is designed to be injected into these agents, providing a repeatable audit workflow for Solana programs.

When should I not use automated account validation patterns for Solana audits?

You should not use automated account validation patterns when your Solana program uses non-standard discriminator layouts or custom ownership models that fall outside standard instruction handler, sysvar, and cross-account reference configurations.