execute-fleet
Skill608 starsChanged 9 months agoMITView on GitHub
Phase execution skill for licensed Atlas Fleet runs. Use when HANDOFF has selected Atlas Fleet and the project should be executed across isolated launcher worktrees with inbox-based result collection, verified CDD cards, sequential integration merges, and one final PR.
- Commits and pushes
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- prd-taskmasterSkill
- atlasSkill
- customise-workflowSkill
- discoverSkill
- execute-taskSkill
- expand-tasksSkill
- generateSkill
- goSkill
- handoffSkill
- setupSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 28
Before the first wave, all gates must pass.
- Very specific: line 39
SOLE-WRITER RULE: only this orchestrator writes .taskmaster/tasks/tasks.json and .atlas-ai/state/pipeline.json.
- Distinctive: line 49
Use the returned frontier as the only dispatch source.
- Very specific: line 77
Never mark a task done without the CDD card.
- Very specific: line 137
After every wave transition, render the terminal status view with the UX-SPEC grammar.
- Very specific: line 159
When all waves are done, or all remaining tasks are BLOCKED, switch to fleet-integration and run:
- Very specific: line 166
If it exits non-zero, report the failing gate and stop.
- Distinctive: line 168
Do not print the token anywhere else.
≈ “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
execute-fleet
Atlas Fleet is the premium parallel sibling of execute-task. It keeps the
same proof discipline, but the orchestrator owns the scoreboard while workers
only build inside isolated worktrees.
Hard Gates
Before the first wave, all gates must pass. If any gate fails, report the gap and stop; do not fall back to solo execution from inside this skill.
mcp__plugin_prd_go__detect_capabilities()reportstier: "premium"and atlas-launcher MCP registration/aliveness.mcp__atlas-launcher__inbox_readis callable for this session..taskmaster/tasks/tasks.jsonexists..taskmaster/reports/task-complexity-report.jsonexists.git status --shortis empty. Fleet starts only from a committed base.- The integration branch policy is clear: use
fleet-integration; main is never auto-touched.
SOLE-WRITER RULE: only this orchestrator writes
.taskmaster/tasks/tasks.json and .atlas-ai/state/pipeline.json. Workers
must never edit those files. The orchestrator may update task state only
through TaskMaster or the plugin pipeline MCP, and only after verification.
Wave Loop
Repeat until no runnable tasks remain:
- Call
mcp__plugin_prd_go__compute_fleet_waves(concurrency=<N>, tag=<tag>). Use the returned frontier as the only dispatch source. If it reports a deadlock, render status, mark the blocked set, and stop dispatching those tasks. - For each chunk in the current wave, spawn exactly one worker:
mcp__atlas-launcher__session_spawn(isolation="worktree", report_to=<this session>, model=<routing[task_id] model part>, prompt=<worker prompt>). Model is NEVER left default:compute_fleet_wavesreturns aroutingmap (task id -> backend:model) from the capability ladder — Fable for the hardest/longest-running (frontier tier), down the cost-efficiency curve to haiku for trivial tasks. Pass the model part explicitly; non-claude backends require experimental_backends=true and the launcher backend param. The prompt must include the full task JSON inline; never tell workers to read sharedtasks.json. - Inspect the spawn result. If
prompt_injectedis false, re-kick once withmcp__atlas-launcher__session_sendusing the same worker prompt, then confirm injection/readiness. If it is still false, treat that worker as failed and apply the retry policy below. - Render the fleet status view after the wave starts and after each wave transition.
- Poll
mcp__atlas-launcher__inbox_readfor terminal worker messages. The only accepted terminal status vocabulary isDONE,DONE_WITH_CONCERNS,NEEDS_CONTEXT, orBLOCKED; any other terminal word is a protocol failure and counts as a worker failure. - On a completion message, verify the branch, never the narration:
- The worker branch contains
.atlas-ai/cdd/task-<id>.json. - No
.atlas-ai/evidence/file in that branch contains a non-zeroExit status Nline. - The branch changed only its own worktree scope and did not edit
.taskmaster/tasks/tasks.jsonor.atlas-ai/state/pipeline.json.
- The worker branch contains
- Never mark a task done without the CDD card. Missing card means the worker
did not satisfy the contract, regardless of any
DONEmessage. - Merge verified worker branches into
fleet-integrationsequentially, one at a time. After each merge, run the checker/build gate expected for the project before merging the next branch. - Mark the task done only after the merge gate passes:
python3 script.py set-status --id <id> --status done. - Recompute waves after every accepted merge. Do not keep dispatching from a stale frontier.
Worker Prompt Template
Embed this template verbatim for each worker, replacing placeholders before dispatch:
WORKER_CONTRACT_ORCHESTRATOR_REPORT_TO
You are an Atlas Fleet worker. Your orchestrator is <ORCHESTRATOR_ID>. Report every question, blocker, and terminal result to <REPORT_TO_SESSION>.
WORKER_CONTRACT_FULL_TASK_JSON_INLINE
Your assigned task JSON is inline below. Treat this as the source of truth. Do not read shared .taskmaster/tasks/tasks.json.
<FULL_TASK_JSON>
WORKER_CONTRACT_WORKTREE_BRANCH
Work only in this isolated worktree and branch:
worktree: <WORKTREE_PATH>
branch: <WORKER_BRANCH>
WORKER_CONTRACT_CDD_CARD
Before reporting any terminal status, write this CDD card in your worktree: .atlas-ai/cdd/task-<id>.json. The card must list the checks you ran and the evidence paths that prove them. Evidence files under .atlas-ai/evidence/ must contain the FINAL verification run ONLY (one green run, one exit-status line) — intermediate TDD red runs go to .atlas-ai/logs/, never evidence/ (ship-check Gate 5 reads every Exit status line in evidence/ as final-state proof).
WORKER_CONTRACT_TERMINAL_STATUS
End with exactly one terminal status: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED.
Report it via mcp__atlas-launcher__inbox_send(target_session=<REPORT_TO_SESSION>, message_type="task_handoff", payload=<JSON string with at least {"task_id": <id>, "status": "<terminal status>", "branch": "<worktree branch>", "cdd_card": ".atlas-ai/cdd/task-<id>.json"}>, sender_session=<your session name>). The launcher message_type allowlist is task_handoff | notification | data | request | heartbeat — terminal reports use task_handoff; the status lives INSIDE the payload JSON.
WORKER_CONTRACT_HARD_RULES
Hard rules: never edit .taskmaster/tasks/tasks.json or .atlas-ai/state/pipeline.json; never git push; commit only in your own worktree branch.
WORKER_CONTRACT_QUESTIONS_INBOX
Ask questions before building if context is missing: use mcp__atlas-launcher__inbox_send(target_session=<REPORT_TO_SESSION>, message_type="request", payload=<your question as a string>, sender_session=<your session name>). ("question"/"completion"/"blocker" are template intents, not runtime message types — see docs/INTEGRATION-prd-taskmaster.md in the atlas-launcher repo, contract v1.)Failure Paths
- Silent/dead worker: if there is no inbox message and the session is gone,
re-queue the task ONCE with a fresh worker prompt. On the second failure,
mark the task
BLOCKEDin the orchestrator scoreboard and continue with remaining tasks. NEEDS_CONTEXT: answer throughmcp__atlas-launcher__inbox_send, then let the same worker continue. If it cannot continue, count it under the same retry cap.- Worker
BLOCKED: record the blocker, mark the taskBLOCKED, and continue with independent tasks. - Merge conflict: do not force. Do not resolve by guessing. Create a fix task that captures the conflict and continue with remaining non-conflicting work.
- Evidence failure: do not merge, do not mark done, and do not rewrite the worker's CDD card on their behalf.
Status Rendering
After every wave transition, render the terminal status view with the UX-SPEC
grammar. Use model plus index names such as claude-1, codex-1, and
claude-2. Keep the gate line in plain English every time.
┌─ atlas fleet ── wave 2 of 3 ──────────────── ▶ running 12m ┐
│ wave 1 ✓ merged 3 tasks · 18m · integration green │
│ wave 2 ▶ running │
│ claude-1 task 6 API endpoints ▰▰▰▱ 3/4 │
│ codex-1 task 7 UI components ▰▰▱▱ 2/4 │
│ claude-2 task 9 DB migrations ✓ done — waiting │
│ wave 3 ○ queued 4 tasks · starts when wave 2 merges │
│ │
│ Gate: a wave merges only after the checker approves it │
│ and the integration branch builds green. │
│ │
│ watch: atlas fleet status logs: .atlas-ai/fleet/ │
└────────────────────────────────────────────────────────────┘Termination
When all waves are done, or all remaining tasks are BLOCKED, switch to
fleet-integration and run:
python3 skel/ship-check.pyIf it exits non-zero, report the failing gate and stop. If it exits 0, emit
SHIP_CHECK_OK exactly once, then open one final PR from fleet-integration.
Do not print the token anywhere else. Do not merge the PR yourself.
Non-Exits
This skill never kills the shell and never pushes. Halt conditions are reported to the caller and, when relevant, to the launcher inbox.
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.

