/ 目錄 / 演練場 / 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