filipdopita-tech

Refactor Safely — Code Quality skill for Claude Code

Code Quality community

Plan and execute safe refactoring using dependency analysis.

How to install Refactor Safely

Installs to ~/.claude/skills/filipdopita-tech-claude-ecosystem-setup-refactor-safely/SKILL.md

Terminal
mkdir -p ~/.claude/skills/filipdopita-tech-claude-ecosystem-setup-refactor-safely && curl -fsSL https://raw.githubusercontent.com/filipdopita-tech/claude-ecosystem-setup/HEAD/skills/refactor-safely.md -o ~/.claude/skills/filipdopita-tech-claude-ecosystem-setup-refactor-safely/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Refactor Safely does


name: Refactor Safely description: Plan and execute safe refactoring using dependency analysis

Refactor Safely

Use the knowledge graph to plan and execute refactoring with confidence.

Steps

  1. Use refactor_tool with mode="suggest" for community-driven refactoring suggestions.
  2. Use refactor_tool with mode="dead_code" to find unreferenced code.
  3. For renames, use refactor_tool with mode="rename" to preview all affected locations.
  4. Use apply_refactor_tool with the re

Alternatives in Code Quality

  • Refactor — We are about to refactor code 1.6k ★
  • Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
  • Brooks Sweep — Run all Brooks-Lint analyses in one pass, auto-fix safe findings, confirm risky ones 1.5k ★

Full documentation available on GitHub

View Source Repository