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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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.jsonfromcode-import.token-map/*.jsonfromtoken-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-teststep 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
कमेंट
- …
इस repository की और skills
sample-plugin
101kआपके एजेंट से टेस्ट के लिए metadata file बनवाता है। इससे पक्का होता है कि कोड अलग-अलग स्थितियों में सही चलता है।
aster-atelier
101kआपके एजेंट से क्लासिक लुक वाली एक कलात्मक website बनवाता है। इसमें खूबसूरत इमेज, नीला आसमान और serif fonts इस्तेमाल होते हैं, जिससे सिनेमाई एहसास मिलता है।
audio-jingle
101kआपके एजेंट से जिंगल्स और sound effects जैसा audio बनवाता है। यह music और voice बना सकता है और नतीजा audio file में सेव करता है।
blog-post
101kआपका एजेंट लंबे articles या blog posts लिखने में मदद करता है। इसमें images, quotes और author की जानकारी के लिए जगह भी होती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।