solana-security-standard — Claude Code skill: setup and usage
solana-security-standard is a Claude Code skill that detects 37 vulnerability classes in Solana and Anchor programs during development and CI.
no license 268 installs ★ 13 updated 2026-10-09
npx skills add reason-machines/security-skills --skill solana-security-standard -a claude-codeWhat solana-security-standard does
This skill brings the SOL-0XX standard into your coding workflow, built around attack vectors responsible for over $514M in historical exploits. It targets common Solana flaws: spoofed clock values controlled by callers, missing signer and owner checks, wrapper drift from core program logic, and flawed PDA derivations.
Checks execute within assistant sessions, through MCP tools, or via a standalone command line runner. Because the CLI exits with a non-zero status on findings, security scans reliably gate pull requests in CI pipelines.
Coverage extends beyond Rust on-chain code into client-side TypeScript and JavaScript. It flags client-level arithmetic overflow risks, missing transaction pre-flight simulations, and hardcoded program keys.
What it helps with
- detect caller-manipulated clock slots in Anchor instructions
- verify accounts for missing signer or ownership constraints
- flag client-side arithmetic bugs in TypeScript integration files
- run automated Solana vulnerability scans in pull request workflows
Example prompts for the agent
- Scan my Solana program for security issues against SOL-0XX rules
- Check this Anchor account validation logic for missing signers
- Validate this PDA derivation logic against the Solana security standard
How to install solana-security-standard
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill solana-security-standard -a claude-code2Manually: put the files in place
~/.claude/skills/solana-security-standard/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/solana-security-standard/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill solana-security-standard -a codex2Manually: put the files in place
.agents/skills/solana-security-standard/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill solana-security-standard -a cursor2Manually: put the files in place
.cursor/skills/solana-security-standard/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills skills/solana-security-standard2Manually: put the files in place
.github/skills/solana-security-standard/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill solana-security-standard -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/solana-security-standardManually: put the files in place
.devin/skills/solana-security-standard/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill solana-security-standard -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about solana-security-standard
How to install solana-security-standard in Claude Code?
Run npx skills add reason-machines/security-skills --skill solana-security-standard -a claude-code in your terminal.
What does solana-security-standard inspect?
It evaluates code against 37 vulnerability categories, including account type confusion, uninitialized state, and missing rent exemption checks.
Can it run in terminal pipelines without interactive tools?
Yes. Run npx @jelleo/solana-security-standard scan ./programs directly to output terminal findings or format results as SARIF and JSON.