refactor-assistant

refactor-assistant is a skill for Claude Code, Codex from inbharatai/claude-skills. It costs 29 tokens per session (412 once invoked), scanned A, original, MIT.

A code-refactoring assistant for reorganizing existing code, extracting methods, reducing complexity, applying SOLID design principles, and updating older code.

In plain words
What is it for?
Use it to split large methods, simplify complicated code, modernize legacy code, and apply SOLID principles.
Why use it?
It helps improve code structure and maintainability while keeping the focus on an existing codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to split large methods, simplify complicated code, modernize legacy code, and apply SOLID principles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inbharatai/claude-skills/refactor-assistant
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 inbharatai/claude-skills --skill refactor-assistant
Clone the repo
git clone --depth 1 https://github.com/inbharatai/claude-skills

Made for: Claude Code, Codex.

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-assistant

README.md
[![agentmods](https://agentmods.dev/badge/skills/inbharatai/claude-skills/refactor-assistant/github.svg)](https://agentmods.dev/skills/inbharatai/claude-skills/refactor-assistant)
Your own site
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/refactor-assistant"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/refactor-assistant/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-assistant

Your own site · 80×15
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/refactor-assistant"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/refactor-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 412 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.00029 $0.00412
Opus 5 $0.00015 $0.00206
Sonnet 5 $0.00006 $0.00082
Haiku 4.5 $0.00003 $0.00041

Measured 7d ago against content hash 29adc69a0f9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

refactor-assistant 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 7d 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/refactor-assistant/SKILL.md · 68 lines

What it actually says

Refactor Assistant

Overview

Refactor codebases with confidence — extract methods, reduce complexity, apply SOLID principles, and modernize legacy code.

When to Use This Skill

Use Refactor Assistant when you need to:

  • Work with refactor assistant tasks in your project or workflow
  • Automate refactor assistant operations at scale
  • Generate production-quality refactor assistant output quickly

Instructions

When this skill is active, Claude will:

  1. Understand the full context of your refactor assistant request
  2. Apply best practices and conventions for Development
  3. Produce clean, well-structured, production-ready output
  4. Explain key decisions and offer alternatives where relevant

Examples

Example 1 — Basic Usage

User: Help me get started with refactor assistant.

Claude: I'll walk you through the essential steps for refactor assistant in your context...

Example 2 — Advanced Usage

User: I need a production-ready refactor assistant setup with full error handling.

Claude: Here's a complete, production-hardened refactor assistant implementation...

Guidelines

  • Always validate inputs before processing
  • Follow the conventions of the target platform or language
  • Prefer explicit over implicit — clarity beats cleverness
  • Include comments for non-obvious logic
  • Suggest tests or validation steps where appropriate

Dependencies

Required: none

Platforms

Available on: claude.ai, claude-code, api


Part of the claude-skills collection — 183+ skills for Claude.

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. 7d ago First seen · 68 lines · 29 tokens per session scan A 29adc69a0f9c

Subscribe to this mod's changes

refactor-assistant is a skill published in the GitHub repository inbharatai/claude-skills (33 stars, last pushed 6mo ago), licensed MIT. It adds 29 tokens to every session and 412 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

incident-postmortem

Incident post-mortem specialist for writing blameless post-mortems, extracting timelines from logs/events, conducting root cause analysis (5-Why, fishbone), classifying severity, and generating tracked action items. ALWAYS use when writing a post-mortem, reviewing an incident, extracting a timeline, performing root…

johnqtcg/awesome-skills · 98 tokens

log-analyzer

Senior-SRE log analysis specialist. Use when investigating incidents from logs, triaging error spikes, extracting timelines, correlating distributed traces, or separating signal from noise across plain-text, JSON (slog/zap), syslog, journald, container, and Kubernetes logs. ALWAYS use when the user asks to "analyze…

johnqtcg/awesome-skills · 138 tokens

systematic-debugging

Use when debugging, diagnosing, or investigating any bug, test failure, flaky test, race condition, unexpected behavior, build failure, production incident, third-party breakage, root cause analysis, or performance regression before proposing fixes.

johnqtcg/awesome-skills · 49 tokens

evidence-driven-debugging

Use during active debugging when you have a hypothesis to test or need to instrument a running system. Activate for keywords like "debug", "instrument", "log", "trace", "breakpoint", "what's happening at runtime", "production behavior". Pair to investigate-root-cause for the doing-it phase. Always record what you…

duthaho/claudekit · 87 tokens

investigate-root-cause

Use when encountering ANY bug, error, test failure, or unexpected behavior. Activate for keywords like "bug", "error", "failing", "broken", "doesn't work", "unexpected", "crash", "exception", "TypeError", "undefined", stack traces, or any error message. Also trigger when tests fail unexpectedly, when behavior differs…

duthaho/claudekit · 121 tokens

map-codebase

Use when entering an unfamiliar codebase or area, before making non-trivial changes, when onboarding to a new system, or when planning a refactor that touches multiple modules. Activate for keywords like "explore", "map", "find where", "trace", "how does X work", "what calls Y", "scope of change". Produces an…

duthaho/claudekit · 112 tokens