/code:plan-validatefrom code
Validates plan.json structure deterministically via a Python script — JSON parsing, schema validation, task checkbox regex, required sections, and sync validation. Replaces LLM-based validation for all structural checks, preserving semantic checks for the agent.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Deterministic plan.json validation that replaces the plan-validator Sonnet agent for all structural checks. The semantic consistency check (storage/query alignment, task/architecture contradictions) still requires the LLM agent and should be run separately when needed.
Activate this skill instead of launching @code:plan-validator at every plan validation site. The orchestrator should only launch the full plan-validator agent for semantic-only checks after plan creation or modification phases.
Run the validation script:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_plan.py <WORKDIR> --auto-sync
The --auto-sync flag detects questions answered in the markdown content that are still in the openQuestions JSON array, extracts the answer text, and moves them to answeredQuestions before validation — writing the updated plan.json back to disk.
Three answer formats are supported:
**Answer: text**, *Answer: text*, or plain Answer: text on the question line.A-001: answer text line corresponding to Q-001.Answer: prefix. Metadata markers like (BLOCKING T-X.Y) and [Recommended: ...] are stripped.The question checkbox does not need to be checked for any format. When a question is migrated from an unchecked [ ] line, the script checks it automatically.
If none of these yield answer text, falls back to the recommendedAnswer field from the JSON entry. Questions with no extractable answer are left in openQuestions.
Always pass --auto-sync so that users can answer questions by editing the markdown directly.
The script prints JSON to stdout matching the exact plan-validator output format.
{
"status": "VALID",
"issues": [],
"has_unanswered_questions": false,
"unanswered_questions": [],
"has_answered_questions": false,
"answered_questions": [],
"has_addressed_gaps": false,
"addressed_gaps": [],
"pending_tasks": [{"id": "T-1.1", "description": "...", "acceptanceCriteria": ["AC-001"]}],
"completed_tasks": [],
"manual_tasks": [],
"decision_table_path": ".closedloop-ai/decision-tables/pln-001.md",
"decision_table_status": "pending"
}
Action: Parse the extracted data fields. Use pending_tasks, completed_tasks, etc. as if the plan-validator agent returned them. The decision_table_path and decision_table_status keys are always present — they are empty strings ("") when the plan does not yet reference a decision-table artifact.
{
"status": "FORMAT_ISSUES",
"issues": ["Missing required field: openQuestions", "Task missing checkbox in content: '- **T-1.2**: ...'"],
...
}
Action: Handle the same way as plan-validator FORMAT_ISSUES — launch fix subagents as appropriate.
EMPTY_FILE: plan.json doesn't exist or is emptyINVALID_JSON: plan.json contains malformed JSON**T-X.Y** line has - [ ] or - [x] prefix## headers present in contentSemantic consistency validation (Step 6 in plan-validator):
Only run the plan-validator agent with semantic-only focus after phases that modify the plan content (Phase 1 creation, Phase 2.6 critic merge, Phase 2.7 finalization).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub closedloop-ai/claude-plugins --plugin code13 skills in this plugin
/build-status-cacheSkip Phase 7 rebuild when no code changed since Phase 5 build passed.
Compares git diff hash against stored hash from last successful build validation.
Triggers on: entering Phase 7, checking build status, before final build validation.
Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
/closedloop-envProvides ClosedLoop environment paths (CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT) to agents. This skill should be used by any agent that needs to access ClosedLoop run directories, plugin schemas, or other path-dependent resources./codex-reviewRun Codex to review a plan file and return structured feedback with a verdict.
Triggers on: debate loop Codex review rounds.
Returns VERDICT:APPROVED or VERDICT:NEEDS_CHANGES plus CODEX_SESSION token.
/critic-cacheCheck if critic reviews are still valid before re-running Phase 2.5 critics.
Compares plan.json + critic-gates.json content hash against stored hash from last critic run.
Triggers on: entering Phase 2.5, checking critic cache, before launching critics.
Returns CRITIC_CACHE_HIT to skip critics or CRITIC_CACHE_MISS to re-run them.
/cross-repo-cacheCheck if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.
Compares peer repo git hashes against stored hashes from last coordinator run.
Triggers on: entering Phase 1.4.1, checking cross-repo cache, before discovering peers.
Returns CROSS_REPO_CACHE_HIT with cached status or CROSS_REPO_CACHE_MISS to re-run coordinator.
/design-inventoryUse to run the Claude Design to ClosedLoop pipeline against the current web-ui. Stage A inventories a design export zip into schema-validated findings (typed design units - screens, regions like nav bars, standalone components like a chat dialog; UX and behavioral changes; Storybook component reuse mapping; token drift vs the live design system), then creates a platform "Design Review" Feature document the team reviews by editing. Stage B is that in-document human review (delete a section to decline, edit a line to amend, leave to accept). Stage C derives decisions from the edited document and generates DRAFT feature tickets grouped per screen (UI plus optional API) for accepted work only. Triggers on "design inventory", "parse claude design export", "design handoff report", "what changed in this design", "generate tickets from design review".Other plugins' skills for the same job