ClaudeSuperPower

refactor

Skill

Execute one behavior-preserving structural transformation and report evidence. Triggers: "refactor this", "simplify without changing behavior".

Install

git clone https://github.com/boshu2/agentops.git ~/.claude/skills/refactor

What is refactor?

Execute one behavior-preserving structural transformation and report evidence. Triggers: "refactor this", "simplify without changing behavior".

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~36 tokens of context used while enabled, before you invoke anything

Documentation

README · ~2 min read

Refactor — one structural experiment

Refactor changes structure while preserving observable behavior. It performs one caller-selected transformation and reports the result.

Procedure

  1. Name the preserved behavior and the focused acceptance surface.
  2. Record an honest baseline, including any reproducible ambient failures.
  3. Apply one bounded transformation: extract, rename, inline, simplify, encapsulate, move, or delete dead code.
  4. Run the focused check and the smallest package-level regression check justified by the changed surface.

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.

Skillssimilar to this one

All skills