Use when implementation is done for current scope and a hypercritical comparison against plan acceptance criteria is needed before verification.
Run an alignment-gated, memory-informed review:
memory: retrieve relevant durable constraints, decisions, pitfalls, and learningsalignment: prove code, tests, and evidence still match approved intenthardening: dispatch four reviewer roles to critique the aligned implementation for residual defect risk and security exposureKeep the review agent-led and concise. Do not pre-apply actionable follow-up work before the user explicitly accepts the proposed improvement set.
Read fully:
memory.mdmemory.index.jsonrequirements.md when present in the active plan folderresearch.mdplan.mdtodo.jsonRead memory.archive.md only at indexed anchors selected by the memory relevance scan.
Read forge-session.json when present and refresh it after the review.
If todo.json.context.* paths exist, treat them as canonical for locating downstream artifacts.
If implementation-review.md is missing, create it from ../../templates/implementation-review.template.md before writing the new review pass.
implementation-review.md and forge-session.json.forge-learn only when no accepted follow-up work is waiting, or after accepted follow-up execution returns.Before alignment, retrieve applicable durable knowledge:
memory.md fully.memory.index.json for entries whose tags, applies_to, summary, or how_to_comply match:
file_targetsrequirements.md, research.md, plan.md, todo.json, implementation-review.md)memory.archive.md at selected archived_location anchors only when the index summary is too thin to apply safely.Pass the Memory Digest into the alignment packet and every hardening reviewer context. Do not copy long archive text into chat or review artifacts; cite ids and anchors.
After showing the alignment packet, run exactly four hardening reviewer passes:
correctness
security
maintainability
project-standards
AGENTS.md, CLAUDE.md, README.md, docs/, templates, lifecycle contract, memory rules, and repository conventions relevant to the implementation.can_agent and can_worktree following docs/orchestration-protocol.md; record capability in forge-session.json.tool_search for the multi-agent tool surface. Set can_agent: true only when multi_agent_v1.spawn_agent and multi_agent_v1.wait_agent are available.can_agent is true, dispatch the four reviewers in parallel as read-only subagents. Spawn all four reviewers before waiting for any one reviewer result.multi_agent_v1.spawn_agent calls, one each for correctness, security, maintainability, and project-standards, followed by repeated multi_agent_v1.wait_agent calls over the pending spawned agent ids until every reviewer completes or times out. Do not satisfy this step by roleplaying the reviewers sequentially in the main thread.can_agent is false, run the same four reviewer prompts sequentially in the main thread.implementation-review.md, research.md, plan.md, todo.json, memory.index.json, and forge-session.json.correctness or security fails, rerun the failed reviewer once sequentially before deciding whether review evidence is too degraded to continue.Task or Subagent references to sequential main-thread work, treat that as a fallback mapping only. Prefer Codex-native multi_agent_v1 tools when discovered.Each reviewer receives:
research.md, plan.md, todo.json, code, test, and execution evidenceFor Codex multi_agent_v1.spawn_agent, use a self-contained message that includes this envelope and explicitly states: "Read-only review. Do not edit files, commit, push, create issues, or update memory. Return only the normalized JSON-compatible reviewer output."
Each reviewer returns normalized findings:
{
"reviewer": "correctness|security|maintainability|project-standards",
"findings": [
{
"id": "C01",
"severity": "low|medium|high|critical",
"title": "Short issue title",
"summary": "One concrete issue and why it matters",
"evidence_refs": ["src/file.ts:42", "tests/file.test.ts:18", "memory.md#pit-003"],
"improvement_set": ["Specific code/test/artifact update to make", "Verification or evidence update required"],
"memory_refs": ["PIT-003"]
}
],
"coverage_notes": ["What was inspected"],
"memory_update_candidates": [
{
"summary": "Durable lesson candidate",
"applies_to": ["skills/forge-review-implementation/SKILL.md"],
"evidence_refs": ["implementation-review.md#review-pass"]
}
]
}
Use reviewer-specific ids before synthesis (Cxx, SECxx, Mxx, Sxx). The orchestrator assigns final Axx or Hxx ids after deduplication.
Merge reviewer outputs before presenting findings:
high or critical security findings unless follow-up inspection disproves the exploit path or exposure.Do not ask improvement questions until synthesis is complete.
Check, at minimum:
requirements.md without implementation evidence, test evidence, deferred status, blocker, or accepted residual riskrequirements.md exists, every original requirement has a visible status: covered, deferred, blocked, contradicted, or missingStatus vocabulary for the packet and durable record:
alignedpartialmissingcontradictedextraTreat clerical or traceability-only drift as auto-sync work.
Never auto-sync changes that would:
Show this in chat before hardening:
requirements.md existsInvalid behavior:
Answer the critique directly from artifacts, code, tests, evidence, and the four reviewer outputs. Do not ask the user to perform discovery.
Cover at least:
Only severity >= medium findings are approval-gated.
Decision queue order:
Rules:
Each decision prompt must include:
Apply the improvement set for Axx or Hxx? (yes/no)If the user wants a different boundary for the active finding, ask one scoped follow-up question for that finding only.
Do not update downstream plan or todo follow-up work for actionable findings before the user accepts that finding.
If the user accepts one or more actionable findings:
implementation-review.mdresearch.md, plan.md, and todo.json with synchronized follow-up deltasplan.mdtodo.json before handoffClassify accepted follow-up work as one of:
direct-implement: corrections stay within approved intent, scope semantics, non-goals, acceptance criteria, and task boundary shapeiterate-required: corrections require scope, acceptance-criteria, task-graph, or major risk reclassification before execution resumesIf the user declines a finding:
implementation-review.mdAfter the decision queue and artifact sync, present a reviewed-implementation summary packet with:
forge-learnThis skill delegates durable learning capture to forge-learn and never writes durable learnings to memory.* itself. Memory retrieval for the review still happens in the Memory Learning Scan; only capture is delegated.
Learning capture is optional and must never block accepted follow-up execution. If any accepted follow-up work remains, skip this gate for now and route that work first. Return to this gate only after the accepted direct-implement or iterate-required path completes or explicitly hands control back.
When no accepted follow-up work is waiting, gate learning capture after the summary packet. Use the harness blocking question tool when available (AskUserQuestion in Claude Code; call ToolSearch with select:AskUserQuestion first if its schema is not loaded). Fall back to a plain chat question only when none exists or it errors.
Ask:
Capture durable learnings from this review now via forge-learn? (yes/no)
When the user accepts, invoke forge-learn and pass review context as a default-learning source:
memory_update_candidatesforge-learn owns the gated current-session and past-transcript scans, the Memory v2 capture rules, and the learning summary. Do not duplicate that capture here.
When the user declines, skip capture, record the learning gate as declined in forge-session.json, and continue to next-step routing.
Route accepted follow-up work before the Learning Capture Gate:
direct-implement follow-up work -> invoke forge-implement immediately after artifact sync; if invocation is unavailable, hand off to forge-implement as the next required step without asking a learning-capture question first, and do not ask a second "move straight to applying fixes" question after the user already accepted the improvement setsiterate-required follow-up work -> invoke forge-iterate before the learning-capture question; if invocation is unavailable, hand off to forge-iterate as the next required step without asking for learning capture first, because scope/task synchronization must happen before durable review-learning captureforge-verifyforge-verify while any original requirement from requirements.md remains missing, contradicted, or unaccounted for without explicit deferral, blocker, or accepted residual riskNever apply code fixes inside this skill; hand accepted fix execution to forge-implement or forge-iterate according to the follow-up classification. After that downstream skill completes or returns control, resume the Learning Capture Gate if review learning candidates remain.
npx skills add wbusby88/forge-review-implementation下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer