/ 目錄 / 演練場 / rootnode-skills
● 社群 drayline ⚡ 即開即用

rootnode-skills

作者 drayline · drayline/rootnode-skills

19 個技能,用於診斷、建構與優化 Claude Projects——提示詞編譯、反模式偵測、上下文預算分析。

drayline/rootnode-skills 是一套用於工程化 Claude Projects 品質的工具組。建構類技能(prompt-compilation、skill-builder)、診斷類技能(project-audit、global-audit、anti-pattern-detection、prompt-validation)、優化類技能(behavioral-tuning、memory-optimization、context-budget),加上 4 個區塊函式庫(身份識別、推理、輸出格式)以及 5 個領域套件(策略、軟體工程、內容、研究、代理人)。

為什麼要用

核心特性

即時演示

實際使用效果

rootnode-skill.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

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

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

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

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

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

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

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

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

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

Continue 使用伺服器物件陣列,而非映射。

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

加入 context_servers。Zed 儲存後熱重載。

claude mcp add rootnode-skill -- git clone https://github.com/drayline/rootnode-skills ~/.claude/skills/rootnode-skills

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: rootnode-skills

診斷 Claude Project 為何停止遵循指令

👤 Project 出現偏移的 Claude.ai 進階使用者 ⏱ ~45 min intermediate

何時使用: 你的 Project 原本運作正常,加了一些設定後,現在它開始忽略關鍵規則。

前置條件
  • Skill cloned — git clone https://github.com/drayline/rootnode-skills ~/.claude/skills/rootnode-skills
步驟
  1. 執行 project audit
    Use rootnode-project-audit on my Project system prompt + instructions.✓ 已複製
    → 六維度評分卡,並明確指出具體缺失
  2. 檢查反模式
    Now rootnode-anti-pattern-detection — which of the 7 patterns do I have?✓ 已複製
    → 列出具名的反模式(例如「衝突的指令」、「關鍵指令被埋沒」)
  3. 重新平衡記憶體配置
    Apply rootnode-memory-optimization — where should each rule actually live?✓ 已複製
    → 建議哪些內容應放在系統提示詞、哪些放在 project 文件、哪些放在使用者記憶體

結果: 完成診斷的 Project,並附有具體修復清單。

注意事項
  • 稽核報告篇幅很長,你只修了容易的部分 — 優先處理被標記的反模式——那些問題會阻礙其他部分的修復

從頭編譯全新的 Claude Project 系統提示詞

👤 第一次建立 Claude Project 的任何人 ⏱ ~60 min intermediate

何時使用: 你已有目標、限制條件和範例,但還沒有提示詞。

步驟
  1. 執行 prompt-compilation
    rootnode-prompt-compilation — here's my intent, constraints, and 3 examples. Parse / Select / Construct / Validate.✓ 已複製
    → 依照四階段流程產出結構化的系統提示詞
  2. 驗證
    Now rootnode-prompt-validation — score it across the six dimensions.✓ 已複製
    → 評分卡,並指出具體弱點
  3. 套用行為調校
    rootnode-behavioral-tuning — which of my instructions will Claude drift from?✓ 已複製
    → 在適當位置插入對應的防偏移措施

結果: 第一天就完成工程化品質的 Project 提示詞。

組合

與其他 MCP 搭配,撬動十倍槓桿

rootnode-skill + skillcheck-free-skill

稽核你的 Project 提示詞,然後針對其中引用的技能依規格進行驗證

Run rootnode-project-audit, then SkillCheck on each referenced SKILL.md.✓ 已複製
rootnode-skill + planning-with-files

稽核產出了很長的修復清單——跨工作階段追蹤進度

Use planning-with-files to track the rootnode audit fix list across this week.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
rootnode-prompt-compilation intent + constraints + examples 開始新 Project 或進行大幅改寫時 0
rootnode-project-audit existing Project prompt Project 行為出現退化時 0
rootnode-anti-pattern-detection prompt/instructions Claude 忽略規則時 0
rootnode-memory-optimization all prompt + project files 資訊放錯位置時 0
rootnode-context-budget project files list 遭遇上下文限制時 0
rootnode-behavioral-tuning instructions 需要可靠的指令遵循度時 0

成本與限制

運行它的成本

API 配額
每次呼叫 Token 數
稽核類技能會讀取完整提示詞——可能相當龐大
費用
免費——技能為本機檔案
提示
每次重大改版執行一次稽核,而非每次訊息都執行。

安全

權限、密鑰、影響範圍

憑證儲存: 無需憑證——純提示詞
資料出站:

故障排查

常見錯誤與修復

Skill not invoked — Claude gives generic prompt advice instead of using the audit

以具體的子技能名稱呼叫:'rootnode-project-audit'。

驗證: ls ~/.claude/skills/rootnode-skills/
SKILL.md frontmatter wrong in a sub-skill

每個子技能都有自己的 SKILL.md——請檢查對應的資料夾。

驗證: head ~/.claude/skills/rootnode-skills/rootnode-project-audit/SKILL.md
Wrong trigger keywords — wrong sub-skill activates

子技能名稱各有區別('project-audit' vs 'global-audit' vs 'full-stack-audit');請使用正確的名稱。

替代方案

rootnode-skills 對比其他方案

替代方案何時用它替代權衡
skills-skill-8 (huangwb8)你想要的是技能撰寫工具,而非 Project 層級的工程化工具層次不同——技能層 vs Project 層
Raw prompt iteration小型 Project 不需要正式工程化流程開銷較低,但偏移風險較高

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills