From wf
Stage 4 of the wf workflow. Independent quality review applying five-tier confidence scoring. If any issue scores >= 80 confidence, hard-resets STATE phase to `coding` and ends the session — the user must run /wf:code to continue. Only zero >=80 findings advance to `done`. Slash-only.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wf:reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Independent quality review of the implementation produced by `/wf:code`. This is stage 4 of 4 in the wf workflow.
Independent quality review of the implementation produced by /wf:code. This is stage 4 of 4 in the wf workflow.
The main agent performs the review directly — it does not dispatch the code-reviewer sub-agent (that one is reserved as the inner-loop reviewer inside /wf:code). The review here is the user-facing, formal review pass with hard-gate phase enforcement.
coding, review_round MUST be incremented by 1, and this session MUST end. The user has to explicitly run /wf:code to continue addressing issues. Do NOT keep the session active "to also fix them right now" — that defeats the round counter and the audit trail.done. Tell the user the feature is ready to commit / open a PR, and that /wf:archive is available as an optional cleanup step.
Before doing anything else:
.wf/STATE.md. If absent, refuse — tell the user to run /wf:brainstorm first.phase is coding, accept and update phase to reviewing for the duration of this run.phase is anything else (brainstorm, planning, done), refuse and suggest the matching /wf:* command..wf/plans/PRD-<feature_id>.md and all ADRs referenced by the PRD.You MUST create a task for each item:
/wf:code last started; the user may narrow thisreferences/confidence-scoring.md).wf/reviews/<feature_id>-<round>.md (where round is the current review_round + 1)/wf:code to address issues, or commit / PR / /wf:archive if doneDefault: every file changed since the most recent coding-pass entry in STATE.md's Phase Log. Concretely:
git diff against the working treeThe user may scope-down ("just review src/foo.ts" or "just the auth module"). Honor narrower scope, but record the narrowed scope in the review report's frontmatter.
Apply the five-tier scale from references/confidence-scoring.md to every potential issue. Only issues with confidence ≥ 80 are reported in the review document and counted against the hard gate. Lower-confidence findings can be mentioned in passing in chat but must NOT appear in the review document — that keeps the audit trail clean and avoids accidental phase regressions for noise.
The primary review axis is project conventions in CLAUDE.md and equivalent. A violation of an explicit project guideline is automatically high confidence. Other axes (in priority order):
Filename: .wf/reviews/<feature_id>-<round>.md
---
feature_id: <feature_id>
round: <N>
phase_before: coding
created_at: <ISO 8601 with timezone>
threshold: 80
scope: <"all changed files" | narrowed scope description>
issues_above_threshold: <count>
verdict: pass | fail
---
# Review Round <N> — <feature title>
## Summary
One paragraph: what was reviewed, how many ≥ 80 issues, the verdict.
## Critical Issues (confidence ≥ 95)
For each:
- **Confidence:** <score>
- **File:** `<path>:<line>`
- **Problem:** <description>
- **Fix:** <concrete suggestion>
## Important Issues (confidence 80-94)
Same format.
## Notes
Optional: lower-confidence observations the reviewer wants to flag without forcing a regression. These do NOT count toward the gate.
After writing the report:
issues_above_threshold = count of issues with confidence >= 80
verdict: fail in the report frontmatter..wf/STATE.md:
phase: codingreview_round by 1<ISO timestamp> review round <N> failed (<count> issues at confidence >= 80) — phase reset to coding"Review round found issues at confidence >= 80. STATE phase reset to
coding. Run/wf:codeto address them."
verdict: pass in the report frontmatter..wf/STATE.md:
phase: done<ISO timestamp> review round <N> passed (0 issues at confidence >= 80) — phase advanced to done"Review round passed. The feature is ready. Suggested next steps: commit changes, open a PR, or run
/wf:archiveto collapse this feature's artifacts into.wf/archive/<feature_id>/and reset STATE for the next feature."
The code-reviewer sub-agent under wf/agents/ is the inner-loop reviewer for /wf:code. Reusing it here would conflate two distinct review purposes:
/wf:code): catch obvious problems before declaring the implementation ready/wf:review): user-facing formal review with hard-gate phase enforcementKeeping these separate makes the gate honest. The main agent applies confidence scoring directly in this skill so the threshold logic and STATE manipulation live in one place.
/wf:code deliberately, not be auto-bridged into it.done transition; the user decides what's next (commit, PR, /wf:archive).Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub anthoooooooony/wf --plugin wf