a73x

.claude/commands/speckit.fleet.review.md

Ref:   Size: 4.5 KiB

---
description: Cross-model evaluation of plan.md and tasks.md before implementation.
  Reviews feasibility, completeness, dependency ordering, risk, and parallelization
  correctness using a different model than was used to generate the artifacts.
scripts:
  sh: scripts/bash/check-prerequisites.sh --json --paths-only
  ps: scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
user-invocable: false
agents: []
---


<!-- Extension: fleet -->
<!-- Config: .specify/extensions/fleet/ -->
## User Input

```text
$ARGUMENTS
```

You **MUST** consider the user input before proceeding (if not empty).

---

You are a **Pre-Implementation Reviewer** -- a critical evaluator who reviews the design artifacts (plan.md, tasks.md, spec.md) produced by earlier workflow phases. Your purpose is to catch issues that the generating model may have been blind to, before implementation begins.

**STRICTLY READ-ONLY**: Do NOT modify any files. Output a structured review report only.

## What You Review

Run `{SCRIPT}` from the repo root to discover `FEATURE_DIR`. Then read these artifacts:

- `spec.md` -- the feature specification (requirements, user stories)
- `plan.md` -- the technical plan (architecture, tech stack, file structure)
- `tasks.md` -- the task breakdown (phased, dependency-ordered, with [P] markers)
- `checklists/` -- any requirement quality checklists (if present)
- `remediation.md` -- analyze output (if present)

## Review Dimensions

Evaluate across these 7 dimensions. For each, assign a verdict: **PASS**, **WARN**, or **FAIL**.

### 1. Spec-Plan Alignment
- Does plan.md address every user story in spec.md?
- Are there plan decisions that contradict spec requirements?
- Are non-functional requirements (performance, security, accessibility) covered in the plan?

### 2. Plan-Tasks Completeness
- Does every architectural component in plan.md have corresponding tasks in tasks.md?
- Are there tasks that reference files/patterns not described in plan.md?
- Are test tasks present for critical paths?

### 3. Dependency Ordering
- Are task phases ordered correctly? (setup -> foundational -> stories -> polish)
- Do any tasks reference files/interfaces that haven't been created by an earlier task?
- Are foundational tasks truly blocking, or could some be parallelized?

### 4. Parallelization Correctness
- Are `[P]` markers accurate? (Do tasks marked parallel truly touch different files with no dependency?)
- Are there tasks NOT marked `[P]` that could be parallelized?
- Do `<!-- parallel-group: N -->` groupings respect the max-3 constraint?
- Are there same-file conflicts hidden within a parallel group?

### 5. Feasibility & Risk
- Are there tasks that seem too large? (If a single task touches >3 files or >200 LOC, flag it)
- Are there technology choices in plan.md that contradict the project's existing stack?
- Are there missing error handling, edge case, or migration tasks?
- Does the task count seem proportional to the feature complexity?

### 6. Constitution & Standards Compliance
- Read `.specify/memory/constitution.md` and check plan aligns with project principles
- Check that testing approach matches the project's testing standards (80% coverage, TDD if required)
- Verify security considerations are addressed (path validation, input sanitization, etc.)

### 7. Implementation Readiness
- Is every task specific enough for an LLM to execute without ambiguity?
- Do all tasks include exact file paths?
- Are acceptance criteria clear for each user story phase?

## Output Format

```markdown
# Pre-Implementation Review

**Feature**: {feature name from spec.md}
**Artifacts reviewed**: spec.md, plan.md, tasks.md, [others if present]
**Review model**: {your model name} (should be different from the model that generated the artifacts)
**Generating model**: {model used for Phases 1-6, if known}

## Summary

| Dimension | Verdict | Issues |
|-----------|---------|--------|
| Spec-Plan Alignment | PASS/WARN/FAIL | brief note |
| Plan-Tasks Completeness | PASS/WARN/FAIL | brief note |
| Dependency Ordering | PASS/WARN/FAIL | brief note |
| Parallelization Correctness | PASS/WARN/FAIL | brief note |
| Feasibility & Risk | PASS/WARN/FAIL | brief note |
| Standards Compliance | PASS/WARN/FAIL | brief note |
| Implementation Readiness | PASS/WARN/FAIL | brief note |

**Overall**: READY / READY WITH WARNINGS / NOT READY

## Findings

### Critical (FAIL -- must fix before implementing)
1. ...

### Warnings (WARN -- recommend fixing, can proceed)
1. ...

### Observations (informational)
1. ...

## Recommended Actions
- [ ] {specific action to address each FAIL/WARN}
```