solana-dev
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", or "deploy to devnet". End-to-end Solana development playbook covering wallet connection, Anchor/Pinocchio programs, Codama client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists. Prefers framework-kit (@solana/client + @solana/react-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana/kit for client/RPC code, and @solana/web3-compat for legacy boundaries.
About this skill
This AI agent skill serves as a comprehensive playbook for developing on the Solana blockchain. It enables AI agents to assist with a wide array of tasks, from front-end dApp development using React and Next.js, handling wallet connections and transaction flows, to intricate on-chain program development with Anchor or Pinocchio. The skill guides the agent through generating typed client SDKs, setting up local testing environments with tools like LiteSVM, Mollusk, or Surfpool, and implementing security best practices. Key use cases for this skill include initiating new Solana dApp projects, writing and debugging complex on-chain programs, managing wallet connections, deploying applications to devnet, and upgrading or migrating Solana CLI and Anchor versions. It specifically addresses common development hurdles such as toolchain setup, dependency conflicts, and GLIBC errors, making it a powerful resource for streamlining the development process. The skill is opinionated, favoring a "framework-kit first" approach for UI development using `@solana/client` and `@solana/react-hooks`, and `@solana/kit` for client-side SDKs. It also dictates that `@solana/web3-compat` should only be used at legacy integration boundaries. This standardization ensures that AI-assisted development adheres to a consistent, recommended Solana ecosystem stack, thereby promoting efficiency, maintainability, and security in the resulting applications.
Best use case
solana-dev is best used when you need a repeatable coding & development workflow instead of a one-off prompt. It is especially useful for teams working in multi. This AI agent skill provides comprehensive guidance for end-to-end Solana development, including dApp UI, wallet integration, on-chain Anchor/Pinocchio programs, testing, and security, following opinionated stack decisions.
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", or "deploy to devnet". End-to-end Solana development playbook covering wallet connection, Anchor/Pinocchio programs, Codama client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists. Prefers framework-kit (@solana/client + @solana/react-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana/kit for client/RPC code, and @solana/web3-compat for legacy boundaries.
Users should expect a more consistent coding & development output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "solana-dev" skill to help with this coding & development task. Context: This AI agent skill provides comprehensive guidance for end-to-end Solana development, including dApp UI, wallet integration, on-chain Anchor/Pinocchio programs, testing, and security, following opinionated stack decisions.
Example output
A structured coding & development result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
- Use it when you are solving a coding & development task and want a more structured operating flow.
- Use it when you need a more specialized workflow and are comfortable with a heavier setup.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
- Avoid it when you need a workflow with almost no setup or customization.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/solana-development/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How solana-dev Compares
| Feature / Agent | solana-dev | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | hard | N/A |
Frequently Asked Questions
What does this skill do?
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", or "deploy to devnet". End-to-end Solana development playbook covering wallet connection, Anchor/Pinocchio programs, Codama client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists. Prefers framework-kit (@solana/client + @solana/react-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana/kit for client/RPC code, and @solana/web3-compat for legacy boundaries.
How difficult is it to install?
The installation complexity is rated as hard. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
SKILL.md Source
# Solana Development Skill (framework-kit-first) ## What this Skill is for Use this Skill when the user asks for: - Solana dApp UI work (React / Next.js) - Wallet connection + signing flows - Transaction building / sending / confirmation UX - On-chain program development (Anchor or Pinocchio) - Client SDK generation (typed program clients) - Local testing (LiteSVM, Mollusk, Surfpool) - Security hardening and audit-style reviews - Confidential transfers (Token-2022 ZK extension) - **Toolchain setup, version mismatches, GLIBC errors, dependency conflicts** - **Upgrading Anchor/Solana CLI versions, migration between versions** ## Default stack decisions (opinionated) 1) **UI: framework-kit first** - Use `@solana/client` + `@solana/react-hooks`. - Prefer Wallet Standard discovery/connect via the framework-kit client. 2) **SDK: @solana/kit first** - Prefer Kit types (`Address`, `Signer`, transaction message APIs, codecs). - Prefer `@solana-program/*` instruction builders over hand-rolled instruction data. 3) **Legacy compatibility: web3.js only at boundaries** - If you must integrate a library that expects web3.js objects (`PublicKey`, `Transaction`, `Connection`), use `@solana/web3-compat` as the boundary adapter. - Do not let web3.js types leak across the entire app; contain them to adapter modules. 4) **Programs** - Default: Anchor (fast iteration, IDL generation, mature tooling). - Performance/footprint: Pinocchio when you need CU optimization, minimal binary size, zero dependencies, or fine-grained control over parsing/allocations. 5) **Testing** - Default: LiteSVM or Mollusk for unit tests (fast feedback, runs in-process). - Use Surfpool for integration tests against realistic cluster state (mainnet/devnet) locally. - Use solana-test-validator only when you need specific RPC behaviors not emulated by LiteSVM. ## Operating procedure (how to execute tasks) When solving a Solana task: ### 1. Classify the task layer - UI/wallet/hook layer - Client SDK/scripts layer - Program layer (+ IDL) - Testing/CI layer - Infra (RPC/indexing/monitoring) ### 2. Pick the right building blocks - UI: framework-kit patterns. - Scripts/backends: @solana/kit directly. - Legacy library present: introduce a web3-compat adapter boundary. - High-performance programs: Pinocchio over Anchor. ### 3. Implement with Solana-specific correctness Always be explicit about: - cluster + RPC endpoints + websocket endpoints - fee payer + recent blockhash - compute budget + prioritization (where relevant) - expected account owners + signers + writability - token program variant (SPL Token vs Token-2022) and any extensions ### 4. Add tests - Unit test: LiteSVM or Mollusk. - Integration test: Surfpool. - For "wallet UX", add mocked hook/provider tests where appropriate. ### 5. Deliverables expectations When you implement changes, provide: - exact files changed + diffs (or patch-style output) - commands to install/build/test - a short "risk notes" section for anything touching signing/fees/CPIs/token transfers ## Progressive disclosure (read when needed) - UI + wallet + hooks: [frontend-framework-kit.md](references/frontend-framework-kit.md) - Kit ↔ web3.js boundary: [kit-web3-interop.md](references/kit-web3-interop.md) - Anchor programs: [programs-anchor.md](references/programs-anchor.md) - Pinocchio programs: [programs-pinocchio.md](references/programs-pinocchio.md) - Testing strategy: [testing.md](references/testing.md) - IDLs + codegen: [idl-codegen.md](references/idl-codegen.md) - Payments: [payments.md](references/payments.md) - Confidential transfers: [confidential-transfers.md](references/confidential-transfers.md) - Security checklist: [security.md](references/security.md) - Reference links: [resources.md](references/resources.md) - **Version compatibility:** [compatibility-matrix.md](references/compatibility-matrix.md) - **Common errors & fixes:** [common-errors.md](references/common-errors.md) - **Surfpool (local network):** [surfpool.md](references/surfpool.md) - **Surfpool cheatcodes:** [surfpool-cheatcodes.md](references/surfpool-cheatcodes.md)
Related Skills
laravel-expert
Senior Laravel Engineer role for production-grade, maintainable, and idiomatic Laravel solutions. Focuses on clean architecture, security, performance, and modern standards (Laravel 10/11+).
debug-nw
Debug a Nativewind v5 setup issue. Walks through common configuration problems with metro, babel, postcss, and dependencies.
Go Production Engineering
You are a Go production engineering expert. Follow this system for every Go project — from architecture decisions through production deployment. Apply phases sequentially for new projects; use individual phases as needed for existing codebases.
Database Engineering Mastery
> Complete database design, optimization, migration, and operations system. From schema design to production monitoring — covers PostgreSQL, MySQL, SQLite, and general SQL patterns.
afrexai-code-reviewer
Enterprise-grade code review agent. Reviews PRs, diffs, or code files for security vulnerabilities, performance issues, error handling gaps, architecture smells, and test coverage. Works with any language, any repo, no dependencies required.
API Documentation Generator
Generate production-ready API documentation from endpoint descriptions. Outputs OpenAPI 3.0, markdown reference docs, and SDK quickstart guides.
bili-rs
Development skill for bili-rs, a Rust CLI tool for Bilibili (B站). Use when implementing features, fixing bugs, or extending the bilibili-cli-rust codebase. Provides architecture conventions, API endpoints, coding patterns, and project-specific constraints. Triggers on tasks involving adding CLI commands, calling Bilibili APIs, handling authentication, implementing output formatting, or working with the layered cli/commands/client/payloads architecture.
Puppeteer
Automate Chrome and Chromium with Puppeteer for scraping, testing, screenshots, and browser workflows.
pharaoh
Codebase knowledge graph with 23 development workflow skills. Query architecture, dependencies, blast radius, dead code, and test coverage via MCP. Requires GitHub App installation (read-only repo access) and OAuth authentication. Connects to external MCP server at mcp.pharaoh.so.
git-commit-helper
Generate standardized git commit messages following Conventional Commits format. Use this skill when the user asks to commit code, write a commit message, or create a git commit. Enforces team conventions for type prefixes, scope naming, message length, and breaking change documentation.
ask-claude
Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).
bnbchain-mcp
Interact with the BNB Chain Model Context Protocol (MCP) server. Blocks, contracts, tokens, NFTs, wallet, Greenfield, and ERC-8004 agent tools. Use npx @bnb-chain/mcp@latest or read the official skill page.