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.
npx skills add event4u-app/agent-config --skill code-refactoringgit clone --depth 1 https://github.com/event4u-app/agent-configWrote 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/skills/event4u-app/agent-config/code-refactoring)<a href="https://agentmods.dev/skills/event4u-app/agent-config/code-refactoring"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/code-refactoring/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/skills/event4u-app/agent-config/code-refactoring"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/code-refactoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 248 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00044 | $0.03125 |
| Opus 5.5 | $0.00018 | $0.01250 |
| Sonnet 5.5 | $0.00009 | $0.00625 |
| Haiku 4.5 | $0.00004 | $0.00313 |
Grade A, and why
code-refactoring 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.
How it starts
The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.
refactorer
When to use
Use this skill when renaming, moving, extracting, or restructuring code — any change that may have downstream effects on callers, interfaces, tests, documentation, or API contracts.
Do NOT use when:
- New feature development (use
feature-planningskill) - Bug fixes that don't involve restructuring (use
bug-analyzerskill)
Before refactoring
- Read the agent docs — check
agents/reference/docs/andagents/settings/contexts/for the area you're refactoring. For modules, also read the project's module-docs directory (path varies by stack — Laravel:app/Modules/{Module}/agents/; Nx:apps/{app}/docs/; mono-repo: per-packagedocs/). See theproject-docsskill for the mapping. - Understand the scope — what exactly needs to change and why?
- Find ALL references — use
code-graph askandviewwithsearch_query_regexto find every caller, implementation, test, and configuration that references the code being changed. If the change is to a closed set — an enum, union, literal type, state machine, role or permission set — identifier search is not enough: the consumers that break are the ones that never name the type. Search by shape as well (switch/match/ if-chains over it, lookup tables keyed by it, validators, serializers, schemas, fixtures, translation keys) and classify each as exhaustive, deliberate fallback, or missing case. Procedure:downstream-changes-mechanics. - Map the impact — create a list of all files that will need changes.
- Decide the verdict, if the refactor is a de-duplication — see the safe-abstraction gate below. An extraction with no recorded verdict is a guess about whether two things are the same thing.
- Present the plan — show the user what will be affected before starting.
Safe-abstraction gate — before merging two things into one
This skill performs extractions; it is therefore the place that decides whether one should happen. A wrong abstraction costs more than the duplication it replaced, because the duplication is visible and the wrong abstraction grows caller flags until nobody can remove it. Ask, before moving any code:
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed 534988a64e13
- 3mo ago First seen · 256 lines · 44 tokens per session scan A 5836834a455c
code-refactoring is a skill published in the GitHub repository event4u-app/agent-config (20 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 3,125 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-31.
code-refactoring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-refactoringevent4u-app/agent-config | Skill | 20 | today | MIT | A | 44 | Claude Code, Codex |
| diagnose-backend-bugQoderAI/better-harness | Skill | 2.5k | 20d ago | MIT | A | 87 | Claude Code, Codex |
| kiro-verify-completiongotalab/cc-sdd | Skill | 3.8k | 1mo ago | MIT | A | 39 | Codex |
| memorix-troubleshootingAVIDS2/memorix | Skill | 958 | 4d ago | Apache-2.0 | A | 36 | Claude Code |
| roblox-performanceTabooHarmony/roblox-brain | Skill | 229 | today | MIT | A | 30 | Claude Code |
| lov-app-professional-designlovstudio/skills | Skill | 72 | yesterday | MIT | A | 79 | Claude Code |
| chatcrystal-debug-recallZengLiangYi/ChatCrystal | Skill | 65 | yesterday | Apache-2.0 | A | 54 | Codex |