drawio-reconstruction
Qué hace
Esta skill convierte una imagen de un diagrama, una diapositiva o una captura en un archivo de Draw.io editable. Está pensada para personas que quieren cambiar un diagrama que solo tienen como imagen.
Cuándo usarla
- ✓Cuando tienes la imagen de un diagrama y quieres una versión editable en Draw.io.
- ✓Cuando necesitas reconstruir como archivo un diagrama de arquitectura, una figura de investigación o una diapositiva.
- ✓Cuando quieres convertir una captura de interfaz o una carpeta de imágenes en XML de Draw.io.
Link de la skill
https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Convierte esta captura de un diagrama de arquitectura en un archivo de Draw.io editable, con las mismas cajas y flechas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA reconstruye el texto y las formas sencillas como elementos nativos de Draw.io, y usa imágenes solo para elementos visuales complejos. Después compara una vista previa con el original para comprobar que la maquetación coincide.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿El archivo nuevo se verá exactamente igual que la imagen?
La skill busca una fidelidad visual muy cercana. Compara el resultado con la referencia a tamaño completo y corrige las diferencias.
¿Cambia el contenido?
La skill está configurada para no reescribir tu contenido, salvo que pidas cambios.
¿Qué obtengo al final?
Un archivo de Draw.io que puedes abrir y editar en la aplicación Draw.io.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 11 mil
- Posición en el ranking
- #11689
- Licencia
- —
- Actualizada
- 16/10/2026
Comentarios
- …
Más skills de este repositorio
benchmark-paper-template
11 milAyuda a tu agente a planificar y revisar un artículo sobre un benchmark, desde el hueco de investigación hasta la lista previa al envío.
deep-research
11 milAyuda a tu agente a hacer una revisión bibliográfica de un tema, con citas verificadas, una taxonomía clara y un informe basado en pruebas.
figure-designer
11 milAyuda a tu agente a elegir la maquetación y el tipo de gráfico de las figuras de un artículo, y a comprobar su calidad.
idea-evaluator
11 milAyuda a tu agente a juzgar una idea de investigación en borrador por novedad, viabilidad y riesgo, con un veredicto claro antes de invertir meses.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.