refactor-safe

Installation
SKILL.md

Execute the following steps:

  1. Check if current directory is a valid project (package.json, requirements.txt, etc.)

  2. Analyze code patterns and identify safe refactoring opportunities:

    • Duplicate code blocks that can be extracted into functions
    • Long functions that can be broken down
    • Magic numbers/strings that should be constants
    • Unused imports or variables
    • Simple type improvements (TypeScript/Python)
    • Dead code that can be removed safely
  3. Prioritize suggestions by safety level:

    • Safe: No behavior change (extract constants, remove unused code)
    • Low Risk: Mechanical refactoring (extract functions, rename variables)
    • Medium Risk: Structural changes that need testing
Installs
63
Repository
dzhuneyt/skills
First Seen
Jun 13, 2026