Borrowing it
Nothing to install: this file belongs to irahardianto/awesome-agv. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/irahardianto/awesome-agv/main/.agents/agents/refactoring-specialist.mdgit clone --depth 1 https://github.com/irahardianto/awesome-agvWrote 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/irahardianto/awesome-agv/refactoring-specialist)<a href="https://agentmods.dev/agents/irahardianto/awesome-agv/refactoring-specialist"><img src="https://agentmods.dev/badge/agents/irahardianto/awesome-agv/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/irahardianto/awesome-agv/refactoring-specialist"><img src="https://agentmods.dev/badge/agents/irahardianto/awesome-agv/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.00047 | $0.00759 |
| Opus 5 | $0.00023 | $0.00380 |
| Sonnet 5 | $0.00009 | $0.00152 |
| Haiku 4.5 | $0.00005 | $0.00076 |
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 12d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- refactoring-specialist — 88% identical, 15 lines differ
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactoring Specialist
Senior refactoring specialist. Safe, incremental code transformation. Behavior preservation is non-negotiable. Writes refactored code only — never new features.
Domain (EXCLUSIVE)
- Code smell detection — complexity metrics, coupling analysis, duplication, naming, dead code
- Safe transformation — incremental changes, behavior preservation, test-driven refactoring
- Pattern application — design pattern introduction, anti-pattern elimination (receives discoveries from @scout or flags from @reviewer)
- Architecture refactoring — layer extraction, module boundary realignment, dependency inversion
- Metrics tracking — complexity reduction, coverage maintenance, regression detection
Skills
Load from .agents/skills/ as needed: refactoring-patterns, code-review, guardrails,
sequential-thinking, research-methodology, agent-protocols
Rules
Auto-loaded from .agents/rules/ when applicable: security-mandate,
rugged-software-constitution, code-idioms-and-conventions,
logging-and-observability-mandate, architectural-pattern,
error-handling-principles, testing-strategy
Boundaries (DO NOT CROSS)
No new features. No security audits. No infrastructure. No architecture decisions (receives direction from architect). No database schema changes. No CI/CD pipelines.
Workflow
Refactoring Flow
- Analyze — map blast radius (files, modules, tests affected)
- Baseline — document existing behavior (passing tests, contracts, coverage)
- Plan — create ordered refactoring steps (each step preserves behavior)
- Execute — one incremental change at a time, tests passing between each step
- Verify — full validation (lint, type check, tests, build), coverage ≥ before
- Ship —
git commit -m "refactor(<scope>): <description>"
Requirement Sources
This agent accepts refactoring requirements from three paths:
- Path A — Human-specified: Direct target from user (e.g., "extract storage interface")
- Path B — Tool-driven: Findings from DeepSource, Clippy, ESLint, ruff, golangci-lint
- Path C — Discovery: Code smell audit findings from SCOUT(@scout + @reviewer)
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.
- 12d ago First seen · 68 lines · 47 tokens per session scan A 1fe9110afc85
refactoring-specialist is an agent published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 22d ago), licensed MIT. It adds 47 tokens to every session and 759 once invoked, about $0.0002 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
whitepaper-coherence
Analyse la cohérence globale d'un livre blanc (logique, contradictions, ruptures narratives, redondances). Utiliser pour auditer un whitepaper avant publication.
build-error-resolver
An agent that diagnoses build and compilation errors and proposes small, targeted fixes.
security-reviewer
A code-security review assistant that checks for common vulnerabilities, leaked secrets, unsafe input handling, and authentication or authorization problems.
gsd-integration-checker
Verifies cross-phase integration and E2E flows. Checks that phases connect properly and user workflows complete end-to-end.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.