agentleFS
michael-muirmichael-muir/agentic-dev-kit/skills/agent-authoring-guide/SKILL.md

agent-authoring-guide

Skill1 starsChanged 13 days agoMITView on GitHub

Use when writing or editing an agent file, a skill, AGENTS.md, or any document agents are pointed at, including when adding a new domain expert, for the schema and the writing rules that make agents behave predictably.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    One home per fact: If two files say the same thing, one of them will go stale.

    line 29
  2. Distinctive:

    Cut no-ops: If deleting a sentence doesn't change behaviour when you test the file, delete it.

    line 33

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

Agent authoring guide

Files and their jobs

FileLoadedKeep it
AGENTS.mdevery session, every agentshort: a start/end routine, ground rules, and pointers
agents/**.mdwhen that role is activeone role: mission, inputs, steps, boundaries
skills/*/SKILL.mdwhen a role lists it, or a tool matches its descriptionone procedure, with completion criteria
CODING_STANDARDS.mdat review onlydetailed judgement rules
docs, checklistson demand, through a pointerreference material

Agent frontmatter follows agents/_schema.md. Skill frontmatter is name (the folder name) plus description: one sentence starting "Use when…", naming the situations that should trigger it.

Writing rules

  1. Every step ends with "Done when:" followed by a condition someone else could check. Vague endings ("review carefully") lead to stopping early.
  2. Say what to do, rather than what not to do. Prohibitions can prime the very behaviour they forbid. Keep a "never" only for a hard guardrail, and pair it with the alternative ("Locked tests change only through test-designer. If one looks wrong, explain it in the handoff").
  3. Point to material, don't paste it. A pointer says what the material is and when to read it. Inline only what every path through the procedure needs.
  4. One home per fact. If two files say the same thing, one of them will go stale.
  5. Don't restate the discoverable. Directory layouts, scripts and config can be read directly. Document what can't be: conventions, reasons, and traps.
  6. Use established terms ("red", "seam", "frontier", "one-way door") and define new ones once, in the glossary.
  7. Cut no-ops. If deleting a sentence doesn't change behaviour when you test the file, delete it.
  8. Steps for sequences, tables for reference. Split a file when later steps tempt agents to rush earlier ones, or when it serves two unrelated situations.

Adding a domain expert

  1. Copy agents/domains/_template/ to agents/domains/<id>/.
  2. In agent.md, fill in trigger_keywords and trigger_paths (how the orchestrator finds you) and consulted_by (which roles ask you questions), then the mission and procedure: what you check, and how you answer a consult.
  3. In checklist.md, write the domain's review checklist. Reviewers and the adversary read it.
  4. In gates.toml (optional), add deterministic checks in gate-profile format. Put scripts in checks/.
  5. In skills/<name>/SKILL.md (optional), add domain procedures.
  6. Enable it per project (--domains <id>, or domains in .agentic/config.toml), then run install --update. Done when: adapters/build.py lists the agent in REGISTRY.md, and a consult on a sample task produces a useful answer.

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.