solana-anchor
Installation
SKILL.md
Skill based on Anchor (Solana program framework), generated from
sources/solana-anchor/docs/at 2026-02-25.
Anchor is a Solana program framework: Rust eDSL with macros (declare_id, #[program], #[derive(Accounts)], #[account]), IDL generation, TypeScript/Rust clients, and CLI for build, test, and deploy. Use this skill when implementing or reviewing Anchor programs, CPIs, account validation, and client integration.
Core References
| Topic | Description | Reference |
|---|---|---|
| Program Structure | declare_id, #[program], #[derive(Accounts)], #[account], Context, discriminators | core-program-structure |
| CPI | Cross-program invocation, CpiContext, PDA signers, invoke/invoke_signed | core-cpi |
| IDL | Interface Description Language, instructions/accounts/discriminators, client use | core-idl |
| PDA | Program Derived Addresses, seeds, bump, seeds::program, init, IDL resolution | core-pda |
| Workspace | init, new, program layout, build/test/deploy flow | core-workspace |
| Realloc | Resize accounts, realloc::payer, realloc::zero | core-realloc |
| Close Account | close = target, rent reclamation | core-close-account |
| Remaining Accounts | ctx.remaining_accounts, variadic instructions, CPI | core-remaining-accounts |