yeaight7/agent-powerups/safe-refactor
Claude Code and agent skill by yeaight7/agent-powerups
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when code needs restructuring without changing observable behavior.
Install
npx vskill@latest install yeaight7/agent-powerups/safe-refactorSKILL.md
The same SKILL.md was published earlier as yeaight7/agent-powerups/safe-refactor.
Purpose
Restructure code in small, safe steps while preserving all externally observable behavior. Prevents refactor regressions where behavior silently changes.
When to Use
- Code needs structural improvement but its public API must remain unchanged.
- Naming, organization, or duplication needs cleanup after a feature is complete.
- Technical debt needs reduction without introducing risk.
Do not use this skill if there are no existing tests — write tests first.
Inputs
- Code to refactor.
- Existing test suite (required).
- Optional: specific goals (extract function, rename module, remove duplication).
Workflow
- Confirm behavior — Run the test suite. All tests must pass before starting.
- Plan — List the structural changes. Check each for API impact.
- Refactor in small steps — One change at a time, each independently reversible.
- Avoid interface changes — Do not alter public APIs, exported types, or CLI behavior unless explicitly intended.
- Validate after each step — Re-run targeted tests after each meaningful change.
Output
Verification
- [ ] Tests pass before starting
- [ ] Each step is small and independently reversible
- [ ] No unintended API or interface changes introduced
- [ ] Tests pass after each meaningful step
- [ ] Final test suite fully green
Failure Modes
- Missing tests — Stop. Write tests before refactoring. Behavior cannot be verified otherwise.
- Silent API change — If a refactor touches public interfaces, stop and confirm this is intentional.
- Bundled unrelated changes — Keep each step focused. Mixed changes make rollback and blame impossible.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/safe-refactor/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 5
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yeaight7/agent-powerups/safe-refactor)