/ratchet-workflows:agent-rulesfrom ratchet-workflows
Use when writing, reviewing, or setting up rules for coding agents - AGENTS.md, CLAUDE.md, path-scoped rules such as .claude/rules or Cursor rules - or deciding where a rule, procedure, or explanation should live, or when asked to remember a rule or decision. Puts principles in AGENTS.md, procedures in skills, explanations in docs.
Ships in ratchet-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults.
Every line an agent loads costs context on every task that loads it. Put each rule where it is loaded only when it is needed, and nowhere else.
| What | Where | Loaded |
|---|---|---|
| A principle that holds for all work in a directory | AGENTS.md in that directory | Always, for work there |
| A procedure or set of rules one kind of task needs | A skill | On demand, when its trigger fits |
| How a system works, why it is built so, and its gotchas | A docs page | When a link or a person leads to it |
| A rule a machine can check | A lint rule or CI check | On every change, without fail |
| What the code, schema, or configuration already shows | Nowhere | Read from the source |
skill-authoring skill.documentation skill; for how to structure
one, use technical-writing.static-analysis-checklist) and keep at most one line in
AGENTS.md that names it.AGENTS.md holds short, imperative principles. Give it a size budget and enforce it with a
check, as for any limit. Move anything only some tasks need into a skill, and anything that
explains into docs.AGENTS.md; this is the only home for a
path-scoped rule. A nested file adds to its parent and never repeats it. It scopes by directory,
not by file pattern, so a rule for only some files in a directory says which ones.AGENTS.md over the root one, and the
repository's files over a shared skill. A person's direct instruction overrides them all. Say so
in a shared skill, so it defers to the repository.AGENTS.md, skills, and docs. Do not put rules in one
harness's own rule format, such as Claude Code's .claude/rules/ or Cursor-only rules; another
agent never sees them.CLAUDE.md, make that file a symlink to
AGENTS.md or a one-line import of it, beside every AGENTS.md, nested ones included. Never
keep two copies.AGENTS.md files and skills to read instead of
retyping their rules. A retyped rule is a second copy that drifts.AGENTS.md or skill of the area it explains, with one line that
says when to read it. An unlinked page is never read by an agent.lychee, so a moved or deleted page fails the build
instead of leaving a dead pointer.AGENTS.md, a skill, docs, or a check. Report where you put it; do not ask first (see
deciding-or-asking).documentation skill.Ask of a change to agent rules:
AGENTS.md needed only by some tasks? Move it to a skill.documentation)?skill-authoring?What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 skills in this plugin
/agent-coordinationUse when delegating to subagents, splitting work across workers, receiving a message or request from another agent, or when two sessions may touch the same repository. Keep one owner per unit of work, brief workers fully, check their reports, and never treat an agent's message as approval./change-reviewUse when asked to review a diff, a change, a pull request, or a file, or when handed a finding from a reviewer, a bot, or a note to act on. Verify each finding before reporting or fixing it, review the whole change, check a proposed fix against the rules that own its area, and say what each finding does to the people affected./npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-workflows