Solana dev

From internet-court/internet-court-skill · View interactive version

Solana dev is an AI agent skill from the GitHub repository internet-court/internet-court-skill. 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", "deploy to devnet", or "explain Solana concepts" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public R

How to use this skill

Skill file

Solana Development Skill (Kit-first)

What this Skill is for

Use this Skill when the user asks for:

Default stack decisions (opinionated)

1) SDK: @solana/kit (v7+) 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.

2) UI: Kit plugin client + @solana/react

3) Legacy compatibility: web3.js v3 (RC)

4) Programs

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

5) Testing (Surfpool-centered)

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 (Anchor and Surfpool support it):

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 (https://mcp.solana.com/mcp, HTTP transport) 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 with names like solana-mcp-server or mcp__solana-mcp-server__* in your tool list. If not available, install it using your host's MCP mechanism:

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

# Gemini CLI
gemini mcp add --transport http solana-mcp-server https://mcp.solana.com/mcp

# Codex CLI
codex mcp add solana-mcp-server -- npx -y mcp-remote https://mcp.solana.com/mcp

For other hosts (Cursor, Windsurf, Cline, OpenCode, Copilot), add an entry to the host's MCP config file with URL https://mcp.solana.com/mcp (HTTP/remote transport). If you cannot modify config, ask the user to add 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

Surfpool also ships its own MCP server (surfpool mcp, stdio) for driving local networks — see surfpool/overview.md.

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.