akillness avatar

Code Refactoring

This is a structured prompt for turning messy code into cleaner code without changing what it does. It forces you to pick one refactor mode (local cleanup, freeze-first for fragile legacy code, repeated migration, or diff reshaping) and make your behavior guardrail explicit before you start editing. The process is built around small, reviewable slices and honest routing to other skills when the real job is debugging, code review, testing strategy, or performance work. It's opinionated about separating structural cleanup from semantic changes and not shipping giant rewrites. If you've ever had a cleanup PR explode in review or touched legacy code that broke in weird ways, this gives you a repeatable checklist to avoid that.

skills.sh installs
251
GitHub stars
22
last updated
Jun 3, 2026

Install

$ npx -y skills add akillness/oh-my-skills --skill code-refactoring --agent claude-code

Installs into .claude/skills of the current project.

Files

Code Refactoring

Use this skill when the job is to improve structure without changing intended behavior.

The center of the skill should stay small and repeatable:

  1. identify the cleanup packet you actually have,
  2. choose one refactor mode,
  3. make the behavior guardrail explicit,
  4. stage the work in reviewable slices,
  5. verify and route remaining work honestly.

Read these support docs before handling unfamiliar cleanup work:

Sponsors

Details

Repository
github.com/akillness/oh-my-skills
Category
Code Review & Quality
First seen
Jun 3, 2026

More from akillness/oh-my-skills

All 81
1absolutelyskilled avatarclean-codeabsolutelyskilled/absolutelyskilledclean code230skills.sh installs
2davila7 avatarnaming-analyzerdavila7/claude-code-templatesSuggest better variable, function, and class names based on context and conventions.218skills.sh installs
3buiducnhat avatarreviewbuiducnhat/agent-skillsreview210skills.sh installs
4daffy0208 avatarquality-auditordaffy0208/ai-dev-standardsComprehensive quality auditing and evaluation of tools, frameworks, and systems against industry best practices with detailed scoring across 12 critical dimensi201skills.sh installs
5absolutelyskilled avatarclean-architectureabsolutelyskilled/absolutelyskilledclean architecture187skills.sh installs
6ruvnet avatargithub-code-reviewruvnet/claude-flowgithub code review148skills.sh installs