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

re-create

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

यह tool किसी file या code के हिस्से को पूरी तरह मिटाकर उसे शुरुआत से नए सिरे से लिखता है। इसे तभी इस्तेमाल करना चाहिए जब code इतना उलझा हो कि उसे टुकड़ों में ठीक करना मुश्किल हो।

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

  • ✓जब code इतना उलझा हो कि ठीक करने से हालात और बिगड़ते हों।
  • ✓जब पुराना code काम करना बंद कर दे और उसे पूरी तरह से दोबारा बनाना पड़े।
  • ✓जब मौजूदा code को संभालने में समय और मेहनत बहुत ज़्यादा लगे।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/re-create/SKILL.md

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

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

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

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

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

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

“'calculator.js' file को मिटाकर दोबारा लिखो, क्योंकि इसमें गंभीर structural problems हैं और मैं इसे अब ठीक नहीं कर पा रहा।”

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

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

पहले AI बताता है कि ठीक करना अब क्यों विकल्प नहीं है, और यह भी बताता है कि क्या-क्या बचाकर रखना है। फिर आपकी अनुमति से वह पुराना code मिटाता है और नया code लिखता है, और यह पक्का करता है कि ज़रूरी सब कुछ अब भी काम करे।

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

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

re-create — Controlled Erasure & Rebuild Protocol

Overview

Hollow Purple is Gojo's most destructive technique — blue and red combined into total erasure of the target. But Gojo doesn't use it carelessly. He knows exactly what he's erasing and why. Same here: this skill is the nuclear option, invoked only when patching is the wrong call, executed with full control over what gets erased and what must survive.

Rewrites are dangerous not because rebuilding is hard, but because it is easy to silently erase behavior that was working and expected. This skill enforces a complete inventory of what must survive before a single line is deleted, and a full verification that everything survived after the rebuild.


When to Use This Skill

  • Use when a file, module, or component needs to be completely deleted and rewritten from scratch
  • Use when structural rot is so deep that individual fixes would only make it worse
  • Use when accumulated technical debt makes the code unmaintainable
  • Use when the target is fundamentally broken and beyond saving
  • DO NOT use for partial refactors, single-function fixes, or targeted edits

How It Works

PHASE 1 — Justify the Erasure

The AI must prove that a full rewrite is necessary. It must answer all of the following:

  1. What specifically is broken or unsalvageable?
    • Not "it's messy" — specific structural problems that make targeted fixes impossible or counterproductive
  2. Why would targeted edits make things worse, not better?
    • Patching on top of rot, compounding complexity, architectural mismatch
  3. What is the concrete cost of keeping the current implementation?
    • Maintenance burden, bug surface, performance, developer velocity

If the AI cannot clearly answer all three, it must fall back to targeted edits instead of a rewrite. A rewrite is not a reward for messy code — it is a last resort.

The bar is high. "This code is ugly" does not justify hollow purple. "The architecture assumes X but the system now requires Y and every patch makes the mismatch worse" does.


PHASE 2 — Read the Target Completely

Before proposing deletion, the AI must read the entire target (file, module, or component) in full.

The AI must identify and catalog:

  1. Public interfaces — functions, classes, types, or exports that other parts of the codebase call
  2. Implicit contracts — behaviors that other files depend on even if not formally typed
  3. Working behaviors — things the current implementation does correctly that must continue to work
  4. Non-obvious logic — edge cases, guards, or special handling that looks incidental but is intentional
  5. Blast radius — every file in the codebase that imports from or depends on the target

The AI cannot skip this phase even if it has read the file before. The purpose is not familiarity — it is building the Preservation List.


PHASE 3 — Erasure Declaration (User Must Confirm)

The AI outputs a complete erasure plan and waits for user confirmation before deleting or writing anything.

HOLLOW PURPLE — ERASURE PLAN
─────────────────────────────────────────
TARGET FOR ERASURE:
  [file path or module name]

WHY TARGETED FIXES ARE WRONG:
  [specific justification — architectural rot, fundamental mismatch, etc.]

PRESERVATION LIST (must survive the rewrite):
  - [public interface / export 1] → [what it does, who depends on it]
  - [public interface / export 2] → [what it does, who depends on it]
  - [working behavior 1]          → [what it does, why it must be kept]
  - [non-obvious logic 1]         → [what it guards against]

BLAST RADIUS (files that depend on the target):
  - [file path] → depends on [what specifically]
  - [file path] → depends on [what specifically]

NEW IMPLEMENTATION PLAN:
  [Description of what the rebuild will look like — structure, approach, key decisions]

WHAT WILL NOT BE PRESERVED:
  [Anything intentionally dropped and why — dead code, deprecated behavior, etc.]
─────────────────────────────────────────
Confirm to proceed with erasure and rebuild.

Nothing is deleted until the user explicitly confirms. A reply of "yes", "confirmed", "do it", or equivalent counts. Silence does not.


PHASE 4 — Controlled Erasure

User confirms → the target is deleted. Rules for this phase:

  • Delete cleanly. Not commented out, not renamed to _old, not archived in place — deleted.

…

अक्सर पूछे जाने वाले सवाल

इसे कब इस्तेमाल नहीं करना चाहिए?

छोटे fixes, सिर्फ एक function बदलने या सरल सुधारों के लिए इसका इस्तेमाल न करें। इसे केवल आखिरी उपाय के तौर पर इस्तेमाल करें।

क्या AI बिना पूछे सब कुछ मिटा देगा?

नहीं। AI आपको एक विस्तृत योजना दिखाएगा कि क्या मिटेगा और क्या बचेगा, और कुछ भी होने से पहले आपको पुष्टि करनी होगी।

AI के code दोबारा लिखने के बाद क्या होता है?

AI जाँचता है कि ज़रूरी सब कुछ अब भी काम करता है या नहीं, और क्या पुराने code का इस्तेमाल करने वाली बाकी files बिना दिक्कत के नए code का इस्तेमाल कर सकती हैं।

जानकारी

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

Completely delete and rewrite a file or module from scratch when structural rot makes patching impossible.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

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

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

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

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

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