compound-engineering-plugin
compound-engineering-plugin copied to clipboard
feat(ce-code-review): simplification reviewer persona — a delete-list lens
Proposal
Add a simplification reviewer persona to ce-code-review, covering review ground the current roster leaves open.
Motivation
The existing personas cover correctness, structural health (maintainability), and domain lenses — but no persona owns the question "should this diff be this big?" Concretely missing:
- Unrequested surface — features, endpoints, config keys, flags, exports beyond what the change's intent calls for
- Dependency minimalism — a new package where stdlib or an existing canonical helper already does it
- Lean misses — dead code added, near-copies that must change together, single-consumer abstractions
- AI-slop artifacts — narrating comments, defensive noise on trusted paths, silencing casts, deep nesting that early returns flatten
- Feature-flag branching debt — flags branching in 3+ locations with no cleanup path
- Avoidable orchestration — unnecessary serialization, non-atomic related updates
maintainability already covers structural health (coupling, layering, file size, Fowler smells); the boundary is declared in the persona — it owns excess introduced by the diff, findings phrased as delete-lists that name what disappears.
Shape
- New
references/personas/simplification-reviewer.mdmatching the persona contract (anchored confidence calibration, "What you don't flag", JSON output block) - Generic-conditional selection: fires when the diff adds production code surface; skips pure deletions and docs/test/generated-only diffs
finish-review.mdsoft-bucket demotion + Removable surface coverage extended to simplification findings- Contract test persona lists + the demotion-route pin updated
PR attached for review. Validation: bun run test:skill-guards — 797 pass, 0 fail.
Agent Disclosure
Devin CLI · SWE-2 Max