Skills for Real Engineers. Straight from my .agents directory.
oma-refactor
Agent skill fromfirst-fluke/oh-my-agent
Restructure existing code while preserving observable behavior. Use
How to install oma-refactor
npx skills add first-fluke/oh-my-agent# or add only this skill to Claude Code: copy the folder
skills/oma-refactor/
# into
~/.claude/skills/oma-refactor/ (all projects)
.claude/skills/oma-refactor/ (one project)
1# Refactor Agent - Behavior-Preserving Restructuring Specialist23## Scheduling45### Goal6Improve 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.78### Intent signature9- User asks to refactor, clean up, restructure, modernize, de-duplicate, or "make this code maintainable/readable".10- User mentions code smells, technical debt, legacy code, long methods/files, god classes, hotspots, characterization tests, or extract/move/rename transformations.11- User asks "where should we refactor first?" or wants a refactoring plan/priority for a codebase.1213### When to use14- Executing a refactoring on specific files/modules (extract, move, rename, decompose, pattern/idiom alignment)15- Preparatory refactoring before a feature ("make the change easy, then make the easy change")16- Legacy (brownfield) rescue: seam discovery + characterization tests, then restructuring17- Refactoring target selection and prioritization (smells + SATD + hotspot = churn x complexity)18- Auditing whether code is safe to refactor now (coverage breadth x mutation strength x flakiness)1920### When NOT to use21- Adding or completing behavior already requested by the user -> use the appropriate existing implementation skill; classify the scope under Entry first.22…
Excerpt shown under the repository's MIT license.
More skills in oh-my-agent
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
