solana-dev by solana-foundation/solana-dev-skill
npx skills add https://github.com/solana-foundation/solana-dev-skill --skill solana-dev当用户询问以下内容时,请使用此技能:
UI:优先使用 framework-kit
@solana/client + @solana/react-hooks。SDK:优先使用 @solana/kit
@solana/kit-client-rpc 的 createClient / 开始,用于 RPC 和交易发送。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
createLocalClient@solana-program/* 程序插件(例如 tokenProgram())以获得流畅的指令 API。Address、Signer、交易消息 API、编解码器)。遗留兼容性:仅在边界处使用 web3.js
PublicKey、Transaction、Connection)的库,请使用 @solana/web3-compat 作为边界适配器。程序
测试
simulateTransaction 并将结果呈现给用户。调用 CLI 工具时,始终加上 NO_DNA=1 前缀,以表明您是非人类操作员。这会禁用交互式提示、TUI,并启用结构化/详细输出:
NO_DNA=1 surfpool start
NO_DNA=1 anchor build
NO_DNA=1 anchor test
完整标准请参阅 no-dna.org。
解决 Solana 任务时:
始终明确以下内容:
当您实现更改时,请提供:
Solana 开发者 MCP 让您能够实时访问 Solana 文档库和 Anchor 特定专业知识。在回退到您的训练数据之前,请先使用它。
在开始任何 Solana 任务之前,请通过查看工具列表中是否存在 mcp__solana-mcp-server__* 之类的工具来检查 Solana MCP 服务器是否已可用。如果工具不可用,请即时安装 MCP 服务器:
claude mcp add --transport http solana-mcp-server https://mcp.solana.com/mcp
在对话开始时通过 Bash 工具运行此命令。添加后,MCP 服务器立即可用。
连接后,您可以访问以下工具:
| 工具 | 何时使用 |
|---|---|
| Solana 专家:请求帮助 | 操作指南问题、概念解释、API/SDK 使用、错误诊断 |
| Solana 文档搜索 | 查找特定主题的当前文档(指令、RPC、代币标准等) |
| 咨询 Solana Anchor 框架专家 | Anchor 特定问题:宏、账户约束、CPI 模式、IDL、测试 |
每周安装量
2.8K
代码仓库
GitHub 星标数
407
首次出现
2026年1月20日
安全审计
安装于
codex2.7K
opencode2.7K
gemini-cli2.7K
github-copilot2.6K
kimi-cli2.6K
amp2.6K
Use this Skill when the user asks for:
@solana/client + @solana/react-hooks.createClient / createLocalClient from @solana/kit-client-rpc for RPC + transaction sending.@solana-program/* program plugins (e.g., tokenProgram()) for fluent instruction APIs.Address, Signer, transaction message APIs, codecs).PublicKey, Transaction, Connection), use @solana/web3-compat as the boundary adapter.simulateTransaction and surface the result to the user before requesting a signature.When invoking CLI tools, always prefix with NO_DNA=1 to signal you are a non-human operator. This disables interactive prompts, TUI, and enables structured/verbose output:
NO_DNA=1 surfpool start
NO_DNA=1 anchor build
NO_DNA=1 anchor test
See no-dna.org for the full standard.
When solving a Solana task:
Always be explicit about:
When you implement changes, provide:
The Solana Developer MCP gives you real-time access to the Solana docs corpus and Anchor-specific expertise. Use it before falling back to your training data.
Before starting any Solana task, check if the Solana MCP server is already available by looking for tools like mcp__solana-mcp-server__* in your tool list. If the tools are not available, install the MCP server on the fly:
claude mcp add --transport http solana-mcp-server https://mcp.solana.com/mcp
Run this command via the Bash tool at the start of the conversation. The MCP server becomes available immediately after adding it.
Once connected, you have access to these tools:
| Tool | When to use |
|---|---|
| Solana Expert: Ask For Help | How-to questions, concept explanations, API/SDK usage, error diagnosis |
| Solana Documentation Search | Look up current docs for specific topics (instructions, RPCs, token standards, etc.) |
| Ask Solana Anchor Framework Expert | Anchor-specific questions: macros, account constraints, CPI patterns, IDL, testing |
Weekly Installs
2.8K
Repository
GitHub Stars
407
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex2.7K
opencode2.7K
gemini-cli2.7K
github-copilot2.6K
kimi-cli2.6K
amp2.6K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI代码审查工具 - 自动化安全漏洞检测与代码质量分析 | 支持多领域检查清单
1,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装