refactor-cleaner

refactor-cleaner is an agent for Claude Code from MRCalderon3D/everything-game-dev-code. It costs 18 tokens per session (231 once invoked), scanned A, original, MIT.

A code-cleanup role that reduces technical debt, meaning old or complicated work that makes future changes harder.

In plain words
What is it for?
Use it to plan and carry out refactors, record debt, document migrations, and add protections against regressions.
Why use it?
It helps simplify structure and improve maintainability while protecting existing behaviour with documentation and regression checks.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the everything-game-dev-code plugin — 74 skills, 67 commands, 42 agents, 3 hooks, 6 MCP servers shipped together

Good fit Use it to plan and carry out refactors, record debt, document migrations, and add protections against regressions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner
Install

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.

Clone the repo
git clone --depth 1 https://github.com/MRCalderon3D/everything-game-dev-code

Made for: Claude Code.

Or install everything-game-dev-code, the plugin that ships this one along with the rest of its 74 skills, 67 commands, 42 agents, 3 hooks, 6 MCP servers.

Wrote 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.

agentmods badge for refactor-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner/github.svg)](https://agentmods.dev/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner)
Your own site
<a href="https://agentmods.dev/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner"><img src="https://agentmods.dev/badge/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner/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.

agentmods 80×15 button for refactor-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner"><img src="https://agentmods.dev/badge/agents/mrcalderon3d/everything-game-dev-code/refactor-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00231
Opus 5.5 $0.00007 $0.00092
Sonnet 5.5 $0.00004 $0.00046
Haiku 4.5 $0.00002 $0.00023

Measured 1mo ago against content hash 00be7c9b2ed5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refactor-cleaner 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 1mo 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.

agents/refactor-cleaner.md · 41 lines

What it actually says

refactor-cleaner

Role

Reduces technical debt, simplifies architecture, and improves maintainability.

Responsibilities

  • Simplify code and content structure without losing behavior.
  • Make debt visible, scoped, and safe to attack incrementally.
  • Pair refactors with documentation and regression protection.

Uses These Skills

  • continuous-learning
  • gameplay-architecture
  • tdd-workflow
  • verification-loop

Collaborates With

  • code-reviewer
  • architect
  • gameplay-programmer
  • doc-updater

Deliverables

  • refactor plans
  • cleanup patches
  • debt notes
  • migration steps
  • regression protections

Activation Guidance

  • Use this agent when the task clearly belongs to this specialty.
  • Keep engine-neutral outputs free of single-engine implementation detail unless the task is engine-specific.
  • Escalate conflicts in scope, ownership, feasibility, or release risk instead of hiding them in the output.
Changes

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.

  1. 1mo ago First seen · 41 lines · 18 tokens per session scan A 00be7c9b2ed5

Subscribe to this mod's changes

refactor-cleaner is an agent published in the GitHub repository MRCalderon3D/everything-game-dev-code (96 stars, last pushed 10d ago), licensed MIT. It adds 18 tokens to every session and 231 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

gamemaker-gml-specialist

The GML Specialist is the hands-on GML coding authority. They write, review, and refactor GML code with deep knowledge of language features, patterns, style, memory management, and the full GML API surface.

TraftG/opencode-game-studio · 46 tokens

qa-tester

The QA Tester writes detailed test cases, bug reports, and test checklists. Use this agent for test case generation, regression checklist creation, bug report writing, or test execution documentation.

TraftG/opencode-game-studio · 37 tokens

qa-lead

The QA Lead owns test strategy, bug triage, release quality gates, and testing process design. Use this agent for test plan creation, bug severity assessment, regression test planning, or release readiness evaluation.

TraftG/opencode-game-studio · 41 tokens

tools-programmer

The Tools Programmer builds internal development tools: editor extensions, content authoring tools, debug utilities, and pipeline automation. Use this agent for custom tool creation, editor workflow improvements, or development pipeline automation.

TraftG/opencode-game-studio · 40 tokens

ai-programmer

The AI Programmer implements game AI systems: behavior trees, state machines, pathfinding, perception systems, decision-making, and NPC behavior. Use this agent for AI system implementation, pathfinding optimization, enemy behavior programming, or AI debugging.

TraftG/opencode-game-studio · 47 tokens

accessibility-specialist

The Accessibility Specialist ensures the game is playable by the widest possible audience. They enforce accessibility standards, review UI for compliance, and design assistive features including remapping, text scaling, colorblind modes, and screen reader support.

TraftG/opencode-game-studio · 45 tokens