agentleFS
DariuszDuszaDariuszDusza/agentic-workflow-foundry/.agents/skills/guidance-maintenance/SKILL.md

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.

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
  1. Very specific:

    New or renamed guidance file: run make index adapters, because the generated index, the routing block and the runtime adapters in .claude/ …

    line 50
  2. Very specific:

    New area: add it to .agents/areas.json with kind, status, guardrail, reviewer and verify command, and its node in …

    line 58
  3. Distinctive:

    New hard rule: ask what would catch a violation.

    line 60
  4. Distinctive:

    New hook rule: only to enforce something a guardrail already says.

    line 62
  5. Very specific:

    Typography: no em-dash or en-dash anywhere (tools/check-typography.sh).

    line 70

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. .agents/guardrails/README.md: the catalog and the progressive-disclosure contract.
  2. .agents/guardrails/knowledge-architecture.md and .agents/guardrails/area-kinds.md: where each kind of fact lives, and why prose is verified like code.
  3. .agents/policy/model-policy.md; .agents/policy/model-selection.md when the change names a tier or an effort.
  4. The file being changed and the rule that applies with it: .agents/rules/gate-authoring.md for a gate, .agents/rules/orchestration-authoring.md for a playbook, .agents/rules/doc-frontmatter.md for a doc, .agents/rules/areas-manifest.md for .agents/areas.json.
  5. docs/decisions/0004-progressive-disclosure-guidance.md and docs/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.json and the AGENTS.md routing block, written by tools/agent-index.py and 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.json before describing an area; a planned area 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 in evals/retrieval/golden-set.json if agents should retrieve it for a task, then run make eval.
  • New skill: name equals its folder; description opens with "Use when" and names the trigger specifically enough to fire on the right tasks and not others.
  • New agent: declares tools, model-tier and effort. An agent without an effort runs at a level nobody chose.
  • New area: add it to .agents/areas.json with kind, status, guardrail, reviewer and verify command, and its node in knowledge-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 by tools/agent-adapters.py; a hand-written file there fails make check-adapters.
  • Never widen permissions. Changes that move an action into the allow list of .agents/policy/permissions.yml or lower an approval in .agents/policy/approval-matrix.yml are 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 commit

Reviewer: 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.