title: Code Review: {{target}}

description:
Multi-lens code review workflow for {{target}}.

## Variables
- target: File or directory to review

## Workflow
1. Run each lens via orch consensus (flash + gemini)
2. Analyze findings
3. File actionable items as beads
4. Summarize findings in digest

## Lenses
- bloat: size, complexity, SRP violations
- smells: readability, naming, control flow
- dead-code: unused, unreachable, obsolete
- redundancy: duplication, YAGNI, parallel systems

status: open

issue_type: epic


title: Run bloat lens on {{target}}

description:
Run bloat review lens via orch:

```bash
orch consensus "$(cat ~/.config/lenses/bloat.md)" flash gemini --file {{target}} --mode open
```

Look for: file size, function length, complexity, SRP violations.
Record findings for later filing.

issue_type: task

depends_on_id: skills-fvc

type: parent-child

created_by: daemon


title: Run smells lens on {{target}}

description:
Run smells review lens via orch:

```bash
orch consensus "$(cat ~/.config/lenses/smells.md)" flash gemini --file {{target}} --mode open
```

Look for: naming issues, control flow smells, data smells, structural issues.
Record findings for later filing.


title: Run dead-code lens on {{target}}

description:
Run dead-code review lens via orch:

```bash
orch consensus "$(cat ~/.config/lenses/dead-code.md)" flash gemini --file {{target}} --mode open
```

Look for: zombie code, unreachable paths, obsolete shims, import cruft.
Record findings for later filing.


title: Run redundancy lens on {{target}}

description:
Run redundancy review lens via orch:

```bash
orch consensus "$(cat ~/.config/lenses/redundancy.md)" flash gemini --file {{target}} --mode open
```

Look for: duplication, parallel systems, YAGNI violations, consolidation opportunities.
Record findings for later filing.


title: File findings as beads

description:
Review all lens findings and file actionable items as beads:

For each HIGH/MED severity finding:
```bash
bd create --title="{{target}}: <issue>" --type=task --priority=3 --body="Found by <lens> lens review. <details>"
```

Group related findings. Skip LOW severity unless pattern emerges.


title: Summarize review findings

description:
Create summary of code review findings for {{target}}:

- Total findings by severity (HIGH/MED/LOW)
- Top issues by category
- Recommendations for immediate action
- Technical debt assessment

This summary will become the squash digest.