diff-review
यह क्या करती है
यह टूल आपके कोड में हुए बदलावों को ऐसे दिखाता है जिन्हें आप आसानी से समझ सकें, ताकि आप तय कर सकें कि उन्हें स्वीकार करना है या अस्वीकार। यह बदलावों को समीक्षा के लिए व्यवस्थित करता है।
कब इस्तेमाल करें
- ✓जब कोई टूल आपके कोड में अपने-आप बदलाव करता है।
- ✓स्थायी रूप से लागू करने से पहले बदलावों की समीक्षा करना चाहते हैं।
- ✓बदलावों के सेट में से खास हिस्सों को स्वीकार या अस्वीकार करने का फ़ैसला करने के लिए।
Skill का लिंक
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/diff-review/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे कोड में हुए बदलावों की समीक्षा करो और बताओ कि मुझे उन्हें स्वीकार करना चाहिए या अस्वीकार।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल आपके प्रोजेक्ट में हुए सभी बदलाव इकट्ठा करता है। फिर उन्हें 'diff' जैसे साफ़ फ़ॉर्मैट में दिखाता है, और आप चुन सकते हैं कि बदलाव स्वीकार करने हैं, अस्वीकार करने हैं, या आंशिक रूप से स्वीकार करने हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Diff review
Spec §20.3 / §21.3.2: a code-migration / tune-collab handoff is worthless without a human-reviewable diff. This atom is the "present the patch, capture the decision" stage.
Inputs
- The project cwd's accumulated edits since the run started (or since the previous diff-review iteration).
plan/steps.jsonfor context per file.
Output
project-cwd/
└── review/
├── diff.patch # unified diff (git apply-shaped)
├── summary.md # human-friendly per-file walkthrough
├── decision.json # { decision: 'accept' | 'reject' | 'partial', accepted_files: [...], rejected_files: [...], reviewer: 'user' | 'agent' }
└── meta.json # { generatedAt, atomDigest, planRevision }
The atom raises a choice GenUI surface with the three top-level
decisions (accept / reject / partial). On partial the user
flips per-file decisions through follow-up surfaces.
Convergence
The atom completes when decision.json has a non-empty decision.
Acceptance writes handoffKind: 'patch' (or 'deployable-app'
when a successful build-test is on file) into the eventual
artifact manifest; rejection rolls back the patch via git restore
or the equivalent in the code-import-bound repo path.
Anti-patterns the prompt fragment forbids
- Skipping the surface and assuming acceptance.
- Generating a
decision.jsonthat lacksaccepted_files/rejected_filesonpartialdecisions. - Rolling back files outside
plan/steps.json's union offiles[]— the patch boundary is a contract.
Status
Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/diff-review.ts, with GenUI decisions persisted
by apps/daemon/src/plugins/atoms/diff-review-genui-bridge.ts.
अक्सर पूछे जाने वाले सवाल
'diff' क्या है?
'diff' एक रिपोर्ट है जो किसी फ़ाइल या फ़ाइलों के दो वर्ज़न के बीच का अंतर दिखाती है। इसमें साफ़ दिखता है कि क्या जोड़ा गया, हटाया गया या बदला गया।
अगर मैं बदलाव अस्वीकार कर दूँ तो क्या होगा?
बदलाव अस्वीकार करने पर टूल उन्हें वापस ले लेगा, और कोड उस हालत में लौट जाएगा जो बदलाव से पहले थी।
'आंशिक रूप से स्वीकार' का क्या मतलब है?
इसका मतलब है कि आप हर फ़ाइल को अलग-अलग देखकर फ़ैसला कर सकते हैं। एक ही बदलावों के सेट में कुछ फ़ाइलें स्वीकार हो सकती हैं और कुछ अस्वीकार।
जानकारी
लेखक का मूल विवरण
Render the patch-edit run's accumulated changes as a reviewable diff, surface it through a GenUI choice surface, and persist the user's accept / reject decision into the artifact manifest.
repo: nexu-io/open-design
लोकप्रियता
- GitHub स्टार
- 101k
- रैंकिंग में स्थान
- #982
- लाइसेंस
- 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
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।