team-execute
Skill4 starsChanged 3 months agoMITView on GitHub
Use when a team plan exists in .agents/plans/ and the agent team needs to be spawned for implementation
- Commits and pushes
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Very specific: line 27
Never SendMessage-resume a completed agent for implementation work: the resume runs in the background, where Write/Edit/Bash are denied.
- Distinctive: line 31
Treat "the worker reported BLOCKED but the diff is empty" as the signature of an accidental background dispatch, not a worker failure.
- Very specific: line 93
Verify branch: git branch --show-current → agents-workbench
- Very specific: line 119
Only agent authorized to run gh pr ready
- Very specific: line 122
MUST use gh pr create --draft — never without --draft
- Distinctive: line 135
Verify PR is draft
- Distinctive: line 137
Check PR metadata (labels, milestone, linked issue)
- Very specific: line 138
Wait for gh pr checks green
- Distinctive: line 160
If a worker fails mid-execution:
- Distinctive: line 170
DO NOT respawn PE or QA between waves
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Team Execution Phase
Team Structure
You are the Team Lead. You coordinate from agents-workbench. You do NOT make technical decisions.
Roles: Principal Engineer (see agents/principal-engineer.md), QA Engineer (see agents/qa-engineer.md), Workers (1-3 in worktrees).
Limits: Max 5 agents. >3 tasks → use waves.
Spawning guidance
Foreground only
Spawn Workers, the Principal Engineer, and QA in the foreground. Agents that run in the background have Write/Edit/Bash auto-denied — a backgrounded worker silently cannot modify files or run commands and can only report BLOCKED. A whole dispatch is wasted before you notice.
- Never
SendMessage-resume a completed agent for implementation work: the resume runs in the background, where Write/Edit/Bash are denied. Re-dispatch a fresh foreground Agent instead, or apply a small, fully-specified fix inline. - Treat "the worker reported BLOCKED but the diff is empty" as the signature of an accidental background dispatch, not a worker failure.
Model & effort
Assign the model per role. Multi-agent runs use ~15× the tokens of a chat, so route each role deliberately. Workers run at Opus by default. Downgrade a Worker to Haiku for Complexity-1 tasks: rename, config, copy-paste work. Model routing beats a larger token budget.
| Role | Model | Why |
| Team Lead (you) | Opus | Orchestration + synthesis is the judgment-heavy work |
| Principal Engineer | Opus | Architecture/security review (matches agents/principal-engineer.md) |
| QA Engineer | Opus | Test-quality + gate judgment (matches agents/qa-engineer.md) |
| Worker (default) | Opus | Implementation against a well-specified task |
| Worker (mechanical) | Haiku | Complexity-1 tasks: rename, config, copy-paste-with-adaptation |
Set a Worker's model when dispatching it: pass model: "opus" (or
"haiku") to the Agent tool. The field is an enum, so a full pinned id is not valid here. PE/QA inherit Opus from their agent
definitions; do not override them downward.
Effort is a session-level setting that applies to the Lead (you), not to
spawned subagents — the Agent tool exposes model but not effort. Keep the
Lead at xhigh (the global CLAUDE.md default) for coordination judgment. For
subagents the model tier is the effort proxy: Haiku ≈ low-effort/low-cost
(mechanical tasks) and Opus ≈ everything else, from implementation to review. Do not try
to set per-worker effort — it is not a knob.
Worker dispatch contract
Give every Worker dispatch four elements (a vague brief makes Workers duplicate or misaim work):
- Objective — the single outcome this Worker owns, in one sentence.
- Output format — exactly what to return (e.g. draft PR URL + the status report below).
- Tools & sources — which tools, files, and commands to use; what is out of bounds.
- Task boundaries — the exact files/scope it may touch, and what NOT to change.
Workers report one of four statuses (from superpowers:subagent-driven-development):
| Status | Meaning | Lead's response |
DONE | Complete and self-reviewed | Proceed to PE/QA review |
DONE_WITH_CONCERNS | Complete but doubts flagged | Read the concerns; fix correctness/scope ones before review |
NEEDS_CONTEXT | Missing information | Supply it; re-dispatch a fresh foreground agent |
BLOCKED | Cannot complete | Re-scope, supply missing context, raise a Haiku Worker to Opus, or escalate — never retry unchanged |
The Lead owns these transitions. On DONE_WITH_CONCERNS, resolve any
correctness or scope concern (re-dispatch the Worker, or fix it inline) before
sending the work to PE/QA. On BLOCKED, triage before retrying. An
under-specified task needs a re-scope. A Haiku Worker that needs more reasoning
goes to Opus. An Opus Worker that is still blocked goes to the user, because
Opus is the top tier and no stronger model exists. Missing access or a wrong
plan also escalates. §5 Error Recovery covers the wave-level fallout.
Execution Workflow
Prerequisites: Plan in .agents/plans/<project>.md (from /team-plan). On agents-workbench.
1. Setup
- Verify branch:
git branch --show-current→agents-workbench - Confirm plan exists in
.agents/plans/ - Validate branch sync (HARD GATE before worktree creation):
git fetch origin BEHIND=$(git rev-list --count agents-workbench..origin/$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') 2>/dev/null || echo "0")- Behind=0: proceed
- Behind >0: warn user, recommend
git merge origin/<default>, get confirmation - Behind >50: refuse to execute — sync first to avoid conflict-heavy PRs
- Create worktrees:
git worktree add .worktrees/<feature> -b <branch> <source>
2. Spawn (mandatory order)
Foreground only, and never
SendMessage-resume a completed agent — see Spawning guidance above. Background dispatch silently disables Write/Edit/Bash.
a. Principal Engineer FIRST (on agents-workbench, read-only)
- Reviews every worker PR for architecture, Go conventions, security
- Posts
gh pr review --comment(audit trail) - Sends consolidated feedback (one message, not per-comment)
b. QA Engineer SECOND (on agents-workbench, read-only)
- Validates in worker's worktree (
cd .worktrees/<feature>) - Runs CI-equivalent checks locally
- Verifies PE review comment exists
- Sole writer to
rules/learned-anti-patterns.md(usesaudit/.anti-patterns.lock) - Only agent authorized to run
gh pr ready
c. Workers LAST (each in own worktree)
- MUST use
gh pr create --draft— never without--draft - FORBIDDEN from running
gh pr ready - Push code → create draft PR → notify QA
3. Worker Implementation
Workers follow TDD (Red → Green → Refactor). Discipline is skill-driven (the superpowers:test-driven-development and /tdd-protocol skills plus the constitution's theater-test rules) — no failing test before implementation means the wrong phase, so write a test first. Hooks enforce the surrounding workflow:
enforce-worktree.sh: blocks writes on agents-workbenchtest-quality-lint.sh: flags theater tests
4. Review Cycle
- QA validates (in worker's worktree):
- Verify PR is draft
- Run CI-equivalent commands
- Check PR metadata (labels, milestone, linked issue)
- Wait for
gh pr checksgreen
- PE reviews full PR diff:
- Architecture violations, security, pattern consistency
- Posts
gh pr reviewcomment
- PE triages all feedback (own + external bot comments):
- Address: real bugs, security → Worker must fix
- Ignore: false positives → document reason
- Discuss: needs user input → escalate to Lead
- Panel hook-point (A/B): when a "Discuss" item is a genuine design fork (architecture, security posture, API shape, irreversible/outward-facing — never trivial reversible choices), the PE/Lead surfaces it as an
AskUserQuestionwith one(Recommended)option (reasoning in the descriptions). If you run a recommendation-review panel, handle its verdict: HOLD → Lead proceeds with the recommended option; DISSENT → queue the augmented question for the user; ERROR → re-ask original. Workers never emit panel questions — they escalate to the PE.
- Worker addresses feedback, pushes fixes
- QA re-validates, checks for new comments
- Loop until: PE approves AND QA passes AND no unresolved comments — capped at the task's iteration budget (Trivial 1 / Simple 2 / Moderate 3 / Complex 4). On exhaustion, stop looping and escalate to the user with the unresolved issues rather than spinning further.
- QA promotes:
gh pr ready <PR-URL>
5. Error Recovery
If a worker fails mid-execution:
- Other workers in same wave continue (independent work)
- QA halts promotion of ALL wave PRs until Lead triages
- Lead decides: retry worker, reassign task, or abort wave
- Failed worker's worktree preserved for debugging
6. Wave Management
- Wave 1: PE + QA + up to 3 Workers (tasks 1-3)
- Wave 2: Same PE + same QA + new Workers (tasks 4-6)
- DO NOT respawn PE or QA between waves
- Clean up:
git worktree remove .worktrees/<completed-feature> - Previous wave must complete before next starts
Common Mistakes
| Mistake | Fix |
| Worker creates non-draft PR | Always gh pr create --draft |
Worker runs gh pr ready | FORBIDDEN. Only QA promotes. |
| No PE review before QA gate | QA must verify gh pr review comment exists |
| Respawning PE/QA between waves | They persist across all waves |
| Spawning an agent in the background, or resuming a completed one | Write/Edit/Bash get auto-denied — dispatch a fresh foreground agent |
Arguments
User arguments: $ARGUMENTS
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- DeL-TaiseiOzaki/claude-code-orchestra★ 199same 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 repository48 other files it gives its agents.
- .claude/templates/AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/core.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/k8s.mdcCursor rule
- .cursor/rules/node.mdcCursor rule
- .cursor/rules/python.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- .cursor/rules/tdd.mdcCursor rule
- .cursor/rules/workbench.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- cmux-sprint-orchestratorSkill
- config-auditSkill
- doneSkill
- eurekaSkill
- goalSkill
- go-reviewSkill
- handoffSkill
- js-reviewSkill
- k8s-debugSkill
- k8s-reviewSkill
- kickoffSkill
- pr-review-ingestSkill
- pr-reviewSkill
- python-reviewSkill
- reflectionSkill
- skill-evalSkill
- tdd-protocolSkill
- team-planSkill
- team-shutdownSkill
- test-reviewSkill
- validate-recommendationSkill
- worktree-guideSkill
- babysitSkill
- canvasSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- create-subagentSkill
- migrate-to-skillsSkill
- sdkSkill
- shellSkill
- split-to-prsSkill
- statuslineSkill
- update-cli-configSkill
- update-cursor-settingsSkill
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.

