/ 目录 / 演练场 / rootnode-skills
● 社区 drayline ⚡ 即开即用

rootnode-skills

作者 drayline · drayline/rootnode-skills

19 skills for diagnosing, building, and optimizing Claude Projects — prompt compilation, anti-pattern detection, context budget analysis.

drayline/rootnode-skills is a suite for engineering quality Claude Projects. Build skills (prompt-compilation, skill-builder), Diagnose skills (project-audit, global-audit, anti-pattern-detection, prompt-validation), Optimize skills (behavioral-tuning, memory-optimization, context-budget), plus 4 block libraries (identity, reasoning, output formats) and 5 domain packs (strategy, SWE, content, research, agents).

为什么要用

核心特性

实时演示

实际使用效果

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

Diagnose why a Claude Project stopped following instructions

👤 Claude.ai power users whose Project drifted ⏱ ~45 min intermediate

何时使用: Your Project worked, you added stuff, now it ignores key rules.

前置条件
  • Skill cloned — git clone https://github.com/drayline/rootnode-skills ~/.claude/skills/rootnode-skills
步骤
  1. Run the project audit
    Use rootnode-project-audit on my Project system prompt + instructions.✓ 已复制
    → Six-dimension scorecard with specific failures called out
  2. Check for anti-patterns
    Now rootnode-anti-pattern-detection — which of the 7 patterns do I have?✓ 已复制
    → Named patterns (e.g. 'conflicting directives', 'buried critical instruction')
  3. Rebalance memory
    Apply rootnode-memory-optimization — where should each rule actually live?✓ 已复制
    → Recommendation on what belongs in system prompt vs project docs vs user memory

结果: A diagnosed Project with a concrete fix list.

注意事项
  • Audit report is long; you only fix the easy ones — Start with anti-patterns flagged — those block the rest

Compile a new Claude Project system prompt from scratch

👤 Anyone building a Claude Project for the first time ⏱ ~60 min intermediate

何时使用: You have goals, constraints, and examples — but not yet a prompt.

步骤
  1. Run prompt-compilation
    rootnode-prompt-compilation — here's my intent, constraints, and 3 examples. Parse / Select / Construct / Validate.✓ 已复制
    → Structured system prompt following the four stages
  2. Validate
    Now rootnode-prompt-validation — score it across the six dimensions.✓ 已复制
    → Scorecard with specific weaknesses
  3. Apply behavioral tuning
    rootnode-behavioral-tuning — which of my instructions will Claude drift from?✓ 已复制
    → Countermeasures inserted at the right places

结果: A well-engineered Project prompt on day one.

组合

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

rootnode-skill + skillcheck-free-skill

Audit your Project prompt, then validate any skills it references against spec

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

Audit produces a long fix list — track progress on it across sessions

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

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
rootnode-prompt-compilation intent + constraints + examples Starting a new Project or major rewrite 0
rootnode-project-audit existing Project prompt Project behavior degraded 0
rootnode-anti-pattern-detection prompt/instructions When Claude ignores rules 0
rootnode-memory-optimization all prompt + project files Information is in the wrong place 0
rootnode-context-budget project files list Hitting context limits 0
rootnode-behavioral-tuning instructions You need reliable adherence 0

成本与限制

运行它的成本

API 配额
None
每次调用 Token 数
Audits read whole prompts — can be large
费用
Free — skills are local files
提示
Run audit once per major revision, not per-message.

安全

权限、密钥、影响范围

凭据存储: No credentials — pure prompts
数据出站: None

故障排查

常见错误与修复

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

Reference the specific sub-skill by name: 'rootnode-project-audit'.

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

Each sub-skill has its own SKILL.md — inspect the folder.

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

Sub-skill names are specific ('project-audit' vs 'global-audit' vs 'full-stack-audit'); use the right one.

替代方案

rootnode-skills 对比其他方案

替代方案何时用它替代权衡
skills-skill-8 (huangwb8)You want skill-authoring tooling rather than Project-level engineeringDifferent layer — skill vs Project
Raw prompt iterationSmall Projects that don't need formal engineeringLower overhead, higher drift risk

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

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