Provides a structured framework for deciding between refactoring and rewriting code, using risk math and objective criteria rather than frustration.
The urge to rewrite is usually the code punishing you for not understanding it yet. A rewrite trades a known, working system for an unknown one, and the old system keeps shipping features while the replacement plays catch-up. Choose with numbers, not with disgust.
if branches on customer names, date cutoffs, retry counts,
and workaround comments. Each is an undocumented requirement a rewrite must
re-derive from scratch. A module dense with these is costly to refactor and
lethal to rewrite blind.This weighs one component's fate, not architecture strategy. When the question is how services split or which boundaries to draw, defer to system design. When the code is small enough that a rewrite fits in a day and a single review, skip the math and just do it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
refactoring, rewrite, technical-debt, decision-framework, strangler-fig
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job