refactor · git:20260505.82ceb95 · 2026-05-05 · sha256 8d45ba7c2a938460

refactor git:20260505.82ceb95A

Immutable. This exact content never changes and is served at /api/v1/blob/8d45ba7c2a938460.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_7dr3g65iwcasjqwr/8d45ba7c2a938460ed7ebd79f38f07b5711fee5ade20bf4b012cdec59b548a97.json

Then /plugin install refactor@markdownregistry-7dr3g65iwcasjqwr in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
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`.