SF

solana-foundation/solana-dev-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

581 stars 质量 78 趋势 41MIT

Solana 上的智能体开发技能

概览

一套适用于现代 Solana 开发的全面代理技能(2026 年 7 月最佳实践)。适用于所有直接支持 代理技能的编码代理:以及任何读取 SKILL.md 的程序。 这项技能让你的编码代理对当前的 Solana 开发生态系统有深入了解: - : @solana/kit v7 插件客户端(createClient() + .use()) - : 通过 @solana/kit-plugin-wallet + @solana/react 连接 Wallet 标准连接 - : web3.js v3 (RC) — 基于 Kit 内部构建的经典 API,作为 v1 代码库的迁移目标 - : Anchor 1.1.x(默认),Pinocchio 0.11+ 用于高性能需求 - : Surfpool 用于集成测试(主网分支、作弊码、嵌入式 SDK),LiteSVM/Mollusk 用于单元测试 - : Codama 优先的 IDL 和客户端生成 - : 全面的漏洞模式与预防 - : 版本兼容性、常见错误及故障排除指南 技能CLI检测你安装的代理并为每个代理安装(或符号链接)。

概述(AI 翻译)

现代Solana开发的全面代理技能(2026年7月最佳实践)。适用于所有直接支持代理技能的编码代理:Claude Code、OpenAI Codex / ChatGPT 桌面版、GitHub Copilot(CLI + 编码代理)、Gemini CLI、Cursor、Windsurf、Cline、OpenCode,以及所有标有SKILL.md的程序。

概述

这项技能让你的编码代理对当前的 Solana 开发生态系统有深入了解:

  • SDK:@solana/kit 8个插件客户端([createClient() + .use()),默认构建事务v1
  • UI:通过@solana/kit-plugin-wallet + @solana/react 实现钱包标准连接
  • 遗留互操作性:web3.js v3 — 基于 Kit 内部重建的经典 API,作为 v1 代码库的迁移目标
  • 程序:Anchor 1.2.x(默认),Pinocchio 0.11+ 以支持高性能需求
  • 测试:Surfpool用于集成测试(主网分支、作弊码、嵌入式SDK),LiteSVM/Mollusk用于单元测试
  • Codegen:Codama 优先的 IDL 和客户端生成
  • 安全性:全面的漏洞模式与预防
  • 工具链:版本兼容性、常见错误及故障排除指南

安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Solana Development Skill

A comprehensive Agent Skill for modern Solana development (July 2026 best practices). Works with every coding agent that has direct Agent Skills support: Claude Code, OpenAI Codex / ChatGPT desktop, GitHub Copilot (CLI + coding agent), Gemini CLI, Cursor, Windsurf, Cline, OpenCode, and anything else that reads SKILL.md.

Overview

This skill gives your coding agent deep knowledge of the current Solana development ecosystem:

  • SDK: @solana/kit 8 plugin clients (createClient() + .use()), building transaction v1 by default
  • UI: Wallet Standard connection via @solana/kit-plugin-wallet + @solana/react
  • Legacy Interop: web3.js v3 — the classic API rebuilt on Kit internals, as the migration target for v1 codebases
  • Programs: Anchor 1.2.x (default), Pinocchio 0.11+ for high-performance needs
  • Testing: Surfpool for integration tests (mainnet forking, cheatcodes, embedded SDK), LiteSVM/Mollusk for unit tests
  • Codegen: Codama-first IDL and client generation
  • Security: Comprehensive vulnerability patterns and prevention
  • Toolchain: Version compatibility, common errors, and troubleshooting guides

Installation

Quick install (any agent, via skills.sh)

npx skills add solana-foundation/solana-dev-skill

The skills CLI detects your installed agents and installs (or symlinks) the skill for each of them.

Install script

git clone https://github.com/solana-foundation/solana-dev-skill
cd solana-dev-skill
./install.sh            # user-level: ~/.agents/skills + ~/.claude/skills
./install.sh --project  # project-level: .agents/skills + .claude/skills
./install.sh --link     # symlink instead of copy (auto-updates with git pull)

Desktop app upload

Download solana-dev.zip from the latest release and upload it as a custom skill in your application. Don’t use GitHub’s “Code → Download ZIP”: that archive nests SKILL.md too deep for the uploader to find.

Manual install

Copy (or symlink) skills/solana-dev/ into your agent’s skills directory:

Agent Project directory Personal directory
Claude Code .claude/skills/ ~/.claude/skills/
OpenAI Codex / ChatGPT desktop .agents/skills/ ~/.agents/skills/
GitHub Copilot (CLI, coding agent, VS Code) .github/skills/ or .agents/skills/ ~/.copilot/skills/ or ~/.agents/skills/
Gemini CLI .gemini/skills/ or .agents/skills/ ~/.gemini/skills/ or ~/.agents/skills/
Cursor .cursor/skills/ or .agents/skills/ ~/.cursor/skills/ or ~/.agents/skills/
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add solana-foundation/solana-dev-skill
新手?先看 mcpskill.org 教程 →