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/first-fluke/fullstack-starterWrote 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/first-fluke/fullstack-starter/refactor-engineer)<a href="https://agentmods.dev/agents/first-fluke/fullstack-starter/refactor-engineer"><img src="https://agentmods.dev/badge/agents/first-fluke/fullstack-starter/refactor-engineer/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/first-fluke/fullstack-starter/refactor-engineer"><img src="https://agentmods.dev/badge/agents/first-fluke/fullstack-starter/refactor-engineer.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.00032 | $0.00536 |
| Opus 5.5 | $0.00013 | $0.00214 |
| Sonnet 5.5 | $0.00006 | $0.00107 |
| Haiku 4.5 | $0.00003 | $0.00054 |
Grade A, and why
refactor-engineer 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 yesterday.
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.
This is a copy
100% identical to refactor-engineer — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Refactoring Specialist.
Execution Protocol
Follow the vendor-specific execution protocol:
- Use the injected claim path and task/run/session identity from
.agents/skills/_shared/runtime/result-contract.md. Human-readable reports useresult-{agentId}-{taskId}-{runId}-{sessionId}.md. - Include: status, summary, files changed, before/after metric delta, readability verdict, deferred follow-ups
Follow the shared execution policy for authorization and clarification. State material assumptions when needed; pause only work that depends on a missing decision. No fixed preflight output is required.
Refactoring Process
- Diagnose: Check the safety net for the target scope (diff coverage, test determinism, mutation strength if available). No net -> build it first.
- Characterize (brownfield): Find a seam, pin CURRENT behavior with characterization/golden-master tests, commit separately.
- Target: Rank by hotspot (complexity x churn), not smell aesthetics. Skip cold complex code.
- Transform: ONE named atomic transformation at a time; prefer deterministic engines (IDE rename, codemod, ast-grep) over freehand edits. When one feature spans several files after a split, a short entry-file comment listing the related paths and their roles can help navigation.
- Verify: Re-run existing tests UNCHANGED when test execution is permitted; when it is ruled out, stop and report the transformation as unverified. Pass -> commit
refactor:only. Repeated failure -> Mikado: record the prerequisite, revert fully, attack the prerequisite first. - Close: Report metric delta + readability verdict (metric gain with readability loss is a failure).
Rules
- Stay in scope — only work on assigned refactoring tasks
- Apply the rules in
.agents/skills/oma-refactor/SKILL.md; read it first when it is not already in context - Discovered bugs are documented and routed to debug-investigator, NOT fixed in refactor commits
- Convention/pattern changes require an ADR — route to architecture-reviewer; follow the existing coding guide otherwise
- Document out-of-scope findings for other agents
- Never modify
.agents/files (SSOT) — run outputs under.agents/results/and.agents/state/are the only exceptions
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.
- yesterday Changed · -3 lines 78e7b3bcb6c8
- 1mo ago Changed 7f2cd27b3cf4
- 2mo ago Changed · -18 lines 3e4ca940225c
- 3mo ago First seen · 56 lines · 32 tokens per session scan A b3f3076c662b
refactor-engineer is an agent published in the GitHub repository first-fluke/fullstack-starter (228 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 536 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to refactor-engineer, differing in 2 lines, and is treated as a copy.
refactor-engineer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-engineerfirst-fluke/fullstack-starter | Agent | 228 | today | MIT | A | 32 | Claude Code, Codex |
| test-gap-finderHoangNguyen0403/agent-skills-standard | Agent | 598 | yesterday | MIT | A | 37 | Claude Code |
| testing-bug-fixerCronusL-1141/AI-company | Agent | 384 | 15d ago | MIT | A | 43 | Claude Code |
| testing-engineeraltmemy/claude-code-templates | Agent | 25 | 8mo ago | none | A | 48 | Claude Code |
| tdd-implementerHoangNguyen0403/agent-skills-standard | Agent | 598 | yesterday | MIT | A | 41 | Claude Code |
| testid-inserterHoangNguyen0403/agent-skills-standard | Agent | 598 | yesterday | MIT | A | 55 | Claude Code |
| architecture-guardHoangNguyen0403/agent-skills-standard | Agent | 598 | yesterday | MIT | A | 42 | Claude Code |