Skip to main content
skill CX Codex

code-refactoring — Claude Code skill: what it does, how to install

This skill turns a refactoring request into a behavior-aware plan with clear guardrails, reviewable slices, and a defined next step.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add akillness/jeo-skills --skill code-refactoring -a claude-code
Open on GitHub

What code-refactoring does

code-refactoring helps turn a cleanup request into a focused refactoring brief. It covers a narrow local change, a fragile legacy area, a repeated migration or codemod, and a risky diff that needs to be reshaped before review.

The skill asks the agent to choose one mode, state the behavior that must remain intact, and select a verification path. That path can use tests, type checks, linting, snapshots, captured examples, or a manual smoke check. Work is then split into small slices such as renames, extraction, duplicate removal, mechanical migration, and follow-up verification. Its available tools are Read, Grep, Glob, Bash, and Write.

A symbol inventory belongs with codebase-search; this skill routes that request away instead of forcing a refactoring plan.

What it helps with

  • untangle a crowded function, component, service, or module
  • capture legacy behavior before changing its structure
  • plan a repeated API or naming migration
  • reshape a mixed cleanup and semantic-change diff
  • define checks for a behavior-preserving refactor

Example prompts for the agent

  • Create a refactoring brief for this tangled function and state which behavior must stay unchanged.
  • Plan a freeze-first cleanup for this legacy module, including a guardrail and small reviewable slices.
  • Design a migration brief for this repeated API change with source and target patterns, exceptions, and rollback.

How to install code-refactoring

1Skills CLI (Vercel)

npx skills add akillness/jeo-skills --skill code-refactoring -a claude-code

2Manually: put the files in place

~/.claude/skills/code-refactoring/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/code-refactoring/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about code-refactoring

How do I install code-refactoring in Claude Code?

Run npx skills add akillness/jeo-skills --skill code-refactoring -a claude-code. The skill file will be at ~/.claude/skills/code-refactoring/SKILL.md.

What does code-refactoring do?

It selects a refactoring mode, defines how current behavior will be checked, and organizes the work into small slices. The resulting brief also records open risks and the next handoff.

When should I use another skill instead?

Use debugging for failure diagnosis, code-review for judging a concrete diff, testing-strategies for an organization-wide validation plan, and codebase-search for symbol or call-site inventory.

Similar skills

All skills for Code review and refactoring →

From the same set46

react-best-practices A skill that audits React and Next.js performance: it traces request waterfalls, extra bundle JS, server-client boundary mistakes and wasted rerenders. CX Codex +1 399installs rtk Installs and wires RTK (Rust Token Killer) so shell command output reaches your agent in compact form. Useful when logs and diffs eat the context window. CX Codex +1 671installs graphify Drives the graphify CLI to create and inspect code knowledge graphs. Useful for tracing structural links across a repo and scoping diffs before code reviews. CX Codex +1 657installs data-analysis A skill that walks the agent through dataset analysis: quality checks first, then the right method, then findings with caveats. Useful when you have an export and need an answer, not just code. CX Codex +1 598installs technical-writing Writes internal technical documents: specs, architecture docs, ADRs, runbooks, migration plans and developer-facing guides. CX Codex +1 544installs backend-testing backend-testing turns an unclear backend testing request into a concrete test packet. Use it for APIs, services, repositories, auth flows, and flaky CI suites. CX Codex +1 497installs design-system Defines or refactors shared frontend UI tokens, primitive naming, and visual rules before individual screen styling. Keeps dashboards and marketing pages visually aligned. CX Codex +1 488installs responsive-design The skill turns a vague “breaks on mobile” report into one named responsive surface, a strategy packet and a verification plan. CX Codex +1 478installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor