agentleFS
e-landerose-landeros/gauntlet/AGENTS.md

gauntlet

AGENTS.md0 starsChanged 9 days agoMITView on GitHub

This file is installed as the user-level instruction file for every agent on this machine (~/.pi/agent/AGENTS.md, ~/.codex/AGENTS.md, ~/.claude/CLAUDE.md). It routes intent to skills that live in ~/.agents/skills/. If a task matches a skill, load the skill before doing the work. The skill holds the procedure, the exit criteria, and the anti-patterns. This file only decides which one. 1. Check for a skill first. Before planning, editing, or answering a non-trivial question, scan the routing table below. If any row plausibly…

The file

We split this AGENTS.md into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a task matches a skill, load the skill before doing the work.

    line 7
  2. Very specific:

    Check for a skill first: Before planning, editing, or answering a non-trivial question, scan the routing table below.

    line 15
  3. Very specific:

    Never skip the front of the lifecycle: If a task is a feature or a significant change, spec-driven-development runs before code.

    line 21
  4. Distinctive:

    A skill can be overridden by the human: If they say "skip the spec", skip it and say what you skipped.

    line 29
  5. Distinctive:

    When a request spans a whole piece of work, walk it in this order.

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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
AGENTS.md

AGENTS.md — global skill router

This file is installed as the user-level instruction file for every agent on this machine (~/.pi/agent/AGENTS.md, ~/.codex/AGENTS.md, ~/.claude/CLAUDE.md). It routes intent to skills that live in ~/.agents/skills/.

If a task matches a skill, load the skill before doing the work. The skill holds the procedure, the exit criteria, and the anti-patterns. This file only decides which one.


Hard rules

  1. Check for a skill first. Before planning, editing, or answering a non-trivial question, scan the routing table below. If any row plausibly applies, read ~/.agents/skills/<name>/SKILL.md and follow it.
  2. Follow the skill fully. Partial application is worse than none: it produces the artifacts of the workflow without the discipline that makes them worth having.
  3. Never skip the front of the lifecycle. If a task is a feature or a significant change, spec-driven-development runs before code. If a task touches more than one file, planning-and-task-breakdown runs before code.
  4. The agent that writes the code is not the sole judge of it. Verification comes from test-driven-development (red first) and, before merge, code-review-and-quality.
  5. State the skill you loaded. One line — Using: test-driven-development — so the human can audit the routing rather than guess at it.
  6. A skill can be overridden by the human. If they say "skip the spec", skip it and say what you skipped. Silence is not consent.

Thoughts that are wrong

  • "This is too small for a skill." → Small tasks are where the rules get skipped and defects get in. Load it anyway; most skills have a short path for small work.
  • "I already know how to do this." → The skill is not a tutorial, it is a checklist and a definition of done. Knowing the steps is not the same as performing them.
  • "I'll gather context first, then decide." → Deciding is cheap; loading the skill is what tells you which context matters.
  • "The tests pass, so it's done." → Passing tests you wrote to match your implementation is the cheapest form of done.

Routing table

SituationLoad
Vague idea, needs shaping before it becomes a planidea-refine
Requirements unclear, need to extract what the human actually wantsinterview-me
Starting a project, feature, or significant change with no specspec-driven-development
Spec exists, need ordered implementable tasksplanning-and-task-breakdown
Setting or enforcing a quality bar, stopping an agent from lowering itconstraint-driven-development
Writing any logic, fixing a bug, changing behaviortest-driven-development
Implementing a multi-file change in safe slicesincremental-implementation
Tests fail, build breaks, behavior does not match expectationdebugging-and-error-recovery
Before merging anything, reviewing your own or another agent's diffcode-review-and-quality
Code works but is harder to read, maintain, or extend than it should becode-simplification
Designing an API, module boundary, or public interfaceapi-and-interface-design
Building or changing a user-facing interfacefrontend-ui-engineering
Auditing an interface for WCAG 2.2 AA conformanceaccessibility-engineering
Setting up CI/CD, quality gates, or deployment pipelinesci-cd-and-automation
Committing, branching, splitting a messy tree, opening a PRgit-workflow-and-versioning
Removing a system, migrating users, expand/contract a schemadeprecation-and-migration
Recording an architecture decision or writing docsdocumentation-and-adrs
Shipping any feature that runs in productionobservability-and-instrumentation
Preparing a production launch, rollout, or rollback planshipping-and-launch
Performance requirements exist, or a regression is suspectedperformance-optimization
Handling untrusted input, auth, sessions, secrets, dependenciessecurity-and-hardening
Testing in a real browser, inspecting DOM/console/networkbrowser-testing-with-devtools
Verifying an approach against official documentationsource-driven-development
Agent output quality is degrading, or context needs restructuringcontext-engineering
A high-stakes decision that deserves adversarial reviewdoubt-driven-development
Unsure which skill applies, or starting a sessionusing-agent-skills

Lifecycle

When a request spans a whole piece of work, walk it in this order. Do not compress it into one step.

  • DEFINE → spec-driven-development (or idea-refine / interview-me if the input is still vague)
  • PLAN → planning-and-task-breakdown
  • BUILD → incremental-implementation + test-driven-development
  • VERIFY → debugging-and-error-recovery
  • REVIEW → code-review-and-quality
  • SHIP → shipping-and-launch + observability-and-instrumentation

Each stage produces an artifact (SPEC.md, a task plan, tests, an evidence bundle, a review report). The artifact is the exit criterion. A stage without its artifact did not happen.


Personas

~/.agents/agents/ holds five specialist personas: code-reviewer, security-auditor, test-engineer, web-performance-auditor, accessibility-auditor. A persona is who is looking; a skill is how they work.

The human is the orchestrator. A persona may load a skill. A persona must not invoke another persona. The one endorsed multi-persona pattern is parallel fan-out with a merge step (the /ship workflow: reviewer + security + tests, then one synthesized go/no-go).


Where things live

~/.agents/skills/<name>/SKILL.md   # the workflows (this repo installs these)
~/.agents/references/*.md          # shared checklists the skills cite
~/.agents/agents/*.md              # personas
~/.agents/commands/*.toml          # slash-command definitions (Gemini/Antigravity)

Skills are discovered by reading SKILL.md frontmatter. Paths inside a skill are relative to that skill's directory, except ../../references/, which resolves to ~/.agents/references/.

Per-harness invocation

  • Pi: /skill:<name>
  • Codex: $<name>
  • Claude Code: /skill:<name> (skills are installed to ~/.claude/skills/ too)

Editing this file

This file is versioned in gauntlet. Edit the repo copy and run ./install.sh — do not edit the installed copies in ~/.pi, ~/.codex, or ~/.claude, because the next install will overwrite them.

Personal overrides belong in the Local overrides section at the bottom, so they survive edits to the routing table.

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.