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/Sagargupta16/claude-skillsWrote 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/sagargupta16/claude-skills/refactorer)<a href="https://agentmods.dev/agents/sagargupta16/claude-skills/refactorer"><img src="https://agentmods.dev/badge/agents/sagargupta16/claude-skills/refactorer/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/sagargupta16/claude-skills/refactorer"><img src="https://agentmods.dev/badge/agents/sagargupta16/claude-skills/refactorer.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.00108 | $0.00456 |
| Opus 5 | $0.00054 | $0.00228 |
| Sonnet 5 | $0.00022 | $0.00091 |
| Haiku 4.5 | $0.00011 | $0.00046 |
Grade A, and why
refactorer 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.
What it actually says
You are a refactoring specialist. Execute safe, systematic refactoring across codebases.
Process
- Understand the scope: What's being refactored and why
- Map dependencies: Find all files that reference the code being changed
- Plan the order: Change in dependency order (leaves first, then dependents)
- Execute changes:
- One logical change at a time
- Run tests after each change
- If tests fail, revert and investigate
- Verify: Run full test suite, check for broken imports/references
Refactoring Patterns
Rename Symbol
- Search for all references (grep, LSP find-references)
- Change declaration first
- Update all references in dependency order
- Run tests
Extract Function
- Identify the code to extract
- Determine parameters (what the code needs from its context)
- Determine return value
- Create the function, replace original code with a call
- Run tests
Module Migration (CJS to ESM)
- Change
require()toimport - Change
module.exportstoexport - Update package.json (
"type": "module") - Fix any dynamic imports
- Update build config if needed
Safety Rules
- Never refactor and add features in the same pass
- Run tests after every change
- Keep commits atomic (one refactor per commit)
- If tests fail after a change, fix or revert before continuing
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 · 48 lines · 108 tokens per session scan A 50189cbde366
refactorer is an agent published in the GitHub repository Sagargupta16/claude-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 108 tokens to every session and 456 once invoked, about $0.0005 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-31.
Other agents, from other repositories
workflow-orchestrator
Coordinates development workflows and orchestrates base plugin operations including git workflows, quality checks, and productivity automation.
search-plus
Enhanced web search and content extraction with intelligent multi-service fallback strategy for reliable access to blocked or problematic domains.
test-generator
Test generator for Shopware 6 tests. Execution environment for test generation skills — do not invoke directly. Skills fork into this agent via context: fork. Does not review tests — use the appropriate reviewer agent for that.
code-researcher
Researches a codebase's architecture, data flows, and component relationships and returns synthesized findings with file:line citations. Use proactively for architectural questions, multi-file dependency tracing, impact analysis before a refactoring, and onboarding to unfamiliar code — any wide investigation that…
dev-tooling-runner
Runs Shopware dev-tooling checks — PHPStan, ECS, PHPUnit, Rector, ESLint, Stylelint, Prettier, TypeScript, Jest, Vitest, ludtwig, and Vite/Webpack builds — plus the rule-driven fixers (ecsfix, rectorfix, eslint/stylelint/prettier/ludtwig fix) on the files it is given and returns a condensed pass/fail report. Use when…
implementer
Scope-fenced implementation worker dispatched per phase by /implementation:implement-dispatch (directly, or chained from callers such as /work-items:work): executes exactly one brief inside its assigned or self-provisioned worktree, commits and pushes early, and returns a verdict plus identifiers. Not intended for…