agentsclimarketplace

Refactoring

Skill nevitonsantana/adaptive-skills/skills/refactoring

Improve structure and clarity incrementally while protecting behavior and rollback options.From its SKILL.md

Install
npx -y skills add nevitonsantana/adaptive-skills --skill refactoring

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.8 KB, 331 tokens by cl100k_base, as published. Nobody here has run it

Overview

Use this skill when the code works but is too costly to reason about or change safely.

When to Use

  • structural cleanup
  • duplication reduction
  • local complexity reduction

When NOT to Use

  • urgent bug response without a stable repro
  • large rewrites justified only by taste

Core Moves

  1. Name the reason for refactoring.
  2. Define the behavior that must remain stable.
  3. Choose the smallest safe sequence.
  4. Validate after each meaningful step.

Optional Modules

  • Extraction pass — Pull out a smaller unit when a file or function does too much.
  • Naming pass — Rename concepts once structure is clearer.
  • Rollback plan — Clarify how to stop or revert if the cleanup becomes risky.

Activation Triggers

  • Use extraction when responsibilities are mixed.
  • Use naming when the main confusion is semantic rather than structural.
  • Use rollback planning when the refactor touches core paths.

Expected Output

  • clear refactoring objective
  • incremental change set
  • behavior-preservation evidence

Verification

  • The change removed complexity rather than moving it around.
  • Behavior was checked after meaningful steps.
  • The refactor stayed inside its declared boundary.

Handoff Signals

  • The cleanup exposes a larger architectural issue.
  • The next safe step belongs to another owner or specialty.

Pairs Well With

  • code-style
  • testing
  • architecture-review

Anti-patterns

  • Calling a rewrite a refactor.
  • Mixing cleanup and new behavior without saying so.
  • Expanding scope because the codebase “needs it anyway.”

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.