·safe-refactor
</>

safe-refactor

elliotjlt/claude-skill-potions

When refactoring, rewriting, or migrating critical code paths, orchestrate a safe cycle: assess risks → implement → verify → document. Chains pre-mortem and prove-it with built-in implementation phase. Prevents "refactor broke production" disasters. Activates on "refactor", "rewrite", "migrate", or "clean up" for non-trivial code.

3Installs·0Trend·@elliotjlt

Installation

$npx skills add https://github.com/elliotjlt/claude-skill-potions --skill safe-refactor

SKILL.md

An elixir for risky code changes. Refactors feel safe ("I'm just cleaning up") but they're where bugs hide. This chains risk assessment → careful implementation → verification → documentation. The ceremony slows you down just enough to catch problems before production does.

| pre-mortem | Risk assessment before starting | Falls back to built-in checklist | | prove-it | Verification enforcement | Falls back to built-in verification | | retrospective | Document learnings | Skipped (optional phase) |

User: "Refactor the authentication module to use the new token format"

When refactoring, rewriting, or migrating critical code paths, orchestrate a safe cycle: assess risks → implement → verify → document. Chains pre-mortem and prove-it with built-in implementation phase. Prevents "refactor broke production" disasters. Activates on "refactor", "rewrite", "migrate", or "clean up" for non-trivial code. Source: elliotjlt/claude-skill-potions.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/elliotjlt/claude-skill-potions --skill safe-refactor
Category
</>Dev Tools
Verified
First Seen
2026-02-05
Updated
2026-02-18

Quick answers

What is safe-refactor?

When refactoring, rewriting, or migrating critical code paths, orchestrate a safe cycle: assess risks → implement → verify → document. Chains pre-mortem and prove-it with built-in implementation phase. Prevents "refactor broke production" disasters. Activates on "refactor", "rewrite", "migrate", or "clean up" for non-trivial code. Source: elliotjlt/claude-skill-potions.

How do I install safe-refactor?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/elliotjlt/claude-skill-potions --skill safe-refactor Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/elliotjlt/claude-skill-potions

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-05