スキル一覧に戻る
solanabr

solana-dev

by solanabr

Claude Code configs for the expert Solana builder. CLAUDE.md, agents, commands, hooks, rules, skills and settings across Web, Anchor, Pinnochio, Unity, Mobile and more.

18🍴 3📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: solana-dev description: End-to-end Solana development playbook (Jan 2026). Prefer Solana Foundation framework-kit (@solana/client + @solana/react-hooks) for React/Next.js UI. Prefer @solana/kit for all new client/RPC/transaction code. When legacy dependencies require web3.js, isolate it behind @solana/web3-compat (or @solana/web3.js as a true legacy fallback). Covers wallet-standard-first connection (incl. ConnectorKit), Anchor/Pinocchio programs, Codama-based client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists. user-invocable: true

Solana Development Skill (framework-kit-first)

What this Skill is for

Use this Skill when the user asks for:

  • Solana dApp UI work (React / Next.js)
  • Wallet connection + signing flows
  • Transaction building / sending / confirmation UX
  • On-chain program development (Anchor or Pinocchio)
  • Client SDK generation (typed program clients)
  • Local testing (LiteSVM, Mollusk, Surfpool)
  • Security hardening and audit-style reviews
  • Backend services (indexers, APIs, RPC integration)
  • Deployment workflows (devnet → mainnet)

Default stack decisions (opinionated)

1) UI: framework-kit first

  • Use @solana/client + @solana/react-hooks
  • Prefer Wallet Standard discovery/connect via the framework-kit client
  • Use create-solana-dapp for new projects

2) SDK: @solana/kit first

  • Prefer Kit types (Address, Signer, transaction message APIs, codecs)
  • Prefer @solana-program/* instruction builders over hand-rolled instruction data
  • Use BigInt for u64/u128 values

3) Legacy compatibility: web3.js only at boundaries

  • If you must integrate a library that expects web3.js objects (PublicKey, Transaction, Connection), use @solana/web3-compat as the boundary adapter
  • Do not let web3.js types leak across the entire app; contain them to adapter modules
  • See kit-web3-interop.md for adapter patterns

4) Programs

  • Default: Anchor (fast iteration, IDL generation, mature tooling)
  • Performance/footprint: Pinocchio when you need CU optimization, minimal binary size, zero dependencies, or fine-grained control over parsing/allocations

5) Testing

  • Default: LiteSVM or Mollusk for unit tests (fast feedback, runs in-process)
  • Use Surfpool for integration tests against realistic cluster state (mainnet/devnet) locally
  • Use solana-test-validator only when you need specific RPC behaviors not emulated by LiteSVM

6) Backend

  • Framework: Axum 0.8+ with Tokio 1.40+
  • Critical: Use spawn_blocking for Solana RPC calls (they block!)
  • Database: sqlx with compile-time checked queries
  • Caching: Redis for RPC response caching

Operating procedure (how to execute tasks)

1. Classify the task layer

  • UI/wallet/hook layer
  • Client SDK/scripts layer
  • Program layer (+ IDL)
  • Testing/CI layer
  • Backend (indexer/API)
  • Infra (RPC/deployment)

2. Pick the right building blocks

LayerPrimary ToolAlternative
UI + hooks@solana/react-hooksConnectorKit (headless)
Client SDK@solana/kitweb3-compat adapter
ProgramsAnchorPinocchio (CU-critical)
TestingLiteSVM/MolluskSurfpool (integration)
BackendAxum 0.8+-

3. Implement with Solana-specific correctness

Always be explicit about:

  • Cluster + RPC endpoints + websocket endpoints
  • Fee payer + recent blockhash
  • Compute budget + prioritization (where relevant)
  • Expected account owners + signers + writability
  • Token program variant (SPL Token vs Token-2022) and any extensions

4. Add tests

  • Unit test: LiteSVM or Mollusk
  • Integration test: Surfpool
  • For "wallet UX", add mocked hook/provider tests where appropriate
  • Profile CU usage during development

5. Deliverables expectations

When implementing changes, provide:

  • Exact files changed + diffs (or patch-style output)
  • Commands to install/build/test
  • A short "risk notes" section for anything touching signing/fees/CPIs/token transfers

Progressive disclosure (read when needed)

Frontend & Client

Programs (also check security.md)

Testing & Security

  • testing.md - LiteSVM, Mollusk, Surfpool, CI guidance
  • security.md - Vulnerability categories, program + client checklists

Backend & Deployment

  • backend-async.md - Axum 0.8/Tokio patterns, spawn_blocking, RPC integration, Redis caching
  • deployment.md - Devnet/mainnet workflows, verifiable builds, multisig, CI/CD

Ecosystem & Reference

  • ecosystem.md - Token standards, DeFi protocols, NFT infrastructure, data indexing
  • payments.md - Commerce Kit, Kora (gasless), payment UX
  • resources.md - Official documentation links

Unity & Game Development

  • unity.md - Solana.Unity-SDK, wallet integration, NFT loading, transaction building in C#
  • playsolana.md - PlaySolana ecosystem, PSG1 console, PlayDex, PlayID, SvalGuard

Task routing guide

User asks about...Primary file(s)
Wallet connection, React hooksfrontend-framework-kit.md
Transaction building, Kit typeskit-web3-interop.md
Anchor program codeprograms-anchor.md
CU optimization, Pinocchioprograms-pinocchio.md
Unit testing, CU benchmarkstesting.md
Security review, auditsecurity.md
Backend API, indexerbackend-async.md
Deploy to devnet/mainnetdeployment.md
DeFi integration, NFTsecosystem.md
Payment flows, checkoutpayments.md
Generated clients, IDLidl-codegen.md
Unity game developmentunity.md
PlaySolana, PSG1 consoleplaysolana.md

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です