agentleFS
Kastalien-ResearchKastalien-Research/thoughtbox/.agents/skills/workflows-review/SKILL.md

workflows-review

Skill64 starsChanged 5 months agoMITView on GitHub

Verify implementation claims by dispatching review agents. Stage 5 of the development workflow.

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. About 0 are common, 15 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read each summary to build the claims list

    line 19
  2. Distinctive:

    If pre-conditions are not met, report what's missing and halt.

    line 21
  3. Very specific:

    Read all sub-agent summaries from .workflow/summaries/*.md.

    line 27
  4. Very specific:

    Every claim from each summary's ### Claims section

    line 28
  5. Very specific:

    Every test command from ### Tests section

    line 29
  6. Very specific:

    Every spec claim alignment statement from ### Spec/Evidence Alignment

    line 30
  7. Very specific:

    Every risk from ### Risks section

    line 31
  8. Distinctive:

    Run every test command listed in summaries

    line 40
  9. Distinctive:

    Verify each claim by reading the implementation

    line 41
  10. Very specific:

    Run npm run build or tsc --noEmit

    line 45
  11. Distinctive:

    Check for type errors, unsafe casts, any-typed escape hatches

    line 46
  12. Distinctive:

    Check that new code follows existing codebase patterns

    line 49
  13. Distinctive:

    Do the review findings support or undermine the ADR hypotheses?

    line 76
  14. Very specific:

    Write the review report to .workflow/review-report.md:

    line 81
  15. Very specific:

    If verdict is PASS: set currentStage to "compound" (skip revision)

    line 126
  16. Very specific:

    If verdict is FAIL: set currentStage to "revision"

    line 127
  17. Distinctive:

    All claims must be checked: Don't skip claims just because they seem obvious.

    line 147
  18. Distinctive:

    Test commands must actually run: Don't trust the summary's "N passing" — verify it.

    line 148
  19. Distinctive:

    Findings need evidence: Every finding must reference specific file:line locations.

    line 149
  20. Distinctive:

    Do NOT fix code during review — that's revision's job

    line 153
  21. Distinctive:

    Do NOT skip claim verification — the entire point is trust-but-verify

    line 154
  22. Distinctive:

    Do NOT mark a failing test as "info" severity — test failures are always blocking

    line 155
  23. Distinctive:

    Do NOT auto-pass reviews — even if everything looks good, run the checks

    line 156
  24. Distinctive:

    Do NOT review your own implementation — review agents must be separate from implementation agents

    line 157

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review the implementation: $ARGUMENTS

Purpose

You are executing Stage 5 (Review) of the development workflow. Implementation is complete and sub-agent summaries exist on disk. Your job is to dispatch review agents that verify claims, check for regressions, and assess quality. You do NOT fix issues — that's Stage 6's job.

Pre-Conditions

Before starting, verify:

  1. .workflow/state.json exists and currentStage is "review"
  2. Implementation summaries exist (check stages.implementation.artifacts.summaries in state)
  3. Read each summary to build the claims list

If pre-conditions are not met, report what's missing and halt.

Process

Step 1: Collect Claims

Read all sub-agent summaries from .workflow/summaries/*.md. Extract:

  • Every claim from each summary's ### Claims section
  • Every test command from ### Tests section
  • Every spec claim alignment statement from ### Spec/Evidence Alignment
  • Every risk from ### Risks section

Step 2: Dispatch Review Agents

Dispatch specialized review agents in parallel. Each gets the full claims list and the relevant source files.

Required reviews (always run these):

  1. Claim Verification — Use a general-purpose agent to:
    • Run every test command listed in summaries
    • Verify each claim by reading the implementation
    • Flag claims that are unsupported or contradicted
  2. Type Safety — Use the compound-engineering:review:kieran-typescript-reviewer agent (or dispatch via Agent tool with instructions to check types):
    • Run npm run build or tsc --noEmit
    • Check for type errors, unsafe casts, any-typed escape hatches
  3. Pattern Consistency — Use compound-engineering:review:pattern-recognition-specialist agent:
    • Check that new code follows existing codebase patterns
    • Flag naming inconsistencies, structural deviations

Conditional reviews (run when relevant):

  1. Security — If changes touch auth, input handling, or external APIs:
    • Use compound-engineering:review:security-sentinel agent
  2. Performance — If changes touch hot paths, data structures, or queries:
    • Use compound-engineering:review:performance-oracle agent
  3. Simplicity — If changes add new abstractions or utilities:
    • Use compound-engineering:review:code-simplicity-reviewer agent

Step 3: Collect Findings

Each review agent returns findings. Classify each finding:

SeverityMeaningBlocks?
blockingClaim is false, test fails, or security issueYes
warningQuality concern, pattern deviation, missing edge caseNo (but should fix)
infoStyle suggestion, minor improvementNo

Step 4: Assess Spec/Evidence Alignment

Cross-reference the implementation's spec claim alignment statements against the review results:

  • Do the review findings support or undermine the ADR hypotheses?
  • Are there hypotheses with no evidence either way? Flag as inconclusive.

Step 5: Produce Review Report

Write the review report to .workflow/review-report.md:

# Review Report: <title>

**Workflow**: <id>
**Reviewed**: <ISO timestamp>
**Summaries reviewed**: N

## Verdict: PASS / FAIL

## Findings

### Blocking (must fix before merge)
1. [finding with file:line reference]

### Warnings (should fix)
1. [finding with file:line reference]

### Info
1. [observation]

## Claim Verification
| # | Claim | Status | Evidence |
|---|-------|--------|----------|
| 1 | "..." | VERIFIED / FAILED / UNVERIFIABLE | [detail] |

## Hypothesis Check
| Hypothesis | Implementation Says | Review Says | Aligned? |
|-----------|-------------------|-------------|----------|
| H1 "..." | SUPPORTS | SUPPORTS | Yes |

## Test Results
- Tests run: N
- Tests passed: N
- Tests failed: N
- Commands: [list]

Step 6: Record and Handoff

  1. Update workflow state (.workflow/state.json):
    • Set stages.review.status to "completed"
    • Set stages.review.completedAt to current ISO timestamp
    • Set stages.review.artifacts.findings to the findings list
    • If verdict is PASS: set currentStage to "compound" (skip revision)
    • If verdict is FAIL: set currentStage to "revision"
    • Update updatedAt
  2. Present the handoff:
    REVIEW COMPLETE
    ================
    
    Verdict: PASS / FAIL
    Blocking findings: N
    Warnings: N
    Claims verified: N/N
    
    Next: Stage 6 - Revision (/workflow-revision)  [if FAIL]
    Next: Stage 7 - Compound (/workflows-compound)  [if PASS]

Operational Rules

  1. Review agents are read-only: They analyze and report. They do NOT fix code.
  2. All claims must be checked: Don't skip claims just because they seem obvious.
  3. Test commands must actually run: Don't trust the summary's "N passing" — verify it.
  4. Findings need evidence: Every finding must reference specific file:line locations.

Anti-Patterns

  • Do NOT fix code during review — that's revision's job
  • Do NOT skip claim verification — the entire point is trust-but-verify
  • Do NOT mark a failing test as "info" severity — test failures are always blocking
  • Do NOT auto-pass reviews — even if everything looks good, run the checks
  • Do NOT review your own implementation — review agents must be separate from implementation agents

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.