code-refactor

Installation
SKILL.md

Execute safe, targeted refactoring by analyzing code and providing actionable steps.

Process

  1. Identify context:

    • If code changes are involved: run jj diff -s first to see changed files; then use jj diff -- path to restrict to specific files/directories
    • If the user specified specific files or paths, focus on those
    • Understand the refactoring goal (extract function, rename, simplify, etc.)
  2. Analyze the code:

    • Identify safe refactoring transformations and structural changes
    • Identify over-engineered areas to simplify, dead code to remove
    • Research idiomatic refactoring patterns for the language (use WebSearch/WebFetch)
  3. Synthesize findings into concrete refactoring steps

Output

Present a refactoring plan with:

Related skills
Installs
8
Repository
sirn/dotfiles
GitHub Stars
8
First Seen
Mar 3, 2026