मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग5.1k · #15149

omh-refactor-plan

यह क्या करती है

यह स्किल तय किए गए कोड पुनर्गठन को चरणबद्ध योजना में बदलती है, जिसमें हर चरण के लिए जाँच और रोलबैक होता है। यह उन डेवलपर के लिए है जो कोडबेस का बड़ा हिस्सा दोबारा व्यवस्थित कर रहे हैं।

कब इस्तेमाल करें

  • ✓जब आपने बड़े मॉड्यूल को बाँटने का फ़ैसला किया हो और सुरक्षित योजना चाहिए।
  • ✓जब पुनर्गठन कई फ़ाइलों को छूता हो और आप ऐसे कदम चाहते हों जहाँ कभी भी रुका जा सके।
  • ✓जब कोई फ़ाइल बदलने से पहले योजनाबद्ध बदलाव से प्रभावित फ़ाइलों की सूची चाहिए।

Skill का लिंक

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-refactor-plan/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-refactor-plan/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमने बिलिंग कोड को ऑर्डर्स मॉड्यूल से अलग करने का फ़ैसला किया है। पुनर्गठन की योजना सुरक्षित चरणों में बनाइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट प्रभावित फ़ाइलें मैप करता है, काम को चरणों में क्रमबद्ध करता है, और हर चरण के लिए टेस्ट और रोलबैक जोड़ता है। किसी भी फ़ाइल को बदलने से पहले वह आपकी मंज़ूरी के लिए रुकता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Refactor Plan

This is an OMH refactor-plan workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

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.

Do Not Use When

  • The refactor's direction is still contested or the goal itself needs consensus planning; use ulw-plan.
  • The work is deletion-first cleanup with no boundary changes; use omh-ai-slop-cleaner.
  • The plan is done and the claim is that work is complete; use omh-verification-gate for the evidence close.
  • The version bump carries a security advisory, a CVE, or a leaked secret; use omh-security-event-response, which owns containment and closure.

Examples

Good example:

  • Prompt: We decided to split the billing module out of orders - plan the refactor so each step is shippable.
  • Expected behavior: Map affected files and consumers from the import graph, name hidden coupling and blast radius, order the five phases with per-phase verification and rollback, ship the files table, and stop at the approval gate.
  • Why: The direction is decided and the need is a phased, abortable execution shape - exactly this workflow's territory.

Bad example:

  • Prompt: Should we even split billing out of orders?
  • Expected behavior: Route to ralplan: the direction is not decided, so consensus planning comes before phase planning.
  • Why: A phase plan for a contested direction launders a decision through logistics.

Completion Checklist

  • Reconnaissance names affected files, boundaries, coupling, and blast radius from observed evidence.
  • Every phase carries its verification command and its rollback point, and ends at a shippable commit.
  • The files table covers every touched file with action, phase, and dependencies.
  • For an upgrade, every breaking change row names its call sites or an observed empty search, and every stage names its rollback.
  • The plan stopped at the approval gate; no implementation began without the user's go.

Recovery Notes

  • If the import graph is unavailable, build the codegraph first or reduce the plan's confidence and say which files are unverified.
  • If a phase cannot be made independently green, split it further; two half-phases beat one unabortable one.
  • If reconnaissance finds the direction itself is unsettled, route back to ralplan before ordering phases.
  • If the module to deepen is chosen but its interface is not, shape it under contrasting constraints and recommend one design before phase 1; that is not a contested direction.

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 Quality tier: plan-gated Reasoning demand: standard

Quality bar:

  • Reconnaissance first: affected files, ownership boundaries, hidden coupling, and blast radius are mapped before any phase is ordered; the full contract is omh-refactor-plan/references/refactor-phases.md.
  • Order phases contracts-first: types and interfaces, then implementations, then callers in reviewable groups, then tests, then cleanup - and name what verifies each phase and where it rolls back to.
  • Ship the files table with the plan: one row per file with action, phase, and blocks/blocked-by; a row without a phase is unplanned work.
  • Size verification to the blast radius, not to optimism: a phase touching public surfaces or persisted shapes carries the full gate, not the fast one.
  • For a dependency or framework upgrade, read
अक्सर पूछे जाने वाले सवाल

क्या यह स्किल मेरा कोड बदलती है?

नहीं। यह काम की योजना बनाती है और किसी भी बदलाव से पहले आपकी मंज़ूरी का इंतज़ार करती है।

अगर मैंने बदलाव का फ़ैसला अभी नहीं किया है?

यह स्किल तय किए गए बदलावों के लिए है। खुले सवालों के लिए व्यापक योजना स्किल बेहतर है।

अगर किसी पैकेज में सुरक्षा समस्या हो?

उसके लिए एक अलग सिक्योरिटी रिस्पॉन्स स्किल चाहिए, पुनर्गठन योजना नहीं।

जानकारी

लेखक का मूल विवरण

[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: refactor-plan, refactor plan, plan this refactor, plan the refactor, refactor planning, refactor phases, phased refactor, refactor in phases.

repo: rlaope/oh-my-hermes

लोकप्रियता

GitHub स्टार
5.1k
रैंकिंग में स्थान
#15149
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

omh-accessibility-audit

5.1k

यह आपके एजेंट को किसी स्क्रीन या फ़्लो में एक्सेसिबिलिटी की कमियाँ जाँचने में मदद करती है, जैसे कीबोर्ड उपयोग, स्क्रीन रीडर लेबल, कंट्रास्ट और टच टारगेट का आकार।

कोडिंगटेस्टिंग

omh-adversarial-consensus

5.1k

यह आपके एजेंट को किसी तकनीकी प्रस्ताव पर प्रतिबद्ध होने से पहले उस पर कई स्वतंत्र नज़रियों से हमला करवाने देती है, फिर देखती है कि क्या बचता है।

AI और एजेंटएजेंट

omh-agent-debug

5.1k

यह आपके एजेंट को पता लगाने में मदद करती है कि कोई दूसरा AI एजेंट क्यों अटका है, लूप में है या भटक रहा है, और सबसे छोटा सुरक्षित सुधार सुझाती है।

AI और एजेंटएजेंट

omh-agent-instructions

5.1k

यह आपके एजेंट को वह निर्देश फ़ाइल लिखने या अपडेट करने में मदद करती है, जैसे AGENTS.md या CLAUDE.md, जो बताती है कि AI टूल किसी प्रोजेक्ट में कैसे काम करें।

AI और एजेंटप्रॉम्प्ट और LLM

मिलती-जुलती skills