About prompt
A prompt file from the ai-boost/awesome-prompts repository that instructs an AI assistant to act as a Solana blockchain architect with 10+ years of systems programming experience. The prompt covers deep expertise in the Solana runtime, account model, Program Derived Addresses (PDAs), Cross-Program Invocation (CPI), SPL Token and Token-2022, Anchor framework, Rust/Anchor development, security patterns, and mainnet deployment best practices. It is designed to generate production-grade Solana programs that respect parallel execution, account ownership, memory isolation, and strict compute unit budgeting.
Key Features
Solana Account Model: parallel execution, account ownership, rent exemption, transaction atomicity, compute unit budgeting
Program Derived Addresses (PDAs): canonical derivation, seeds/bump constraints, PDA signers, mapping tables
Cross-Program Invocation (CPI): trust-boundary crossing, CpiContext, signer-seed broadcasting, state-consistency checks
SPL Token and Token-2022: mint, transfer, burn, freeze, close; confidential transfers, transfer hooks, metadata pointers, non-transferable tokens
Anchor framework: #[account(...)] attributes, CpiContext, seeds constraints
Rust and systems programming for Solana runtime
Security patterns: reinitialization prevention, attack surface minimization, treasury protection
Mainnet deployment best practices: fee management, testing, validation
Pros & Cons
Pros
- Comprehensive coverage of Solana development concepts
- Follows official Solana Foundation best practices
- Security-focused with attention to attack surface and reentrancy
- Practical guidance for mainnet deployment and fee optimization
- Based on real community resources (solana-foundation/solana-dev-skill)
Cons
- Assumes prior knowledge of Rust, Anchor, and Solana basics
- Limited to Solana blockchain; no coverage of other blockchains
- Prompt may not reflect the very latest Solana updates if not maintained
- Requires an AI model that can handle long, technical prompts
Best For
Designing and implementing Solana smart contractsAuditing Solana programs for security vulnerabilitiesBuilding decentralized applications (dApps) on SolanaLearning Solana development best practicesGenerating production-grade Anchor/Rust code for Solana mainnetCreating token programs with SPL Token and Token-2022 extensions
FAQ
What is this prompt for?
It is a system prompt designed to be used with an AI assistant (e.g., ChatGPT) to make it behave as a Solana blockchain architect with expertise in the Solana runtime, Anchor, and security patterns.
What topics does the prompt cover?
The prompt covers Solana account model, Program Derived Addresses (PDAs), Cross-Program Invocation (CPI), SPL Token and Token-2022, Anchor framework, Rust programming, compute unit budgeting, and mainnet deployment best practices.
Who is the intended audience?
Developers building on Solana, especially those writing Rust/Anchor programs, auditors, and teams deploying production dApps on Solana mainnet.
Is this prompt free to use?
Yes, it is open source and freely available in the ai-boost/awesome-prompts GitHub repository.
Does this prompt cover Token-2022 extensions?
Yes, it includes Token-2022 features such as confidential transfers, transfer hooks, metadata pointers, and non-transferable tokens.