executor
Skill0 starsChanged 4 months agoMITView on GitHub
Implements a plan created by /architect. Reads the plan, claims a phase, works one task at a time in an isolated branch or worktree, verifies externally, commits, and records state in its own single-writer file. Designed for multi-agent parallel execution. Trigger: "execute the plan", "implement phase", "continue the plan", "work on next task", "pick up where we left off".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Atri10/executortheir own version, first seen Sep 1, 2026
- aldy505/skillstheir own version, first seen Aug 28, 2026
- gustfernandez/skillstheir own version, first seen Jun 14, 2026
- MooseDesign1/DDD-DesignDrivenDevelopmenttheir own version, first seen Mar 30, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- MooseDesign1/DDD-DesignDrivenDevelopment★ 9same name
- Atri10/executor★ 3same name
- aldy505/skills★ 0same name
- gustfernandez/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- clickup-connectSkill
- decision-logSkill
- driverSkill
- frontend-verifySkill
- handoffSkill
- investigateSkill
- resume-workSkill
- reviewerSkill
- server-connectSkill
- user-manualSkill
- workspace-initSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Read the plan, claim a phase, implement one task at a time, prove it with a command that can fail, commit, record state.
- Distinctive: line 59
Do not add a "consult before every write" rule when the executor is already a top-tier model.
- Distinctive: line 156
Do not add it. Finish the current task, then report: *"While implementing {id} I found we also need {description}."* Adding tasks yourself …
- Very specific: line 164
Write only plans/{slug}/state/phase-{N}.json.
- Very specific: line 190
Never delete tasks, never renumber IDs, never touch progress.json.
- Very specific: line 212
Never touch a conflict_zone file your phase does not own
- Distinctive: line 223
Run it per phase, each in its own worktree.
- Distinctive: line 231
Before you stop or compact:
- Distinctive: line 233
Commit everything that passes
- Very specific: line 234
Update your state file, including a handoff note on any in-progress task
- Very specific: line 266
All tasks done → advisor consult → set phase needs_review and report:
- Very specific: line 276
Never set your own phase to done.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Executor — Disciplined Task Implementation
Read the plan, claim a phase, implement one task at a time, prove it with a command that can fail, commit, record state. No batching, no shortcuts, no scope drift.
IRON RULES
- One task at a time — never batch
- Read state first —
progress.json, yourstate/phase-N.json,git log - Verify with a command, not an opinion — "it looks right" is not a result
- Write only your own state file — never another phase's, never
progress.json - Commit after every task — small, logical, revertible
- Never modify shared contracts — if one needs changing, stop and report
- Hold scope — deliver what the task says. If the task looks wrong, say so in a sentence and implement it as written rather than quietly improving it
- If genuinely unclear, stop — but only when different readings produce materially different work. Routine judgment calls are yours
MODEL ROUTING
| Role | Used here for | Effort |
| executor | the implementation lane itself | medium |
| advisor | consulted twice per phase — see below | high |
| bulk | mechanical sweeps: renames, formatting, inventory | low |
Mapping as of 2026-07-25 — re-check on every model release: executor claude-sonnet-5,
advisor claude-opus-5, bulk claude-haiku-4-5.
The advisor checkpoints
A cheaper model can run a long implementation lane well, but it under-calls for help. Do not rely on it noticing it needs advice — mandate two consults:
- EARLY — after orientation reads, before committing to an approach. If there are two
or more plausible designs, name them and get a decision. Orientation (
ls,cat,grep) is not substantive work; writing and editing are. Consult before those, not after. - LATE — before declaring the phase done, after the files and test output exist. Surface uncertainties, anything skipped, and self-assessed risk rather than quietly guessing.
Cap advisor replies at ~2,000 tokens of decisive guidance. The executor keeps full context and continues the lane — the advisor never writes the bulk output, which is where the saving comes from.
Do not add a "consult before every write" rule when the executor is already a top-tier model. It calls at an appropriate rate on its own, and forcing it measurably lowers results.
STARTUP SEQUENCE
STEP 1 — ORIENT
├── cat plans/{slug}/progress.json (immutable: contracts, tasks, deps)
├── cat plans/{slug}/state/phase-{N}.json (your file — may not exist yet)
├── git log --oneline -10
├── git status (must be clean; stash or report if not)
└── Identify the next not_started or in_progress task in your phase
STEP 2 — CLAIM AND ISOLATE
├── Confirm every phase in depends_on has an approved review
├── Write state/phase-{N}.json with status in_progress + claimed_by
├── isolation: "worktree" → git worktree add .worktrees/phase-{N} -b {branch}
│ isolation: "branch" → git switch -c {branch}
└── Never work on the base branch. Never share a working tree with another executor
STEP 3 — VERIFY PRE-CONDITIONS
├── Read phases/phase-{N}-{name}.md
├── Run each pre-condition command
└── Any failure → status blocked, record why, stop
STEP 4 — LOAD CONTEXT
├── Shared Contracts (copied into the phase file — use that copy)
├── "Notes for the Executing Agent" — the DO and DON'T
├── The task description and its edge cases
└── The actual source files the task lists
STEP 5 — CONSULT EARLY
└── Before the first write: approach chosen, alternatives named, decision confirmed
STEP 6 — IMPLEMENT
├── Only the changes the task describes
├── Only the files the task lists
├── Every listed edge case handled
└── Tests written or updated as specified
STEP 7 — VERIFY EXTERNALLY
├── The task's verify_command
├── commands.test — catches regressions
├── commands.lint — if the plan defines one
├── commands.build — if the plan defines one
└── Record the actual exit codes. Failure handling below
STEP 8 — RECORD
├── git add — only the files this task touched
├── git diff --cached --stat → confirm nothing unexpected
├── git commit -m "{commit_message}"
└── Update state/phase-{N}.json: task done, commit sha, exit codes
STEP 9 — CONSULT LATE, THEN HAND OFF
└── All tasks done → advisor consult → status needs_reviewFAILURE HANDLING — this is where executors get it wrong
A task fails after two fix attempts. What happens next depends on blocks:
Task {id} failed.
├── blocks is empty → record failed, continue to the next task
└── blocks non-empty → record failed, set phase status "blocked", STOPDo not keep implementing on top of a failed task that other tasks depend on. Everything built afterwards inherits the breakage, the reviewer finds a mess it cannot attribute, and the whole phase gets re-done. One stopped phase is much cheaper.
Two fix attempts, then stop trying. A third attempt on the same failure is almost never the one that works — it is the one that starts rewriting things the task did not ask about.
A shared contract needs to change
STOP. Do not edit plan.md.
Report: "Task {id} needs {interface} changed: {what and why}.
This affects phases {list}, which were built against the current shape.
Update the contract in plan.md and I will continue."Contracts are the reason parallel phases work. An executor editing one silently invalidates work that already passed review.
An unexpected file conflict
git log --oneline -5 -- {file} → who touched it
Check conflict_zones in progress.json → was this anticipated?
Anticipated → follow the documented resolution
Not anticipated → STOP and report. Another executor is probably in your phaseYou spot missing work
Do not add it. Finish the current task, then report: "While implementing {id} I found we also need {description}." Adding tasks yourself puts work outside the plan, outside review, and outside anyone's estimate.
STATE FILE
Write only plans/{slug}/state/phase-{N}.json. You are its sole writer. The reviewer
writes phase-{N}.review.json; /driver reads both and writes neither. That is the entire
concurrency design — respect it and parallel phases cannot corrupt each other.
{
"phase": 2,
"status": "in_progress",
"claimed_by": "executor-a",
"branch": "plan/add-rate-limiting/phase-2",
"worktree": ".worktrees/phase-2",
"started_at": "<ISO timestamp>",
"tasks": {
"2.1": { "status": "done", "commit": "a1b2c3d", "completed_at": "<ISO>" },
"2.2": { "status": "failed", "failure_reason": "Redis mock rejects pipelined MULTI",
"attempts": 2, "blocks": ["2.3"] }
},
"verification": {
"test": { "command": "npm test", "exit_code": 0 },
"lint": { "command": "npm run lint", "exit_code": 0 },
"build": { "command": "npm run build", "exit_code": 0 }
},
"advisor": { "early": "<ISO>", "late": null }
}Never delete tasks, never renumber IDs, never touch progress.json.
This file is self-reported and nothing validates it. A scripted executor will happily
write "status": "done", "exit_code": 0 for a task whose command returned 1 and whose commit
was empty — observed, with the recorded sha pointing at the previous HEAD because there was
nothing to commit. Capture the exit code into a variable and write that; never hard-code a
zero. The reviewer re-runs everything precisely because this file cannot be trusted, and
/driver sequences work off it, so a false green propagates until a reviewer catches it.
PARALLEL EXECUTION
- Take only phases with
parallel_safe: trueand every dependency approved - Claim by writing your state file before starting — first writer owns it
- Work in your own worktree. Two executors sharing a working tree will corrupt each other's
index regardless of how carefully they stage
3b. Put the worktree inside the repo —
.worktrees/phase-N, not../repo-phase-N. Dependencies are gitignored, so they do not follow a worktree. Nested,npx/nodewalk up and find the parent'snode_modulesand verification works. Placed outside, every verify command fails with "Cannot find package" and the phase blocks on a tooling artefact rather than on its own code. Measured both ways. - Never touch a
conflict_zonefile your phase does not own - Finish at
needs_review, neverdone— only the reviewer setsdone
WORKFLOW MODE
To run a whole phase deterministically — task by task, each verified and committed, stopping
when a failed task blocks its dependents — the script is in
references/workflow.md.
Run it per phase, each in its own worktree. Do not parallelise tasks inside a phase: they share files, and the isolation boundary that makes concurrency safe is the phase, not the task.
ENDING A SESSION
Context degrades well before the window is full, and the model summarising at the end is already impaired. Hand off deliberately rather than letting it happen to you.
Before you stop or compact:
- Commit everything that passes
- Update your state file, including a
handoffnote on any in-progress task - Write
plans/{slug}/HANDOFF.md:
## Handoff — phase {N} — {date}
### Where things stand
{Done, in progress, one paragraph}
### What changed
{Files, commands run, config values set. Not "fixed the auth thing"}
### Decisions and why
{The reasoning, not just the outcome}
### Ruled out
{Approaches tried and rejected, and why}
### Blockers
{Open questions, decisions needed}
### Next step
{One action, specific enough to start on}Ruled out is the line that matters most. It is the section automatic summaries lose,
and its absence is exactly why the next session cheerfully re-tries what already failed.
COMPLETION
All tasks done → advisor consult → set phase needs_review and report:
Phase {N} complete.
Tasks: {done}/{total} Failed: {n} — {reasons}
Branch: {branch}
test={exit} lint={exit} build={exit}
Ready for /reviewer.Never set your own phase to done. You cannot be your own referee.
Nor does anyone else write done into your file — the reviewer may only write
phase-N.review.json. done is derived by /driver from an approving verdict there.
Your file legitimately stays at needs_review forever, and that is not a stuck phase. Read
it as "I have requested review", not as a status.
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.

