solana-simd

Reference Solana core primitives and SIMD proposals for on-chain program development.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill solana-simd-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-simd
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/solana-simd
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill solana-simd-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI models trained on Ethereum patterns or outdated Solana docs produce broken Solana code — wrong assumptions about state storage, PDA bumps, rent, priority fees, and Token-2022 compatibility. This Skill provides accurate, current reference material on Solana's accounts model, PDAs, CPIs, rent mechanics, and key SIMD proposals so generated code actually compiles and behaves correctly. ## Core Features & Use Cases - Core Primitive Reference: Covers the accounts model, PDA derivation with canonical bumps, CPI patterns (invoke vs invoke_signed), rent-exempt minimums, and versioned transactions with Address Lookup Tables. - SIMD Lookup Workflow: Fetches any SIMD spec on demand from the solana-improvement-documents GitHub repo, with deep-dives on SIMD-0033, 0046, 0047, 0096, and 0172. - Token-2022 Guidance: Explains Token Extensions (transfer fees, non-transferable, metadata pointer) and how to write programs compatible with both SPL Token and Token-2022. - Use Case: When building an Anchor vault program, use this Skill to derive PDAs correctly, sign token transfers via invoke_signed, calculate rent-exempt balances, and set priority fees with proper compute budget instructions. ## Quick Start Ask the agent to explain how to derive a PDA and sign a token transfer from it using Anchor, or to look up the details of a specific SIMD proposal like SIMD-0096.

Frequently Asked Questions about solana-simd

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

FAQPage Schema
How do I derive a PDA in Solana with Anchor?

Use Pubkey::find_program_address with your seeds and program ID to get the canonical bump, then verify it in Anchor with the seeds and bump constraints. Client-side, use PublicKey.findProgramAddressSync with identical seed order and encoding.

What is the difference between invoke and invoke_signed in Solana CPI?

invoke passes through existing signer privileges from the transaction, used when a wallet signs. invoke_signed lets a PDA authorize a CPI by providing its seeds and bump, used when program-owned accounts must sign.

How do Solana priority fees work after SIMD-0096?

Priority fees are set per compute unit via ComputeBudgetProgram.setComputeUnitPrice in microLamports, and 100% now goes to the block-producing validator. Total fee equals microLamports times compute units consumed divided by one million.

Is Token-2022 compatible with existing SPL Token programs?

No, Token-2022 uses a different program ID, so programs hardcoding the SPL Token ID reject Token-2022 accounts. Accept both program IDs or use Anchor's TokenInterface with transfer_checked for dual compatibility.

Why does my Solana transaction fail with Transaction too large?

Legacy transactions are limited to 1,232 bytes, roughly 35 accounts. Use versioned transactions with Address Lookup Tables to compress account references and support 256 or more accounts per transaction.

How much SOL is needed for rent-exempt accounts on Solana?

Since SIMD-0084 all accounts must be rent-exempt at creation, costing about 0.00089088 SOL base plus per-byte. A token account needs 0.00203928 SOL; calculate exactly with Rent::get().minimum_balance(data_len).