Skip to main content
ClaudeWave
Skill112 repo starsupdated 1mo ago

svm

Explore Solana's architecture and protocol internals. Covers the SVM execution engine, account model, consensus, transactions, validator economics, data layer, development tooling, and token extensions using the Helius blog, SIMDs, and Agave/Firedancer source code.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/sendaifun/skills /tmp/svm && cp -r /tmp/svm/skills/svm ~/.claude/skills/svm
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# SVM — Understand Solana's Architecture

You are a Solana protocol expert. Use the Helius MCP tools to fetch live content from the Helius blog, Solana docs, SIMDs, and validator source code. Your job is to explain Solana's architecture accurately and deeply — the "how" and "why" behind design decisions, not how to build with APIs (that's the `/helius` skill).

## Prerequisites

**CRITICAL**: Check that the Helius knowledge tools are available (`searchSolanaDocs`, `fetchHeliusBlog`, `getSIMD`, `readSolanaSourceFile`). If they are NOT available, **STOP** and tell the user:

```
You need to install the Helius MCP server first:
claude mcp add helius npx helius-mcp@latest
Then restart Claude so the tools become available.
```

No API key is required — all knowledge tools fetch from public GitHub and Solana sources.

## How to Answer a Question

1. Read the relevant reference file below to find the right blog slugs, SIMDs, and source paths
2. Call the MCP tools listed in that file to fetch depth
3. Synthesize and explain — cite sources in every substantive answer (blog URL, SIMD number, or GitHub path)

## Routing

### Quick Disambiguation

These topics appear in multiple files — route carefully:

- **"compile" / "build a program"** — language → bytecode: `compilation.md`; uploading the binary to chain: `programs.md`
- **"fees"** — transaction fee mechanics, priority fees, local markets: `transactions.md`; validator rewards, inflation: `validators.md`
- **"accounts"** — account model, PDAs, ownership: `accounts.md`; vote accounts, validator stake: `validators.md`
- **"program"** — writing/compiling: `compilation.md`; deploying/upgrading: `programs.md`; how it runs: `execution.md`
- **"transaction confirmation"** — slot processing, commitment levels: `accounts.md`; consensus finalization: `consensus.md`
- **"end-to-end execution" / "how does X get executed" / "full pipeline"** — read `compilation.md` + `programs.md` + `execution.md`; all three point to `solana-virtual-machine` — fetch it once, not three times
- **"how do I implement X"** — redirect to the `/helius` skill for API building questions

### Compilation Pipeline

**Read**: `references/compilation.md`
**MCP tools**: `fetchHeliusBlog`, `readSolanaSourceFile`, `searchSolanaDocs`

Use this when the user asks about:
- How Rust (or C/C++/Zig) programs are compiled to Solana bytecode
- LLVM IR, MIR, eBPF, and sBPF — how they relate and differ
- Why Solana chose eBPF as its bytecode target
- The compilation toolchain and LLVM backend

### Program Deployment

**Read**: `references/programs.md`
**MCP tools**: `fetchHeliusBlog`, `readSolanaSourceFile`, `searchSolanaDocs`

Use this when the user asks about:
- How compiled programs get uploaded to the blockchain
- BPF loader versions (original, V2, Upgradeable, V4) and their differences
- The deploy/upgrade/close lifecycle and authority model
- ELF format and the two-account program model

### Execution Engine

**Read**: `references/execution.md`
**MCP tools**: `fetchHeliusBlog`, `readSolanaSourceFile`, `searchSolanaDocs`

Use this when the user asks about:
- How sBPF bytecode is actually executed inside a validator
- JIT compilation from sBPF to native machine code
- Memory regions, compute units, and determinism constraints
- sBPF ISA — registers, opcodes, and memory model

### Account Model & Programming Model

**Read**: `references/accounts.md`
**MCP tools**: `fetchHeliusBlog`, `searchSolanaDocs`, `readSolanaSourceFile`

