Manages multi-phase, cross-project initiatives through a structured lifecycle
Creates the initiative structure, processes phase completions with dependency-aware advancement, and provides status queries โ all through file-based state persistence in .cpmrc.json. Coordinates across child projects where each phase can target a different project folder.
Cowork CPM Orchestrator
TL;DR
How To Start
STEP 1Choose Mode and Provide Parameters
-
mode
· string · required
Operating mode: “initialize” (create structure), “transition” (process phase completion), or “query” (status check). -
initiative_name
· string · required for initialize
Name of the cross-project initiative. -
phases
· list · required for initialize
List of phase definitions with phase_id, name, execution_mode, target_project_path, deliverables, dependencies, and success_criteria. -
current_phase_id
· string · required for transition
The phase that just completed. -
completion_report
· dict · required for transition
Report from CWK-035 with status, artifacts, validation_confidence, and notes. -
auto_advance
· boolean · optional · default: false
If true, automatically call CWK-035 for the next ready phase after a successful transition. -
query_type
· string · required for query
What to query: “status”, “roadmap”, “dependencies”, or “artifacts”. -
enable_git_checkpoint
· boolean · optional · default: true
Call CWK-005 after state-changing operations for crash protection.
Usage Examples
EXAMPLE 1Initializing a multi-phase initiative
EXAMPLE 2Processing a phase transition
EXAMPLE 3Querying the dependency graph
How AI Reads This Recipe
- Validate Inputs. Check mode and required parameters. For initialize: validate paths exist, validate phase dependencies form a valid DAG via topological sort, require at least 2 phases. For transition: load .cpmrc.json, validate phase exists and is IN_PROGRESS. For query: load .cpmrc.json. Missing state for non-initialize modes → error.
- Initialize (Step 1). Create .cpmPhases/ directory structure. Validate dependency graph. Determine initial readiness (no dependencies → READY, else PENDING). Generate initiative ID. Write .cpmrc.json, .cpmHistory.json, and CPM-ROADMAP.md. Git checkpoint. Display summary with ready phases.
- Transition (Step 2). Process completion report. If REVISION_NEEDED: reset to READY, note reason. Otherwise: update status, timestamp, confidence. Append to history. Check downstream dependencies — promote PENDING to READY when all deps met. Check initiative completion. Update state and roadmap. Git checkpoint. If auto_advance, call CWK-035 for next ready phase.
- Query (Step 3). Match query_type: status shows per-phase status; roadmap outputs CPM-ROADMAP.md; dependencies shows directed graph with blocking relationships; artifacts lists all artifacts by completed phase.
- Completion (Step 5). When all phases pass: mark COMPLETE, update state, append completion event, generate final summary with duration and artifact inventory. Suggest CWK-026 for knowledge transfer.
When To Use This Recipe
Recipe FAQ
What is the difference between CWK-034 and CWK-031?
How do phase dependencies work?
What happens if a phase fails?
What is auto_advance?
Where is the state stored?
Version History
Get this recipe with CRAFT for Claude Cowork
Cowork recipes ship bundled with CRAFT for Claude Cowork — there’s no separate download. Clone the framework once, and your AI runs every recipe automatically when invoked.
Pull anytime to stay on the latest version — free to clone, no login or email required.
Then start your session
Once CRAFT is in your project folder, open a new Cowork session and ask Claude to initialize. For example:
You
Claude
Not familiar with Git? Download as a ZIP
No command line needed. Just download, move, and unzip:
- Open the CRAFT framework repo on GitHub.
- Click the green Code button, then choose Download ZIP.
- Move the downloaded ZIP into your Claude Cowork project folder.
- Unzip it: double-click on Mac, or right-click → Extract All on Windows.
