1. Habit
  2. Skills
  3. Solana Dev skill
solana-foundation · 95K installs

Solana Dev skill
Runs by itself, PR changes Solana code.

Solana changes built, tested, risk-noted.

Install the Solana Dev skill and make it a habit: follow https://gethabit.dev/skills/solana-foundation/solana-dev.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

95K installs581 starsMIT licenceSource on GitHub ↗

Solana Dev

by solana-foundation · 95K installs

The skill

The solana dev skill is an end-to-end playbook for Solana: wallet connection, Anchor and Pinocchio programs, Kit clients, Surfpool and LiteSVM testing, security review and v1 transactions.

Only when you ask.

The habit

Solana changes built, tested, risk-noted.

↻ Runs by itselfPR changes Solana code

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleOne pull request per run, one retry after a failed build, never mainnet without your explicit request.

  1. 01

    Classify the layer

    Sort the change into UI, client, program, testing or infra, using the Solana MCP server for current docs.

  2. 02

    Check correctness

    Confirm cluster, fee payer, transaction version, account owners, signers and token program variant.

  3. 03

    Build and test

    Run NO_DNA=1 anchor build and NO_DNA=1 anchor test with LiteSVM, Mollusk or Surfpool.

  4. 04

    Simulate first

    Run simulateTransaction on devnet or localnet and show the result.

  5. 05

    Ask before signing

    Show recipient, amount, token, fee payer and cluster, and wait for your approval.

  6. 06

    Write risk notes

    List changed files and a short risk section for signing, fees, CPIs or token transfers.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Solana Dev skill helps.

Use it when

  • ✓ You write an Anchor program
  • ✓ You connect a wallet in React
  • ✓ You debug Solana errors

Skip it when

  • – You build on another chain
  • – You only need one balance lookup

Questions

Solana Dev skill, answered.

Will it touch mainnet?

No. The skill defaults to devnet or localnet and needs your explicit request for mainnet.

Does it handle my keys?

No. The skill never asks for or stores private keys or seed phrases.

Why NO_DNA=1?

It tells Anchor and Surfpool a non-human runs them, which turns off prompts and gives structured output.

How do I install the Solana Dev skill?

Copy the prompt at the top into your agent. It installs the skill from solana-foundation/solana-dev-skill and sets up the habit. Or run npx skills add solana-foundation/solana-dev-skill --skill solana-dev.

Is the Solana Dev skill free?

Yes. It is published under MIT. Habit is free too.

Solana Dev. Now as a habit.

Install the Solana Dev skill and make it a habit: follow https://gethabit.dev/skills/solana-foundation/solana-dev.md

  • Free
  • No account
  • Undo in one line

All solana-foundation skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by solana-foundation, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.