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/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.5 | $0.00019 | $0.00304 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (163 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 759 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-08-30.
refactoring-specialist compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactoring-specialistirahardianto/awesome-agv | Agent | 163 | 1mo ago | MIT | A | 47 | Claude Code |
| tdd-implementerHoangNguyen0403/agent-skills-standard | Agent | 598 | today | MIT | A | 41 | Claude Code |
| testid-inserterHoangNguyen0403/agent-skills-standard | Agent | 598 | today | MIT | A | 55 | Claude Code |
| architecture-guardHoangNguyen0403/agent-skills-standard | Agent | 598 | today | MIT | A | 42 | Claude Code |
| test-gap-finderHoangNguyen0403/agent-skills-standard | Agent | 598 | today | MIT | A | 37 | Claude Code |
| confluence-searcherHoangNguyen0403/agent-skills-standard | Agent | 598 | today | MIT | A | 40 | Claude Code |
| reviewerSagargupta16/claude-cost-optimizer | Agent | 47 | 16d ago | MIT | A | 44 | Claude Code |