drawio-reconstruction
यह क्या करती है
यह स्किल डायग्राम, स्लाइड या स्क्रीनशॉट की तस्वीर को संपादन योग्य Draw.io फ़ाइल में बदलती है। यह उन लोगों के लिए है जिनके पास डायग्राम केवल इमेज के रूप में है और जिन्हें उसे बदलना है।
कब इस्तेमाल करें
- ✓जब आपके पास डायग्राम इमेज है और आपको उसका संपादन योग्य Draw.io संस्करण चाहिए।
- ✓जब आपको आर्किटेक्चर डायग्राम, शोध चित्र या स्लाइड फ़ाइल के रूप में दोबारा बनानी है।
- ✓जब आप UI स्क्रीनशॉट या इमेजों के फ़ोल्डर को Draw.io XML में बदलवाना चाहते हैं।
Skill का लिंक
https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस आर्किटेक्चर डायग्राम के स्क्रीनशॉट को संपादन योग्य Draw.io फ़ाइल में बदलिए, वही बॉक्स और तीर के साथ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI टेक्स्ट और सरल आकार Draw.io के मूल हिस्सों के रूप में बनाता है, और जटिल दृश्यों के लिए ही इमेज इस्तेमाल करता है। फिर वह पूर्वावलोकन को मूल से तुलना करके जाँचता है कि लेआउट मेल खाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Draw.io Reconstruction
Use this skill for high-quality reconstruction of diagram images into .drawio files.
Helper Script Location
Resolve SKILL_DIR to the absolute directory containing this SKILL.md before running any bundled helper. Use the resolved skill location provided by the runtime; never assume the skill is installed under ~/.codex, ~/.agents, or any other fixed directory.
All commands below use $SKILL_DIR to mean that resolved absolute directory.
Fidelity Contract
The primary goal is visual fidelity to the reference image. Editability is secondary.
Do not treat semantic equivalence as success. A generic icon, generic curve, generic font size, approximate panel, or approximate background is a defect when the reference has a specific visual style.
Script checks only prove technical validity. A diagram is not complete merely because .drawio opens, exports, or passes check_drawio.py / batch_verify.py. Completion requires visual comparison against the reference at full size.
Work only in the target directory or target files named by the user. Do not repair, overwrite, or improve neighboring diagrams because they look related. If the requested target is ambiguous, inspect and report the ambiguity before editing.
Never silently rewrite the user's content. If the user asks for larger fonts or a more professional PPT style, first distinguish:
- Layout-only refinement: increase font size, resize boxes, improve spacing, align elements, adjust line breaks without changing words.
- Content compression: shorten sentences, remove details, rewrite labels. Ask permission before doing this.
Batch Folder Workflow
Use this workflow when the user provides a directory of images or asks for batch reconstruction.
Batch Intent And Scheduling
Before opening images for detailed visual analysis, decide whether the request is a batch reconstruction task:
- Treat the request as batch reconstruction when it names a folder, multiple image files, a glob/pattern, or any target that resolves to 2 or more image entries.
- Create and review the manifest before detailed per-image work begins.
- When sub-agent tooling is available and useful, use a bounded worker pool no larger than the available concurrency and the number of pending images. Give each active worker exactly one image and an exclusive write set for that image's
.drawio, exported.png, audit file, and private asset/crop directory. Reuse a free slot for the next image instead of trying to start every worker at once. - When sub-agent tooling is unavailable, disabled, capacity-limited, or unnecessary for a small batch, process entries serially in manifest order. Preserve the same inventory, reconstruction, export, check, and visual-audit requirements.
- Tell the user about scheduling limitations only when they materially affect timing or delivery. Do not block a valid batch solely because parallel execution is unavailable.
- The coordinating agent may inspect thumbnails or file metadata to confirm scope, naming, orientation, and shared style constraints before choosing the schedule.
Identify the input directory, output directory, naming convention, and overwrite policy.
Create a batch manifest:
python "$SKILL_DIR/scripts/batch_manifest.py" path/to/images --output-dir path/to/output --writeReview the manifest before editing. Process only entries in the manifest unless the user expands scope.
For each image, define the expected
<stem>.drawio,<stem>.png, and lightweight<stem>.audit.mdoutputs in the target output directory.Choose a bounded parallel schedule or a serial schedule:
- Assign exclusive output files for each active entry.
- Tell workers they are not alone in the codebase and must not revert or edit other workers' outputs.
- Require every entry to follow the same full workflow as a standalone single-image task. Batch mode is only a scheduling strategy; it does not reduce fidelity, inventory, reconstruction, export, check, or visual-audit requirements.
- Apply this quality gate to every entry: produce
.drawio,.png, and<stem>.audit.md; create the complete visible-element inventory; classify non-text visuals; use crops/SVG/native elements according to the normal medium rules; run required checks/exports; visually compare the exported preview against the reference; mark unresolved visual defects instead of claiming completion. - Keep final batch v
अक्सर पूछे जाने वाले सवाल
क्या नई फ़ाइल तस्वीर जैसी ही दिखेगी?
स्किल लगभग समान दृश्य-निष्ठा का लक्ष्य रखती है। वह परिणाम की तुलना पूरे आकार के संदर्भ से करती है और अंतर ठीक करती है।
क्या यह सामग्री बदलती है?
स्किल आपकी सामग्री तब तक नहीं बदलती जब तक आप बदलाव न माँगें।
अंत में मुझे क्या मिलेगा?
एक Draw.io फ़ाइल, जिसे आप Draw.io ऐप में खोलकर संपादित कर सकते हैं।
जानकारी
लेखक का मूल विवरण
Reconstructs reference images into high-fidelity, editable Draw.io files with rendered previews: native Draw.io elements carry text and structure, SVG covers simple icons that match the reference, and cropped or transparent PNGs preserve complex visuals. Use when the user wants a diagram image, research figure, architecture diagram, slide, UI screenshot, or image folder turned into `.drawio` XML; batch requests use a manifest with bounded parallelism when available and a full-fidelity serial fallback otherwise.
लोकप्रियता
- GitHub स्टार
- 11k
- रैंकिंग में स्थान
- #11689
- लाइसेंस
- —
- अपडेट की गई
- 16/10/2026
कमेंट
- …
इस repository की और skills
benchmark-paper-template
11kयह आपके एजेंट को बेंचमार्क शोध पेपर की योजना बनाने और जाँचने में मदद करती है, शोध की कमी और डेटासेट निर्माण से लेकर प्रयोगों और सबमिशन से पहले की जाँच सूची तक।
deep-research
11kयह आपके एजेंट को किसी शोध विषय पर सर्वेक्षण-शैली की साहित्य समीक्षा चलाने में मदद करती है, जाँचे गए उद्धरणों, साफ़ वर्गीकरण और सबूत पर आधारित रिपोर्ट के साथ।
figure-designer
11kयह आपके एजेंट को शोध पेपर के मुख्य चित्रों के लिए लेआउट और चार्ट प्रकार चुनने में मदद करती है, और उन्हें सामान्य गुणवत्ता नियमों से जाँचती है।
idea-evaluator
11kयह आपके एजेंट को शोध विचार की नवीनता, व्यवहार्यता और जोखिम का आकलन करने में मदद करती है, और महीनों लगाने से पहले साफ़ फ़ैसला देती है।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।