Solana dev

From Starchild-ai-agent/official-skills · View interactive version

Solana dev is an AI agent skill from the GitHub repository Starchild-ai-agent/official-skills. Solana development: Anchor and Pinocchio programs, Kit clients, wallet flows, testing. Use when building a Solana dapp or program (e.g. write Anchor escrow, create SPL token, wallet-standard login, debug PDA, deploy to devnet).

How to use this skill

Skill file

Solana Development Skill (framework-kit-first)

What this Skill is for

Use this Skill when the user asks for:

Default stack decisions (opinionated)

1) UI: framework-kit first

2) SDK: @solana/kit first

```ts

createClient()

.use(signer(mySigner))

.use(solanaRpc({ rpcUrl }));

// or solanaLocalRpc / solanaDevnetRpc / solanaMainnetRpc from @solana/kit-plugin-rpc

```

@solana/kit-plugin-signer — they set both payer and identity to the same keypair (the

common case). For fresh local/devnet signers, install the RPC/LiteSVM plugin after

generatedSigner(), then fund with airdropSigner(...). Reach for the role-specific variants

(payer() + identity()) only when fees and authority must come from different keypairs.

3) Legacy compatibility: web3.js only at boundaries

use @solana/web3-compat as the boundary adapter.

4) Programs

zero dependencies, or fine-grained control over parsing/allocations.

5) Testing

Agent safety guardrails

Transaction review (W009)

Untrusted data handling (W011)

Agent-friendly CLI usage (NO_DNA)

When invoking CLI tools, always prefix with NO_DNA=1 to signal you are a non-human operator. This disables interactive prompts, TUI, and enables structured/verbose output:

NO_DNA=1 surfpool start
NO_DNA=1 anchor build
NO_DNA=1 anchor test

See no-dna.org for the full standard.

Operating procedure (how to execute tasks)

When solving a Solana task:

1. Classify the task layer

2. Pick the right building blocks

3. Implement with Solana-specific correctness

Always be explicit about:

4. Add tests

5. Deliverables expectations

When you implement changes, provide:

Solana MCP server (live docs + expert assistance)

The Solana Developer MCP gives you real-time access to the Solana docs corpus and Anchor-specific expertise. Use it before falling back to your training data.

Auto-install

Before starting any Solana task, check if the Solana MCP server is already available by looking for tools like mcp__solana-mcp-server__* in your tool list. If the tools are not available, install the MCP server on the fly:

claude mcp add --transport http solana-mcp-server https://mcp.solana.com/mcp

Run this command via the Bash tool at the start of the conversation. The MCP server becomes available immediately after adding it.

Available MCP tools

Once connected, you have access to these tools:

| Tool | When to use |

|------|-------------|

| Solana Expert: Ask For Help | How-to questions, concept explanations, API/SDK usage, error diagnosis |

| Solana Documentation Search | Look up current docs for specific topics (instructions, RPCs, token standards, etc.) |

| Ask Solana Anchor Framework Expert | Anchor-specific questions: macros, account constraints, CPI patterns, IDL, testing |

When to reach for MCP tools

Progressive disclosure (read when needed)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.