GuiBibeau/solana-dev-skill

Claude Code skill for modern Solana development (Jan 2026 best practices)

License:MITLanguage:Shell10618

Deep Analysis

为Claude Code提供现代Solana开发(2026最佳实践)的全面技能支持,涵盖UI、SDK、程序开发、测试和安全

强力推荐

Core Features

UI框架集成

支持framework-kit和ConnectorKit

客户端SDK

@solana/kit (v5.x)和兼容性层

链上程序开发

Anchor默认和Pinocchio高性能方案

测试框架

LiteSVM/Mollusk单元测试和Surfpool集成测试

代码生成

Codama优先的IDL和客户端生成

安全审计

漏洞模式和安全防护指南

Technical Implementation

Architecture:多层次架构:UI层→客户端层→链上层→测试层→代码生成层
Execution Flow:
环境设置

通过install.sh安装skill

UI开发

使用framework-kit进行钱包连接

链上开发

选择Anchor或Pinocchio开发合约

单元测试

使用LiteSVM进行本地测试

安全审计

应用漏洞模式检查

Key Components:
@solana/kit新一代客户端SDK
Anchor智能合约开发框架
LiteSVM轻量级本地测试
CodamaIDL和客户端自动生成
Highlights
  • 覆盖整个Solana开发栈
  • 融合2026年最佳实践
  • 支持多层级测试
  • 递进式信息展示模式
  • 完整安全审计指南
Use Cases
  • 构建Solana dApp前端UI
  • 开发链上Anchor智能合约
  • 优化性能使用Pinocchio
  • 进行本地单元和集成测试
Limitations
  • 仅针对Solana生态
  • 主要面向2026技术栈
  • 需熟悉Solana基础概念
Tech Stack
@solana/kitAnchorPinocchioLiteSVMSurfpoolCodamaReactNext.js

Solana Development Skill for Claude Code

A comprehensive Claude Code skill for modern Solana development (January 2026 best practices).

Overview

This skill provides Claude Code with deep knowledge of the current Solana development ecosystem:

  • UI: Solana Foundation framework-kit (@solana/client + @solana/react-hooks)
  • SDK: @solana/kit (v5.x) for new client work
  • Legacy Interop: @solana/web3-compat for bridging to web3.js dependencies
  • Programs: Anchor (default), Pinocchio for high-performance needs
  • Testing: LiteSVM/Mollusk for unit tests, Surfpool for integration
  • Codegen: Codama-first IDL and client generation
  • Security: Comprehensive vulnerability patterns and prevention

Installation

Quick Install (Personal)

# Clone and install to personal skills directory
git clone https://github.com/GuiBibeau/solana-dev-skill.git
cp -r solana-dev-skill/skill ~/.claude/skills/solana-dev

Quick Install (Project)

# Install to project-specific skills directory
cp -r solana-dev-skill/skill .claude/skills/solana-dev

Using the Install Script

# Install to personal directory (default)
./install.sh

# Install to project directory
./install.sh --project

# Install to custom location
./install.sh --path /custom/path/skills/solana-dev

Skill Structure

skill/
├── SKILL.md                    # Main skill definition (required)
├── frontend-framework-kit.md   # UI patterns with framework-kit
├── kit-web3-interop.md         # Kit ↔ web3.js boundary patterns
├── programs-anchor.md          # Anchor program development
├── programs-pinocchio.md       # Pinocchio (high-performance native)
├── testing.md                  # Testing (LiteSVM/Mollusk/Surfpool)
├── idl-codegen.md              # IDL and client generation
├── payments.md                 # Payments with Commerce Kit
├── security.md                 # Security vulnerabilities & prevention
└── resources.md                # Curated reference links

Usage

Once installed, Claude Code will automatically use this skill when you ask about:

  • Solana dApp UI work (React / Next.js)
  • Wallet connection and signing flows
  • Transaction building, sending, and 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

Example Prompts

"Help me set up a Next.js app with Solana wallet connection"
"Create an Anchor program for a simple escrow"
"Convert this Anchor program to Pinocchio for better CU efficiency"
"How do I integrate a legacy web3.js library with my Kit-based app?"
"Write LiteSVM tests for my token transfer instruction"
"Review this program for security issues"

Stack Decisions

This skill encodes opinionated best practices:

Layer Default Choice Alternative
UI Framework framework-kit ConnectorKit (headless)
Client SDK @solana/kit @solana/web3-compat (boundary)
Program Framework Anchor Pinocchio (performance)
Unit Testing LiteSVM / Mollusk -
Integration Testing Surfpool solana-test-validator
Client Generation Codama Kinobi (Umi)

Content Sources

This skill incorporates best practices from:

Progressive Disclosure

The skill uses Claude Code's progressive disclosure pattern. The main SKILL.md provides core guidance, and Claude reads the specialized markdown files only when needed for specific tasks.

Contributing

Contributions are welcome! Please ensure any updates reflect current Solana ecosystem best practices.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE for details.