run
Skill1 starsChanged 3 months agoMITView on GitHub
Execute an approved crew ticket set autonomously, for as long as it takes — hours, a whole day, across compaction and new sessions. It works frontier-first and in parallel worktrees: backend goes to Codex Sol and frontend to Opus 5. Every ticket gets a spec-and-quality review (Codex Astra) and a bounded fix loop, then merges into the feature branch and gets its journal entries. The run ends with a whole-branch review, migrations on dev, and a PR, then stops at the approval gate. Use after crew:tickets gets the go, or when the user says "continue the run" / "كمّل".
57 other projects use a version of this.
Adopted by
Most recently taken up by
- edrlab/thorium-readertheir own version, first seen Nov 29, 2026
- flegars/greenlyttheir own version, first seen Nov 29, 2026
- tenaya-ui/claude-skillstheir own version, first seen Nov 29, 2026
- michalzan/foremantheir own version, first seen Nov 29, 2026
- PhysAI-Lab/WorldAgenttheir own version, first seen Nov 29, 2026
- phnx-labs/agi-clitheir own version, first seen Nov 27, 2026
Used with
Projects with it also use init, report and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillinit
Also in 9 projects that use this
MicrosoftSkillreport
Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.
Also in 5 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 5 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 6 projects that use this
Microsoft AzureSkillverify
End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.
Also in 6 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 3 projects that use this
- +1 more from microsoft
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 57
- edrlab/thorium-reader★ 3ksame name
- perber/leafwiki★ 1.3ksame name
- NVIDIA/nvcf★ 272same name
- doem97/cvsm★ 124same name
- jjanczur/tyran★ 78same name
- Decentralized-LM/delm-agent-plugin★ 49same name
- microsoft/Employee-Self-Service-Agent-Developer-Kit★ 32same name
- phnx-labs/agi-cli★ 27same name
- JinukMoon/oh-my-mlip★ 25same name
- Hassaan146/claude-skills★ 18same name
47 more not listed
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 repository16 other files it gives its agents.
- babysit-prSkill
- bugsSkill
- claude-delegateSkill
- codex-delegateSkill
- context-economySkill
- debate-reviewSkill
- delegate-setupSkill
- diagnosing-bugsSkill
- featureSkill
- intakeSkill
- setupSkill
- shipSkill
- specSkill
- tddSkill
- ticketsSkill
- verification-before-completionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 10 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 54 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Keep working on every other ticket that doesn't depend on it.
- Very specific: line 72
Memory doesn't survive compaction: After compaction, or in a new session, trust the ledger, the ticket statuses, and git log over your own …
- Very specific: line 102
Read the last 40 lines of the ledger and node "$T" summary.
- Very specific: line 109
Run node "$T" frontier --json.
- Distinctive: line 117
Never poll tightly. When you come back after a long wait, reconcile: list your live children and chase any that finished without reporting.
- Distinctive: line 129
When no ticket is left todo or in flight, go to the final phase (§7).
- Very specific: line 136
Model: read the ticket's Size: and take the model and effort from models.implementerBySize.
- Very specific: line 166
Fallback: if a Codex verdict comes back with fallback:
- Distinctive: line 170
Add a journal entry for it later.
- Very specific: line 178
DONE_WITH_CONCERNS: read the concerns first. Resolve correctness or scope concerns before review.
- Distinctive: line 186
Run the gates from the config yourself.
- Distinctive: line 187
Check the scope against the ticket's Touches.
- Very specific: line 208
Write the task-review brief, then dispatch it: node "$C" --role review --read-only --brief TASK/runs/NN/review-brief.md --cd <wt> --out-dir …
- Very specific: line 210
If the verdict has a fallback, use Agent crew:reviewer instead.
- Very specific: line 212
cannotVerifyitems: check them yourself. You hold the cross-ticket context. - Distinctive: line 238
The breaker: if findings are still open after the last round, stop dispatching and judge each open finding yourself.
- Very specific: line 256
If it conflicts, send crew:frontend-builder in integrate mode to the integration tree.
- Distinctive: line 264
If there's a GitHub mirror, close the ticket's issue.
- Distinctive: line 277
Run one scoped re-review.
- Very specific: line 289
"Rulings I made": every Ruling: line from the ledger, in order, each with what it costs if wrong
- Very specific: line 301
Remove every crew worktree, and $W if it's empty.
- Very specific: line 337
Explore once per run, not once per agent: Before the first dispatch, send one Explore subagent per area the spec touches and have it write …
- Distinctive: line 343
Read a result before you re-dispatch.
“Common” is measured: kept by at least 6 in 10 of the 54 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
crew:run: work the tickets until they're all done
Adapted from superpowers' subagent-driven-development (MIT, Jesse Vincent) and Matt Pocock's
implement-spec (MIT). Staying alive across turns is inspired by the ralph-loop plugin
(Apache-2.0), reimplemented as crew's keep-going hook.
You are the controller. You dispatch, verify, route, merge, and keep the ledger. You never write feature code, and you never fix review findings yourself. Controller fixes pollute your context and skip review.
T="${CLAUDE_PLUGIN_ROOT}/scripts/tickets.mjs"
C="${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.mjs"
P="${CLAUDE_PLUGIN_ROOT}/scripts/review-package.mjs"
W="<parent of repo>/<repo>-crew" # all crew worktrees for this project
TASK=".crew/tasks/<slug>" # in the main checkout- Brief templates: references/briefs.md.
- Roles:
.crew/config.json→roles, read through the effective config.
Continuous execution: rulings, not stalls
The user answered everything during intake and said go. Don't check in between tickets, don't ask "should I continue?", and don't send progress summaries. Execute.
Conflicts, ambiguities, plan defects, a cap you'd like to exceed: decide them.
- The spec is the binding authority, the tickets argue from it, and your judgment settles what neither answers.
- Record each decision with
node "$T" note "Ruling: <what you decided> — <why> — <what it costs if wrong>", and keep going. - A wrong ruling costs rework the user can see and undo. A run parked on a question costs their whole day.
Only four things stop the run:
- Something irreversible or destructive: production data, deleting anything that isn't crew's, a force-push.
- Something security-sensitive beyond the spec: secrets, a change to the auth or permission model, switching off a check.
- A side effect outside the crew branches: merging to the base branch, pushing to a shared branch, deploying, production migrations, sending or publishing anything. These come at the end anyway, through the ship phase and the approval gate.
- A plan so broken that every way forward is a guess.
To stop:
- Run
node "$T" run pause --reason "<the decision needed>". - Explain it to the user in their language, with the options and your recommendation.
- Mark the affected ticket
needs-human. - Keep working on every other ticket that doesn't depend on it.
What lives where
| Path | What it holds |
TASK/spec.md | The authority. |
TASK/tickets/NN-*.md | Requirements. Their **Status:** line is the progress. |
TASK/ledger.md | Append-only: starts, verdicts, fix rounds, rulings, parked findings, completions. |
TASK/run.json | The run's state, read by the keep-going hook. Changed only through tickets.mjs run …. |
TASK/runs/NN/ | That ticket's briefs, reports, review packages, and verdicts. |
Memory doesn't survive compaction. After compaction, or in a new session, trust the ledger, the
ticket statuses, and git log over your own recollection. Never re-dispatch a ticket that is
done. The most expensive failure seen in practice is a controller that lost its place and redid
finished work.
0. Start or resume
New run:
node "$T" run start --task <slug>.git fetch origin.git worktree add "$W/<slug>" -b crew/<slug> origin/<base>: the integration tree.- Install dependencies there if the gates need them.
- Record the base commit:
node "$T" note "base <sha7>, integration tree $W/<slug>". - Explore once, for every agent (see
crew:context-economy). Send oneExploresubagent per area the spec touches (in parallel, cheap model) and have each writeTASK/notes/<area>.md: the files that matter, the patterns to follow, the traps, the existing tests. For an area nobody has mapped, add a compressed map beside it:npx --yes repomix <dir> --compress --stdout --style plain > TASK/notes/<area>.map.txt(measured 62% smaller than the raw files). Every brief points at these notes, so no implementer pays to rediscover the same code. - Probe the Codex roles with
node "$C" --probe, and record the routing in the ledger. Any Codex role that isn't ok uses its fallback agent for the whole run. Tell the user in one line. A passing probe is not a promise of quota. It proves the CLI, auth and model are reachable; a real turn can still hit the account's usage limit on its first message. When it does, the verdict carrieskind: usage_limitand afallback, and crew remembers the reset time — later dispatches of that model return the fallback in milliseconds. Switch the role for the rest of the run, ledger it as a ruling, and say so in the final report.
Resume (new session, "كمّل", or after a pause):
node "$T" run resume --task <slug>. This rebinds the run to this session.- Read the last 40 lines of the ledger and
node "$T" summary. - For each ticket left
in-progress,review, orfixingby a dead session: inspect its worktree (git -C … status,git log, and its report), then finish it from there or restart it deliberately. Record the ruling.
1. The loop
- Run
node "$T" frontier --json. It lists the tickets that are todo, have every blocker finished, don't overlap in Touches with in-flight work, and fit the parallel limit. - Dispatch every ready ticket in one message, in the background (§2).
- While work is in flight, keep doing local bookkeeping. When you're idle, end the turn. The
completion notifications will wake you.
- The keep-going hook lets you wait only while in-flight tickets are genuinely alive: no report
newer than the ledger's last word on them, and file activity within
keepGoing.staleMinutes(45 by default). A finished report nobody acted on, or a silent worker, brings you back. - Never poll tightly. When you come back after a long wait, reconcile: list your live children
and chase any that finished without reporting. A worker that is gone gets re-dispatched from
what its worktree holds, with a ruling; one that is alive but slow gets
tickets.mjs run wait --reason "T<NN> still working: <what>". - Writes to external services (creating something at a provider's API, sending a message,
changing a third-party account) are stop class 3, even as a "live proof". Prove against a
sandbox, a dry run, or a read-only call; if only a real write can prove it, pause and ask, and
never do it on a customer's account. Projects list such commands in
guard.externalWritePatternsso the guard prompts on them.
- The keep-going hook lets you wait only while in-flight tickets are genuinely alive: no report
newer than the ledger's last word on them, and file activity within
- As each ticket reports: verify → review → fix loop → merge → complete (§3–§6).
- Go back to step 1.
When no ticket is left todo or in flight, go to the final phase (§7).
2. Dispatch one ticket
- Worktree, from the current integration head, so it includes everything already merged:
git worktree add "$W/<slug>-t<NN>" -b crew/<slug>-t<NN> crew/<slug>. Install dependencies if the gates need them. - Model: read the ticket's
**Size:**and take the model and effort frommodels.implementerBySize. State both in the dispatch. - Record BASE:
BASE=$(git -C "$W/<slug>-t<NN>" rev-parse HEAD).node "$T" set <NN> in-progress --note "base <sha7>, <who builds it>".
- Write the brief to
TASK/runs/NN/brief.mdfrom the matching template.- Point to
spec.mdand the ticket file. Don't paste them. - Add:
- the Global Constraints, verbatim
- the interfaces from already-merged tickets (names and types)
- your ruling on any ambiguity you noticed
- the gate commands
- the report contract
- A dispatch describes one ticket, never the session's history.
- Point to
- Route by Layers:
- backend / db:
- Run
node "$C" --role backend --brief TASK/runs/NN/brief.md --cd "$W/<slug>-t<NN>" --out-dir TASK/runs/NN/impl-1 --timeout 2hin the background. - Record the verdict's
threadIdin the ledger.
- Run
- frontend:
- Launch Agent
crew:frontend-builderin the background: "Mode: build. Read<brief path>first; it is your requirements." - Record the agent id.
- Launch Agent
Both:
- The backend part goes first.
- Verify it.
- Then the frontend-builder does the frontend part in the same worktree, with the backend's report as its contract.
Other tickets keep running in parallel meanwhile.
- Fallback: if a Codex verdict comes back with
fallback:- Dispatch that agent with the same brief in the same worktree. It continues from whatever Codex left behind.
- Ledger a ruling for it.
- Add a journal entry for it later.
- backend / db:
- Batch tiny, same-shape tickets (the same small edit across several files) into one dispatch and one review.
3. Verify: don't trust the report
Handle the report status:
- DONE: go ahead and verify.
- DONE_WITH_CONCERNS: read the concerns first. Resolve correctness or scope concerns before review.
- NEEDS_CONTEXT: provide the missing context and re-dispatch.
- BLOCKED: change something before retrying: more context, a stronger model, a smaller split, or a ruling on a plan defect. Never retry the same thing unchanged.
Then verify it yourself:
git -C <wt> statusand the diff against BASE.- Run the gates from the config yourself.
- Check the scope against the ticket's Touches.
- No process history in the source. Crew work was caught leaving review history in code
comments ("re-opened by the reviewer in fix round 1"). Check the added lines:
(Checked against real history: it flagged 33 such lines across three crew PRs and none in six non-crew PRs, and it ignores ISO timestamps likegit -C <wt> diff <BASE> -U0 -- '*.ts' '*.tsx' '*.js' '*.css' '*.sql' ':!.crew/*' \ | grep -nE '^\+.*(fix round|re-?opened by|ticket T?[0-9]{2}\b|\bT[0-9]{2}\b[^:0-9]|directive [0-9]|\bAstra\b|\bcrew\b)'T00:00.) Any hit goes back to the implementer as a minor finding: rewrite the comment as a present-tense why, or delete it. The history stays in the ledger and the commit message.
When it holds:
git -C <wt> add -A.git -C <wt> commit -m "T<NN>: <title>".node "$T" set <NN> review.
4. Task review: spec compliance, then quality
- Build the review package:
node "$P" --cd <wt> --base <BASE> --head HEAD --out TASK/runs/NN/review-1.diff. - Write the task-review brief, then dispatch it:
node "$C" --role review --read-only --brief TASK/runs/NN/review-brief.md --cd <wt> --out-dir TASK/runs/NN/review-1. If the verdict has a fallback, use Agentcrew:reviewerinstead. - Parse the
crew.review.v1JSON.cannotVerifyitems: check them yourself. You hold the cross-ticket context. A real gap joins the findings.- Minor findings: record each one with
node "$T" note "T<NN>: minor (deferred): <one line>". They never enter the loop. - Security findings: they go into the journal, fixed or not.
verdict: approve: go to §6.- A spec failure, or any critical or important finding: go to §5. First, rule on any finding that conflicts with the spec or ticket text, and ledger the ruling.
5. The fix loop: up to limits.fixRounds rounds (default 5)
- Run
node "$T" set <NN> fixing. Rounds 1 to 3: resume the same implementer with the findings verbatim. Its context is intact.
- Codex:
node "$C" --role backend --session <threadId> --cd <wt> …. - Agent: SendMessage.
It fixes the findings, re-runs the tests that cover them, and appends a fix report.
- Codex:
- Rounds 4 and 5: send a fresh implementer one tier up (
escalationrole, orcrew:backend-builderfor a stuck frontend), with this framing: "A prior implementer tried this N times; you own it now. Read the reports." - Every round:
- Commit.
- Build a scoped package from the head the last review saw (FIX_BASE) to HEAD.
- Send the re-review brief.
- Ledger the round:
T<NN>: fix round R/5 (X addressed, Y open — …; commits a..b).
The breaker: if findings are still open after the last round, stop dispatching and judge each open finding yourself.
- Park it with a ruling (
T<NN>: parked — <finding> — Ruling: <why the code stands>). - Or, if it's load-bearing, rule on the smallest change that unblocks the tickets that depend on it, and carry that ruling into their dispatches.
Judge only at the cap, and ledger every judgment. A silent discard is forbidden.
Hard limit — never parkable: a
criticalfinding, or any finding with"security": true. These cannot be deferred by a ruling, at any round count. Either it gets fixed (escalate the model, split the ticket, or fix the plan defect that causes it), or the ticket goesneeds-humanwith a journal entry (crew:bugs, categorysecurityor severitycritical) and the run pauses with the reason.tickets.mjs run phase shiprefuses mechanically while any such journal entry is open, however many rounds ran.- Park it with a ruling (
6. Merge and complete
- Merge in the integration tree:
git -C "$W/<slug>" merge --no-ff crew/<slug>-t<NN> -m "T<NN>: <title>".- If it conflicts, send
crew:frontend-builderin integrate mode to the integration tree. It must keep both tickets' behaviour. Then verify its work.
- If it conflicts, send
- Run the gates on the integration tree. If they're red, resume the ticket's implementer on the integration tree.
- Clean up:
git worktree remove "$W/<slug>-t<NN>".git branch -d crew/<slug>-t<NN>.
- Record completion:
node "$T" set <NN> done --note "commits a..b, review clean | K parked". If there's a GitHub mirror, close the ticket's issue. - Journal: record every problem this ticket hit now, through
crew:bugs, with its root cause and fix, or left open. Don't batch these to the end, because the run can die. - Go back to the loop (§1).
7. Final phase
- Final review:
node "$T" run phase final-review.- Build the package from the base commit to HEAD on the integration tree.
- Dispatch the final-review brief with
--role finalReview(Astra at effort xhigh). Point it at the ledger's deferred minors and parked lines. - Send one fix wave: one implementer with the complete findings list, not one per finding.
- Run one scoped re-review.
- Judge whatever is left, as with the breaker.
- Migrations:
node "$T" run phase migrations. If there are new migrations, sendcrew:migration-runnerto dev. - Journal: a final pass through
crew:bugs, then commitBUGS.mdoncrew/<slug>. - Ship:
node "$T" run phase ship, thencrew:shipstagepr: push, PR, and the CI fix loop. Before a long CI watch, runnode "$T" run wait --reason "CI on PR #N". - Hand over:
node "$T" run phase awaiting-approval. The keep-going hook lets the session stop here. Write the final report in the user's language — and if that language is RTL, follow${CLAUDE_PLUGIN_ROOT}/references/rtl-output.md, because a report full of ticket ids and token counts is exactly what the terminal scrambles. It covers:- what was built, ticket by ticket
- "Rulings I made": every
Ruling:line from the ledger, in order, each with what it costs if wrong - parked findings and fallbacks
- journal entries, security first
- the PR and CI status
- the production migrations and the deploy command
- the approval question (deploy now / not yet / change something)
- After an explicit yes:
node "$T" run phase releasing.crew:migration-runneron prod.crew:shipstagerelease.node "$T" run finish.- Remove every crew worktree, and
$Wif it's empty.
Models and cost
Measured on the first real run (7 tickets, 5 finished, 326M tokens): implementers were 69% of the bill, the orchestrator 28%, and every review together 4%. One implementer alone burned 85M in 308 turns. So the dial that matters is the implementer's model and how long it runs — not the reviews.
Turn the effort dial, not the model dial. The levers in order, cheapest quality cost first:
- Codex when it has quota — backend tickets on Sol spend none of the Claude budget at all.
- Fewer turns —
crew:context-economy: LSP symbols instead of whole files, the run's shared notes instead of re-exploring, small tickets instead of 300-turn sessions. This cuts cost without touching quality. - Effort per ticket size —
models.implementerBySize(S → medium, M → high, L → xhigh) on the strongest model. Lower effort on the newest model beats an older or smaller model at high effort, and it keeps one cache namespace. - A smaller model, last and only where it is safe — genuinely mechanical work (the same small edit across several files). On a codebase with real conventions a weaker implementer buys one more fix round, and a fix round costs another implementer session plus a review: more than it saved, for worse code.
- Pick the implementer's model and effort by the ticket's Size, from
models.implementerBySize, and the reviewer's frommodels.reviewerBySize. Pass both explicitly on every dispatch; never leave a subagent on the session default. - The reviewer is never weaker than the implementer. Independence comes from a different model
family — Codex
gpt-6-astrareviewing Claude's work — not from an older Claude. A previous generation of the same family (Opus 4.8 against Opus 5) is a downgrade at identical price, not a second opinion. When Codex is unavailable, review at the implementer's tier or one above it: a Sonnet implementation may be reviewed by Sonnet or above; an Opus implementation is reviewed by Opus or above, never below. - Escalate on evidence, not on a hunch: a ticket that comes back BLOCKED, or fails its second fix round, earns the next model up. Record the escalation as a ruling.
limits.maxAgentTurns(120) is a sizing signal, not a budget to spend. An implementer still working past it was given too much: tell it to report what is done and what is left, then split the rest into a new ticket rather than letting it run to 300 turns.- Explore once per run, not once per agent. Before the first dispatch, send one
Exploresubagent per area the spec touches and have it writeTASK/notes/<area>.md: the files that matter, the patterns to follow, the traps. Point every brief at those notes. Otherwise each fresh agent re-reads the same code, and that is most of the early turns. - A dispatch prompt holds pointers and one ticket, never pasted history. Reports go to files, and final messages stay short.
- Read a result before you re-dispatch. Every dispatch costs the user's limits.
- Parallelism does not save tokens, it spends them faster. On one provider's quota, 3 agents at
once reach the limit 3× sooner. Lower
limits.parallelwhen the quota matters more than the wall clock.
Common rationalizations
| Excuse | Reality |
| "I'll fix it myself, it's faster" | Controller fixes skip review and pollute your context. Resume the implementer. |
| "Close enough on the spec" | A spec gap means not done. Fix it, or hit the cap and judge it. |
| "Let me ask the user just this once" | Only the four stop classes stop the run. Rule, ledger it, continue. |
| "One more round will converge" | Past the cap, rounds don't converge. Judge the findings and route them. |
| "Ledger bookkeeping is overhead" | The ledger is what survives compaction and new sessions. |
| "The implementer's report says tests pass" | Run the gates yourself. Evidence before claims. |
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.

