Skill installation and validation
The Solana development skill gives coding agents focused guidance for Solana work. Installation places the skill where an agent can find it, while the automated runner checks that the skill activates for the right requests and tells an active agent to add Solana tools when they are not available.
Installation model
The installation model connects one source skill with an agent's supported skill directory. The source is the skills/solana-dev/ directory, and its required SKILL.md file supplies the identity and scope that an agent uses for discovery.
Users can install the skill in several ways:
- Quick install:
npx skills add solana-foundation/solana-dev-skilldetects supported agents and installs or links the skill for them. - User scope: ./install.sh places the skill in personal
.agents/skillsand.claude/skillslocations. - Project scope:
./install.sh --projectplaces it in matching directories in the current project. - Linked source:
./install.sh --linkuses a link instead of a copy so repository updates reach the installed skill. - Manual placement: a user can copy or link the source directory into an agent-specific skill directory.
The install location must be one that the target agent scans. The shared .agents/skills and .claude/skills locations cover the main supported agents, while the manual-install table in the README gives host-specific alternatives. References: README.md• L22-57
Installation lifecycle
Installation first makes the source skill available at a discoverable destination. A copy creates an independent installed version. A link keeps the repository source as the single live version, which is useful when changes must appear without another install.
The install script supports both personal and project placement. It also handles an existing destination differently by context: an interactive run can ask before replacement, while a non-interactive run can replace it for scripted use. The skill declares Node.js 20.18 or newer, Rust, the Solana CLI, and the Anchor CLI as the toolchain needed for the work it guides. References: README.md• L32-40, README.md• L42-57, skills/…/SKILL.md• L1-8
Skill discovery
Skill discovery uses the front matter in skills/…/SKILL.md. The name identifies the skill as solana-dev, and the description defines the Solana requests that should activate it. The other front-matter fields record package metadata and toolchain compatibility for the installed skill.
The skill covers Solana UI and wallet work, transaction work including transaction v1, on-chain programs, client SDKs, testing, security, toolchain changes, migrations, token concepts, and focused on-chain lookups. It also covers gasless fees through Kora, server-side signing through Solana Keychain, and regulated or allowlisted token issuance through Mosaic. Its guidance favors current Kit-based clients, explicit wallet support checks, Anchor or Pinocchio programs, and Surfpool-centered testing. Its legacy migration target is the released web3.js v3 package, with explicit pinning required for code that must stay on 1.x. The main file then routes an active agent to focused reference material through progressive disclosure, including the general token model and the Kit-specific Token-2022 guidance. For the wider development guidance, see Solana development practices. References: skills/…/SKILL.md• L1-8, skills/…/SKILL.md• L11-28, skills/…/SKILL.md• L30-83, skills/…/SKILL.md• L97-132, skills/…/SKILL.md• L146-165, skills/…/SKILL.md• L185-213, skills/…/token-2022.md• L14-18, skills/…/tokens.md• L10-21
Automated validation
The runner in tests/run.ts uses controlled prompts and a fixed Anthropic model to measure the skill's behavior. It loads the skill's front matter for discovery checks and the full skill body for setup checks, then compares each model result with an expected outcome.
The validation has two suites:
| Suite | Question | Passing behavior |
|---|---|---|
| Skill trigger matching | Does the skill match this user request? | Solana requests match. Unrelated requests do not match. |
| MCP auto-install | Does an active skill set up Solana tools when none exist? | The agent chooses installation and names the Solana MCP endpoint in its command. |
The runner is a behavior check rather than a simple file check. A pass means the model followed the supplied skill scope or setup guidance under the test conditions. References: tests/run.ts• L17-26, tests/run.ts• L34-63, tests/run.ts• L78-131
Trigger suite
The trigger suite presents positive and negative prompts to a skill-matching model. The evaluator reads the model's JSON response and checks whether solana-dev appears in triggered_skills.
The positive prompts cover the skill's main Solana work areas, including UI, wallets, programs, transactions, testing, security, toolchain work, migrations, and focused lookups. The skill scope also names gasless payments, managed signing, regulated token issuance, and token concepts, so changes to those scope terms can change activation even when the core trigger cases remain unchanged. The negative prompts define the boundary against other tools, languages, platforms, and unrelated tasks. This suite therefore checks both useful activation and unwanted activation. References: tests/run.ts• L137-155, tests/run.ts• L157-209, skills/…/SKILL.md• L11-28, skills/…/kora.md• L21-27, skills/…/keychain.md• L19-23, skills/…/mosaic.md• L11-16, skills/…/tokens.md• L10-21
MCP installation suite
The MCP installation suite activates the skill and states that no Solana MCP tools exist. It asks the model for its first actions before answering a Solana question, then checks the would_install_mcp result and the command text.
The expected command includes a supported host's MCP add command and the https://mcp.solana.com/mcp endpoint. The skill gives direct forms for Claude Code, Gemini CLI, and Codex CLI, and directs other hosts to their MCP configuration. The cases cover concepts, tokens, Anchor setup, errors, account constraints, transactions, programs, and CPIs. References: tests/run.ts• L212-261, skills/…/SKILL.md• L134-153
Validation workflow
The test package provides a command-line workflow for both suites or one selected suite. It requires the test dependencies and an Anthropic API setup that the SDK can use.
Run the full check from the tests directory:
cd tests
npm install
npx tsx run.ts
Use trigger or mcp-install to run one suite. Use --verbose to show evaluator reasoning or --case N to run one case. The runner prints pass and fail counts and exits with status 1 when any case fails. This exit status lets continuous integration reject a change that breaks skill discovery or setup behavior. References: README.md• L151-157, tests/run.ts• L1-15, tests/run.ts• L263-314
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the skill source path and its
namealigned with the target loaded by the runner. - Keep the SKILL.md front matter in the simple format that the trigger loader can read. Both
nameanddescriptionare required. - Recheck positive and negative trigger cases when the skill description changes. Small scope changes can alter model activation.
- Keep the MCP setup guidance aligned with the command fragments checked by the MCP evaluator, including the supported host forms and endpoint.
- Keep the README install commands and host paths aligned with the supported installation routes.
- Keep the progressive-disclosure links and tool-selection table in SKILL.md aligned with the reference files for Kit, transaction v1, testing, tokens, Token-2022, Kora, Solana Keychain, and Mosaic.
- Keep version floors and wallet or transaction-v1 claims consistent across SKILL.md, the compatibility matrix, and the affected reference pages.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The skill directory or SKILL.md is unavailable | Installation cannot provide the skill, or the runner cannot load its identity | Keep the source path and required front matter intact |
The front matter does not contain readable name or description lines | The trigger suite omits the target skill or cannot evaluate its scope | Preserve the loader's expected front matter shape |
| The description becomes too broad | Unrelated requests can activate solana-dev | Keep non-Solana prompts in the negative boundary cases |
| The active skill does not direct the agent to install Solana MCP tools, or names the wrong endpoint | The agent can answer without the live Solana tool source, or the requested setup cannot connect | Preserve the host setup guidance and https://mcp.solana.com/mcp endpoint |
| The model returns text that is not valid JSON | The evaluator records a failed match or install result | Keep the JSON-only response contract in both system prompts |
| The runner has no usable Anthropic API setup | Model cases fail before behavior can be checked | Configure the API access expected by the Anthropic SDK |
| A new capability is added to the skill description but not to its reference links | An active agent may receive the right trigger but miss the guidance for tokens, Kora, Keychain, Mosaic, or transaction v1 | Update the progressive-disclosure links and tool table with the scope change |
Key files
| File | Why to read it |
|---|---|
| README.md | Explains the supported installation routes, agent paths, skill scope, and validation command. |
| install.sh | Defines the script-based placement and copy or link behavior. |
| skills/…/SKILL.md | Defines the discovery identity, activation scope, toolchain expectations, safety rules, and setup guidance used by the runner. |
| skills/…/tokens.md | Defines the general token-program, account, authority, and Token-2022 extension concepts now exposed through progressive disclosure. |
| skills/…/token-2022.md | Shows the Kit-specific Token-2022 guidance for account sizing, ATA derivation, initialization order, and extension access. |
| skills/…/overview.md and skills/…/plugins.md | Explain the Kit client model that the skill recommends for new Solana work. |
| skills/…/frontend.md | Defines the browser and wallet guidance, including the transaction-v1 support boundary. |
| skills/…/transactions-v1.md | Explains the transaction-v1 default and the compatibility rules that shape the skill's current scope. |
| skills/…/testing.md | Defines the Surfpool-centered testing model that the skill points agents toward. |
| skills/…/keychain.md | Explains the server-side signing capability named by the skill. |
| skills/…/kora.md | Explains the gasless and fee-sponsorship capability named by the skill. |
| skills/…/mosaic.md | Explains the regulated Token-2022 issuance capability named by the skill. |
| tests/run.ts | Defines the model prompts, expected cases, evaluators, run options, and process result. |
| tests/package.json | Defines the package context used to run the validation command. |