refactor

Scan source code for refactoring opportunities and document findings for review.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/im9/inboil --skill refactor-im9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/im9/inboil/tree/main/.claude/skills/refactor
Command: npx skills add https://github.com/im9/inboil --skill refactor-im9

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Refactor skill helps software teams identify and fix code-quality issues across a project without altering behavior, visuals, or the public API.

Core Features & Use Cases

  • Read-only scanning of the codebase to surface dead code, oversized components, redundant state, near-duplicate code, and potential bug risks.
  • Guided, phase-based workflow that outputs prioritized findings for review before any changes are made.
  • Guardrails to ensure no new dependencies or features are introduced, with verification via pnpm check after changes.

Quick Start

Scan your repository to locate refactor opportunities and prepare a prioritized fix plan for review.

Frequently Asked Questions about refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find dead code and refactor opportunities in a Svelte codebase?

To find dead code and refactor opportunities in a Svelte codebase, you can run a read-only scan on the src/ directory. This surfaces oversized components, redundant state, and near-duplicate code for review before any changes are applied.

What is the safest way to fix code quality issues without changing behavior?

The safest way to fix code quality issues without changing behavior is using a phase-based workflow that presents findings for approval before applying fixes. It ensures no new dependencies are introduced and verifies stability using pnpm check after edits.

How do I identify redundant state and potential bug risks in TypeScript files?

You identify redundant state and potential bug risks in TypeScript files by running a static analysis scan across the source codebase. This read-only phase documents inefficiencies and bug risks, creating a prioritized plan for subsequent review.

Can I use this refactoring tool to remove copy-paste code without adding new dependencies?

Yes, you can remove copy-paste code without adding new dependencies. The scan identifies near-duplicate code, and the applied fixes strictly enforce guardrails that prevent introducing new dependencies or altering the public API.

What are the limitations of automated code maintenance scans for large projects?

A limitation of automated code maintenance scans is that they require explicit user approval before applying any fixes. The process intentionally stops after surfacing findings to ensure no behavioral changes occur without human review.