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

rewrite-plan

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

यह agent आपके code को दोबारा लिखने के लिए एक विस्तृत plan बनाता है। यह काम को छोटे steps में बांटता है और तय करता है कि हर हिस्से की ज़िम्मेदारी किसकी है, ताकि बदलाव सुरक्षित रहें और उनकी समीक्षा आसान हो।

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

  • ✓जब आपको code के कुछ हिस्से व्यवस्थित तरीके से दोबारा लिखने हों।
  • ✓जब कोई बड़ा प्रोजेक्ट शुरू करना हो जिसमें कई बदलाव के चरण हों।
  • ✓यह सुनिश्चित करने के लिए कि code में किए गए बदलाव सुरक्षित हों और प्रोजेक्ट न टूटे।

Skill का लिंक

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/rewrite-plan/SKILL.md

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

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

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

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

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

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

“मेरी website के authentication वाले हिस्से को दोबारा लिखने के लिए plan बनाओ, और हर file की ज़िम्मेदारी साफ़ तय करो।”

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

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

यह मौजूदा code और design का विश्लेषण करके एक roadmap बनाता है। इस roadmap में काम की सूची होती है, कौन उसे करेगा, और उससे जुड़े जोखिम, ताकि सब कुछ एक-एक कदम करके हो।

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

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

Rewrite plan

Spec §20.3 / §21.3.2: scenario 4 (design → deliverable production code) requires a contract-shaped rewrite plan before the agent starts editing files. The plan is the audit trail every subsequent stage references; without it the patch path slides into "refactor everything that looks wrong" and the build breaks in unreviewable ways.

Inputs

  • code/index.json from code-import.
  • token-map/*.json from token-map.
  • The active design system DESIGN.md (already in prompt).
  • The user's tune intent (typically a short brief).

Output

project-cwd/
└── plan/
    ├── plan.md           # human-readable narrative
    ├── ownership.json    # { file: '...', layer: 'leaf' | 'shared' | 'route' | 'shell' }
    ├── steps.json        # ordered { id, files[], rationale, risk: 'low' | 'medium' | 'high' }[]
    └── meta.json         # { generatedAt, atomDigest, tokenMapDigest }

steps.json is the input patch-edit reads one entry per iteration. ownership.json is the source of truth for "which files belong to a single component vs. shared infrastructure"; patch-edit refuses to touch a shell-tier file unless the matching step has risk: 'high' and the user explicitly confirmed.

Convergence

The atom completes when plan.md is non-empty AND steps.json contains at least one step.

Anti-patterns the prompt fragment forbids

  • Plans that include "rewrite the whole component library" as a single step. Break into per-component steps.
  • Plans that don't classify ownership.
  • Plans that don't list a build-test step at the end.

Status

Implemented by the daemon runner in apps/daemon/src/plugins/atoms/rewrite-plan.ts. It classifies ownership and writes plan.md, steps.json, and ownership.json.

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

code दोबारा लिखने से पहले plan क्यों ज़रूरी है?

Plan agent को 'सब कुछ एक साथ ठीक करने' से रोकता है, क्योंकि ऐसा करने से प्रोजेक्ट ऐसे तरीकों से टूट सकता है जिन्हें समझना मुश्किल हो। इससे बदलाव नियंत्रित और सुरक्षित तरीके से होते हैं।

'ownership boundaries' क्या होती हैं?

ये तय करती हैं कि code का कौन सा हिस्सा किसी खास component का है और कौन सा सामान्य उपयोग के लिए है। इससे काम व्यवस्थित रहता है और टकराव से बचा जाता है।

अगर कोई step बहुत जोखिम भरा हो तो क्या होगा?

Plan ऐसे उच्च-जोखिम वाले steps पहचानता है। इन steps पर agent कोई बदलाव करने से पहले आपकी साफ़ पुष्टि लेगा, ताकि आप जानकर सहमत हों।

जानकारी

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

Author a long-running multi-file rewrite plan that subsequent patch-edit + diff-review + build-test stages will execute, with explicit ownership boundaries and patch-safety guarantees.

repo: nexu-io/open-design

लोकप्रियता

GitHub स्टार
101k
रैंकिंग में स्थान
#988
लाइसेंस
Apache-2.0
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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