com um clique
forge-review
Review code for conformance, correctness, and architecture alignment.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Review code for conformance, correctness, and architecture alignment.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Deep single-model analysis of a topic, question, or architectural decision.
Multi-model consensus workflow. Role-assigned models converge toward a shared recommendation through two rounds of evaluation and reconciliation.
Adversarial multi-model evaluation. Models argue for, against, and neutrally about a subject.
Multi-model panel review. Multiple models review independently, then findings are synthesized.
Full Forge QA checklist in Docker container. Use for release validation or comprehensive verification of all Forge features.
Pressure-test a claim, recommendation, or assumption. Defaults to skepticism.
| name | forge:review |
| description | Review code for conformance, correctness, and architecture alignment. |
| disable-model-invocation | false |
| argument-hint | [target: path or instruction] [--output path] |
| allowed-tools | Read, Grep, Glob, Bash, Agent |
Review code for conformance, correctness, and architecture alignment.
/forge:review [target]
| Argument | Required | Description |
|---|---|---|
target | Optional | File, directory, or instruction on what to review (defaults to cwd) |
--output | Optional | Write result to file instead of conversation (e.g., review.md) |
Follow these steps in order. Do not skip steps.
$ARGUMENTS is the target. It may be a file path, directory, or free-form instruction. If it starts with @, strip the
prefix (Claude Code file reference syntax). If $ARGUMENTS is empty, default to the current working directory.
Recognized flags (extract from $ARGUMENTS if present):
--output <path> — write result to file instead of conversationNever ask the user to clarify. If $ARGUMENTS contains anything, proceed immediately.
Do NOT start the review until this step is complete.
Model family: !forge session context "${CLAUDE_SESSION_ID}" --field model_family 2>/dev/null || true
Pick one instruction file (first match wins, read only one):
${CLAUDE_SKILL_DIR}/resources/code-{family}.md${CLAUDE_SKILL_DIR}/resources/code.mdIf model family lookup returns empty output or errors, treat it as "no family" and immediately select
${CLAUDE_SKILL_DIR}/resources/code.md. Do not probe multiple variants.
When reading the selected instruction file, call Read with exactly one argument:
{"file_path":"/absolute/path/to/instruction-file.md"}
Rules:
A PreToolUse hook may strip extra Read parameters (offset, limit, pages) for skill instruction files, but callers
must still send Read with only file_path.
Read that one file using the Read tool with just the file_path parameter. Do not read both. If the chosen file is missing, report the path and stop.
After loading, tell the user in one message:
Reviewing {target} in code mode.
model_family: {family or "(none -- using default)"}
instruction: {instruction_file_name}
Do not read target files or begin review until after you have:
If the selected instruction file refers to an Explore subagent, use the Agent tool with subagent_type: "Explore". Do
not interpret Task in resource files as a separate tool.
If the selected instruction file mentions disallowed or unavailable tools, stop and report the mismatch instead of substituting another tool.
Execute the review following the loaded instructions. The instruction file defines the rubric, structure, and output format. Do not invent your own review format -- follow what the instruction file says.
Do not call mcp__zen__* tools from this skill.
When a resource file contains tool guidance that conflicts with this SKILL.md file, this SKILL.md file wins. Do not improvise around the conflict.
Output routing: If --output was specified, write the complete review to that path using the Write tool (create
parent directories if needed). Print a one-line confirmation: Wrote review to {path}. Do not also print the full
result in the conversation. If --output was not specified, print the result in the conversation as usual.
For a multi-model perspective, use forge workflow panel --code to get independent code reviews from multiple backends:
forge workflow panel [target] --code --json
Or invoke /forge:panel --code for the full multi-model code review workflow.