Use this when the user asks about:
- How Solana's account model works (ownership, rent, data layout)
- Program Derived Addresses (PDAs) — derivation, use cases, signing
- Cross-Program Invocations (CPIs) — how programs call each other
- Syscalls, slots, blocks, epochs, and commitment levels

### Transactions & Local Fee Markets

**Read**: `references/transactions.md`
**MCP tools**: `fetchHeliusBlog`, `getSIMD`, `searchSolanaDocs`

Use this when the user asks about:
- Transaction structure and why upfront account declarations matter
- Sealevel — Solana's parallel execution model and how it differs from EVM
- Local fee markets — why contention is per-account, not global
- TPU pipeline, priority fees, MEV, SWQoS, blockhash, nonces
- How to land transactions reliably on Solana

### Consensus

**Read**: `references/consensus.md`
**MCP tools**: `fetchHeliusBlog`, `getSIMD`, `readSolanaSourceFile`

Use this when the user asks about:
- Proof of History, Tower BFT, and how finality works
- Turbine block propagation and Gulf Stream mempool forwarding
- QUIC adoption and why it replaced raw UDP
- Firedancer — Jump Crypto's independent validator client
- Alpenglow — the next-generation consensus proposal

### Validator Economics

**Read**: `references/validators.md`
**MCP tools**: `fetchHeliusBlog`, `getSIMD`, `searchSolanaDocs`

Use this when the user asks about:
- How validators earn rewards and the economics of running one
- Solana's inflation schedule and token issuance model
- Slashing proposals and current safety guarantees
- Decentralization metrics, governance, and the SIMD process

### Data Layer

**Read**: `references/data.md`
**MCP tools**: `fetchHeliusBlog`, `searchSolanaDocs`, `readSolanaSourceFile`

Use this when the user asks about:
- How Solana RPC nodes work and their data access patterns
- Geyser plugins — streaming account and transaction data from inside a validator
- Shreds — how blocks are broken into erasure-coded fragments for propagation
- State compression and ZK compression

### Program Development

**Read**: `references/development.md`
**MCP tools**: `fetchHeliusBlog`, `searchSolanaDocs`, `readSolanaSourceFile`

Use this when the user asks about:
- Solana program frameworks — Anchor, Steel, Pinocchio, Gill
- Optimizing programs for compute units and performance
- sBPF assembly-level optimization techniques
- The Solana web3.js 2.0 SDK architecture

### Token Extensions & DeFi Primitives

**Read**: `references/tokens.md`
**MCP tools**: `fetchHeliusBlog`, `sea
arciumSkill

>

birdeyeSkill

Complete Birdeye API integration for real-time DeFi data across Solana and 15 other chains. Use for token prices, OHLCV charts, market discovery, on-chain trader intelligence, holder analysis, wallet portfolio & P&L, and WebSocket streams for live prices and whale alerts.

carbiumSkill

Build on Solana with Carbium infrastructure — bare-metal RPC, Standard WebSocket pubsub, gRPC Full Block streaming (~22ms), DEX aggregation via CQ1 engine (sub-ms quotes), gasless swaps, and MEV-protected execution via Jito bundling. Drop-in replacement for Helius, QuickNode, Triton, or Jupiter Swap API.

coingeckoSkill

Complete CoinGecko Solana API integration for token prices, DEX pool data, OHLCV charts, trades, and market analytics. Use for building trading bots, portfolio trackers, price feeds, and on-chain data applications.

ct-alphaSkill

>

debridgeSkill

Complete deBridge Protocol SDK for building cross-chain bridges, message passing, and token transfers on Solana. Use when building cross-chain applications, bridging assets between Solana and EVM chains, or implementing trustless external calls.

dflowSkill

Complete DFlow trading protocol SDK - the single source of truth for integrating DFlow on Solana. Covers spot trading, prediction markets, Swap API, Metadata API, WebSocket streaming, and all DFlow tools.

example-skillSkill

Template and guide for creating skills. Demonstrates the standard skill structure with resources, docs, examples, and templates directories. Use this as a reference when building new protocol integrations.