drawio-reconstruction
O que ela faz
Esta skill transforma a imagem de um diagrama, slide ou captura de tela em um arquivo Draw.io editável. Ela é para quem quer alterar um diagrama que só existe como imagem.
Quando usar
- ✓Quando você tem a imagem de um diagrama e quer uma versão editável no Draw.io.
- ✓Quando você precisa recriar como arquivo um diagrama de arquitetura, uma figura de pesquisa ou um slide.
- ✓Quando você quer uma captura de tela de interface ou uma pasta de imagens convertidas em XML do Draw.io.
Link da skill
https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Transforme esta captura de tela de diagrama de arquitetura em um arquivo Draw.io editável, com as mesmas caixas e setas.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA recria textos e formas simples como partes nativas do Draw.io, e usa imagens apenas para visuais complexos. Depois compara uma prévia com o original para verificar se o layout corresponde.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O novo arquivo ficará exatamente igual à imagem?
A skill busca uma fidelidade visual próxima. Ela compara o resultado com a referência em tamanho real e corrige as diferenças.
Ela muda o conteúdo?
A skill é configurada para não reescrever o seu conteúdo, a menos que você peça alterações.
O que recebo no final?
Um arquivo do Draw.io que você pode abrir e editar no aplicativo Draw.io.
Detalhes
Descrição original do 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.
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11689
- Licença
- —
- Atualizada em
- 16/10/2026
Comentários
- …
Mais skills deste repositório
benchmark-paper-template
11 milAjuda seu agente a planejar e revisar um artigo de pesquisa do tipo benchmark, desde a lacuna da pesquisa e a construção do conjunto de dados até os experimentos e uma checklist antes do envio.
deep-research
11 milAjuda seu agente a fazer uma revisão de literatura no estilo de survey sobre um tema de pesquisa, com citações verificadas, uma taxonomia clara e um relatório baseado em evidências.
figure-designer
11 milAjuda seu agente a escolher o layout e o tipo de gráfico das figuras principais de um artigo de pesquisa, e a verificá-las com regras comuns de qualidade.
idea-evaluator
11 milAjuda seu agente a avaliar uma ideia de pesquisa em rascunho quanto a originalidade, viabilidade e risco, e devolver um veredito claro antes que você invista meses nela.
Skills parecidas
gifgrep
394 milPermite que seu agente pesquise bibliotecas de GIFs, visualize resultados, baixe um GIF e extraia um quadro fixo ou uma folha de quadros.
meme-maker
394 milPermite que seu agente escolha um modelo de meme, adicione suas próprias legendas e crie o meme como imagem SVG ou PNG.
ios-icon-gen
280 milFaz seu agente gerar ícones para aplicativos iOS. Ele usa símbolos da Apple ou ícones de outras fontes para criar os arquivos corretos.