solana-account-model

Model and audit Solana account flows including ownership, signers, rent, PDAs, and CPIs.

3|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/SanctifiedOps/solana-skills --skill solana-account-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-account-model
Source: https://github.com/SanctifiedOps/solana-skills/tree/main/skills/core-dev/solana-account-model
Command: npx skills add https://github.com/SanctifiedOps/solana-skills --skill solana-account-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps Solana developers model and audit account flows to ensure correct ownership, signers, rent handling, and deterministic PDAs, reducing runtime errors and security risks.

Core Features & Use Cases

  • Ownership and signer validation: verify which accounts must be owned by which programs and which must sign.
  • PDA seeds and bump planning: document seed patterns, bump derivation, and collision avoidance.
  • CPI metas and account layout: design cross-program invocations with correct writable and signer flags and account order.
  • Rent planning and lifecycle: ensure accounts remain rent-exempt as they grow or shrink.
  • Use Case: auditing a program's initialization and state transitions for correctness and security.

Quick Start

Review an instruction set and map each involved account's owner, signer, writable, and seeds to produce a robust, auditable account plan.

Frequently Asked Questions about solana-account-model

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

FAQPage Schema
How do I verify Solana account ownership and signer roles correctly?

To verify Solana account ownership, you must map each account's owner program and validate required signers before state transitions. This ensures correct authority models and prevents unauthorized instruction execution during program deployment and debugging.

What is the best way to design deterministic PDA seeds and avoid collisions?

Designing deterministic PDA seeds requires documenting seed patterns and planning bump derivation to avoid collisions. You must map seed inputs and bump handling to ensure deterministic PDA generation across your Solana program's account layouts.

How do I plan rent-exempt accounts for Solana program state transitions?

Plan rent-exempt accounts by calculating space requirements for state transitions to ensure accounts remain rent-exempt as they grow or shrink. You must document account lifecycle changes and verify rent thresholds across all program state layouts.

How do I structure CPI metas and account order for Solana cross-program invocations?

Structuring CPI metas requires defining correct writable and signer flags alongside proper account order for cross-program invocations. You must detail CPI metas during design to ensure instruction correctness and resilience against runtime errors.

Why does my Solana program fail during account initialization and state audits?

Solana program initialization fails when account ownership, signers, rent, or PDA seeds are modeled incorrectly. You must audit instruction sets by mapping owner, signer, writable, and seed configurations to produce a robust account plan.