blockchain-solana
Use this skill when asked about Solana blockchain, Solana architecture, Proof of History, Solana programming, Anchor framework, Solana runtime, Solana CLI…
от j4flmao★ 47 звёзд на GitHub
Установить blockchain-solana в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Blockchain Solana
Purpose
Guide Solana blockchain development covering protocol architecture, smart contract (program) development with Anchor, SPL token standards, validator operations, and ecosystem protocol integration.
Agent Protocol
Trigger
"solana", "solana blockchain", "solana architecture", "proof of history", "anchor framework", "solana program", "solana contract", "solana runtime", "solana CLI", "spl token", "solana defi", "jupiter", "raydium", "metaplex", "solana validator", "solana developer", "turbine", "gulf stream", "sealevel", "cloudbreak", "pda", "cpi", "solana account model"
Input Context
- Application type (DeFi/NFT/gaming/infrastructure)
- Cluster (mainnet-beta/testnet/devnet/localnet)
- Program type (Anchor/raw BPF)
- Account model design (PDA seeds, account structs)
- Compute budget requirements
- Dependencies (SPL tokens, oracle programs, other protocols)
Output Artifact
Solana program specification: architecture, account design, instruction handlers, testing strategy, deployment plan.
Response Format
- Architecture selection: cluster type, program type (Anchor/raw BPF), account model design
- Program design: account structs, instruction handlers, PDA seeds, CPI design
- Implementation: Anchor macro patterns, error codes, compute budget optimization, security invariants
- Testing: Anchor test framework (TypeScript/Rust), local validator, fork testing with mainnet data
- Deployment: solana CLI deploy, program upgrade authority, verifiable build, IDL publishing
Completion Criteria
- Program architecture follows Anchor conventions and Solana account model
- Account structs defined with proper seeds, space, and rent exemption
- Instruction handlers include all required validation (signer checks, constraint checks)
- CPI calls designed with proper seed derivation and signing (invoke_signed)
- Testing covers: unit, integration, mainnet fork, compute budget, edge cases
- Deployment plan includes: upgrade authority management, verifiable build, IDL
Max Response Length
5000 tokens
Decision Trees
Program Architecture
Solana program type:
├── Token/SFT → SPL Token + Associated Token Account
├── NFT → Metaplex Token Metadata + Candy Machine
├── AMM/DeFi → Anchor with CPIs to SPL Token + Oracle
├── Custom logic → Anchor (default) or raw BPF
│ ├── Anchor → Most programs (handles PDA bumps, validation, serialization)
│ └── Raw BPF → Performance-critical, no overhead (rarely needed)
└── Upgradable?
├── YES → BPFLoaderUpgradeable (default)
└── NO → BPFLoader (immutable, security critical)
Account Model
Account type needed:
├── Token account → Associated Token Account (SPL Token)
│ ├── Derivation: PDA(owner, TOKEN_PROGRAM_ID, mint)
│ └── One ATA per owner per mint
├── Program-derived account → PDA
│ ├── Seeds: [b"prefix", pubkey, bump]
│ ├── Bump stored in account or derived on each call
│ └── Space: 8 (discriminator) + struct fields
├── Signer → Transaction signer (wallet or PDA via CPI)
└── Executable → Deployed program account
Account size calculation:
├── Account header: 32B (owner Pubkey) + 8B (lamports) + 1B (executable) + 1B (rent_epoch)
├── Anchor discriminator: 8 bytes (hash of account struct name)
├── Data: struct size (packed, no alignment padding)
└── Rent exemption: ~0.000003 SOL per byte (mainnet 2024)
Min rent: ~0.00088 SOL for 165 byte account (ATA)
Compute Budget Decision
Compute budget planning:
├── Default: 200,000 compute units per instruction
│ ├── Simple transfer: ~1,000 CU
│ ├── SPL token transfer: ~40,000 CU
│ ├── PDA derivation: ~2,000 CU
│ ├── CPI call: ~10,000 CU (base) + callee cost
│ └── Log output: ~100 CU per 32 bytes
├── Increase budget: SetComputeUnitLimit (max 1.4M CU)
└── Priority fees: SetComputeUnitPrice (microLamports per CU)
├── 0 priority: may not be included in busy blocks
└── 10,000+ microLamports/CU: likely included
Solana Architecture Components
| Component | Purpose | Key Characteristics |
|---|---|---|
| Proof of History (PoH) | Global timestamp / sequence | SHA-256 sequential hashing, verifiable delay |
| Tower BFT | Consensus | Optimistic confirmation, ~400ms slot time |
| Turbine | Block propagation | Fragmented block propagation tree |
| Gulf Stream | Mempool replacement | Forward transaction forwarding, no mempool |
| SeaLevel | Runtime | Parallel transaction execution (read/write sets) |
| Cloudbreak | Account database | Memory-mapped account storage |
| Pipelining | Transaction processing | GPU-optimized signature verification |
Proof of History (PoH)
// PoH: Sequential SHA-256 hashing creates a verifiable delay
// Each hash output is the input for the next hash
// This proves time elapsed between events
struct PohEntry {
hash: Hash, // SHA-256(previous_hash, event_data)
event_data: Option<Vec<u8>>,
num_hashes: u64, // Number of has
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/blockchain-solana-advanced.md
- references/blockchain-solana-fundamentals.md
- references/blockchain-solana-ref-1.md
- references/blockchain-solana-ref-2.md
- references/solana-architecture.md
- references/solana-ecosystem.md
- references/solana-pda-and-cpi-deep.md
- references/solana-programming.md
- references/solana-runtime.md
- references/solana-token-program.md
- references/solana-tools.md
FAQ
Что делает скилл blockchain-solana?
Use this skill when asked about Solana blockchain, Solana architecture, Proof of History, Solana programming, Anchor framework, Solana runtime, Solana CLI tools, Solana DeFi, Jupiter, Raydium, Metaplex, SPL tokens, and the Solana ecosystem. Covers Solana protocol architecture (PoH, Tower BFT, Turbine, Gulf Stream, SeaLevel, Cloudbreak), smart contract development with Anchor/Rust, SPL token standards, Solana CLI and SDKs, and ecosystem protocols. Do NOT use for: EVM chains (use blockchain-ethereum), general Rust smart contracts (use blockchain-application), or other L1 blockchains.
Как установить скилл blockchain-solana?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blockchain-solana запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…