Skip to content

feat: add /solana skill — 7-mode Solana development lifecycle#735

Closed
scriptscrypt wants to merge 1 commit into
garrytan:mainfrom
scriptscrypt:feat/solana-skills
Closed

feat: add /solana skill — 7-mode Solana development lifecycle#735
scriptscrypt wants to merge 1 commit into
garrytan:mainfrom
scriptscrypt:feat/solana-skills

Conversation

@scriptscrypt

@scriptscrypt scriptscrypt commented Apr 1, 2026

Copy link
Copy Markdown

Summary

  • Adds /solana skill with 7 modes: ideas, build, audit, deploy, monitor, debug, ecosystem — covering the full Solana development lifecycle from idea to production
  • Build mode includes specialized sub-routes for DeFi protocols, token launches (SPL + Token-2022), Blinks/Actions, data pipelines, mobile apps, AI agents, and NFTs — with support for both Anchor and Pinocchio frameworks
  • Adds Solana specialist reviewer that auto-triggers during /review when Anchor/solana-program code is detected, covering 9 vulnerability categories including Sealevel-specific exploits and Token-2022 extension patterns
  • Ecosystem mode integrates the solana-new CLI catalog (67 repos, 71 skills, 49 MCPs) for project-specific tool recommendations

What's in the skill

Mode What it does
/solana ideas Product discovery — ecosystem gap analysis, kill test, 3 ranked ideas
/solana build Guided dev with sub-modes for DeFi, tokens, blinks, pipelines, mobile, agents, NFTs
/solana audit Security audit — 9 vulnerability categories (signer, PDA, CPI, arithmetic, DeFi, Token-2022)
/solana deploy Mainnet deployment — pre-flight, devnet-first, upgrade authority, program verification
/solana monitor Post-deploy health — existence, authority, tx rate, balance checks
/solana debug Error diagnosis — Anchor error codes, CPI tracing, tx simulation
/solana ecosystem Browse repos, skills, MCPs with recommendations by project type

Key features

  • Pinocchio support — zero-dep framework option (88-95% CU savings) alongside Anchor
  • Token-2022 extensions — TransferFee, TransferHook, ConfidentialTransfer, NonTransferable, etc.
  • Compute unit optimization — CU budget reference table, profiling techniques
  • Fast local testing — Bankrun, LiteSVM, Surfpool patterns
  • DeFi non-negotiables — checked arithmetic, oracle staleness, slippage protection, emergency pause
  • Security test patterns — unauthorized access, double-init, overflow protection
  • Space calculation cheat sheet — account sizing reference for Anchor programs

Files changed

File What
solana/SKILL.md.tmpl New skill template (1,670 lines)
solana/SKILL.md Generated output (2,344 lines)
review/specialists/solana.md Solana specialist reviewer (76 lines, 9 vuln categories)
review/SKILL.md Regenerated (specialist routing)
scripts/resolvers/review-army.ts Solana stack detection for specialist dispatch

Test plan

  • bun test test/skill-validation.test.ts test/gen-skill-docs.test.ts — 658 pass, 0 fail
  • bun run gen:skill-docs regenerates cleanly
  • All bash blocks pass zsh-safety check (setopt guard)
  • Manual test: run /solana in a project with Anchor.toml — should route to build mode
  • Manual test: run /solana ideas in empty dir — should start discovery flow
  • Manual test: run /review on Solana program — should dispatch Solana specialist

Adds a comprehensive /solana skill with seven modes covering the full
Solana development lifecycle: ideas, build, audit, deploy, monitor,
debug, and ecosystem discovery.

Build mode includes specialized sub-routes for DeFi protocols, token
launches, Blinks/Actions, data pipelines, mobile apps, AI agents, and
NFTs. Supports both Anchor and Pinocchio frameworks, Token-2022
extensions, compute unit optimization, and fast local testing with
Bankrun/LiteSVM/Surfpool.

Also adds a Solana specialist reviewer that auto-triggers during
/review when Anchor or solana-program code is detected, covering 9
vulnerability categories including Sealevel-specific exploits and
Token-2022 extension patterns.

Ecosystem mode references the solana-new CLI catalog (67 repos, 71
skills, 49 MCPs) for project-specific tool recommendations.
@garrytan

garrytan commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Won't merge, but thanks for using gstack!

@garrytan garrytan closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants