AGENTS.md ยท diff
git:20261019.1800c62 to git:20261020.b360ad1
6 added, 13 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
# Working on this repo
This repo ships skills, hooks and scripts for Claude Code and OpenCode. It is
not an application.
## Layout
- `skills/<name>/SKILL.md`: one directory per skill, flat. Detail goes in
sibling files one level deep. Skills link to each other only within
`skills/` (`../do-it/STATE.md`), so links survive a symlink install.
- `hooks/`: `claude.mjs` (Claude Code entry), `lib/` (host-neutral checks
and context), `hooks.json` (plugin hook config).
- `.opencode/plugins/`: the OpenCode plugin, a thin adapter over `hooks/lib`.
- `.opencode/command/`: generated by `npm run gen`. Never edit by hand.
- `scripts/`: install, generate, check.
- `docs/DESIGN.md`, `docs/adr/`: why things are the way they are.
## Rules
+ How to write a skill (typed vs automatic, descriptions, calling other
+ skills, file layout, line budget, `-it` names) is in
+ [skills/skill-it/SKILL-MECHANICS.md](skills/skill-it/SKILL-MECHANICS.md);
+ `npm run check` enforces it. This repo adds:
+
- `skills/it-core/SKILL.md` is the single source of the coding posture; the
hooks and the OpenCode plugin read it. Do not restate it elsewhere.
- - A rule lives in one skill; other skills call that skill (Call the Skill
- tool with "<name>") or link to its file. A user-invoked skill
- (`disable-model-invocation: true`) cannot be called that way; follow its
- `../<name>/SKILL.md` by path. `npm run check` fails on a call to a skill
- this repo does not ship, a Skill-tool call to a user-invoked skill, and a
- Skill-tool mention that names no skill.
- - User-invoked skills (`disable-model-invocation: true`) get a one-line,
- human-facing description. Model-invoked skills get "what it does" plus
- "Use when ..." triggers. Never summarize the process in a description.
- - Skill names are `-it` verbs (`scope-it`, `grill-it`, `track-it`) so they
- never collide with other skill repos installed beside this one. Check a new
- name against mattpocock/skills and rshingleton/skills before adding it.
+ - Check a new skill name against mattpocock/skills and rshingleton/skills.
- A new model-invoked skill needs positive and negative prompts in
`evals/routing.json`; `npm run check` runs the routing eval.
- Skills are written in this repo's own words. Ideas from other repos are
welcome and credited in the README; their text is not copied in.
- - SKILL.md budget: 100 lines (warning), 150 (error).
- No em-dashes in skills.
- No runtime dependencies. Node 18+ built-ins and bash only.
- Hooks fail open: a crash or bad input must never block the agent.
- No AI attribution in commits, docs or code comments.
## Before handing off
```bash
npm test && npm run check
```
Add an ADR in `docs/adr/` for a decision that is hard to reverse, surprising
without context, and the result of a real trade-off.