From bach
Use when a project spans multiple phases with review gates between them — architecture then implementation then integration, for example
npx claudepluginhub tslateman/claude-plugins --plugin bachThis skill uses the workspace's default tool permissions.
Multi-phase project execution with review gates. Wraps `orchestrating-work` with phase sequencing, dependency waves, and architect-led planning.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
Multi-phase project execution with review gates. Wraps orchestrating-work with phase sequencing, dependency waves, and architect-led planning.
Core principle: Plan phases with an architect. Execute each phase via orchestrating-work. Gate transitions with reviewer approval.
Use lifecycle when:
Use /orchestrate instead when:
Dispatch an architect worker to decompose the project into ordered phases:
Task tool (general-purpose):
description: "Architect: Plan phases for [project]"
prompt: [Use ./workers/architect-prompt.md from orchestrating-work]
The architect returns named phases with:
Encode phase identity in CC task subjects and use gate tasks as barriers:
TaskCreate: "[Phase 1: Foundation] Set up project structure"
TaskCreate: "[Phase 1: Foundation] Define data models"
TaskCreate: "[Phase 1: Foundation] Write schema migrations"
TaskCreate: "[Gate] Review Phase 1: Foundation"
→ addBlockedBy: [all phase-1 task IDs]
TaskCreate: "[Phase 2: API] Implement auth endpoints"
→ addBlockedBy: [gate-task-id]
TaskCreate: "[Phase 2: API] Implement CRUD endpoints"
→ addBlockedBy: [gate-task-id]
TaskCreate: "[Gate] Review Phase 2: API"
→ addBlockedBy: [all phase-2 task IDs]
Gate tasks block subsequent phases until the reviewer approves.
For each phase, apply the orchestrating-work pattern:
orchestrating-workParallel tasks within a wave run concurrently. Sequential dependencies enforce ordering.
When all tasks in a phase complete, the gate task activates. Dispatch a reviewer:
Task tool (general-purpose):
description: "Reviewer: Gate review for Phase N"
prompt: [Use reviewer-prompt.md with phase acceptance criteria]
Verdicts (match existing reviewer vocabulary):
| Verdict | Meaning | Action |
|---|---|---|
APPROVE | Phase meets acceptance criteria | Mark gate complete; next phase unblocks |
NEEDS_CHANGES | Fixable issues found | Create fix tasks in current phase; re-gate |
REJECT | Fundamental rework needed | Revisit architect plan for this phase |
On APPROVE, the gate task completes, unblocking all next-phase tasks via CC's addBlockedBy resolution.
On NEEDS_CHANGES, create new tasks for the fixes, add them as blockers to the gate, and re-run the phase.
After the final phase gate approves, run a completion audit:
Within each phase, build execution waves from the task dependency graph:
See reference/dependency-waves.md for the algorithm.
Gate tasks are CC tasks with a special convention:
[Gate]See reference/phase-gates.md for the gate pattern.
All state lives in CC's task list. No custom state files.
[Phase N: Title]addBlockedBy / addBlockspending / in_progress / completed)[Gate] prefix tasksTo check progress, read the task list and group by phase prefix.
User: /mission Build a CLI tool with auth, config management, and plugin system
--- STEP 1: ARCHITECT ---
Architect plans:
Phase 1: Foundation — project structure, config system, CLI framework
Phase 2: Auth — login/logout, token storage, session management
Phase 3: Plugins — plugin loader, registry, lifecycle hooks
Phase 4: Integration — end-to-end flows, error handling, docs
--- STEP 2: CREATE TASKS ---
[Phase 1: Foundation] Scaffold project with TypeScript + Commander
[Phase 1: Foundation] Implement config file loading and validation
[Phase 1: Foundation] Set up test framework
[Gate] Review Phase 1: Foundation
→ blockedBy: all Phase 1 tasks
[Phase 2: Auth] Implement login flow with OAuth
→ blockedBy: gate-1
[Phase 2: Auth] Implement token storage
→ blockedBy: gate-1
[Gate] Review Phase 2: Auth
→ blockedBy: all Phase 2 tasks
... (phases 3, 4 follow same pattern)
--- STEP 3-4: EXECUTE + GATE ---
Phase 1 tasks execute via orchestrating-work (waves of coder/researcher workers)
Gate fires → reviewer approves → Phase 2 unblocks
Repeat for each phase
--- STEP 5: COMPLETE ---
All gates passed. Completion audit confirms project criteria met.
Wraps:
bach:orchestrating-work — Each phase executes using the two-tier patternWorkers used:
architect — Plans phases (via workers/architect-prompt.md)coder, researcher, reviewer, tester — Execute phase tasksInvoked by:
/mission command — Entry point for lifecycle projects