Agent skill

workflow-review-process

Stars 15
Forks 1

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:

  1. Re-read this skill file completely. Do not rely on your summary of it. The full process, steps, and rules must be reloaded.
  2. Read review and synthesis files for the current topic. Review documents are at .workflows/{work_unit}/review/{topic}/report.md with 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.
  3. Check git state. Run git status and git log --oneline -10 to see recent commits. Commit messages follow a conventional pattern that reveals what was completed.
  4. 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

  1. Review ALL tasks — Verify every planned task, or only unreviewed tasks when continuing a prior review
  2. Don't fix code — Identify problems, don't solve them
  3. Don't re-implement — You're reviewing, not building
  4. Be specific — "Test doesn't cover X" not "tests need work"
  5. Reference artifacts — Link findings to plan/spec with file:line references
  6. Balanced test review — Flag both under-testing AND over-testing
  7. 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:

bash
node .claude/skills/workflow-manifest/scripts/manifest.cjs get {work_unit}.implementation.{topic} completed_tasks

Check if reviewed_tasks exists in the review manifest:

bash
node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic} reviewed_tasks

If true, read it:

bash
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

  1. Delete the review file and all report files (report-*.md) in the review directory (.workflows/{work_unit}/review/{topic}/)
  2. Clear review tracking (if it exists):
    bash
    node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic} reviewed_tasks
    
    If true:
    bash
    node .claude/skills/workflow-manifest/scripts/manifest.cjs delete {work_unit}.review.{topic} reviewed_tasks
    
  3. Commit: review({work_unit}): restart review

→ Proceed to Step 1.


Step 1: Initialize Review

Check if review phase is registered in manifest:

bash
node .claude/skills/workflow-manifest/scripts/manifest.cjs exists {work_unit}.review.{topic}

If false

bash
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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results