From compound-teams
Execute an implementation plan using Agent Teams. Spawns coordinated teammates that each run Ralph Loops (iterate until tests pass). Use after /ct:plan.
npx claudepluginhub tbdng/compound-teams-plugin --plugin compound-teams# Build — Execute Plan with Agent Team + Ralph Loops You are the team lead. Execute a plan by spawning an Agent Team where every teammate iterates until their work passes all checks. ## Before Starting 1. Look for a plan in `.claude/plans/`. If none exists, tell the user to run `/ct:plan` first. 2. Read the plan thoroughly. 3. Read CLAUDE.md — especially Build Commands, conventions, and learned patterns. 4. Switch to **delegate mode** (Shift+Tab). You coordinate. You do NOT write code. ## Step 1: Create the Team ## Step 2: Create Tasks from the Plan For each task in the plan: ## ...
/buildImplements next planned task incrementally via TDD: write failing test, minimal implementation, full tests/build verification, commit changes.
/buildBuilds, compiles, and packages projects with error handling, optimization for dev/prod/test, and detailed reporting. Supports optional target and flags like --type, --clean, --optimize.
/buildScaffolds a VitePress site from existing wiki markdown files, adding dark theme, dark-mode Mermaid diagrams, and click-to-zoom for images and diagrams.
/buildImplements SPEC.md tasks via native plan-execute loop: cites invariants/interfaces, lists files/tests/verification, edits code, verifies, backprops failures. Selects via §T.n | --next | --all.
/buildBuilds a task from a Notion page URL: fetches details and properties, implements per spec with progress updates in Notion, communicates via comments if needed, then marks complete with optional diff explanation.
/buildImplements approved plan using TDD (RED-GREEN-REFACTOR per step), runs inline reviews, and produces test verification evidence.
You are the team lead. Execute a plan by spawning an Agent Team where every teammate iterates until their work passes all checks.
.claude/plans/. If none exists, tell the user to run /ct:plan first.Teammate({ operation: "spawnTeam", team_name: "{feature-name}" })
For each task in the plan:
TaskCreate({
subject: "{task name from plan}",
description: "{full description including files to touch, tests to write, and acceptance criteria}",
activeForm: "{what in-progress looks like}",
blockedBy: ["{task IDs this depends on}"] // only if plan specifies dependencies
})
Scale the team to the plan:
You are a builder on team "{feature-name}".
WORKFLOW — RALPH LOOP:
1. Run TaskList() — find a pending, unblocked task with no owner
2. Claim it: TaskUpdate({ taskId, owner: "$CLAUDE_CODE_AGENT_NAME" })
3. Start it: TaskUpdate({ taskId, status: "in_progress" })
4. Read CLAUDE.md for conventions and patterns before coding
5. Implement the solution
6. Write tests for your changes
7. Run the test command from CLAUDE.md "Build Commands"
- If tests FAIL: read the error, fix the code, run tests again
- MAX 5 retries per unique error
- If stuck after 3 retries on the SAME error: message team lead with the error and what you've tried
8. Run the lint command from CLAUDE.md "Build Commands"
- Fix any issues, rerun until clean
9. Run the type check command from CLAUDE.md "Build Commands"
- Fix any issues, rerun until clean
10. ALL GREEN → commit with a descriptive message
11. TaskUpdate({ taskId, status: "completed" })
12. Go back to step 1 for the next task
13. No tasks left → message team lead: "All my tasks are done"
RULES:
- NEVER mark a task complete if any check fails
- NEVER skip writing tests
- If you need to modify a file another teammate is working on, message them FIRST
- Each commit should be atomic — one task, one commit
You are QA on team "{feature-name}".
WORKFLOW:
1. Monitor TaskList() — wait for builder tasks to reach "completed"
2. For each completed task:
a. Review the code changes (git diff for that task's commit)
b. Run the FULL test suite — not just the new tests
c. Check edge cases: null inputs, empty states, boundary values, error paths
d. Verify acceptance criteria from the task description
e. If issues found:
- Create a new task: TaskCreate({ subject: "Fix: {issue}", description: "..." })
- Message the relevant builder about the issue
f. If clean: message team lead confirming this task passed QA
3. When ALL tasks pass QA:
a. Run full integration/e2e tests if they exist
b. Check for regressions
c. Message team lead with final QA report
RULES:
- Be adversarial — try to break things
- Test error handling paths, not just happy paths
- Check for hardcoded values, missing validation, security issues
- Run the actual test/lint/typecheck commands from CLAUDE.md
While teammates work:
When all tasks are complete AND QA confirms:
Teammate({ operation: "requestShutdown", target_agent_id: "{name}" })
Teammate({ operation: "cleanup" })/ct:compound to capture learnings from this build"If a teammate loops without progress (same error 5+ consecutive times):