मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)280k · #377

orch-refine-code

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

यह टूल आपके कोड को इस तरह दोबारा व्यवस्थित करता है कि वह साफ़ और समझने में आसान हो, बिना इस बात को बदले कि वह क्या करता है। यह पक्का करता है कि सब कुछ पहले की तरह ही काम करता रहे।

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

  • ✓जब आप कोड की व्यवस्था सुधारना चाहते हों।
  • ✓जब दोहराया गया कोड हो जिसे हटाया या समेटा जा सके।
  • ✓जब ऐसा कोड हटाना हो जो अब इस्तेमाल नहीं होता।

Skill का लिंक

https://github.com/affaan-m/ECC/blob/main/skills/orch-refine-code/SKILL.md

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

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

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

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

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

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

“रीफ़ैक्टर करो: poller.py फाइल से NWS HTTP client वाला कोड अलग करो।”

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

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

टूल पहले देखता है कि मौजूदा टेस्ट पास हो रहे हैं या नहीं। फिर छोटे-छोटे स्टेप्स में कोड को पुनर्व्यवस्थित करता है और हर बदलाव के बाद टेस्ट करता है। आखिर में, अगर सब कुछ सही चल रहा हो तो बदलाव सेव करता है।

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

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

orch-refine-code

Actor · action · target: orch · refine · code. Thin wrapper over the shared engine in orch-pipeline.

When to Use

  • Same behavior, better structure: extract modules, remove duplication, kill dead code, reduce nesting, rename for clarity.
  • Distinguish from siblings: if behavior is meant to change at all, this is the wrong skill (orch-change-feature / orch-fix-defect).

Operation settings

  • Default size floor: standard — restructures touch multiple files.
  • Phase mask: 0 → 2 (plan the restructure) → 4 (keep green) → 5 → 6. No new behavior tests are written — the existing suite is the safety net.
  • First move (phase 4): confirm the relevant tests exist and are green before touching code; if coverage is thin, add characterization tests first. Then restructure in small steps, re-running tests after each.

How It Works

  1. Run the orch-pipeline engine with the settings above.
  2. For dead-code / duplication sweeps, delegate to the refactor-cleaner agent (it runs knip / depcheck / ts-prune and removes safely).
  3. Stop at Gate 1 (restructure plan) and Gate 2 (pre-commit).
  4. Commit as refactor: — the diff must be behavior-neutral.

Example

orch-refine-code: extract the NWS HTTP client out of poller.py
→ confirm tests green → plan extraction  [GATE 1: approve]
→ move in small steps, tests green throughout → code-review
→ commit refactor:  [GATE 2: confirm]
अक्सर पूछे जाने वाले सवाल

कोड के 'बिहेवियर' का क्या मतलब है?

बिहेवियर का मतलब है कोड क्या करता है, कैसे काम करता है और कौन से नतीजे देता है। यह टूल पक्का करता है कि आखिरी नतीजा न बदले।

'टेस्ट' क्या होते हैं?

टेस्ट अपने आप चलने वाली जाँच होते हैं जो पक्का करते हैं कि कोड अपेक्षित तरह से काम कर रहा है। अगर कोई टेस्ट फेल होता है, तो इसका मतलब है कि कोड में कुछ टूट गया है।

'कमिट' क्या है?

कमिट का मतलब है कोड में किए गए बदलावों के एक सेट को सेव करना। 'गेटेड कमिट' का मतलब है कि सेव तभी होगा जब सारी जाँच (टेस्ट) पास हों।

जानकारी

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

Orchestrate a behavior-preserving refactor — confirm tests are green, restructure without changing behavior, keep tests green, review, and gated commit. Use when the structure should improve but behavior must not change.

repo: affaan-m/ECC

लोकप्रियता

GitHub स्टार
280k
रैंकिंग में स्थान
#377
लाइसेंस
MIT
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

accessibility

280k

यह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

agent-architecture-audit

280k

यह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।

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

agent-eval

280k

यह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।

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

agent-harness-construction

280k

यह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।

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

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