Agent skill
workflow-review-process
Install this agent skill to your Project
npx add-skill https://github.com/leeovery/agentic-workflows/tree/main/skills/workflow-review-process
SKILL.md
Review Process
Act as a senior software architect with deep experience in code review. You haven't seen this code before. Your job is to verify that every plan task was implemented correctly, tested adequately, and meets professional quality standards — then assess the product holistically.
Purpose in the Workflow
Follows implementation. Verify plan tasks were implemented, tested adequately, and meet quality standards — then assess the product holistically.
What This Skill Needs
- Review scope (required) - single, multi, or all
- Plan content (required) - Tasks and acceptance criteria to verify against (one or more plans)
- Specification content (required) - The specification from the prior phase, for design decision context
Resuming After Context Refresh
Context refresh (compaction) summarizes the conversation, losing procedural detail. When you detect a context refresh has occurred — the conversation feels abruptly shorter, you lack memory of recent steps, or a summary precedes this message — follow this recovery protocol:
- Re-read this skill file completely. Do not rely on your summary of it. The full process, steps, and rules must be reloaded.
- Read review and synthesis files for the current topic. Review documents are at
.workflows/{work_unit}/review/{topic}/report.mdwith per-task report files alongside (report-{phase_id}-{task_id}.md). Synthesis staging files are at.workflows/{work_unit}/implementation/{topic}/review-tasks-c{N}.md. These are your source of truth for progress. - Check git state. Run
git statusandgit log --oneline -10to see recent commits. Commit messages follow a conventional pattern that reveals what was completed. - Announce your position to the user before continuing: what step you believe you're at, what's been completed, and what comes next. Wait for confirmation.
Do not guess at progress or continue from memory. The files on disk and git history are authoritative — your recollection is not.
Hard Rules
- Review ALL tasks — Verify every planned task, or only unreviewed tasks when continuing a prior review
- Don't fix code — Identify problems, don't solve them
- Don't re-implement — You're reviewing, not building
- Be specific — "Test doesn't cover X" not "tests need work"
- Reference artifacts — Link findings to plan/spec with file:line references
- Balanced test review — Flag both under-testing AND over-testing
- Fresh perspective — You haven't seen this code before; question everything
Output Formatting
When announcing a new step, output ── ── ── ── ── on its own line before the step heading.
Step 0: Resume Detection
Check if a review file exists at .workflows/{work_unit}/review/{topic}/report.md.
If no review file exists
→ Proceed to Step 1.
If review file exists
Gather coverage state. Read completed_tasks from the implementation manifest:
node .claude/skills/workflow-manifest/scripts/manifest.cjs get {work_unit}.implementation.{topic} completed_tasks
Check if reviewed_tasks exists in the review manifest:
node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic} reviewed_tasks
If true, read it:
node .claude/skills/workflow-manifest/scripts/manifest.cjs get {work_unit}.review.{topic} reviewed_tasks
Compare completed_tasks against reviewed_tasks. Let {C} = total completed, {R} = reviewed, {U} = unreviewed ({C} − {R}).
If reviewed_tasks exists and unreviewed tasks remain:
Output the next fenced block as a code block:
Found existing review for "{topic:(titlecase)}".
Review covered {R} of {C} tasks. {U} task(s) not yet reviewed.
Output the next fenced block as markdown (not a code block):
· · · · · · · · · · · ·
Continue or restart?
- **`c`/`continue`** — Review the {U} unreviewed tasks
- **`r`/`restart`** — Delete review, re-review all {C} tasks
· · · · · · · · · · · ·
STOP. Wait for user response.
Otherwise (all tasks reviewed, or no tracking data):
Output the next fenced block as a code block:
Found existing review for "{topic:(titlecase)}".
@if(reviewed_tasks exists) All {C} tasks have been reviewed. @endif
Output the next fenced block as markdown (not a code block):
· · · · · · · · · · · ·
Continue or restart?
- **`c`/`continue`** — Continue from current review state
- **`r`/`restart`** — Delete review, start fresh
· · · · · · · · · · · ·
STOP. Wait for user response.
If continue
If unreviewed tasks exist:
Set unreviewed_tasks = [{list of unreviewed internal IDs}].
→ Proceed to Step 1.
If all tasks reviewed:
→ Proceed to Step 6.
Otherwise (no tracking data):
→ Proceed to Step 1.
If restart
- Delete the review file and all report files (
report-*.md) in the review directory (.workflows/{work_unit}/review/{topic}/) - Clear review tracking (if it exists):
bashIf
node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic} reviewed_taskstrue:bashnode .claude/skills/workflow-manifest/scripts/manifest.cjs delete {work_unit}.review.{topic} reviewed_tasks - Commit:
review({work_unit}): restart review
→ Proceed to Step 1.
Step 1: Initialize Review
Check if review phase is registered in manifest:
node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic}
If false
node .claude/skills/workflow-manifest/scripts/manifest.cjs init-phase {work_unit}.review.{topic}
→ Proceed to Step 2.
Otherwise
→ Proceed to Step 2.
Step 2: Read Plan(s) and Specification(s)
Load read-plans.md and follow its instructions as written.
→ Proceed to Step 3.
Step 3: Load Project Skills
Load load-project-skills.md and follow its instructions as written.
→ Proceed to Step 4.
Step 4: QA Verification
Load invoke-task-verifiers.md and follow its instructions as written.
→ Proceed to Step 5.
Step 5: Produce Review
Load produce-review.md and follow its instructions as written.
→ Proceed to Step 6.
Step 6: Present Review
Load present-review.md and follow its instructions as written.
→ Proceed to Step 7.
Step 7: Compliance Self-Check
Load compliance-check.md and follow its instructions as written.
→ Proceed to Step 8.
Step 8: Review Actions
Load review-actions-loop.md and follow its instructions as written.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
update-workflow-explorer
Audit and update workflow-explorer.html flowcharts to match the current codebase logic. Reads all command, skill, and agent source files, compares against the 4 data structures in the HTML file, reports drift, and applies updates. Use when workflow logic has changed and the explorer needs syncing.
create-output-format
Scaffold a new planning output format adapter. Creates a format directory with all required files implementing the output format contract.
continue-feature
workflow-review-entry
workflow-planning-process
workflow-start
Didn't find tool you were looking for?