Skip to content
Back to skills

Refactoring

ASecurity

Improve an existing codebase safely by establishing a behaviour baseline, finding seams and moving in small reviewable steps.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
securityrefactoring

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Eliahhango/nullbyte-security --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/eliahhango-refactoring/badge)](https://www.skillsdirectory.com/skills/eliahhango-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: Improve an existing codebase safely by establishing a behaviour baseline, finding seams and moving in small reviewable steps.
---

# Refactoring: change structure without changing behaviour

- Refactoring changes structure without changing behaviour. State the behaviour that must stay fixed and establish a test or characterization baseline first.
- Work in small, reviewable steps. Separate moves from behaviour changes so a regression has one obvious cause.
- Find seams: inject a dependency, extract a pure function, or isolate I/O behind an interface. Do not rewrite the world to test one branch.
- Keep the public interface stable unless the task explicitly changes it. Update every caller in the same change.
- Delete dead code only when you can prove it is unreachable; check reflection, configuration and external consumers first.
- Run the tests after each step. If behaviour changes, stop and decide whether that change belongs in this task.
- Report the structural change, the preserved behaviour and the tests that prove it.

---

_NullByte skill pack. Original guidance for this tool; no third-party skill text is bundled._

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…

Newsletter

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