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
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 -yInstalls 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:
- identify the cleanup packet you actually have,
- choose one refactor mode,
- make the behavior guardrail explicit,
- stage the work in reviewable slices,
- 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- Technical Writing520
- Backend Testing503
- Video Production483
- Strix468
- Research Paper Writing466
- Design System464
- Responsive Design457
- Presentation Builder426
- Google Workspace404
- File Organization381
- Survey380
- React Best Practices378
- Task Planning378
- Task Estimation377
- Opencontext371
- Bmad Gds369
- Codebase Search369
- Api Design366
- Looker Studio Bigquery366
- Code Review364
- Api Documentation361
- Log Analysis361
- Database Schema Design359
- Marketing Automation352
Similar to Code Refactoring
More Code Review & Qualitycodex-reviewbenedictking/codex-review517 installscodex review
react-doctorposthog/posthog514 installsDiagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.
technical-debt-assessmentaj-geddes/useful-ai-prompts512 installsAssess, quantify, and prioritize technical debt using code analysis, metrics, and impact analysis. Use when planning refactoring, evaluating codebases, or makin
tldr-codeparcadei/continuous-claude-v3511 installsToken-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.
code-reviewjwynia/agent-skills508 installsProvide structured code review guidance for catching defects and improving quality. This skill should be used when the user asks to 'review this code', 'check f
magento-code-reviewermaxnorm/magento2-agent-skills506 installsReviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before