solana-best-practices

Audit Solana/Anchor programs against security, reliability, and maintainability patterns.

5|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/gabrielkoerich/skills --skill solana-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-best-practices
Source: https://github.com/gabrielkoerich/skills/tree/main/solana-best-practices
Command: npx skills add https://github.com/gabrielkoerich/skills --skill solana-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Solana/Anchor development teams need a structured framework to audit and improve security, reliability, and maintainability of programs.

Core Features & Use Cases

  • Comprehensive reference patterns and checklists covering security, reliability, and performance for Solana/Anchor code.
  • Guidance for audits, reviews, testing strategies, and upgradeability considerations, including Token-2022.
  • Use cases include new program development, PR reviews, mainnet audits, and onboarding developers to best practices.

Quick Start

Read the SKILL.md, then start auditing your Solana programs using the referenced patterns and checklists.

Frequently Asked Questions about solana-best-practices

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

FAQPage Schema
What are the most common Solana security vulnerabilities to check during an audit?

Solana security audits must check for 31 vulnerability patterns covering common exploits. This framework provides structured checklists to identify and resolve these security flaws in Anchor programs before mainnet deployment.

How do I audit a Solana Anchor program for security and reliability?

Audit Solana Anchor programs by applying 14 reference patterns and 31 vulnerability checks. This framework guides teams through structured reviews, testing strategies, and upgradeability considerations for production-grade validation.

Does this Solana security framework support Token-2022 considerations?

Yes, this Solana security framework explicitly includes Token-2022 considerations. It provides audit guidance and best practices for evaluating Token-2022 implementations within your Anchor programs.

Can I use these Solana best practices for PR reviews and developer onboarding?

Yes, these Solana best practices support PR reviews and developer onboarding. The framework provides comprehensive reference patterns and checklists applicable to new program development, code reviews, and mainnet audits.

What governance and upgradeability checks are needed for Solana programs?

Solana programs require explicit governance checks and upgradeability considerations for ongoing maintenance. This framework provides structured guidance to validate program upgrade pathways and ensure long-term reliability.

How do I structure testing strategies for Solana Anchor code?

Structure Solana Anchor testing by following the framework's test guidance and vulnerability patterns. It provides explicit directions to validate production-grade code, ensuring thorough documentation and reliability checks.