From qq
Automatically reviews design documents via Codex CLI, revises iteratively until no critical issues or 5 rounds max. Auto-targets file from args, Docs/ plans, or conversation context.
npx claudepluginhub tykisgod/quick-questionThis skill uses the workspace's default tool permissions.
> **Invoke scripts via `${CLAUDE_PLUGIN_ROOT}/bin/<name>`.** That env var is set by Claude Code for every plugin context and gives the absolute path to the marketplace clone — no PATH or cwd assumptions. Bare-command invocation (e.g. `plan-review.sh`) is NOT reliable: the plugin never puts its scripts on PATH, so bare calls exit 127.
Reviews design docs with an 8-point checklist validating problem clarity, success criteria, architecture fit, alternatives, scope, decisions, consistency, and handoff before planning.
Orchestrates parallel architecture and experience reviews of implementation plans, scores findings across dimensions like data flow and UX, consolidates ranked fixes for user approval and auto-application. Use after planning, before non-trivial coding.
Reviews design and implementation docs from analysis-process for document quality, internal consistency, and technical soundness before implementation-process.
Share bugs, ideas, or general feedback.
Invoke scripts via
${CLAUDE_PLUGIN_ROOT}/bin/<name>. That env var is set by Claude Code for every plugin context and gives the absolute path to the marketplace clone — no PATH or cwd assumptions. Bare-command invocation (e.g.plan-review.sh) is NOT reliable: the plugin never puts its scripts on PATH, so bare calls exit 127.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Send a design document to Codex CLI for review, then revise the document based on the findings. Automatically loops until no critical issues remain or 5 rounds are completed.
Arguments: $ARGUMENTS
.md file under Docs/Try in order of priority:
Docs/ or similar), use the most recent oneDocs/qq/<branch-name>/tmp-review-spec_<YYYYMMDD-HHmm>.md, timestamped). Get branch name with: git branch --show-current | tr '/' '_'ls -t Docs/**/*.md | grep -v '/qq/' | head -1 to find the most recently modified design document (excluding qq-generated artifacts)Loops automatically without prompting the user each round. Loop termination conditions (stop when any is met):
[Critical] issues in the Codex review resultEach round:
Run the following command using the Bash tool with run_in_background: true:
${CLAUDE_PLUGIN_ROOT}/bin/plan-review.sh <file_path>
The script calls codex exec --sandbox read-only, outputting results to stdout and <filename>_review.md.
The script automatically reads the project root's CLAUDE.md and includes the coding standards in the Codex prompt.
Codex review typically takes 5-10 minutes. With background execution, the system automatically notifies you when done — no sleep or polling needed.
Inform the user that the background task has been submitted and will continue automatically upon completion. You may continue other conversation with the user while waiting.
Round 2 onward: If the previous round had findings marked as over-engineered, append a custom prompt with context:
${CLAUDE_PLUGIN_ROOT}/bin/plan-review.sh <file_path> "Review the updated document using the same review criteria as the first round (architecture, correctness, completeness, feasibility). Additional context: the following suggestions from the previous round were judged as over-engineered and replaced with simpler alternatives: <list items and rationale>. Do not re-suggest more complex approaches unless the simpler version introduces a real defect. Grade by severity: [Critical] [Moderate] [Suggestion]."
This preserves the full review standards while preventing Codex from re-suggesting the same complex approaches.
Read <filename>_review.md and summarize by severity:
Present the summary to the user. Do not modify the spec yet — proceed to the verification step first.
For each critical and moderate finding, dispatch a subagent to verify each one in depth — do not draw conclusions from a quick scan in the main session. Every finding must be verified against the code, no exceptions.
Review Gate: After the review script runs, a PreToolUse hook blocks Edit/Write on
.csandDocs/*.mdfiles until at least 1 verification subagent completes. This is a mechanical constraint — you cannot edit the document until findings are verified.
How to execute: Group all findings to verify, and for each one (or a few related ones) dispatch a subagent using the Agent tool (subagent_type: "general-purpose", model: "opus"), running in parallel. Each subagent's prompt must include the original finding (verbatim), relevant file paths, and the instructions from ../../shared/verification-prompt.md.
After dispatching all verification subagents, write the expected count to the gate file so the gate knows when all verifications are complete:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
IFS=: read -r ts count _ < "$QQ_TEMP_DIR/review-gate-$PPID"
echo "${ts}:${count}:N" > "$QQ_TEMP_DIR/review-gate-$PPID"
(Replace N with the actual number of verification subagents dispatched.)
Consolidation: Wait for all subagents to return, then consolidate the verification results and present each finding's verdict and evidence (citing file paths and key code) to the user.
[Critical] issues that were confirmed and fixed → automatically start the next round (back to 2a)[Critical] issues → output "Review passed" and end the loopOutput === Round N/5 === at the start of each round.
After the review loop ends (for any reason), clean up the gate marker:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
rm -f "$QQ_TEMP_DIR/review-gate-$PPID"
After the review loop ends, recommend the next step:
/qq:execute <path> to start implementing?"/qq:execute <path>, or another review round?"--auto mode: run qq-execute-checkpoint.py pipeline-advance --project . --completed-skill "/qq:codex-plan-review" --next-skill "/qq:execute", then invoke /qq:execute <path> --auto.
plan-review.sh and requires Codex CLI to be configuredCLAUDE.md coding standards to the review prompt${CLAUDE_PLUGIN_ROOT}/bin/plan-review.sh <file> "custom review prompt"