Modernize code while preserving externally observable behavior.
Scanned 10/6/2026
npx -y skills add startmeupai/swe-agents --skill refactor-modernization --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Refactor Modernization?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/startmeupai-refactor-modernization)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
---
name: refactor-modernization
description: Modernize code while preserving externally observable behavior.
---
# Refactor Modernization
## Trigger Conditions
Use for cleanup, migration, duplication removal, typing, or boundary correction without feature change.
## Required Inputs
- Target files, preserved behavior contract, known debt, and regression coverage.
## Workflow
1. Establish the behavior baseline and inspect nearby patterns.
2. Bound the refactor and list prohibited behavior changes.
3. Add missing regression coverage before risky restructuring.
4. Apply the smallest coherent structural changes.
5. Remove obsolete paths only after references are migrated.
6. Run focused checks and inspect the diff for behavior drift.
## Deterministic Checks
- Run static and type checks where the language has them, lint affected code,
run regression tests, and search for stale references.
## Safety and Permission Boundaries
- No feature, authorization, schema, or product-policy changes under this workflow.
## Required Evidence
- Before/after contract, tests, diff summary, and any intentionally deferred debt.
## Completion Condition
- Behavior is preserved and the targeted debt is removed without unrelated churn.
## Example
`Refactor the Project Alpha settings service to isolate persistence.`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!