Skip to content
Back to skills

Refactoring

ASecurity

Restructure code safely while preserving behavior, reducing duplication, clarifying ownership, and maintaining compatibility.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsrefactoringapiperformance

Works with

  • api

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add nafeeur/MaskShift --skill refactoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refactoring?

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

Security grade badge for Refactoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafeeur-refactoring/badge)](https://www.skillsdirectory.com/skills/nafeeur-refactoring)

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: refactoring
description: Restructure code safely while preserving behavior, reducing duplication, clarifying ownership, and maintaining compatibility.
---

# Refactoring

1. Establish a behavior baseline with tests or reproducible commands.
2. Identify the ownership boundary and dependency direction the code should follow.
3. Move in small compilable steps; avoid simultaneous semantic changes unless explicitly required.
4. Preserve public APIs or provide an intentional migration path.
5. Delete replaced code and update imports, docs, tests, and generated artifacts.
6. Compare behavior and performance before and after.

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…