refactor · diff
git:20260504.fa29afc to git:20260504.5cc4c8b
15 added, 1 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
---
- Read `agents/refactor.md`. Analyze the code, identify responsibilities, split into focused files, update all imports and tests.
+
+ 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`.