eng
Skill6 starsChanged 4 months agoMITView on GitHub
Platform-agnostic engineering agent with four modes: --plan (propose file changes for human approval AND write the per-feature todo tickets in the same pass), --build (write code from the todo tickets — the single and final build spec), --review (one adversarial whole-change review of the working diff, run by a separate reviewer subagent — spawned by --build automatically, and available standalone on any branch at any time), --bug "<what is wrong>" (file a bug you found by hand as a new numbered report in the PRD's reports/ folder, then fix it with the normal fix flow). Use --bug when the user says "I found a bug", "report a bug", "this is broken", or invokes /eng --bug. Use --review when the user says "review this change", "review my diff", "code review this branch", or invokes /eng --review. Invoked by plan-em or directly by the user.
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
- Distinctive: line 22
Read the invocation flag and load exactly one mode file:
- Distinctive: line 47
Step 6 — Scope enforcement, continuous: Only the assigned rows.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
eng
Platform-agnostic engineering agent with four modes — --plan, --build, --review, --bug. This file routes. The shared spine for every mode is refs/protocol-core.md (Steps 0–6); it never runs a mode's work itself.
Routing — the one routing table
Read the invocation flag and load exactly one mode file:
| Flag | Read |
--plan | refs/plan/protocol.md |
--plan report=<path> | refs/plan/fix-plan.md |
--build (manual run) | refs/build/protocol.md, which runs the build loop in refs/build/protocol-packet.md |
--build (spawned by an orchestrator as a build packet) | refs/build/protocol-packet.md only — it is the whole leaf contract; stop reading here |
--build report=<path> | refs/build/fix-build.md |
--review | refs/review/protocol.md |
--bug "<what is wrong>" | refs/build/bug-report.md — writes the bug as a new report, then runs --build report= on it |
Natural-language triggers for --review: "review this change", "review my diff", "code review this branch", "adversarial review", "look for bugs in what I just wrote". Anything about style, naming or standards is /cook, not this mode.
Progress messages (--build) are always on, every 5 minutes (../shared/refs/status-heartbeat.md).
Exactly one mode flag must be present. Zero, several, or --todo hard-fail with the messages in refs/protocol-core.md § Step 0. Then read the active mode file fully and run the spine end to end.
The shared spine (refs/protocol-core.md)
- Step 1 — Input validation. The PRD/exec-table source (mode flag +
prd-path+rows+agent) or thereport=<path>alternate.--reviewskips Steps 1–4. - Step 2 — Pre-flight, one pass. Injected scoped excerpts on an orchestrated run; otherwise the PRD (the digest on
--build), devkit and the row-relevant code. Row ownership is checked byscript-prd-digest.py --verify-rows. - Step 3 — Summary gate (
--planonly).--buildasks no opening question; a manual build asks one question at the end, "Commit?". - Step 4 — Coding standards (
--buildonly). An injected payload wins; elsescript-eng-cook-flags.py+ the standards cache, then/cookon a miss. - Step 5 — Run the mode's work, then the closing message (
../shared/refs/closing-message.md). - Step 6 — Scope enforcement, continuous. Only the assigned rows.
References
refs/plan/protocol.md—--plan: summary, output contract, the## Todos — <Agent>ticket spec, the closing shape check.refs/plan/template-todo.md— the ticket schema the build reads.refs/plan/template-eng-plan.md— the plan section shapes.refs/plan/fix-plan.md— planning fixes from areport.refs/build/protocol.md— the manual build's solo-only steps (branch, ticket check, standards, progress messages, "Commit?", sub-branch PR, summary and run report).refs/build/protocol-packet.md— the build loop, written once: tickets, TDD, full-suite gate, review and re-test, db-touch pause, one commit per ticket, output.refs/build/protocol-build-debug.md— debug mode.refs/build/fix-build.md— thereportsource.refs/build/fix-build-orchestrated.md— the fix coordinator.refs/build/bug-report.md—--bug: a bug found by hand becomes a newreport-prd-<N>-<K>pair, then the normal fix flow.refs/review/protocol.md—--review: change set, adversarial charter, severity, return contract, artifact, spawn rules. One review, whole change, by an agent that did not write the code..claude/scripts/—script-eng-db-touch.sh(production/data guardrail over this run's changes; a trip pauses for sign-off) ·script-eng-cook-flags.py(the/cookflag set from the stack) ·script-eng-comment-scan.sh(A4 comment presence) ·script-eng-commit-cap.sh(A5 commit size, advisory; a missingOversize-reason:trailer exits 3) ·script-eng-plan-shape.py(the--planclosing check) ·script-project-findings.py(the one finding→issue-ticket projection + issues-file validator) ·script-eng-fix-grade.py(fix complexity + tier→model) ·script-eng-close-loop.py(the only write to an issues file) ·script-eng-bug-report.py(writes a hand-found bug as a new report pair)../shared/refs/status-heartbeat.md— the progress-message contract- Contract: the
## Engineering — <Agent>and## Todos — <Agent>headings written by--planare howplan-emdetects a finished section and how--buildfinds its tickets. Do not rename them.
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.

