Claude
Skills
Sign in
โ† Back

flow-verifier

Included with Lifetime
$97 forever

Verify plan consistency, generate summaries, maintain plan health. Use for review, verification, summaries, or plan maintenance. Mostly read-only with maintenance operations.

Code Review

What this skill does


# Flow Verifier

Verify plan consistency, generate summaries, and maintain plan health. This skill combines read-only inspection (verify, review) with maintenance operations (summarize, compact, rollback).

## When to Use This Skill

Activate when the user wants verification:
- "Review the plan"
- "Verify the status"
- "Check if we're done"
- "Is the implementation complete?"
- "Validate the structure"
- "Are there any issues?"
- "Check for inconsistencies"
- "Verify all tasks are tracked"

## Review Philosophy

**Read-Only Inspection**: This Skill observes and reports, never modifies.

**What We Check**:
- Status markers match actual state
- No phantom tasks (DASHBOARD promises what doesn't exist)
- Brainstorming complete before implementation starts
- Task structure follows Flow rules
- Action items are all checked off when complete
- File references are valid

**Tools Available**: `Read`, `Grep`, `Glob` (read-only tools only)

## Review Checklist

### 1. Status Marker Consistency

**Check**: Do status markers reflect actual state?

**How to verify**:
```bash
# Find all IN PROGRESS items
grep -r "๐Ÿšง IN PROGRESS" .flow/

# Find all COMPLETE items
grep -r "โœ… COMPLETE" .flow/

# Find all PENDING items
grep -r "โณ PENDING" .flow/
```

**Common issues**:
- Task marked ๐Ÿšง IN PROGRESS but all iterations are โœ… COMPLETE
- Iteration marked โณ PENDING but has implementation section
- Multiple items marked ๐Ÿšง IN PROGRESS (should only be one active)

**Example problem**:
```markdown
### ๐Ÿšง Iteration 2: Error Handling

**Status**: โœ… COMPLETE (2025-10-30)  โ† MISMATCH!
```

**Report**:
```
โŒ Status Marker Mismatch
- Iteration 2 header shows ๐Ÿšง IN PROGRESS
- Implementation section shows โœ… COMPLETE
- Action: Update header to match implementation status
```

### 2. Phantom Task Detection

**Check**: Does every task listed in DASHBOARD.md have a corresponding file?

**How to verify**:
```bash
# List all tasks mentioned in DASHBOARD
grep "Task [0-9]" .flow/DASHBOARD.md

# Check if task files exist
ls .flow/phase-*/task-*.md
```

**Common issues**:
- DASHBOARD lists "Task 5" but `.flow/phase-2/task-5.md` doesn't exist
- Task file references non-existent iterations

**Example problem**:
```markdown
DASHBOARD.md:
- ๐Ÿšง **Task 3**: API Integration (2/4 iterations)

But: .flow/phase-2/task-3.md doesn't exist
```

**Report**:
```
โŒ Phantom Task Detected
- DASHBOARD.md references Task 3: API Integration
- File .flow/phase-2/task-3.md does not exist
- Action: Create task file or remove from DASHBOARD
```

### 3. Implementation Gate Verification

**Check**: Is implementation starting before brainstorming is complete?

**How to verify**:
```bash
# Check if iteration has brainstorming
grep -A 20 "## Brainstorming" task-file.md

# Check brainstorming status
grep "Brainstorming.*Status.*COMPLETE" task-file.md

# Check if implementation started
grep "## Implementation" task-file.md
```

**Gate Rule**: If iteration has brainstorming, it must be โœ… COMPLETE before implementation starts.

**Example problem**:
```markdown
## Brainstorming
**Status**: ๐Ÿšง IN PROGRESS

## Implementation
**Status**: ๐Ÿšง IN PROGRESS  โ† GATE VIOLATION!
```

**Report**:
```
โŒ Implementation Gate Violation
- Iteration 2 has brainstorming IN PROGRESS
- Implementation section already started
- Action: Complete brainstorming before implementing
```

### 4. Task Structure Validation

**Check**: Does task follow the Golden Rule (Standalone XOR Iterations)?

**Golden Rule**: Tasks have EITHER:
- Direct action items (standalone task)
- OR iterations with action items in each iteration
- NEVER both

**How to verify**:
```bash
# Check if task has direct action items
grep -A 5 "## Action Items" task-file.md

# Check if task has iterations
grep "### " task-file.md | grep "Iteration"
```

**Example problem**:
```markdown
# Task 3: API Integration

## Action Items
- [ ] Create StripeClient
- [ ] Add error handling

## Iterations

### Iteration 1: Setup
...
```

**Report**:
```
โŒ Task Structure Violation (Golden Rule)
- Task 3 has both direct action items AND iterations
- Golden Rule: Tasks must be EITHER standalone OR have iterations, never both
- Action: Move action items into iterations or remove iterations
```

### 5. Action Item Completion Check

**Check**: Are all action items checked off when iteration is marked complete?

**How to verify**:
```bash
# Find iteration marked COMPLETE
grep -B 2 "Status.*COMPLETE" task-file.md

# Check for unchecked action items in that iteration
grep -A 30 "### โœ… Iteration" task-file.md | grep "\[ \]"
```

**Example problem**:
```markdown
### โœ… Iteration 2: Error Handling
**Status**: โœ… COMPLETE

#### Action Items
- [x] Create ErrorMapper
- [ ] Add tests  โ† UNCHECKED!
- [x] Integrate with client
```

**Report**:
```
โŒ Incomplete Action Items
- Iteration 2 marked โœ… COMPLETE
- But action item "Add tests" is unchecked
- Action: Either complete the item or mark iteration as IN PROGRESS
```

### 6. File Reference Validation

**Check**: Do all file references point to existing files?

**How to verify**:
```bash
# Find file references in task files
grep -r "\`.*\.ts\`" .flow/ | grep -v "example"

# Check if referenced files exist
ls path/to/file.ts
```

**Example problem**:
```markdown
**Files Modified**:
- src/payment/StripeClient.ts
- src/payment/DoesNotExist.ts  โ† FILE DOESN'T EXIST!
```

**Report**:
```
โš ๏ธ Invalid File Reference
- Iteration 2 references src/payment/DoesNotExist.ts
- File does not exist in repository
- Action: Verify file path or remove invalid reference
```

## Status Markers Reference

### Valid Status Markers

**Task/Iteration Status**:
- โœ… `COMPLETE` - Work finished and verified
- ๐Ÿšง `IN PROGRESS` - Currently working on this
- โณ `PENDING` - Not started yet
- ๐ŸŽจ `READY` - Ready to implement (brainstorming complete)
- โŒ `CANCELLED` - Work abandoned
- ๐Ÿ”ฎ `DEFERRED` - Moved to future version

**Phase Status**:
- โœ… `COMPLETE` - All tasks in phase done
- ๐Ÿšง `IN PROGRESS` - Currently working in this phase
- โณ `PENDING` - Phase not started

### Status Marker Lifecycle

**Iteration Lifecycle**:
```
โณ PENDING
  โ†“ (brainstorming started)
๐Ÿšง IN PROGRESS (brainstorming)
  โ†“ (brainstorming complete, ready to implement)
๐ŸŽจ READY
  โ†“ (/flow-implement-start)
๐Ÿšง IN PROGRESS (implementing)
  โ†“ (/flow-implement-complete)
โœ… COMPLETE
```

**Common Mistakes**:
- โŒ Skipping ๐ŸŽจ READY (going from brainstorming to implementation without marking ready)
- โŒ Multiple items marked ๐Ÿšง IN PROGRESS (should only be one active)
- โŒ Marking โœ… COMPLETE with unchecked action items
- โŒ Using โณ PENDING after implementation started

## Common Review Patterns

### Pattern 1: Full Plan Review

**When**: User asks "review the entire plan"

**Steps**:
1. Read DASHBOARD.md to understand structure
2. For each phase:
   - Verify phase status matches task statuses
   - Check all tasks listed have files
3. For each task:
   - Verify task status matches iteration statuses
   - Check structure (standalone XOR iterations)
4. For each iteration:
   - Verify status marker consistency
   - Check action items if marked complete
5. Report all findings

**Output format**:
```markdown
## Plan Review Results

**Summary**: 15 items checked, 2 issues found

### โœ… Passing Checks (13)
- All phase statuses consistent
- No phantom tasks detected
- Task structure valid
- ...

### โŒ Issues Found (2)

#### Issue 1: Status Marker Mismatch
- **Location**: Phase 2, Task 3, Iteration 2
- **Problem**: Header shows ๐Ÿšง but implementation shows โœ…
- **Action**: Update header to โœ… COMPLETE

#### Issue 2: Unchecked Action Items
- **Location**: Phase 2, Task 4, Iteration 1
- **Problem**: Iteration marked complete but 1 action item unchecked
- **Action**: Complete action item or mark iteration IN PROGRESS
```

### Pattern 2: Task-Specific Review

**When**: User asks "review Task 3"

**Steps**:
1. Read task file
2. Check task status consistency
3. Verify structure (standalone XOR iterations)
4. For each iteration:
   - Status marker consistency
   - Action 
Files: 2
Size: 23.8 KB
Complexity: 33/100
Category: Code Review

Related in Code Review