agentleFS
CodyAMaughanCodyAMaughan/agent-first-engineering/AGENTS.md

agent-first-engineering

AGENTS.md3 starsChanged 4 months agoMITView on GitHub

A free, six-phase curriculum that teaches engineers and data scientists to drive coding agents (Claude Code, Codex, Cursor) — plus a scaffolder skill that turns any repo agent-first. The product is the docs site in docs/; everything else supports it. Live site: https://codyamaughan.github.io/agent-first-engineering/ check-json / check-yaml pre-commit hooks validate every quiz.json and workflow. CI (.github/workflows/) is the real gate. The Claude Code plugin in plugin/ is generated, not hand-maintained: run sh scripts/build-plugin.sh to (re)build it from the canonical .agents/skills/ +…

  • Installs packages

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Never overwrite a file without showing the change.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Agent-First Engineering

A free, six-phase curriculum that teaches engineers and data scientists to drive coding agents (Claude Code, Codex, Cursor) — plus a scaffolder skill that turns any repo agent-first. The product is the docs site in docs/; everything else supports it.

Live site: https://codyamaughan.github.io/agent-first-engineering/

Commands

pip install -r requirements.txt   # MkDocs Material (use the .venv if present)
mkdocs serve                      # local preview at http://127.0.0.1:8000
mkdocs build --strict             # fail on broken nav / dead links / bad config
sh tests/validate.sh              # assert the agent-first layer is well-formed

check-json / check-yaml pre-commit hooks validate every quiz.json and workflow. CI (.github/workflows/) is the real gate.

Structure

PathWhat
docs/curriculum/NN-name/The six phases — index.md (landing) + NN-*.md lessons + quiz.json
meta/PHASE_AUTHORING_GUIDE.mdThe authoring rubric (Definition of Done for a lesson/phase)
.agents/skills/Portable skill library (the open-standard source of truth)
.claude/skills/Claude Code mirror of the skills (+ third-party speckit-*)
mkdocs.ymlSite nav — edit this when you add a lesson/phase, or it's invisible
tests/validate.shDeterministic check of the agent-first layer
scripts/build-plugin.shRegenerates the git-ignored plugin/ from canonical sources — never hand-edit plugin/
.claude-plugin/marketplace.jsonThe marketplace catalog (committed; points at the generated plugin/)

The Claude Code plugin in plugin/ is generated, not hand-maintained: run sh scripts/build-plugin.sh to (re)build it from the canonical .agents/skills/ + .agent/hooks/ + .claude/agents/. plugin/ is git-ignored; only the generator and .claude-plugin/marketplace.json are committed. Editing plugin/ by hand reintroduces the drift the generator exists to kill.

Authoring or editing the curriculum

Use the author-curriculum skill (.agents/skills/author-curriculum/SKILL.md). It carries the full Mandatory/Recommended/Optional component checklist, the add/update/audit procedures, and the easily-missed integration edits (mkdocs nav, quiz, adjacent lesson nav). The rubric in meta/PHASE_AUTHORING_GUIDE.md is the source of truth the skill enforces.

Non-negotiables for any lesson: visual-first (≥1 rendered Mermaid diagram), inline footnote citations [^n] from authoritative sources only (papers + Anthropic/OpenAI/Google/GitHub/Cursor/ Microsoft/standards bodies — never Reddit/HN/X/Medium), a 🧠 Test Yourself check, an italic summary under every subsection, and agent-agnostic framing (per-agent specifics go in tabs/callouts).

Conventions

  • Author once to the open standard, adapt at the edges. Source of truth is AGENTS.md + .agents/skills/; .claude/ is an adapter/mirror. Keep mirrored SKILL.md copies byte-identical.
  • Phase landing pages are index.md (not README.md).
  • Direct, ELI5-where-it-helps, no hype. Second person. Tight beats complete.
  • Never overwrite a file without showing the change. Commit/push only when asked.

Available skills

  • author-curriculum — add/update/audit a lesson, phase, or doc against the authoring standard.
  • scaffold-agent-project — turn a repo agent-first (the curriculum's capstone artifact).
  • check-understanding — quiz the user on a phase from its quiz.json.
  • feature-lifecycle — drive a feature request → review-ready branch through verified, looping stages (spec → plan → implement → test-gate → review). Config in .agent/lifecycle.conf.
  • create-mvp — drive a greenfield idea/spec to a first fully-functional MVP: refine spec → scaffold a green harness → decompose into always-functional slices → build each test-first.
  • quality-loop — lean, report-first adversarial QA of the repo's own tooling: one grounded review pass → reproduce-or-drop → severity-ranked report; hard-capped so it can't run away.
  • tend-wiki — curate .agent/memory/ into an LLM Wiki (Karpathy's pattern): bounded ingest/query/lint over interlinked pages. The deterministic capture-learnings hook stays the floor.

Subagents (Claude Code: .claude/agents/)

  • lesson-reviewer — adversarial, fresh-context review of a lesson/phase against the authoring checklist + citation verification (read-only). Use after writing or editing a lesson (Phase 6.2's reviewer pattern).
  • code-reviewer — least-privilege (read + inspect) reviewer of a diff for correctness, security, and gamed gates; the review gate in the feature pipeline.

Subagent definitions are still per-tool (Codex/Cursor use their own custom-agent/mode files) — unlike SKILL.md, there's no shared cross-tool standard yet.

Workflows (Claude Code: .claude/workflows/)

  • feature-pipeline — the orchestrator for feature-lifecycle: runs the staged loops, gates each on a reviewer subagent or TEST_CMD, and stops before the PR for human sign-off.
  • create-mvp — the orchestrator for create-mvp: greenfield idea/spec → first working MVP.
  • qa-loop — the orchestrator for quality-loop (uses the qa-adversary reviewer + qa-verifier subagents): one grounded pass, report-only by default, hard-capped (≤QA_MAX_AGENTS, token ceiling).

Agent guardrails & memory (.agent/)

Deterministic hooks (registered in .claude/settings.json) run on agent events: git-safety + secret-scan (PreToolUse), a test-gate on Stop, and the capture-learnings memory loop (PreCompact + SessionStart). Config in .agent/guardrails.conf; details in .agent/README.md. tests/validate.sh checks this layer (also in CI).

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.