Skip to content
Back to skills

Refactor Modernization

ASecurity

Modernize code while preserving externally observable behavior.

  • 11 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 23, 2026
ai-agents

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add startmeupai/swe-agents --skill refactor-modernization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refactor Modernization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refactor Modernization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/startmeupai-refactor-modernization/badge)](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.

Download with Pro
SKILL.md
---
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.`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…