refactor-safely
Skill3 starsChanged 32 days agoMITView on GitHub
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.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- rumotion/ai-agent-project-templatetheir own version, first seen Nov 1, 2026
- yaohuangguan/remote-arctheir own version, first seen Nov 1, 2026
- Remote-Arc/remote-arctheir own version, first seen Nov 1, 2026
- VelimirMueller/claude-skillstheir own version, first seen Nov 1, 2026
- rpraharaj/ai-sdlctheir own version, first seen Nov 1, 2026
- yaohuangguan/agent-playbooktheir own version, first seen Nov 1, 2026
Used with
Projects with it also use audit-test-suite, change-data-safely and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
yaohuangguanSkillaudit-test-suite
Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.
Also in 3 projects that use this
yaohuangguanSkillchange-data-safely
Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.
Also in 3 projects that use this
SauravSrivastavSkilldebug-failure
Diagnose a failing test, command, or runtime behavior using evidence and produce a minimal verified fix.
Also in 3 projects that use this
ficaviolaodorata520Skillsecurity-pass
Review an MCP server for common security gaps: LLM-facing surfaces as injection vector (tools, resources, prompts, descriptions), scope blast radius, destructive ops without consent, upstream auth shape, input sinks (URL / path / roots / shell / sampling / schema strictness / ReDoS), tenant isolation, leakage through errors and telemetry, unbounded resources, and HTTP-mode deployment surface. Use before a release, after a batch of handler changes, or when the user asks for a security review, audit, or hardening pass. Produces grouped findings and a numbered options list.
Also in 3 projects that use this
Codagent-AISkillimplement-change
Implements an approved change in one continuous session, with tiered test runs. Use when asked to implement a change from its approved definition, or to invoke codagent:implement-change.
Also in 5 projects that use this
- +6 more from yaohuangguan
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- tirth8205/code-review-graph★ 33ksame name
- techygarg/lattice★ 209same name
- VelimirMueller/ai-development-skills★ 7same name
- VelimirMueller/claude-skills★ 7same name
- Remote-Arc/remote-arc★ 5same name
- yaohuangguan/remote-arc★ 5same name
- hamakyo/okf-skills★ 2same name
- imMamdouhaboammar/get-things-done★ 2same name
- contextosai/skills★ 1same name
- exactbee/claude-code-workflow★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .ai-badger/AGENTS.mdAGENTS.md
- .ai-badger/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .ai-badger/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-raccoon-memorySkill
- archifySkill
- artifact-verificationSkill
- auto-wmSkill
- browser-usageSkill
- call-behavioristSkill
- code-review-checklistSkill
- code-review-evidenceSkill
- commit-reminderSkill
- complete-project-scope-code-reviewSkill
- create-task-specSkill
- debug-issueSkill
- den-refreshSkill
- design-gate-auditSkill
- design-testsSkill
- differential-feature-refactorSkill
- documentation-drift-auditSkill
- documentationSkill
- evidence-first-researchSkill
- explore-codebaseSkill
- feed-badgerSkill
- git-workSkill
- humanizerSkill
- maintain-agent-instructionsSkill
- mcp-indexSkill
- multi-agent-communicationSkill
- multi-lane-report-assemblySkill
- owner-gate-reviewSkill
- pre-push-gate-debuggingSkill
- prompt-markersSkill
- qaSkill
- quick-taskSkill
- research-record-auditSkill
- review-changesSkill
- review-gate-diff-verificationSkill
- review-testsSkill
- scripts-tooling-refactorSkill
- semantica-knowledge-graphSkill
- send-messageSkill
- spec-driven-refactoringSkill
- status-reportSkill
- task-decompositionSkill
- taskSkill
- test-economySkill
- welcome-ai-badgerSkill
- worktree-agent-isolationSkill
The file
Files
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

