cyberneticlibrary

Intelligently refactor code

refactorskillsetup L161,462
code-yeongyu/oh-my-openagent
What it does

Refactor code with continuous test verification

Best for

Restructuring large code sections with safety guarantees via LSP, AST-Grep, and regression tests.

Inputs
  • · file|module|project scope
  • · safe|aggressive refactoring strategy
  • · source file path
Outputs
  • · prioritized violation report
  • · execution log or transcript
  • · refactoring plan
Requires
  • · AST-Grep
  • · Language Server Protocol
Preconditions

LSP server available; test suite passing before refactoring begins

Failure modes
  • · Target symbol not found or ambiguous
  • · Regression tests fail after changes
  • · Circular dependency or boundary violation detected
Trust signals
  • · Includes regression test safety gates
  • · Leverages LSP and AST-based code analysis
  • · Uses concurrent exploration agents for efficiency
  • · Includes post-execution verification step