Skip to content
akillness avatar

Code Refactoring

Turn a cleanup packet into one behavior-preserving refactor brief with modes, guardrails, and route-outs.

CCM score
50 of 100
skills.sh installs
523
GitHub stars
62
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the cleanup workflow: packet intake, one primary refactor mode, behavior guardrails, reviewable slices, and verification
  • Includes four refactor modes (local-safe-refactor, behavior-freeze-first, repetitive-migration-codemod, diff-shaping-cleanup) with a quick selector table
  • Enforces one primary mode per brief and separates mechanical cleanup from semantic behavior changes
  • Designed for simplifying tangled code, freezing fragile legacy behavior, and planning migrations; routes diagnosis, review, and tuning elsewhere

Install

$ npx -y skills add akillness/jeo-skills --skill code-refactoring -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

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

Questions

What does the code-refactoring skill do?

code-refactoring turns a cleanup packet into one behavior-preserving refactor brief. It picks one refactor mode, sets a behavior guardrail, and stages the cleanup in reviewable slices so structure improves without changing intended behavior.

When should I use code-refactoring instead of code-review or debugging?

Use code-refactoring when simplifying a tangled function, component or service, or freezing behavior before touching fragile legacy code. For diagnosing wrong behavior, the skill routes you to debugging, and for judging a concrete diff it routes you to code-review.

How do I install the code-refactoring skill?

Run npx -y skills add akillness/jeo-skills --skill code-refactoring -y in your project. Afterward code-refactoring lets the agent plan a behavior-preserving cleanup, split a cleanup-heavy diff into slices, or plan a repeated migration.

Which other skills lead the Code Review and Quality category?

Code-refactoring sits in the Code Review and Quality category alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its distinct focus is refactoring under a behavior guardrail rather than review or architecture.

More from akillness/jeo-skills

All 61

Similar to Code Refactoring

More Code Review & Quality