Lightlines
By codestable

cs-refactor

ZH
codestable1.5k installs

Reshape your code without changing its behavior.

What it does

Refactors project code while preserving its observable behavior and proving equivalence.

When to use it

Use for behavior-preserving refactoring, module splitting, or performance optimization; route observable behavior changes elsewhere.

How to use it

Give it a refactoring goal and a project; it changes the code's structure and verifies that behavior remains equivalent.

What you provide

  • An existing project

Good to know

  • starts 1 helper agents
  • acts without asking
  • edits its own instructions

Latest review

What you need · 4

Routes the feature-changing portion of a request to cs-feat rather than including it in the refactor; installation requirements are unstated.

Names cs-issue as an alternative destination for a request portion that changes behavior; installation requirements are unstated.

Has the independent reviewer run cs-review when review is triggered; whether it must be separately installed is unstated.


Access · 1

This skill

.codestable/lessons/

Write

Updates stored lesson status