Aller au contenu
Skillpedia
Images et icônes11k · #11689

drawio-reconstruction

Ce qu’il fait

Cette skill transforme l'image d'un schéma, d'une diapositive ou d'une capture d'écran en fichier Draw.io modifiable. Elle s'adresse aux personnes qui ne disposent d'un schéma que sous forme d'image et veulent le modifier.

Quand l’utiliser

  • ✓Quand vous avez l'image d'un schéma et voulez une version Draw.io modifiable.
  • ✓Quand vous avez besoin de reconstruire un schéma d'architecture, une figure de recherche ou une diapositive sous forme de fichier.
  • ✓Quand vous voulez transformer une capture d'écran d'interface ou un dossier d'images en XML Draw.io.

Lien du skill

https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Transformez cette capture de schéma d'architecture en fichier Draw.io modifiable avec les mêmes boîtes et les mêmes flèches.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA reconstruit le texte et les formes simples comme des éléments Draw.io natifs, et n'utilise des images que pour les visuels complexes. Elle compare ensuite un aperçu avec l'original pour vérifier que la mise en page correspond.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.
  1. Identify the input directory, output directory, naming convention, and overwrite policy.

  2. Create a batch manifest:

    python "$SKILL_DIR/scripts/batch_manifest.py" path/to/images --output-dir path/to/output --write
    
  3. Review the manifest before editing. Process only entries in the manifest unless the user expands scope.

  4. For each image, define the expected <stem>.drawio, <stem>.png, and lightweight <stem>.audit.md outputs in the target output directory.

  5. 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
Questions fréquentes

Le nouveau fichier ressemblera-t-il exactement à l'image ?

La skill vise une fidélité visuelle étroite. Elle compare le résultat à la référence en taille réelle et corrige les différences.

Modifie-t-elle le contenu ?

La skill est conçue pour ne pas réécrire votre contenu, sauf si vous demandez des modifications.

Qu'obtenez-vous à la fin ?

Un fichier Draw.io que vous pouvez ouvrir et modifier dans l'application Draw.io.

Détails

Description originale de l’auteur

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.

repo: HKUSTDial/Supervisor-Skills

Popularité

Étoiles GitHub
11k
Position au classement
#11689
Licence
—
Mis à jour
16/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires