guidance-maintenance
Skill1 starsChanged 27 days agoApache-2.0View on GitHub
Use when changing the agent guidance layer, meaning AGENTS.md or anything under .agents (guardrails, rules, agents, skills, commands, workflows, policy, hooks, areas.json), the knowledge graph, or the retrieval evals. Covers adding, renaming or removing a guardrail, rule, skill or agent and regenerating the routing table in AGENTS.md with make index. Keeps each rule in one home, the generated maps in sync, and every claim true against the tree.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-coordinationSkill
- api-code-generationSkill
- api-test-generationSkill
- ci-cd-changeSkill
- frontend-changeSkill
- infrastructure-changeSkill
- refactoringSkill
- secret-and-pii-handlingSkill
- secure-api-endpointSkill
- tenant-safe-changeSkill
- workspace-importSkill
- agent-coordinationSkill
- api-code-generationSkill
- api-test-generationSkill
- ci-cd-changeSkill
- frontend-changeSkill
- guidance-maintenanceSkill
- infrastructure-changeSkill
- refactoringSkill
- secret-and-pii-handlingSkill
- secure-api-endpointSkill
- tenant-safe-changeSkill
- workspace-importSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
New or renamed guidance file: run make index adapters, because the generated index, the routing block and the runtime adapters in .claude/ …
- Very specific: line 58
New area: add it to .agents/areas.json with kind, status, guardrail, reviewer and verify command, and its node in …
- Distinctive: line 60
New hard rule: ask what would catch a violation.
- Distinctive: line 62
New hook rule: only to enforce something a guardrail already says.
- Very specific: line 70
Typography: no em-dash or en-dash anywhere (tools/check-typography.sh).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Guidance maintenance
Guidance is code: a wrong sentence in a guardrail is executed by every agent that loads it. This skill keeps the layer internally consistent and verifiable.
Required context
.agents/guardrails/README.md: the catalog and the progressive-disclosure contract..agents/guardrails/knowledge-architecture.mdand.agents/guardrails/area-kinds.md: where each kind of fact lives, and why prose is verified like code..agents/policy/model-policy.md;.agents/policy/model-selection.mdwhen the change names a tier or an effort.- The file being changed and the rule that applies with it:
.agents/rules/gate-authoring.mdfor a gate,.agents/rules/orchestration-authoring.mdfor a playbook,.agents/rules/doc-frontmatter.mdfor a doc,.agents/rules/areas-manifest.mdfor.agents/areas.json. docs/decisions/0004-progressive-disclosure-guidance.mdanddocs/decisions/0008-vendor-neutral-canonical-source.md.
Layering: each fact in one place
AGENTS.md: high-level rules and the routing index. The only always-loaded file, so it stays lean and detail moves down. A change should shrink it or leave it, not grow it.- Guardrails: the why and the what-not, loaded on demand, one per task area.
- Rules: path-scoped trap notes that apply when a matching file is edited. A rule either is the single home of a file-anchored trap, or a thin pointer at the guardrail that is.
- Skills: task routers. They name the context, the rules that bite and the checks; they do not restate the guardrail.
- Agents: role definitions. They route to guardrails and declare their own tier and effort.
- Commands: the operator's recipes. Workflows: orchestration playbooks that fan agents out and report what they did not do.
- Hook: the deterministic backstop that blocks what a guardrail only warns about.
- Generated:
.agents/generated/index.jsonand theAGENTS.mdrouting block, written bytools/agent-index.pyand never hand-edited.
The rules that bite
- Change the guardrail first, then reconcile everything that points at it. A rule stated in two places drifts, and agents follow whichever copy they loaded.
- Every concrete claim is verifiable. A path, command, target or count must match the tree
now. Read
.agents/areas.jsonbefore describing an area; aplannedarea is not live. Grep before you write. Re-run counts; never copy one from another document. - Write counts as numerals so a gate can compare them against the tree; "eighteen" is invisible to a checker.
- New or renamed guidance file: run
make index adapters, because the generated index, the routing block and the runtime adapters in.claude/are how agents find it (docs/decisions/0012-runtime-adapters-are-generated-from-the-canonical-source.md). Add or update its intent inevals/retrieval/golden-set.jsonif agents should retrieve it for a task, then runmake eval. - New skill:
nameequals its folder;descriptionopens with "Use when" and names the trigger specifically enough to fire on the right tasks and not others. - New agent: declares
tools,model-tierandeffort. An agent without an effort runs at a level nobody chose. - New area: add it to
.agents/areas.jsonwith kind, status, guardrail, reviewer and verify command, and its node inknowledge-graph/workspace.jsonld, in the same change. - New hard rule: ask what would catch a violation. If a hook or a gate could, build it in the same change; a rule with no mechanism is a wish.
- New hook rule: only to enforce something a guardrail already says; cite that guardrail in the message; test both directions (the prohibited shape is caught, ordinary work passes).
- Runtime adapters are generated or thin. A runtime-specific instruction file never holds a rule
of its own; it points into
.agents/..claude/agents/,.claude/commands/and.claude/skills/are written only bytools/agent-adapters.py; a hand-written file there failsmake check-adapters. - Never widen permissions. Changes that move an action into the allow list of
.agents/policy/permissions.ymlor lower an approval in.agents/policy/approval-matrix.ymlare the operator's, approved in the conversation for that exact change. - Typography: no em-dash or en-dash anywhere (
tools/check-typography.sh).
Verify
make index # regenerate the index and the AGENTS.md block
make check-index # fails if either is stale
make adapters && make check-adapters # regenerate and check the .claude/ adapters
python3 tools/check-guidance-frontmatter.py
python3 tools/check-references.py # every backticked repo path exists
tools/check-areas.sh
tools/check-model-declarations.sh
tools/check-docs.sh
tools/check-typography.sh
python3 tools/check-knowledge-graph.py
python3 .agents/hooks/test_guard_command.py # when the hook changed
make eval # when a guidance file was added, renamed or re-described
make verify # all gates, before the commitReviewer: guidance-consistency-reviewer.
Escalate when
- The change widens an agent's own permissions or lowers an approval.
- The change alters what counts as an escalation trigger in
.agents/policy/model-policy.md. - Two guardrails genuinely disagree and the right answer is a decision, not an edit: write it up
as a record in
docs/decisions/and ask.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

