new-skill Skill
搭建新的 brooks-lint 分析 skill,确保首次运行 `npm run validate` 和 `npm run evals` 就能通过——生成 skills/{name}/SKILL.md(含必需的"Do NOT trigger for:"子句和引用指南步骤区间的 Process 部分)和 skills/{name}/{name}-guide.md(按顺序编号的步骤),并追加配套的 eval 场景。当维护者要求"添加新 skill"、"scaffold a skill"或"创建 brooks-lint 模式"时触发。不要在这些情况触发:编辑现有 skill 的内容、给现有 skill 添加单个 eval,或为其他插件编写 skill。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
brooks-lint — New Skill Scaffold
Skill name comes from the user request (kebab-case, e.g. brooks-security). If empty,
ask for the name and a one-line purpose first.
Follow the repo's "Adding a New Skill" checklist exactly:
- Create
skills/{name}/SKILL.mdwith frontmatter —name, adescription
that ends with a Do NOT trigger for: clause (validate-enforced for shipped
skills; omitting it causes false triggering), metadata: with opencode/slash: "true", and a Process section of 3–6
bullets that cite the guide's step ranges inline (e.g. `Scan risks (Steps 1–6 of
the guide)`). Mirror the structure of an existing skill such as
skills/brooks-review/SKILL.md (Setup → Process → Mode line).
- Create
skills/{name}/{name}-guide.mdwith sequentially numbered steps —
no gaps, no duplicates. Sub-steps like Step 2a are allowed. The guide owns the
detailed steps; the SKILL.md Process is just an orientation skeleton.
- Wire the framework. The new SKILL.md Setup section must Read the relevant
_shared/ files (common.md for Iron Law + Report Template, plus
decay-risks.md / test-decay-risks.md as applicable) — _shared/ is NOT
auto-loaded.
- Add eval coverage to
evals/evals.json: append with the next sequential
id at least one happy-path scenario (with the relevant risk code in
expected_output) and at least one false-positive scenario flagged
no_risk_codes: true. Each scenario needs id, name, prompt,
expected_output, mode, files.
- Validate.
npm run validate(structure + step continuity + Process-section
presence) and npm run evals (eval schema). Fix until both pass.
- Local-test. Link the new skill folder from
skills/into
.agents/skills/ alongside the _shared symlink, then invoke it with
$ in a Codex session and verify the Iron Law output.
Codex discovers repository skills directly; no command wrapper is needed.
Report the files created and the validate/evals results.