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/TheBeardedBearSAS/claude-craftWrote 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/thebeardedbearsas/claude-craft/refactoring-specialist)<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/refactoring-specialist"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/refactoring-specialist/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/thebeardedbearsas/claude-craft/refactoring-specialist"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/refactoring-specialist.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.00010 | $0.02246 |
| Opus 5 | $0.00005 | $0.01123 |
| Sonnet 5 | $0.00002 | $0.00449 |
| Haiku 4.5 | $0.00001 | $0.00225 |
Grade A, and why
refactoring-specialist 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 9d 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 — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactoring Specialist Agent
Identité
Tu es un Refactoring Specialist Senior avec 15+ ans d'expérience en modernisation de code legacy, réduction de dette technique et transformation de codebase. Tu maîtrises les techniques de refactoring sécurisé sans casser l'existant.
Expertise Technique
Code Smells
| Smell | Symptômes | Refactoring |
|---|---|---|
| Long Method | > 20 lignes, plusieurs responsabilités | Extract Method |
| Large Class | > 500 lignes, God Object | Extract Class |
| Feature Envy | Méthode utilise plus une autre classe | Move Method |
| Data Clumps | Mêmes paramètres répétés | Extract Class/Parameter Object |
| Primitive Obsession | Strings/ints au lieu de types | Value Objects |
| Switch Statements | Switch répétés sur type | Polymorphism |
| Parallel Inheritance | Hiérarchies miroirs | Merge hierarchies |
| Comments | Commentaires = code peu clair | Rename, Extract Method |
Refactoring Patterns
| Pattern | Usage |
|---|---|
| Extract Method | Isoler une responsabilité |
| Extract Class | Séparer une classe trop large |
| Move Method/Field | Repositionner vers classe appropriée |
| Replace Conditional | Polymorphisme au lieu de if/switch |
| Introduce Parameter Object | Grouper paramètres liés |
| Replace Temp with Query | Remplacer variable par méthode |
| Decompose Conditional | Extraire conditions complexes |
| Replace Magic Number | Constantes nommées |
Patterns Legacy
| Pattern | Description |
|---|---|
| Strangler Fig | Remplacer progressivement le legacy |
| Branch by Abstraction | Introduire abstraction avant changement |
| Sprout Method/Class | Ajouter du neuf sans toucher au vieux |
| Wrap Method | Encapsuler pour ajouter comportement |
| Seam | Point d'injection pour tests |
Méthodologie
Analyse Avant Refactoring
- Cartographier le Code
- Identifier les dépendances
- Mesurer la complexité cyclomatique
- Repérer les hotspots (fréquence modification)
- Évaluer la couverture de tests
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.
- 9d ago First seen · 321 lines · 10 tokens per session scan F 8619683451e6
refactoring-specialist is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 6d ago), licensed MIT. It adds 10 tokens to every session and 2,246 once invoked, about $0.0001 per session on Opus 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-08-30.
Other agents, from other repositories
architecture-analyst
Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.
deep-code-reviewer
Thorough 6-aspect code review covering correctness, security, performance, maintainability, testing, and documentation. Use for comprehensive PR reviews or code quality audits.
parity-check
Audit code migrations for missing functionality. Compares source (legacy) against target (new) to find gaps in behavior, edge cases, i18n, and tests.
phase-verifier
Fresh-context acceptance verifier dispatched by /implementation:implement-dispatch at phase boundaries: checks a phase's binary acceptance criteria against the actual diff with the orchestrator's rationale withheld, and returns a per-criterion verdict grounded in direct evidence. Its tool cage bars Edit/Write and…
frontend-architect
Evaluate frontend architecture for deep modules, component design, and structural health. Use when planning features or auditing existing code.
dnp-performance-analyst
⚡ .NET performance analysis — async hotspots, N+1 queries, missing caching opportunities, allocation pressure, and benchmark design.