This is the generic copy. If this project has been scaffolded, prefer the unprefixed
refactor-safelyskill: it is.ai-badger/skills/refactor-safely/SKILL.md, and it has this project's extensions and anyproject-local.mdmerged in. This copy has neither.The full procedure is in
SKILL.full.mdbeside this file, unchanged — read it if the project has no.ai-badger/, or runwelcome-ai-badgerto scaffold one.
Refactor Safely
Use when renaming, moving, extracting, or removing code and every affected location must be known before the first edit — a rename that spans call sites, an extraction that changes a signature, or a removal that might delete something still in use. Trigger phrases: "refactor this safely", "rename X everywhere", "is this code still used", "find everything that calls this before I change it", "preview this refactor". Not for reconciling a feature whose implementation has drifted from its intended design — that is `differential-feature-refactor`, a design question to answer first; this skill is the mechanical preview-apply-verify discipline once the refactor's scope is already known.
Refactor Safely by Arasz · 4740872
npx get-skill add arasz/refactor-safely-3 File contents
---name: refactor-safely-3description: >- Use when renaming, moving, extracting, or removing code and every affected location must be known before the first edit — a rename that spans call sites, an extraction that changes a signature, or a removal that might delete something still in use. Trigger phrases: "refactor this safely", "rename X everywhere", "is this code still used", "find everything that calls this before I change it", "preview this refactor". Not for reconciling a feature whose implementation has drifted from its intended design — that is `differential-feature-refactor`, a design question to answer first; this skill is the mechanical preview-apply-verify discipline once the refactor's scope is already known.version: 1.0.0author: ai-badger, after the code-review-graph skill templateslicense: MITplatforms: [linux, macos, windows]scope: defaultmetadata: source: https://skillmd.com/skills/arasz/refactor-safely-3 hermes: tags: [refactoring, dependency-analysis, safety] related_skills: [debug-issue, review-changes, differential-feature-refactor]---> **This is the generic copy.** If this project has been scaffolded, prefer the unprefixed> `refactor-safely` skill: it is `.ai-badger/skills/refactor-safely/SKILL.md`, and it has this project's> extensions and any `project-local.md` merged in. This copy has neither.>> The full procedure is in `SKILL.full.md` beside this file, unchanged — read it if the project has no> `.ai-badger/`, or run `welcome-ai-badger` to scaffold one.
arasz/ai-badger commit 4740872183
Frequently asked questions
Run npx get-skill add arasz/refactor-safely-3 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when renaming, moving, extracting, or removing code and every affected location must be known before the first edit — a rename that spans call sites, an extraction that changes a signature, or a removal that might delete something still in use. Trigger phrases: "refactor this safely", "rename X everywhere", "is this code still used", "find everything that calls this before I change it", "preview this refactor". Not for reconciling a feature whose implementation has drifted from its intended design — that is `differential-feature-refactor`, a design question to answer first; this skill is the mechanical preview-apply-verify discipline once the refactor's scope is already known. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
Arasz (@arasz) published this skill. Their other Agent Skills are listed on their SkillMD profile.