本文へスキップ
Skillpedia
画像とアイコン11k · #11689

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUSTDial/Supervisor-Skills/blob/main/skills/drawio-reconstruction/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.
  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
よくある質問

新しいファイルは、画像と完全に同じに見えますか?

このスキルは、見た目をできる限り近づけることを目指します。結果を原寸の参照画像と比べ、違いを修正します。

内容は変わりますか?

依頼されない限り、内容を書き直さないように設計されています。

最後に何が手に入りますか?

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.

repo: HKUSTDial/Supervisor-Skills

人気

GitHubのスター
11k
ランキング
#11689
ライセンス
—
更新日
2026/10/16

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル