Code Refactoring
Counts technical debt against stated thresholds before any line of code is touched.
Install
Claude Code: /plugin marketplace add wshobson/agents → /plugin install code-refactoring
Teknik borç ölçülürken, eski bir kod tabanı kademeli yenilenirken ya da bir modül SOLID gözüyle yeniden yazılırken devreye giriyor.
- Author
- Seth Hobson
- License
- MIT
The tech-debt command does not report vague smells; it counts against explicit limits — cyclomatic complexity above ten, nesting deeper than three levels, methods over fifty lines, classes past five hundred lines or twenty methods — and weights each hotspot by how often that file changes, so effort lands where the pain actually is. The refactor-clean command then performs the rewrite under SOLID review, with an explicit instruction not to over-engineer, which is the failure mode of every automated cleanup. The legacy-modernizer agent handles framework migrations using the strangler pattern and one fixed order of operations: tests first, then the refactor, with feature flags for the switchover. A context-restore command rehydrates earlier project knowledge under a token budget and a similarity cutoff.
Similar skills
Codebase Cleanup
SkillPairs debt scan, refactor and dependency audit with a test agent that covers the code first.
Requesting Code Review
SkillSends a reviewer subagent the diff and the requirements, not the session history.
Code Simplifier
SkillRefines recently modified code for clarity and consistency without changing behaviour.

Comments(0)
Sign in to comment