dym-diagram-design-import-extractors-shell

dym-diagram-design-import-extractors-shell is a skill for Claude Code from Rheinmir/setup. It costs 75 tokens per session (2,589 once invoked), scanned A, original, MIT.

Terminal scripts that read draw.io and Mermaid diagram files and turn their contents into a readable summary or structured JSON. Mermaid is a text format for describing diagrams, while draw.io is a visual diagramming tool.

In plain words
What is it for?
Use them to extract diagram information manually, feed it into another script or CI job, or review a diagram before importing it.
Why use it?
They let you inspect what a source diagram contains before an agent chooses a design or detail level. The extraction step separates reading the source from making design decisions.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions OpenCode.

Good fit Use them to extract diagram information manually, feed it into another script or CI job, or review a diagram before importing it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rheinmir/setup/dym-diagram-design-import-extractors-shell
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rheinmir/setup --skill dym-diagram-design-import-extractors-shell
Clone the repo
git clone --depth 1 https://github.com/Rheinmir/setup

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dym-diagram-design-import-extractors-shell

README.md
[![agentmods](https://agentmods.dev/badge/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell/github.svg)](https://agentmods.dev/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell)
Your own site
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dym-diagram-design-import-extractors-shell

Your own site · 80×15
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-diagram-design-import-extractors-shell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.02589
Opus 5.5 $0.00030 $0.01036
Sonnet 5.5 $0.00015 $0.00518
Haiku 4.5 $0.00007 $0.00259

Measured yesterday against content hash e3bd5323e8d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dym-diagram-design-import-extractors-shell scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.overstack/doyourmagic/diagram-design/skills/dym-diagram-design-import-extractors-shell/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: dym-diagram-design-import-extractors-shell — Hai extractor chạy trong terminal (draw.io và Mermaid)

Vì sao dùng: hai script này là nửa tất định của luồng import. Chúng không bao giờ ra quyết định thiết kế — chúng giải mã file nguồn và in ra một bản IR (intermediate representation) mà agent đọc để chọn loại sơ đồ và mức chi tiết. Chạy chúng bằng tay khi bạn muốn nhìn thấy nguồn có gì trước khi để agent vẽ, hoặc khi cần cắm vào script/CI.

File này sinh ra gì: một digest Markdown (mặc định, in ra stdout) hoặc IR JSON đầy đủ (--json).

Toàn bộ file này là lệnh shell. Bản slash-command tương ứng nằm ở 05 — đừng trộn hai bên.


1. Định vị script trước đã

Đây là lỗi số một. commands/import-drawio.md yêu cầu rõ: "Never assume the skill is under the current working directory."

# tuỳ host, chọn cái nào tồn tại
SKILL_DIR=~/.claude/skills/diagram-design
SKILL_DIR=~/code/diagram-design/skills/diagram-design
SKILL_DIR=~/.config/opencode/skills/diagram-design

ls "$SKILL_DIR/scripts/"
# kỳ vọng: drawio_extract.py  mermaid_extract.py  self_check.py

2. drawio_extract.py

Chữ ký thật (đọc từ argparse cuối file, không phải từ README)

python3 drawio_extract.py <file> [--page N|NAME] [--json] [--max-rows N] [--out PATH]
Tham số Ý nghĩa
file (bắt buộc) .drawio / .xml / .drawio.png / .drawio.svg
--page N|NAME chọn trang theo chỉ số hoặc tên
--json in toàn bộ IR (mọi node, mọi edge, mọi style) thay vì digest
--max-rows N giới hạn số dòng bảng; phải ≥ 1, ngược lại parser.error
--out PATH ghi ra file thay vì stdout

Nó giải mã được gì

Docstring nói thẳng: script "decodes whatever draw.io wrote (raw XML, deflate+base64 payloads, PNG/SVG files with an embedded mxfile), flattens the mxGraphModel into absolute-positioned nodes and edges."

Đây là lý do không được đọc thẳng file .drawio bằng cat — phần lớn bị nén, XML thô là nhiễu.

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 224 lines · 75 tokens per session scan A e3bd5323e8d1

Subscribe to this mod's changes

dym-diagram-design-import-extractors-shell is a skill published in the GitHub repository Rheinmir/setup (11 stars, last pushed 20d ago), licensed MIT. It adds 75 tokens to every session and 2,589 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

dym-diagram-design-import-extractors-shell compared with skills from other repositories

dym-diagram-design-import-extractors-shell next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dym-diagram-design-import-extractors-shellRheinmir/setupSkill1120d agoMITA75Claude Code
webgl-holographic-foilnexu-io/open-designSkill107ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill107ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill107ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10k2d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code