drawio-reconstruction
하는 일
이 스킬은 다이어그램, 슬라이드, 스크린샷의 그림을 편집 가능한 Draw.io 파일로 바꿉니다. 이미지로만 가지고 있는 다이어그램을 수정하고 싶은 사람들을 위한 스킬입니다.
사용하는 경우
- ✓다이어그램 이미지가 있고 편집 가능한 Draw.io 버전이 필요할 때.
- ✓아키텍처 다이어그램, 연구 그림 또는 슬라이드를 파일로 다시 만들어야 할 때.
- ✓UI 스크린샷이나 이미지 폴더를 Draw.io XML로 바꾸고 싶을 때.
스킬 링크
https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 아키텍처 다이어그램 스크린샷을 같은 상자와 화살표가 있는 편집 가능한 Draw.io 파일로 바꿔 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 라이선스
- —
- 업데이트
- 2026. 10. 16.
댓글
- …
이 저장소의 다른 스킬
benchmark-paper-template
11k에이전트가 연구 공백과 데이터셋 구축부터 실험과 제출 전 점검표까지, 벤치마크 연구 논문을 계획하고 점검하도록 돕습니다.
deep-research
11k에이전트가 연구 주제에 대해 설문 형식의 문헌 검토를 진행하도록 돕습니다. 검증된 인용, 명확한 분류, 근거 중심 보고서를 제공합니다.
figure-designer
11k에이전트가 연구 논문의 주요 그림의 레이아웃과 차트 유형을 고르고, 흔한 품질 기준에 맞는지 점검하도록 돕습니다.
idea-evaluator
11k에이전트가 초안 연구 아이디어의 새로움, 실현 가능성, 위험을 평가하고, 몇 달을 쓰기 전에 명확한 판정을 내리도록 돕습니다.