Refactor

From skeletorflet/opencode-supreme-setup · View interactive version

Refactor is an AI agent skill from the GitHub repository skeletorflet/opencode-supreme-setup. Code refactoring patterns and techniques. Use when improving code structure without changing behavior.

How to use this skill

Skill file

refactor

Improve code structure while preserving behavior.

Patterns

Process

  1. Ensure tests exist or write them first
  2. Small, incremental changes
  3. Run tests after each change
  4. Commit frequently
  5. Never refactor and add features together
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.