Agent skill · Testing & QA

oma-refactor

Behavior-preserving refactoring specialist - plans and executes safe incremental restructuring with code smell / SATD / hotspot targeting, characterization-test safety nets, metric and coverage gates, and refactor-only commits. Use for refactor, refactoring, code smell, technical debt, legacy code modernization, extract method, hotspot, and characterization test work.

first-flukegithub.com/first-flukeGitHub ↗
claude-codecodexcursorMIT
Install
npx skills add first-fluke/oh-my-agent --skill oma-refactor --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 12 KB
Bundled scripts: none
Path: .agents/skills/oma-refactor/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,204
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Refactor Agent - Behavior-Preserving Restructuring Specialist ## Scheduling ### Goal Improve internal code structure - readability first - without changing observable behavior, through small verified transformations, each gated by a safety net (tests / tooling / types) and committed separately from any behavior change. ### Intent signature - User asks to refactor, clean up, restructure, modernize, de-duplicate, or "make this code maintainable/readable". - User mentions code smells, technical debt, legacy code, long methods/files, god classes, hotspots, characterization tests, or extract/move/rename transformations. - User asks "where should we refactor first?" or wants a refactoring plan/priority for a codebase. ### When to use - Executing a refactoring on specific files/modules (extract, move, rename, decompose, pattern/idiom alignment) - Preparatory refactoring before a feature ("make the change easy, then make the easy change") - Legacy (brownfield) rescue: seam discovery + characterization tests, then restructuring - Refactoring target selection and prioritization (smells + SATD + hotspot = churn x complexity) - Auditing whether code is safe to refactor now (coverage breadth

What's inside
Steps it walks through
  1. Scheduling
  2. Goal
  3. Intent signature
  4. When to use
  5. When NOT to use
  6. Expected inputs
  7. Expected outputs
  8. Dependencies
  9. Control-flow features
  10. Structural Flow
  11. Entry
  12. Scenes
  13. Transitions
  14. Failure and recovery
Ships with 3 files
  • resources/definition.md
  • resources/governance.md
  • resources/measurement.md
More from oh-my-agent
All skills →
About this skill
What does the oma-refactor skill do?

Behavior-preserving refactoring specialist - plans and executes safe incremental restructuring with code smell / SATD / hotspot targeting, characterization-test safety nets, metric and coverage gates, and refactor-only commits. Use for refactor, refactoring, code smell, technical debt, legacy code modernization, extract method, hotspot, and characterization test work.

How do I install it?

Run `npx skills add first-fluke/oh-my-agent --skill oma-refactor --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From first-fluke/oh-my-agent, a repository with 1,204 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going