refactorkit

refactorkit is a skill for Claude Code from mimukit/skills. It costs 69 tokens per session (3,530 once invoked), scanned A, original, MIT.

A codebase survey that examines how a project's parts are organised, how often they change, and how they are tested, then recommends one structural improvement.

In plain words
What is it for?
It helps answer where to refactor, identify costly module boundaries, rank possible improvements, and write one reviewable Markdown proposal.
Why use it?
It gives you a reasoned refactoring proposal without changing source code or quietly making decisions on your behalf.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit It helps answer where to refactor, identify costly module boundaries, rank possible…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mimukit/skills/refactorkit
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.

Any agent
npx skills add mimukit/skills --skill refactorkit
Clone the repo
git clone --depth 1 https://github.com/mimukit/skills

Made for: Claude Code.

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 refactorkit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mimukit/skills/refactorkit.svg)](https://agentmods.dev/skills/mimukit/skills/refactorkit)
Your own site
<a href="https://agentmods.dev/skills/mimukit/skills/refactorkit"><img src="https://agentmods.dev/badge/skills/mimukit/skills/refactorkit.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,530 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.00069 $0.03530
Opus 5 $0.00034 $0.01765
Sonnet 5 $0.00014 $0.00706
Haiku 4.5 $0.00007 $0.00353

Measured 6d ago against content hash 0d82520f5049, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

refactorkit 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 6d 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.

skills/refactorkit/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

refactorkit

The survey you run on a codebase you already have. refactorkit reads the repo, meaning its churn, its module shapes, and its tests, finds where the structure is costing you, ranks the candidates against two gates, crowns exactly one, and writes it up as a proposal somebody can argue with.

It is a single procedure, optionally scoped to a subtree (/refactorkit src/payments). There are no modes: everything it does, it does the same way on every run.

It proposes, it never edits

refactorkit writes exactly one Markdown file and touches no source code. No moves, no renames, no extractions, no "small tidy-up while I'm in here." The name says refactor; the skill only ever says where and why, and the doing belongs to whoever picks the proposal up. That boundary is the whole reason the report can be trusted, because a survey that also edits has already decided, and you're reading a rationalization rather than a recommendation.

Edit is deliberately absent from this skill's tools. The one file it creates is new, so Write covers it.

When this fires

"Where should I refactor this", "what's wrong with this codebase's structure", "find refactoring opportunities", "this code is hard to change", "improve our architecture", "audit the module boundaries", "the seams here are a mess", "/refactorkit".

Four boundaries, one line each:

  • Not a code review. A review reads a diff for defects in work someone just did. refactorkit reads the tree for structure that predates the diff. A "review my changes" request is not this skill.
  • Not documentation. Describing the architecture as it stands is a different job; refactorkit only ever describes an architecture that doesn't exist yet.
  • Not visual design. Nothing here concerns UI, styling, or a design system, despite what "design" suggests when it sits next to "refactor."
  • Not a decision record. refactorkit produces a proposal, not a ratified decision. When the proposal supersedes an existing architecture decision, it says so and routes to whatever records decisions in this repo.

Read the full file on GitHub · 170 lines

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. 6d ago First seen · 170 lines · 69 tokens per session scan A 0d82520f5049

Subscribe to this mod's changes

refactorkit is a skill published in the GitHub repository mimukit/skills (1 stars, last pushed 3d ago), licensed MIT. It adds 69 tokens to every session and 3,530 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

coding-best-practices

Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.

rshankras/claude-code-apple-skills · 55 tokens

release-review

Senior developer-level release review for macOS/iOS apps. Identifies security, privacy, UX, and distribution issues with actionable fixes. Use when preparing an app for release, want a critical review, or before App Store submission.

rshankras/claude-code-apple-skills · 49 tokens

generic-fullstack-code-reviewer

Review full-stack code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md compliance. Enforces TypeScript strict mode, input validation, GPU-accelerated animations, and design system consistency. Use when completing features, before commits, or reviewing pull requests.

travisjneuman/.claude · 64 tokens

generic-react-code-reviewer

Review React/TypeScript code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Enforces TypeScript strict mode, GPU-accelerated animations, WCAG AA accessibility, bundle size limits, and surgical simplicity. Use when completing features, before commits, or…

travisjneuman/.claude · 71 tokens

generic-static-code-reviewer

Review static site code for bugs, security issues, performance problems, accessibility gaps, and CLAUDE.md compliance. Enforces pure HTML/CSS/JS standards, minimal page weight, mobile-first design. Use when completing features, before commits, or reviewing changes.

travisjneuman/.claude · 59 tokens

contribute

Complete contribution workflow using git-town. Create branch → commit → PR → ship. Preflight at every step.

terrylica/cc-skills · 25 tokens