A comprehensive Agent Skill for modern Solana development (July 2026 best practices).
$ npx -y skills add solana-foundation/solana-dev-skill --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
Repo: solana-foundation/solana-dev-skill
What's inside
A comprehensive Agent Skill for modern Solana development (July 2026 best practices). Works with every coding agent that has direct Agent Skills support: Claude Code, OpenAI Codex / ChatGPT desktop, GitHub Copilot (CLI + coding agent), Gemini CLI, Cursor, Windsurf, Cline, OpenCode, and anything else that reads SKILL.md.
This skill gives your coding agent deep knowledge of the current Solana development ecosystem:
@solana/kit v7 plugin clients (createClient() + .use())@solana/kit-plugin-wallet + @solana/reactnpx skills add solana-foundation/solana-dev-skill
The skills CLI detects your installed agents and installs (or symlinks) the skill for each of them.
git clone https://github.com/solana-foundation/solana-dev-skill
cd solana-dev-skill
./install.sh # user-level: ~/.agents/skills + ~/.claude/skills
./install.sh --project # project-level: .agents/skills + .claude/skills
./install.sh --link # symlink instead of copy (auto-updates with git pull)
Copy (or symlink) skills/solana-dev/ into your agent's skills directory:
| Agent | Project directory | Personal directory |
|---|---|---|
| Claude Code | .claude/skills/ | ~/.claude/skills/ |
| OpenAI Codex / ChatGPT desktop | .agents/skills/ | ~/.agents/skills/ |
| GitHub Copilot (CLI, coding agent, VS Code) | .github/skills/ or .agents/skills/ | ~/.copilot/skills/ or ~/.agents/skills/ |
| Gemini CLI | .gemini/skills/ or .agents/skills/ | ~/.gemini/skills/ or ~/.agents/skills/ |
| Cursor | .cursor/skills/ or .agents/skills/ | ~/.cursor/skills/ or ~/.agents/skills/ |
| Windsurf | .windsurf/skills/ or .agents/skills/ | ~/.codeium/windsurf/skills/ |
| Cline | .cline/skills/ or .claude/skills/ | ~/.cline/skills/ |
| OpenCode | .opencode/skills/ or .agents/skills/ | ~/.config/opencode/skills/ |
.agents/skills/ (cross-agent convention) plus .claude/skills/ together cover all of the above.
skills/solana-dev/
โโโ SKILL.md # Main skill definition (required)
โโโ references/
โโโ kit/ # @solana/kit: overview, plugins, react, codecs, accounts, codama, gotchas, advanced, programs/
โโโ frontend.md # UI patterns (Kit wallet plugin + @solana/react)
โโโ kit-web3-interop.md # Legacy web3.js routing (v3 RC + migration skill)
โโโ testing.md # Testing (Surfpool/LiteSVM/Mollusk)
โโโ idl-codegen.md # IDL and client generation
โโโ payments.md # Payments (Kit, Solana Pay, Kora)
โโโ security.md # Security vulnerabilities & prevention
โโโ resources.md # Curated reference links
โโโ compatibility-matrix.md # Version compatibility tables (Anchor/Solana/Rust/GLIBC)
โโโ common-errors.md # Error message โ solution mappings
โโโ confidential-transfers.md # Confidential transfers (Token-2022 ZK)
โโโ rpc-quick-lookups.md # One-shot RPC reads via curl
โโโ programs/
โ โโโ anchor.md # Anchor program development
โ โโโ pinocchio.md # Pinocchio (high-performance native)
โโโ anchor/
โ โโโ migrating-v0.32-to-v1.md # Anchor v1 migration
โโโ surfpool/
โโโ overview.md # Surfpool local network guide
โโโ cheatcodes.md # Surfpool cheatcodes reference (26 surfnet_* methods)
Once installed, your agent will automatically use this skill when you ask about:
"Help me set up a Next.js app with Solana wallet connection"
"Create an Anchor program for a simple escrow"
"Convert this Anchor program to Pinocchio for better CU efficiency"
"Migrate this web3.js v1 script to web3.js v3"
"Write Surfpool integration tests for my token transfer flow"
"Review this program for security issues"
"I'm getting GLIBC_2.39 not found when running anchor"
"Help me upgrade from Anchor 0.32 to 1.1"
"What versions of Solana CLI work with Anchor 1.1?"
"Run Surfpool and create an account with 100 SOL and USDC"
This skill encodes opinionated best practices:
| Layer | Default Choice | Alternative |
|---|---|---|
| Client SDK | @solana/kit v7 (plugin clients) | web3.js v3 RC (legacy migration target) |
| Wallet / UI | @solana/kit-plugin-wallet + @solana/react | Wallet Standard hooks directly |
| Program Framework | Anchor 1.1.x | Pinocchio 0.11+ (performance) |
| Unit Testing | LiteSVM / Mollusk | โ |
| Integration Testing | Surfpool (CLI or embedded @solana/surfpool) | solana-test-validator |
| Client Generation | Codama | โ |
This skill incorporates best practices from:
The skill follows the Agent Skills progressive disclosure pattern: the main SKILL.md provides core guidance, and agents read the specialized markdown files under references/ only when needed for specific tasks.
tests/run.ts contains a small benchmark suite that checks skill trigger matching and MCP auto-install behavior:
cd tests && npm install && npx tsx run.ts
Contributions are welcome! Please ensure any updates reflect current Solana ecosystem best practices.
MIT License - see LICENSE for details.
.gitignore
assets/
banner.png
install.sh
LICENSE
README.md
skills/
solana-dev/
references/
anchor/
migrating-v0.32-to-v1.md
common-errors.md
compatibility-matrix.md
confidential-transfers.md
frontend.md
idl-codegen.md
kit/
kit-web3-interop.md
accounts.md
advanced.md
codama.md
codecs.md
gotchas.md
overview.md
plugins.md
programs/
compute-budget.md
system.md
token-2022.md
token.md
react.md
payments.md
programs/
anchor.md
pinocchio.md
resources.md
rpc-quick-lookups.md
security.md
surfpool/
cheatcodes.md
overview.md
testing.md
SKILL.md
tests/
package.json
run.tsFAQ
solana-dev-skill is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes solana-dev. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.