{
  "markdown": "# Solana Development Skill\n\n<p align=\"center\">\n  <img src=\"assets/banner.png\" alt=\"solana-dev — npx skills add solana-dev — skill installed, 8 agents\" width=\"100%\" />\n</p>\n\nA comprehensive [Agent Skill](https://agentskills.io/) 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`.\n\n## Overview\n\nThis skill gives your coding agent deep knowledge of the current Solana development ecosystem:\n\n- **SDK**: `@solana/kit` v7 plugin clients (`createClient()` + `.use()`)\n- **UI**: Wallet Standard connection via `@solana/kit-plugin-wallet` + `@solana/react`\n- **Legacy Interop**: web3.js v3 (RC) — the classic API rebuilt on Kit internals, as the migration target for v1 codebases\n- **Programs**: Anchor 1.1.x (default), Pinocchio 0.11+ for high-performance needs\n- **Testing**: Surfpool for integration tests (mainnet forking, cheatcodes, embedded SDK), LiteSVM/Mollusk for unit tests\n- **Codegen**: Codama-first IDL and client generation\n- **Security**: Comprehensive vulnerability patterns and prevention\n- **Toolchain**: Version compatibility, common errors, and troubleshooting guides\n\n## Installation\n\n### Quick install (any agent, via skills.sh)\n\n```bash\nnpx skills add solana-foundation/solana-dev-skill\n```\n\nThe [skills CLI](https://www.skills.sh/) detects your installed agents and installs (or symlinks) the skill for each of them.\n\n### Install script\n\n```bash\ngit clone https://github.com/solana-foundation/solana-dev-skill\ncd solana-dev-skill\n./install.sh            # user-level: ~/.agents/skills + ~/.claude/skills\n./install.sh --project  # project-level: .agents/skills + .claude/skills\n./install.sh --link     # symlink instead of copy (auto-updates with git pull)\n```\n\n### Manual install\n\nCopy (or symlink) `skills/solana-dev/` into your agent's skills directory:\n\n| Agent | Project directory | Personal directory |\n|---|---|---|\n| Claude Code | `.claude/skills/` | `~/.claude/skills/` |\n| OpenAI Codex / ChatGPT desktop | `.agents/skills/` | `~/.agents/skills/` |\n| GitHub Copilot (CLI, coding agent, VS Code) | `.github/skills/` or `.agents/skills/` | `~/.copilot/skills/` or `~/.agents/skills/` |\n| Gemini CLI | `.gemini/skills/` or `.agents/skills/` | `~/.gemini/skills/` or `~/.agents/skills/` |\n| Cursor | `.cursor/skills/` or `.agents/skills/` | `~/.cursor/skills/` or `~/.agents/skills/` |\n| Windsurf | `.windsurf/skills/` or `.agents/skills/` | `~/.codeium/windsurf/skills/` |\n| Cline | `.cline/skills/` or `.claude/skills/` | `~/.cline/skills/` |\n| OpenCode | `.opencode/skills/` or `.agents/skills/` | `~/.config/opencode/skills/` |\n\n`.agents/skills/` (cross-agent convention) plus `.claude/skills/` together cover all of the above.\n\n## Skill Structure\n\n```\nskills/solana-dev/\n├── SKILL.md                         # Main skill definition (required)\n└── references/\n    ├── kit/                         # @solana/kit: overview, plugins, react, codecs, accounts, codama, gotchas, advanced, programs/\n    ├── frontend.md                  # UI patterns (Kit wallet plugin + @solana/react)\n    ├── kit-web3-interop.md          # Legacy web3.js routing (v3 RC + migration skill)\n    ├── testing.md                   # Testing (Surfpool/LiteSVM/Mollusk)\n    ├── idl-codegen.md               # IDL and client generation\n    ├── payments.md                  # Payments (Kit, Solana Pay, Kora)\n    ├── security.md                  # Security vulnerabilities & prevention\n    ├── concepts.md                  # Runtime concepts (rent, PDAs, entrypoint, wire format)\n    ├── resources.md                 # Curated reference links\n    ├── compatibility-matrix.md      # Version compatibility tables (Anchor/Solana/Rust/GLIBC)\n    ├── common-errors.md             # Error message → solution mappings\n    ├── confidential-transfers.md    # Confidential transfers (Token-2022 ZK)\n    ├── rpc-quick-lookups.md         # One-shot RPC reads via curl\n    ├── transactions-v1.md           # Transaction v1 / larger transactions (SIMD-0385)\n    ├── programs/\n    │   ├── anchor.md                # Anchor program development\n    │   ├── design-patterns.md       # Program architecture, CU/CPI limits, account lifecycle\n    │   └── pinocchio.md             # Pinocchio (high-performance native)\n    ├── anchor/\n    │   └── migrating-v0.32-to-v1.md # Anchor v1 migration\n    └── surfpool/\n        ├── overview.md              # Surfpool local network guide\n        ├── kit-plugin.md            # @solana/surfpool/kit — embedded surfnet behind a Kit client\n        └── cheatcodes.md            # Surfpool cheatcodes reference (26 surfnet_* methods)\n```\n\n## Usage\n\nOnce installed, your agent will automatically use this skill when you ask about:\n\n- Solana dApp UI work (React / Next.js)\n- Wallet connection and signing flows\n- Transaction building, sending, and confirmation UX\n- Transaction v1 / larger transactions (SIMD-0385) — sending, reading, indexing\n- On-chain program development (Anchor or Pinocchio)\n- Client SDK generation (typed program clients)\n- Local testing (Surfpool, LiteSVM, Mollusk)\n- Security hardening and audit-style reviews\n- Surfpool local network setup and cheatcodes\n- **Toolchain issues** (version mismatches, GLIBC errors, dependency conflicts)\n- **Migration** between Anchor/Solana CLI versions, and web3.js v1 → v3\n\n### Example Prompts\n\n```\n\"Help me set up a Next.js app with Solana wallet connection\"\n\"Create an Anchor program for a simple escrow\"\n\"Convert this Anchor program to Pinocchio for better CU efficiency\"\n\"Migrate this web3.js v1 script to web3.js v3\"\n\"Write Surfpool integration tests for my token transfer flow\"\n\"Review this program for security issues\"\n\"I'm getting GLIBC_2.39 not found when running anchor\"\n\"Help me upgrade from Anchor 0.32 to 1.1\"\n\"What versions of Solana CLI work with Anchor 1.1?\"\n\"Run Surfpool and create an account with 100 SOL and USDC\"\n```\n\n## Stack Decisions\n\nThis skill encodes opinionated best practices:\n\n| Layer | Default Choice | Alternative |\n|-------|---------------|-------------|\n| Client SDK | @solana/kit v7 (plugin clients) | web3.js v3 RC (legacy migration target) |\n| Wallet / UI | @solana/kit-plugin-wallet + @solana/react | Wallet Standard hooks directly |\n| Program Framework | Anchor 1.1.x | Pinocchio 0.11+ (performance) |\n| Unit Testing | LiteSVM / Mollusk | — |\n| Integration Testing | Surfpool (CLI or embedded @solana/surfpool) | solana-test-validator |\n| Client Generation | Codama | — |\n\n## Content Sources\n\nThis skill incorporates best practices from:\n\n- [Blueshift Learning Platform](https://learn.blueshift.gg/) - Comprehensive Solana courses\n- [Solana Official Documentation](https://solana.com/docs)\n- [Solana Kit](https://www.solanakit.com/) - Kit docs and plugin ecosystem\n- [solana-web3.js v3](https://github.com/solana-foundation/solana-web3.js/tree/v3.x) - Classic API on Kit internals\n- [Anza/Pinocchio](https://github.com/anza-xyz/pinocchio) - Zero-dependency program development\n- [LiteSVM](https://github.com/LiteSVM/litesvm) - Lightweight testing\n- [Surfpool](https://docs.surfpool.run/) - Integration testing with mainnet state\n\n## Progressive Disclosure\n\nThe skill follows the [Agent Skills](https://agentskills.io/specification) 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.\n\n## Benchmarks\n\n`tests/run.ts` contains a small benchmark suite that checks skill trigger matching and MCP auto-install behavior:\n\n```bash\ncd tests && npm install && npx tsx run.ts\n```\n\n## Contributing\n\nContributions are welcome! Please ensure any updates reflect current Solana ecosystem best practices.\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Submit a pull request\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n",
  "bytes": 8033,
  "sha": "cf39ffe75fed5c68710c5b6996cbf5d232bebff4ac5d0248ac4a46d24d87cc0d",
  "repo_slug": "solana-foundation/solana-dev-skill",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_solana_foundation_solana_dev_skill_solan_46992000/readme"
}