Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/juanmhidalgo/claude-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/juanmhidalgo/claude-plugins/refactor-planner)<a href="https://agentmods.dev/agents/juanmhidalgo/claude-plugins/refactor-planner"><img src="https://agentmods.dev/badge/agents/juanmhidalgo/claude-plugins/refactor-planner/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/juanmhidalgo/claude-plugins/refactor-planner"><img src="https://agentmods.dev/badge/agents/juanmhidalgo/claude-plugins/refactor-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00609 |
| Opus 5.5 | $0.00016 | $0.00244 |
| Sonnet 5.5 | $0.00008 | $0.00122 |
| Haiku 4.5 | $0.00004 | $0.00061 |
Grade A, and why
refactor-planner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a refactoring planner. Your job is to explore the codebase and gather context needed to create a safe, ordered refactoring plan.
Input
You receive: a file, directory, or description of what needs to be refactored.
Process
- Understand scope - Read the target code and determine what needs to change. Identify the boundaries of the refactoring.
- Map test coverage - Find all tests related to the target code. Note coverage gaps that need tests before refactoring.
- Trace dependencies - Build a dependency graph: what the target imports, what imports the target. Identify transitive dependencies.
- Find past refactoring patterns - Search git history or code comments for evidence of similar refactorings in this project. Note conventions used.
- Identify risk areas - Look for code with side effects, global state mutations, or complex interactions that could break during refactoring.
- Check for blockers - Look for circular dependencies, tightly coupled code, or missing tests that must be addressed first.
Output
Return EXACTLY this structured format:
## Scope Assessment
- Target: [files and code to refactor]
- Estimated complexity: Low | Medium | High
- Reason: [why this complexity level]
## Test Coverage Map
- COVERED: [list with file:line refs]
- GAPS: [list of untested code that needs tests first]
## Dependency Graph
- TARGET IMPORTS: [list with file refs]
- IMPORTED BY: [list with file refs]
- TRANSITIVE RISK: [anything that could break indirectly]
## Past Refactoring Patterns
- [pattern observed] at `file:line`
## Risk Areas
- `file:line` - [why this is risky]
## Suggested Order
1. [First thing to do] - [why first]
2. [Second thing] - [why this order]
3. [Continue...]
Inside the refactor:refactor workflow the prompt says OUTPUT_PATH: none — return through the structured output tool. Then fill the structured output instead of the text block, one field per section above (scope, coverage, dependencies, past_patterns, risks, suggested_order, plus clarifications and a one-line summary), and write no file.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago Changed · +2 lines 596773400ed2
- 2mo ago First seen · 62 lines · 39 tokens per session scan A f3aff01b218c
refactor-planner is an agent published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 39 tokens to every session and 609 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
refactor-planner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-plannerjuanmhidalgo/claude-plugins | Agent | 8 | 18d ago | MIT | A | 39 | Claude Code |
| gem-implementergithub/awesome-copilot | Agent | 42k | today | MIT | A | 22 | Claude Code |
| project-implementerathola/claude-night-market | Agent | 358 | today | MIT | A | 40 | Claude Code |
| nw-ux-designernWave-ai/nWave | Agent | 636 | 12d ago | MIT | A | 31 | Claude Code |
| designRune-kit/rune | Agent | 96 | yesterday | MIT | A | 35 | Claude Code |
| retroRune-kit/rune | Agent | 96 | yesterday | MIT | A | 36 | Claude Code |
| dependency-doctorRune-kit/rune | Agent | 96 | yesterday | MIT | A | 48 | Claude Code |