/ 目录 / 演练场 / skills
● 社区 sendaifun ⚡ 即开即用

skills

作者 sendaifun · sendaifun/skills

A public marketplace of Solana-related skills from Sendai — teach Claude on-chain Solana development patterns.

sendaifun/skills is a community marketplace of Agent Skills focused on Solana: SPL tokens, Anchor programs, common transactions, wallet integration patterns, and recipes for on-chain automations. It's opinionated toward Sendai's tooling but the patterns work broadly. Dev-focused — does not provide key management or wallet drainers.

为什么要用

核心特性

实时演示

实际使用效果

skills-skill-5.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "skills-skill-5": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sendaifun/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "skills-skill-5": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sendaifun/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "skills-skill-5": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sendaifun/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "skills-skill-5": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sendaifun/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "skills-skill-5",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sendaifun/skills",
        "~/.claude/skills/skills"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "skills-skill-5": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/sendaifun/skills",
          "~/.claude/skills/skills"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add skills-skill-5 -- git clone https://github.com/sendaifun/skills ~/.claude/skills/skills

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: skills

How to scaffold an Anchor program with Claude

👤 Solana developers starting a new on-chain program ⏱ ~60 min advanced

何时使用: You need a new Anchor program and don't want to pattern-match from random GitHub repos.

前置条件
  • Rust + Anchor CLI installed — rustup + cargo install --git https://github.com/coral-xyz/anchor anchor-cli
  • Skill cloned — git clone https://github.com/sendaifun/skills ~/.claude/skills/skills-sendai
步骤
  1. State the program goal
    Scaffold an Anchor program for a simple escrow: deposit SOL, release to seller on confirmation.✓ 已复制
    → Program with accounts, instructions, and idiomatic Anchor attributes
  2. Tests
    Add TypeScript client tests using the Anchor test harness.✓ 已复制
    → tests/ directory with typed client
  3. Build and deploy to localnet
    Build, deploy to localnet, and verify the escrow flow with a test transaction.✓ 已复制
    → Successful local deploy

结果: A working Anchor program with tests.

注意事项
  • Missing account constraints — Insist on explicit constraints for every account; skill prompts Claude to enumerate them
搭配使用: filesystem

Mint and distribute an SPL token

👤 Builders launching a token for a dev/test use case ⏱ ~30 min intermediate

何时使用: You need an SPL token script you actually trust.

步骤
  1. Draft the mint script
    Write a TypeScript script that creates an SPL token with 9 decimals and mints 1M to a treasury account.✓ 已复制
    → Script using @solana/spl-token with proper PDAs
  2. Airdrop helper
    Add a function that airdrops to an array of recipients using associated token accounts.✓ 已复制
    → ATA creation + transfer

结果: A reusable mint + distribute script.

注意事项
  • Forgetting ATA creation — Use getOrCreateAssociatedTokenAccount, not manual derivations

组合

与其他 MCP 搭配,撬动十倍杠杆

skills-skill-5 + filesystem

Work across an Anchor monorepo

Read programs/, add a new program following the existing structure.✓ 已复制
skills-skill-5 + github

Open PRs for contract changes with meaningful descriptions

Open a PR titled 'feat: escrow program' with tests.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
anchor-scaffolding program intent New program 0
spl-token-recipes mint/transfer/airdrop intent Token work 0
transaction-builder list of instructions Complex multi-ix flows 0

成本与限制

运行它的成本

API 配额
none beyond RPC usage you configure
每次调用 Token 数
5–15k per scaffold
费用
free at skill level; Solana fees are your own
提示
Develop on localnet/devnet; don't burn mainnet SOL for iteration

安全

权限、密钥、影响范围

凭据存储: never paste private keys into the prompt — use env vars and ephemeral devnet keys
数据出站: your configured RPC only
切勿授予: wallet signing from within a prompt

故障排查

常见错误与修复

anchor build fails

Check Rust toolchain and Anchor CLI version; pin with rust-toolchain.toml.

验证: anchor --version && rustc --version
Account constraint errors at runtime

Re-ask Claude to enumerate constraints and PDAs explicitly

替代方案

skills 对比其他方案

替代方案何时用它替代权衡
aelf-skillYou're building on aelf, not SolanaDifferent chain

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills