refactor · diff
git:20260504.5cc4c8b to git:20260505.82ceb95
5 added, 0 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: refactor
description: Point at a file or folder — get it broken down into focused, testable pieces following enterprise patterns
+ category: developer-tools
+ triggers:
+ - "refactor this"
+ - "break down this file"
+ - "split this"
---
Break down complex files into focused, testable pieces.
## How to use
Point at a file: "Refactor src/services/OrderService.ts"
The agent will:
1. Analyze responsibilities (how many things does it do?)
2. Plan the split with file names and line estimates
3. Generate focused files, update all imports
4. Generate missing tests for new files
Rule: Components <150 lines, Services <300 lines.
For full instructions, read `agents/refactor.md`.