Skip to content
Back to skills

Safe Refactor

ASecurity

Improve code structure while preserving observable behavior and public contracts.

  • 85 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add elixpo/elixpo_chapter --skill safe-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Refactor?

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

Security grade badge for Safe Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elixpo-safe-refactor/badge)](https://www.skillsdirectory.com/skills/elixpo-safe-refactor)

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: safe-refactor
description: Improve code structure while preserving observable behavior and public contracts.
---

1. Record the behavior and tests that form the refactor boundary.
2. Keep semantic changes out of the same patch unless explicitly requested.
3. Move in small compilable steps and preserve public APIs where practical.
4. Avoid speculative abstractions; extract only repeated or independently meaningful concepts.
5. Compare tests and diagnostics before and after the refactor.

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.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.