docs(agents): move step rules into their skills #137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/trim-agents-md"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Recommendation 3. Every agent session loads all of
AGENTS.mdbefore it sees the request, plain questions included. In an adopted repo that's 2,860 words. Two problems with that:AGENTS.md, when only an@import or a symlink works.The docs audit (
document-reviewer) puts the saving at about 1% of a small change's cost. So this PR is for clarity, not cost.What changed
Step rules move to the step that acts on them:
get-approval;execute-plan;verify-execution, and its disclosure and channel go todeliverstep 1;fold-branch;verify-executionanddesign.AGENTS.mdkeeps one core bullet on pre-existing flaws, which points to those steps.Six hard-to-read rules rewritten, meaning kept: the CLAUDE-file rule, the first Git and delivery rule, two Workflows rules, the regression-test rules (now nested under one parent), and the Members preamble.
UPGRADING.mdgains a migration that carries an upgrading repo's own edits to the moved rules to their new homes. It triggers on the adopted commit's linear-history bullet, which every source commit since 2026-07-29 holds.Result: an adopted
AGENTS.mdis 2,641 words, down from 2,860 (−8%).Not done:
AGENTS.md, because reviewers use them too.How to verify
These all pass on the tip:
bash tests/verify-agent-config.sh(252),bash tests/check-work-folder.sh(46),.agents/hooks/shellcheck.sh repo,prettier --check '**/*.md',scripts/verify-agent-config.sh, andgit diff --check main.To see the new size, install the policy into a scratch directory with
evals/install-policy.sh HEAD <dir>, then runwc -w <dir>/AGENTS.md; it should print 2,641.The eval suite passed 6 of 6 on both main and this branch, at $9.52 against $10.04, which is within noise.
The change, security and documentation reviewers went over it in two rounds, and the change reviewer took a third for the migration trigger. Everything they raised is fixed except what is set aside below.
Considerations
fold-branchrather thanland.md, because a first push never reachesland.md.