360 Secure SkillHub
360 安全技能中心

Workspace Template Review

核心功能:定位Clawdbot官方模板路径,对比用户工作区的AGENTS、SOUL等.md文件,过滤无关内容后识别缺失区块,输出区块内容、作用说明及是否添加的询问。典型场景:Clawdbot升级后,检查工作区是否需同步模板更新。输入需用户提供工作区或安装路径,输出结构化缺失内容建议。

h-mascot
h-mascot
热度 24.71
最近更新 2026-06-04 00:18:09
分类:开发依赖:代码执行 / 读写文件应用场景:模板 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ec-workspace-template-review
Metadata
name
clawdbot-workspace-template-review
description
Compare a Clawdbot workspace against the official templates installed with Clawdbot (npm or source) and list missing sections to pull in, especially after upgrades.

Workspace Template Diff

Use this skill when the user wants to compare their workspace .md files (AGENTS, SOUL, USER, IDENTITY, TOOLS, HEARTBEAT, etc.) against the official Clawdbot templates, then review missing sections and decide what to add.

Locate the official templates

Find the installed Clawdbot source root:

  • If clawdbot is installed via npm/pnpm globally:
    • command -v clawdbot
    • If it points into .../node_modules/.bin/, resolve to the sibling node_modules/clawdbot
    • Or use npm root -g / pnpm root -g and look for clawdbot/
  • If Clawdbot runs from source, use that checkout root (must contain package.json).

Templates live at:

<clawdbot-root>/docs/reference/templates/

If you can’t find the source root, ask the user where their Clawdbot is installed.

Comparison workflow

  1. Identify the workspace root (the user’s “our version” directory).
  2. For each template file in docs/reference/templates (skip *.dev.md):
    • Open the official template and the workspace file with the same name.
    • Ignore template frontmatter (--- block) and any “First Run”/“Bootstrap” sections.
    • Compare the remaining sections and list any missing blocks.

Helpful commands (use ad‑hoc CLI tools like diff):

ls <clawdbot-root>/docs/reference/templates
sed -n '1,200p' <clawdbot-root>/docs/reference/templates/AGENTS.md
sed -n '1,200p' <workspace>/AGENTS.md
diff -u <clawdbot-root>/docs/reference/templates/AGENTS.md <workspace>/AGENTS.md

When reporting diffs:

  • Show the missing sections verbatim from the official template.
  • Explain briefly why they matter, then ask whether to add them.
  • Move file by file; skip files that only differ by frontmatter or bootstrap content.

Output format

Use the “missing section” format we used previously:

  • File path
  • Missing block(s)
  • Suggestion + question to proceed