Omh refactor plan

From rlaope/oh-my-hermes · View interactive version

Omh refactor plan is an AI agent skill from the GitHub repository rlaope/oh-my-hermes. [omh] Decided cross-module refactor to phase: refactor planning - turn a decided boundary-changing refactor into a phased plan - reconnaissance, contracts-first phase order, per-phase verification and rollback, a files table, and an explicit approval gate before any edit. Use when the user says: ref

How to use this skill

Skill file

Refactor Plan

Required: the decided target shape (what moves where), or a pointer to the accepted plan that decided it; for a chosen deepening candidate whose interface is still open, shape it first per omh-refactor-plan/references/interface-shaping.md, the affected-file evidence: import graph, codegraph handoff, or an observed file inventory, the regression gates that exist today (test suite, typecheck, generated-artifact checks). Output: reconnaissance: affected files, ownership boundaries, hidden coupling, blast radius — and for an upgrade, the advisory, licence, migration-guide, and lockfile intake, phase plan in the fixed order - types/interfaces, implementations, callers, tests, cleanup - each with verification and rollback, files table: path, action, phase, blocks/blocked-by, for an upgrade, the call-site readiness gate: every breaking change between the two versions against this repository's call sites or an observed empty search, and every stage's rollback, the approval gate: the plan stops and waits for the user's go.

Why This Exists

refactor-plan exists because boundary-changing refactors bounced between goal planning and behavior-preserving cleanup with neither owning the execution shape: the phase order, the per-phase rollback, and the files table that make a large refactor reviewable and abortable.

Contract: references/full-contract.md (examples, sibling boundaries, full artifact details).

Workflow Lane

When to Use

Use when a refactor that crosses module boundaries is already decided and needs its execution shaped: which files move in which phase, what verifies each phase, and where each phase rolls back to - before anything is edited.

Strong routing signals: refactor-plan, refactor plan, plan this refactor, plan the refactor, refactor planning, refactor phases, phased refactor, refactor in phases, refactor rollback plan, blast radius, module restructure plan, restructure plan, dependency upgrade, major version upgrade, framework upgrade, upgrade to the next major, breaking change upgrade, lockfile, 리팩터링 계획, 리팩토링 계획, 리팩터링 단계, 단계별 리팩터링, 리팩터링 계획 세워줘, 리팩터링 롤백 계획, спланируй рефакторинг, план рефакторинга, рефакторинг по фазам, поэтапный рефакторинг, рефакторинг по шагам

Catalog Metadata

Category: planning

Phase: refactor-plan

Hermes role: planner

Quality tier: plan-gated

Reasoning demand: standard

Quality bar:

Handoff policy:

Hermes owns reconnaissance and the phased plan; implementation of any approved phase is coding work for the selected executor lane under its own evidence rules. An approved plan is approval of the order, not evidence any phase ran.

Safety rules:

Completion Checklist

Recovery Notes

Runtime Evidence

Record observed delegation results; otherwise return not_available or not_observed.

Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.

Preserve workflow intent and stop conditions; verify before claiming completion.

Reply in the user's own words and the host's own voice: its SOUL.md persona owns reply language, tone, speech level, and sentence endings, progress updates included (where it sets no language, use the one the user wrote in), and OMH shapes structure and content only. When the requested output is delivered, put any open points inside the result and end with no question or offer; only when the person asked to choose or decide and that choice is still theirs, end with one specific question about it, not a list, a generic offer, or a footer; the shared rail's Reply Language And Host Voice and Turn Ending sections hold the full rule.

Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.

Shared product, compatibility, topology, memory, harness, and execution rules: skill_view(name='omh-routing', file_path='references/skill-common-rail.md'). Load it when applicable; otherwise name an unavailable capability.

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.