/hyperpowers:refactoring-safelyfrom hyperpowers
Guides refactoring code in small truth-preserving steps, tracking progress in task docs and verifying with tests after each change.
Ships in hyperpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<skill_overview> Refactor in small truth-preserving steps. Keep the refactor tracked in task docs and stop if behavior starts drifting. </skill_overview>
<rigidity_level> MEDIUM FREEDOM - Keep the change→test→document loop strict, but adapt the exact refactor pattern to the codebase. </rigidity_level>
<quick_reference>
plan.mdcontext.md and tasks.md
</quick_reference><when_to_use>
<the_process>
Use task docs to capture:
Each step should be small enough to explain and verify on its own.
Run the smallest relevant tests after each change.
Update discoveries, remaining risks, and next slices as the refactor unfolds. </the_process>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub withzombies/hyperpowers --plugin hyperpowers22 skills in this plugin
/analyzing-test-effectivenessUse to audit test quality with SRE scrutiny - identifies weak tests, missing cases, and creates task docs for improvements/brainstormingUse when shaping a feature before implementation - turns rough ideas into an approved markdown spec and local task directory/building-hooksUse when creating Claude Code hooks - covers hook patterns, composition, testing, progressive enhancement from simple to advanced/debugging-with-toolsUse when encountering bugs or test failures - systematic debugging using debuggers, internet research, and agents to find root cause before fixingOther plugins' skills for the same job