| name | claudeqb |
| description | Claude Code planning with evidence-backed comprehension, autopsy, ontology, ledger continuity, QA audit, and gated handoff. |
| disable-model-invocation | true |
ClaudeQB
Overview
Run the bundled planning workflow for a project repository. Keep Step 1 conversational and repo-aware, run Step 1.5 Autopsy for existing projects, and hand off Step 2 and Step 3 as text-only fresh Claude Code session prompts unless the user explicitly asks for a different flow. After Step 3, provide a gated Step 4 implementation handoff prompt only when the audit says implementation can begin.
The bundled prompts are:
references/First-Planner.md for Step 1 main planning.
references/Autopsy-Planner.md for Step 1.5 existing-project autopsy.
references/Second-Planner.md for Step 2 phase sub-planning.
references/Third-Planner.md for Step 3 sub-plan QA and coverage audit.
references/Fourth-Planner.md for the Step 4 implementation fresh-session handoff prompt template.
references/handoffs/run-step2.md, run-step3.md, and run-step4.md as the canonical fresh-session handoff sources.
Planning behavior references:
references/vibecoding-principles.md for adaptive, small-slice, validation-first planning.
references/subagent-playbook.md for safe subagent usage and role boundaries.
references/planning-ledger.md for durable plan/implementation history via Planner-docs/Planing-Ledger.md.
references/project-ontology.md for durable project vocabulary, entities, workflows, boundaries, and invariants.
references/project-comprehension-methods.md for evidence/confidence, hypothesis, traceability, architecture reflexion, and quality-scenario methods.
references/probe-policy.md for static/local/live probe tiers, approval, timeout, cleanup, and evidence artifact rules.
references/assessment-and-budget.md for autonomy, fresh Claude Code session, token/context, and budget assessment.
references/engineering-principles.md for domain-appropriate CS, architecture, validation, and secure engineering methods.
Bundled support files:
scripts/validate_planner_docs.py for read-only structural validation of Planner-docs/.
references/repo-aware-intake.md for evidence-backed Step 1 intake questions.
references/workflow-quality.md for fresh Claude Code session reliability, validation, token discipline, and handoff practices.
Workflow Selection
- If the user asks for normal planner startup, run Step 1.
- If the user directly asks for Step 1.5 or Autopsy, read
references/Autopsy-Planner.md and execute it.
- If the user directly asks for Step 2, read
references/Second-Planner.md and execute it.
- If the user directly asks for Step 3, read
references/Third-Planner.md and execute it.
- If the user asks only for the fresh Claude Code session prompt text, print the matching Step 2, Step 3, or gated Step 4 copy block without modifying files.
Do not run migration tooling for this workflow. This is a native Claude Code skill workflow.
Step 1 Intake
Read references/repo-aware-intake.md before asking questions.
Before asking PROJECT_NAME, do a bounded, read-only repository scan so the intake can suggest evidence-backed defaults. If Planner-docs/Planing-Ledger.md, Planner-docs/Project-Ontology.md, or Planner-docs/Project-Comprehension.md exists, read it before asking intake questions and use it as supporting history, not as unquestioned truth. Then ask these four fields one at a time in the user's language, using plain text questions only:
PROJECT_NAME: project name, with an inferred default when possible.
PROJECT_INTENT: what the project is for and what it should become, with a repo-derived draft when possible.
TARGET_END_STATE: what done looks like from product, engineering, operations, security, and user-value perspectives, with a five-part draft when possible.
KNOWN_CONSTRAINTS: team size, infrastructure, budget, timeline, preferred stack, compliance boundaries, must-use tools, must-not-use tools, desired autonomy level, human review cadence, and any token/usage budget with detected constraints and unknowns when possible.
ClaudeQB asks intake questions in the user's language when practical. Generated Planner-docs artifacts are English by default unless the user explicitly requests another content language. Required document headings remain English for validator stability.
Vibecoding, Memory, Ontology, and Subagent Behavior
ClaudeQB uses a vibecoding-first planning style: understand the repo, preserve a clear target, plan the next useful verified moves, and keep implementation slices small, reversible, and evidence-backed. Vibecoding does not relax safety, validation, secret, approval, or file-boundary rules.
Before long planning runs, read references/vibecoding-principles.md, references/assessment-and-budget.md, and references/engineering-principles.md. For existing projects, also read references/planning-ledger.md, references/project-ontology.md, and references/project-comprehension-methods.md; if Planner-docs/Planing-Ledger.md, Planner-docs/Project-Ontology.md, or Planner-docs/Project-Comprehension.md exists in the target repo, read them as evidence before replanning.
Use subagents only when they reduce context pollution or improve evidence quality: large repo exploration, Step 1.5 Autopsy, ontology mapping, multi-phase Step 2 drafting, Step 3 readiness/security audit, or Step 4 implementation/review separation. Read references/subagent-playbook.md before requesting subagents. Parent ClaudeQB owns final artifact writes; subagents should gather evidence, draft options, or review unless the user explicitly asks otherwise.
Fresh Claude Code session handoffs must come from the canonical files under references/handoffs/ so the Fresh Session Run Contract is maintained in one physical source.
After all four values are available:
- Read
references/First-Planner.md.
- Substitute the four collected values into the matching placeholders.
- Follow the substituted Step 1 prompt exactly.
- Create or update only
Planner-docs/Main-Planing.md, as required by the Step 1 prompt.
- After completing Step 1, decide whether Step 1.5 Autopsy applies.
- Run Step 1.5 automatically only when the repository is an existing or partially built project: it is not empty and contains meaningful evidence such as README, manifests, source/service/package directories, tests, docs, configs, or CI.
- Skip Step 1.5 for new or nearly empty projects; do not create
Planner-docs/Autopsy.md in that case.
- After Step 1 and any Step 1.5 Autopsy work, ask the user in plain text whether they have feedback for the main plan and autopsy.
- If feedback is provided, apply it under the same file boundary: update only
Planner-docs/Main-Planing.md for main plan feedback and only Planner-docs/Autopsy.md for autopsy feedback.
Step 1.5 Autopsy
Step 1.5 is for existing or partially built projects. It should not run for genuinely new or nearly empty repositories.
When Step 1.5 applies:
- Read
references/Autopsy-Planner.md.
- Read
Planner-docs/Main-Planing.md.
- Inspect the repository with read-only commands.
- Create or update
Planner-docs/Autopsy.md; when enough evidence exists, also create or update Planner-docs/Project-Ontology.md and, for non-trivial existing projects, optional Planner-docs/Project-Comprehension.md.
- Do not modify source files,
Planner-docs/Main-Planing.md, or any Step 2/3 files.
- Treat
Autopsy.md, Project-Ontology.md, optional Project-Comprehension.md, and any existing Planing-Ledger.md as Step 2 feedback, not as replacements for the main plan.
Step 2 Handoff
After Step 1 feedback is handled, ask whether the user wants to continue to Step 2. If yes, tell the user to copy the following text, open a fresh Claude Code session, and send it:
/claudeqb:claudeqb Read and return the exact canonical handoff from references/handoffs/run-step2.md, then execute it.
When executing Step 2 directly:
- Read
references/Second-Planner.md.
- Read
references/workflow-quality.md.
- Read
Planner-docs/Autopsy.md, Planner-docs/Project-Ontology.md, Planner-docs/Project-Comprehension.md, and Planner-docs/Planing-Ledger.md when they exist; do not block Step 2 when they are absent.
- Follow repository inspection, file-boundary, naming, all-file validation, and stopping rules exactly.
- Run the bundled validator after generation when available. In an installed Claude Code skill, use:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_planner_docs.py --root . --mode step2 --strict
When manually validating from a ClaudeQB repository checkout, use:
python3 plugins/claudeqb/skills/claudeqb/scripts/validate_planner_docs.py --root . --mode step2 --strict
If no script path is accessible, perform equivalent all-file validation and report that fallback clearly.
- Do not modify files outside
Planner-docs/.
- After the Step 2 summary, print the Step 3 fresh Claude Code session handoff block from this skill.
Step 3 Handoff
After Step 2 is complete, ask whether the user wants to continue to Step 3. If yes, tell the user to copy the following text, open a fresh Claude Code session, and send it:
/claudeqb:claudeqb Read and return the exact canonical handoff from references/handoffs/run-step3.md, then execute it.
When executing Step 3 directly:
- Read
references/Third-Planner.md.
- Read
references/workflow-quality.md.
- Run the bundled validator first when available and incorporate its findings into the audit. In an installed Claude Code skill, use:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_planner_docs.py --root . --mode step3 --strict
When manually validating from a ClaudeQB repository checkout, use:
python3 plugins/claudeqb/skills/claudeqb/scripts/validate_planner_docs.py --root . --mode step3 --strict
If no script path is accessible, perform equivalent all-file validation and report that fallback clearly.
- Follow audit, file-boundary, validation, and stopping rules exactly.
- Modify only
Planner-docs/Sub-Planing-Audit.md.
- After the Step 3 summary, print the Step 4 handoff prompt from
references/Fourth-Planner.md only if the audit permits implementation.
Step 4 Handoff
Step 4 is not a ClaudeQB planning step and must not be executed automatically by this skill.
When Step 3 completes:
- Read
references/Fourth-Planner.md.
- Run the bundled validator when available. In an installed Claude Code skill, use:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_planner_docs.py --root . --mode step4 --strict
When manually validating from a ClaudeQB repository checkout, use:
python3 plugins/claudeqb/skills/claudeqb/scripts/validate_planner_docs.py --root . --mode step4 --strict
If no script path is accessible, perform equivalent all-file validation and report that fallback clearly.
- If validation passes, print the Step 4 fresh Claude Code session copy block and remind the user to watch token use.
- If validation fails because the audit is
BLOCKED or contains P0/P1 findings, do not print the Step 4 prompt; print the minimal repair or unblock prompt instead.
- If validation passes with non-blocking warnings, print the Step 4 prompt and state that the implementation run must keep P2/P3 warnings visible.
- The Step 4 prompt should come from
references/handoffs/run-step4.md, execute the READY/READY_WITH_WARNINGS queue continuously in small verified slices, and report NO_ACTION_REQUIRED without starting implementation when no work is queued.
Quality and Validation
- Prefer
scripts/validate_planner_docs.py over ad hoc validation scripts.
- Use
--mode step1, --mode autopsy, --mode step2, --mode step3-preflight, --mode step3, or --mode step4 for the active workflow step.
- Use
--strict in fresh Claude Code session so generic or repeated section warnings become failures.
- Do not report section counts from memory; report counts only after reading the active prompt or running validation.
- For untracked
Planner-docs/, use find Planner-docs -maxdepth 4 -type f | sort, git status --short -- Planner-docs, and git diff -- Planner-docs together.
- Keep long fresh Claude Code session stdout concise. Put detailed evidence in the generated Markdown artifacts.
- Track planning and implementation continuity through
Planner-docs/Planing-Ledger.md when available; Step 4 should append concise implementation summaries there.
- Track project-understanding continuity through optional
Planner-docs/Project-Comprehension.md; Step 4 should verify tentative assumptions before code changes and update the ledger when a hypothesis is confirmed or contradicted.
Safety Rules
- Treat the current working directory as the project being planned.
- Inspect the repository before writing any planning file, using the safe read-only commands required by the active planner prompt.
- Do not implement product features, refactor source code, install dependencies, commit, push, deploy, or open pull requests.
- Do not write secrets, tokens, credentials, private keys, or local sensitive environment values into planning files.
- Preserve the required misspelled filenames exactly:
Main-Planing.md, Sub-Planing-Index.md, and Sub-Planing-Audit.md.
- Preserve
Planner-docs/Autopsy.md as the Step 1.5 autopsy filename.
- If a required source file is missing, follow the blocker behavior in the active planner prompt instead of inventing speculative output.
Completion Reporting
For each executed step, report concisely:
- which planner step ran;
- which files were created or updated;
- whether the step succeeded or was blocked;
- the highest-priority next action;
- any uncertainty or blocker discovered.