team-build
Skill2 starsChanged 14 days agoMITView on GitHub
Use when the owner has picked an idea from .agent-team/ideas.md (or wants to resume a feature) and it should go spec → grill → plan → build → review → QA → PR → CI without further approvals.
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- sametcelikbicak/opencode-teamtheir own version, first seen Nov 15, 2026
- suryas91/claude-skillstheir own version, first seen Oct 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- sametcelikbicak/opencode-team★ 69same name
- suryas91/claude-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
- developerSkill
- engineering-guidelinesSkill
- marketingSkill
- pmSkill
- qaSkill
- reviewerSkill
- team-auditSkill
- team-ideateSkill
- team-initSkill
- team-marketSkill
- team-statusSkill
- team-wrapSkill
- tech-leadSkill
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
- Very specific: line 12
Run the orchestrator in a standard-tier session (Sonnet, or Codex --profile at-standard).
- Very specific: line 20
Remote
feature/<slug>exists → resume: If this machine has no .agent-team/worktrees/<slug>, run git worktree add … - Very specific: line 60
After 3 grill rounds the Tech Lead turns whatever is still open into owner questions, so the next round either finishes or stops.
- Very specific: line 77
Design problems: If the developer reports <id>: 3 fixes failed — design problem while fixing any finding, go to *Stop* ("design problem: …
- Very specific: line 82
Don't re-run the PM or Tech Lead when resuming past their stages (except the drift refresh in step 0).
- Distinctive: line 87
Never merge the PR, push to the default branch, or force-push.
- Distinctive: line 88
Never ask the owner for approval between Gate 1 and Gate 2.
- Distinctive: line 89
Never skip review, QA or CI, even for a tiny change.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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-build <slug>
Runs the hands-off middle: from the owner's pick (Gate 1) to a green PR for the owner to merge (Gate 2). The only step that can ask the owner anything is the grill, and only for questions that change scope or what users see. You are the orchestrator: you dispatch roles, run the helper, and keep status.md true. You don't do the roles' work yourself.
Run the orchestrator in a standard-tier session (Sonnet, or Codex --profile at-standard). Orchestration is mechanical; the roles get their own models.
The helper. agent-team <command> (put on PATH by install.sh; otherwise python3 <this skill's folder>/scripts/agent_team.py). It does the deterministic parts exactly: status, leases, tiers, diffs, tests, sync, push, CI, PR body. Use it instead of working those out yourself. Exit codes: 0 ok, 1 failed, 2 merge conflict, 3 push rejected. agent-team -h lists the commands.
0. Start or resume
- Needs a git repo with
.agent-team/project.mdon the default branch:D=$(agent-team default-branch), thengit fetch originandgit show origin/$D:.agent-team/project.md. Missing → stop: "run team-init first" (or, if it's only onagent-team/meta, "merge the agent-team/meta PR first" — the feature branch starts from$D). - Then:
- Remote
feature/<slug>exists → resume. If this machine has no.agent-team/worktrees/<slug>, rungit worktree add .agent-team/worktrees/<slug> feature/<slug>(trackingorigin/feature/<slug>). If the branch has nostatus.md, stop: "status.md is missing" — don't start over. - Only a local-only
feature/<slug>exists (never pushed) → resume it here;agent-team push <slug>first, and stop if that fails. - Neither exists → new run.
agent-team idea <slug>: unknown slug → stop; statusshippedorrejected→ stop and say so.
- Remote
- Lease (resume only; a new run takes it in step 1):
agent-team lease <slug> acquire. It fast-forwards the worktree toorigin/feature/<slug>, then commits and pushes the lease, so another machine sees it. If it fails (another machine holds it, won the race, or the branches diverged), stop and relay the message — don't touchstatus.mdor the PR: they belong to the other run. Use--takeoveronly when the owner says that run is dead. Once you hold the lease, in a workspace (project.mdhas## Repos) runagent-team repos <slug> --ensure(idempotent): it re-creates this machine's missing product worktrees, including repos another machine added. - Resume by
stage(agent-team status <slug> stage):stopped— readstop_reason; continue fromstopped_at(the owner fixed the cause on the branch). Reset that stage's counter (grill_round,review_round,qa_roundorci_round) to 0. Stopped atgrill: the owner has answered theownerquestions ingrill.md— check none is left blank (any blank → stop again with the same reason).pr-open— the PR is waiting for the owner's merge:agent-team lease <slug> releaseand say so; nothing else.merged/marketed— nothing to build; point toteam-wrap <slug>/team-market <slug>.- any other stage — continue from it.
- Drift check (resume at
implement, orstopped_at=implement):agent-team drift <slug>.drift: none→ continue.drift: unchecked (…)(no stamp, no paths in## Files, or the stamp isn't in this clone) → continue, and put the reason in the nextagent-team lognote. Files listed → the default branch changed code the plan relies on:agent-team sync <slug>(exit 2 → Stop: "merge conflict with $D"; exit 1 → Stop with its message), then dispatchtech-leadin plan refresh mode (tier fromagent-team tier tech-lead <slug>) with the drifted files, log it asplan tech-lead refresh, commit and push. Re-runagent-team drift <slug>and expectdrift: none; anything else → Stop: "plan refresh didn't update planned-at" (otherwise every later resume pays for another refresh). Then implement. Exit 1 → Stop with its message.
1. Workspace
Worktrees live inside the project at .agent-team/worktrees/<slug> (gitignored by team-init), so tool permissions and sandboxes cover them. Never touch the current checkout, even if it has uncommitted changes.
New run: git worktree add -b feature/<slug> .agent-team/worktrees/<slug> origin/$D, then agent-team init-status <slug> (writes the initial status.md with stage: spec and this machine as owner), commit it, and agent-team push <slug> right away — that push is the lease. If it's rejected, another machine started the same feature: remove this worktree and branch (agent-team cleanup <slug> --force — nothing of value is in it yet) and stop. Otherwise, in a workspace, run agent-team repos <slug> --ensure.
2. Tiers
agent-team tier <role> <slug> --tool <claude|codex|gemini|other> [--task T<n>] [--escalate] prints tier, model, effort and the reason. It applies project.md ## Model overrides, the rules below, and each role's allowed-tiers, with this skill's references/models.yaml. Dispatch per references/dispatch-<tool>.md (anything else → dispatch-generic.md); model=session means fallback — log it.
Role (tier name) | Tier |
PM spec (pm-spec) | deep; standard if the idea's effort is S |
| Tech Lead (grill and plan) | standard if the spec has ≤ 2 ACs and effort S, else deep |
| PM answering the grill | same as PM spec (agent-team tier pm-spec <slug>) |
| Developer | each task's tag; a task that fails twice reruns once at standard (--escalate); fixes for findings run at standard |
| Reviewer | standard; deep if the diff — without .agent-team/, lockfiles and generated code — has > 400 changed lines or > 15 files, or the plan lists security touchpoints |
| QA | fast; standard if the plan says qa-ui: yes |
3. Run the stages
After every stage, in this order: set the next stage and agent-team log <slug> <stage> <role> --tier <t> --model <m> [--tokens <n>] [--cost <usd>] <note> (add tokens and cost whenever the tool reports them — see the dispatch notes); commit the artifacts and status.md together; agent-team push <slug>. Exit 3 means another machine pushed to this branch: stop without the Stop steps (no status edit, no PR change, no lease release) and tell the owner. Never force-push.
- spec — dispatch
pmin spec mode, giving it the idea's entry fromagent-team idea <slug> --show→spec.md. - grill — the Tech Lead grills the spec before planning (its
references/grilling.md). Each round:grill_round+1. Dispatchtech-leadin grill mode → it appends a round togrill.md, or reportsgrill done.grill done→spec.mdnow has## Decisions; go to plan.- Otherwise dispatch
pmin answer mode → it fills the round's answers. - Any
owneranswer → Stop withstopped_at=grill("owner question: G<n>, … in grill.md"). The owner answers on the branch; the resume continues the grill. - After 3 grill rounds the Tech Lead turns whatever is still open into
ownerquestions, so the next round either finishes or stops. Log each dispatch asgrill tech-lead/grill pm.
- plan — dispatch
tech-leadin plan mode →plan.md. If it wrote## Spec problems, go to Stop. In a workspace, then runagent-team repos <slug> --ensure(it creates worktrees for the repos the plan touches and records them inrepos). - implement —
agent-team tasks <slug>prints the unticked tasks in batches, e.g.fast T2,T3/standard T4. Dispatchdeveloperonce per batch, in order, at that batch's tier, naming exactly those task ids. If it reportsT<n> failed twice, re-dispatch onlyT<n>atagent-team tier developer <slug> --escalate; if it fails again (or was already standard), go to Stop ("T<n>failed at standard") — the remaining tasks stay unticked for the resume. Whentasksprintsall tasks done, runagent-team test <slug> --build; if it fails, go to Stop ("broken build before review"). - review — First
agent-team sync <slug>(exit 2 → Stop: "merge conflict with $D"; exit 1 → Stop with its message); if it merged anything,agent-team test <slug>(fail → Stop: "tests fail after merging $D"). Then each round:review_round+1.agent-team next <slug> reviewgives the file number N and the previous review file — numbers continue across stops, so earlier reviews are never overwritten. Dispatchreviewerwith: review N,since=last_reviewed_commit(noneonly if no review exists yet), and the previous review file (if any). →review-N.md.- Set
last_reviewed_commitwith"last_reviewed_commit=$(agent-team heads <slug>)"(the commit just reviewed; per-repo heads in a workspace). APPROVED→ qa.CHANGES REQUESTED→ dispatchdeveloper(standard) with the Critical and ImportantR<n>findings → next round. StillCHANGES REQUESTEDwhenreview_roundreaches 3 → Stop ("3 review rounds").
- qa — Each round:
qa_round+1;agent-team next <slug> qagives the file number M; dispatchqa→qa-M.md.PASSED→ pr.FAILED→ developer (standard) fixes theQ<n>bugs → reviewer checks the changes sincelast_reviewed_commit(file number fromagent-team next <slug> review; not counted inreview_round), then set"last_reviewed_commit=$(agent-team heads <slug>)". If that review saysCHANGES REQUESTED: developer fixes, one more such review; stillCHANGES REQUESTED→ Stop ("review after QA fixes"). Then QA again.FAILEDwhenqa_roundreaches 2 → Stop ("2 QA rounds"). - pr —
agent-team sync <slug>again (conflict → Stop; merged anything →agent-team test <slug>, fail → Stop), push. In a workspace (instead of the single-repo steps below), first, for each repo inreposorder that has changes (<owner/repo>=repo=and<branch>=branch=fromagent-team repos; ifrepo=is-, go to Stop: "<path>has no GitHub remote") (agent-team diff <slug> --statprints a## <path>section per repo; skip empty ones):gh pr view feature/<slug> -R <owner/repo> --json number, elsegh pr create -R <owner/repo> --base <branch> --head feature/<slug> --title "<spec title>" --body "$(agent-team pr-body <slug> --repo <path> --summary '<3 lines>')". Set"repo_prs=<path>#<n> …"before the workspace PR, so its body lists the product PRs. Then the workspace PR as in the single-repo steps andpr=<number>; finallygh pr edit <n> -R <owner/repo> --body "$(agent-team pr-body <slug> --repo <path> --summary '<3 lines>')"for each product PR (the numbers exist now). Otherwise (single repo): ifgh pr view feature/<slug> --json numberfinds a PR, reuse it; elsegh pr create --base $D --head feature/<slug> --title "<spec title>" --body "$(agent-team pr-body <slug> --summary '<3 lines>')". Setpr=<number>. - ci —
agent-team ci <slug> --watch.passornone→ pr-open. It waits up to 5 minutes for checks to appear before deciding there's no CI.fail→ setci_round+1; if it's 1, dispatchdeveloper(standard) with the failing checks (gh run view <run-id> --log-failed, with-R <owner/repo>for a product PR; last ~60 lines), thenagent-team test <slug>(fail → Stop: "CI fix broke the tests"), thenreviewerchecks the changes sincelast_reviewed_commit(file number fromagent-team next <slug> review; not counted inreview_round) and you set"last_reviewed_commit=$(agent-team heads <slug>)"—CHANGES REQUESTED→ Stop ("review of the CI fix"). Commit, push, watch again. A secondfail→ Stop ("CI failing"). - pr-open — commit and push
status.md, thenagent-team lease <slug> release(it commits and pushes the release), and tell the owner: "PR #<n>is green and ready to merge; afterwards runteam-wrap <slug>(andteam-market <slug>for outreach)." In a workspace, list the PRs in merge order (product PRs inreposorder, the workspace PR last).
Stop (a limit hit, an owner question from the grill, spec problems, broken build, merge conflict, failing CI — not a rejected push or a lost lease, see above): agent-team status <slug> --set stage=stopped stopped_at=<stage> "stop_reason=<reason>", commit, agent-team push <slug> (exit 3 → stop here, change nothing else), then agent-team lease <slug> release. No PR yet → gh pr create --draft … --body "$(agent-team pr-body <slug> --stopped '<reason>')" and set pr. PR already open → gh pr ready <pr> --undo and gh pr edit <pr> --body "$(agent-team pr-body <slug> --stopped '<reason>')". In a workspace, do this (draft, ready --undo, edit body) for every PR that exists, product PRs with -R <owner/repo> and --repo <path>. Tell the owner in one line what needs their decision. After they fix it on the branch, team-build <slug> resumes from stopped_at.
Design problems. If the developer reports <id>: 3 fixes failed — design problem while fixing any finding, go to Stop ("design problem: <id>") instead of another round.
Keep it cheap
- Hand each role only its inputs (see each role's
## Reads), as paths — never pasted file contents. - Don't re-run the PM or Tech Lead when resuming past their stages (except the drift refresh in step 0); a resumed grill continues from the last round in
grill.md. - Reviewer and QA use
agent-team test, which reuses the cached result while the code commit hasn't changed, andagent-team diff, which leaves out.agent-team/, lockfiles and generated code.
Never
- Never merge the PR, push to the default branch, or force-push.
- Never ask the owner for approval between Gate 1 and Gate 2; stop conditions open (or turn back into) a draft PR instead.
- Never skip review, QA or CI, even for a tiny change.
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.

