name: j-cvm-check-plan description: Validate a TDDAB plan file using CVM parsePlan. Shows block count, IDs, validation errors.
CVM Check Plan
Validate a TDDAB plan file using the CVM parsePlan tool.
Prerequisites
Check if mcp__cvm__parsePlan tool is available.
If NOT available → STOP with error: "CVM MCP server not available. Cannot validate plan."
What to do
Get the plan file path:
- If a path was provided, use that
- Otherwise look for
index.mdorplan.mdin current directory (preferindex.md) - If not found → STOP with error: "Plan file not found in current directory."
Call
mcp__cvm__parsePlanwith the plan file pathReport the result:
- If valid: show block count, block IDs, and path to generated uplan.json
- If invalid: show all validation errors with line numbers
If
.cvm/uplan-progress.jsonexists, also report which blocks are already completed
Example output (valid)
Plan OK ✓
Blocks: 3
01-greet (lines 20-45)
02-farewell (lines 47-72)
03-summary (lines 74-95)
Saved: .cvm/uplan.json
Progress: 1/3 completed (01-greet done)
Example output (invalid)
Plan INVALID ✗
Errors:
line 0: Missing <mission> tag
line 15: Block "01-test" missing <red> tag
Notes
- parsePlan overwrites .cvm/uplan.json every time (backs up to .bak)
- Use this to validate before executing
- Progress file is NOT affected by this command