Borrowing it
Nothing to install: this file belongs to tam159/next-role. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tam159/next-role/main/.agents/skills/drawio-skill/SKILL.mdgit clone --depth 1 https://github.com/tam159/next-roleWrote 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.
[](https://agentmods.dev/skills/tam159/next-role/drawio-skill)<a href="https://agentmods.dev/skills/tam159/next-role/drawio-skill"><img src="https://agentmods.dev/badge/skills/tam159/next-role/drawio-skill/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.
<a href="https://agentmods.dev/skills/tam159/next-role/drawio-skill"><img src="https://agentmods.dev/badge/skills/tam159/next-role/drawio-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.02808 |
| Opus 5.5 | $0.00043 | $0.01123 |
| Sonnet 5.5 | $0.00021 | $0.00562 |
| Haiku 4.5 | $0.00011 | $0.00281 |
Grade A, and why
drawio-skill 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Draw.io Architecture Studio
Produce editable .drawio artifacts, not flattened pictures. The preferred
entrypoint is scripts/diagramctl.py, which unifies generation, incremental
sync, multi-view projection, semantic queries/tests/reviews, failure analysis,
and accessible publishing over a shared Diagram IR.
Choose the workflow
| Request | Route |
|---|---|
| Natural-language diagram with precise styling | Read references/diagram-types.md, then references/xml-authoring.md and author XML |
| Standard flowchart/mindmap/gantt/timeline/etc. with no special styling | If draw.io >=30, read references/mermaid-authoring.md and convert Mermaid to native .drawio |
| Large graph (~15+ nodes) that needs automatic layout | Use autolayout.py; read references/autolayout.md before passing any --layout value |
| Code, Terraform, K8s, compose, SQL, OpenAPI, AsyncAPI, or CI source | Use diagramctl.py build; read references/diagram-ir.md |
| Protocol Buffers schema (.proto) | Use protoimports.py or diagramctl.py build; read references/toolbox.md |
| GraphQL SDL schema (.graphql/.gql) or introspection JSON | Use graphqlerd.py or diagramctl.py build; read references/toolbox.md |
| Running cluster/stack/cloud (actual state, not declared config) | Read references/live-infra.md, then use tfstate.py, dockerimports.py, or k8simports.py - |
| Update a generated diagram without losing manual layout | Use diagramctl.py sync; read references/diagram-ir.md |
| Executive/system/deployment/data-flow/security views | Use diagramctl.py views; read references/diagram-ir.md |
| Query, architecture policy, review, what-if, or guided walkthrough | Read references/semantic-workflows.md |
| MCP host (Claude Desktop, Cursor, VS Code, Codex) should call these workflows | Register scripts/diagramctl_mcp.py; read references/mcp.md |
| Prompt phrasing for a diagram type or semantic workflow | Read references/cookbook.md |
| Enforce architecture rules or visual diffs in GitHub Actions CI | Read references/ci-gate.md |
| Rendered before/after/diff images as a PR review comment | Use prdiff.py; read references/pr-bot.md |
Existing .drawio to HTML/PPTX/Mermaid/Markdown/animation/runbook |
Read references/toolbox.md; diagramctl.py transform exposes the existing tools |
| Pipeline, journey, or subsystem map drawn as a metro/subway map | Use tubemap.py; read references/tubemap.md |
| Shape, cloud/vendor, AI, or Databricks icon | Read references/shapes.md or references/databricks.md; never guess shape names |
| Learn/apply/manage a visual style | Read references/style-presets.md |
| Extract a reusable style from an existing diagram or theme | Read references/style-extraction.md |
| Existing image to editable diagram (screenshot, whiteboard photo, legacy PNG) | Read references/derasterize.md |
| Export/platform problem | Read references/troubleshooting.md; for access/network questions read references/security.md |
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 307 B
- data/databricks-icons.json 11 KB
- data/diagram-ir.schema.json 1.5 KB
- data/lobe-icons.json 13 KB
- data/SHAPE-INDEX-NOTICE.md 880 B
- data/shape-index.json.gz 426 KB
- LICENSE 1.0 KB
- references/autolayout.md 19 KB
- references/ci-gate.md 2.0 KB
- references/cookbook.md 6.9 KB
- references/databricks.md 2.6 KB
- references/derasterize.md 2.5 KB
- references/diagram-ir.md 4.7 KB
- references/diagram-types.md 16 KB
- references/live-infra.md 3.6 KB
- references/mcp.md 2.8 KB
- references/mermaid-authoring.md 4.9 KB
- references/pr-bot.md 3.8 KB
- references/security.md 2.0 KB
- references/semantic-workflows.md 2.7 KB
- references/shapes.md 7.0 KB
- references/style-extraction.md 17 KB
- references/style-presets.md 11 KB
- references/toolbox.md 12 KB
- references/troubleshooting.md 7.3 KB
- references/tubemap.md 3.2 KB
- references/xml-authoring.md 15 KB
- scripts/aiicons.py 8.2 KB runs code
- scripts/asyncapiimports.py 11 KB runs code
- scripts/autolayout.py 18 KB runs code
- scripts/buildup.py 14 KB runs code
- scripts/c4.py 6.5 KB runs code
- scripts/ciimports.py 7.6 KB runs code
- scripts/composeimports.py 4.6 KB runs code
- scripts/compress.py 10 KB runs code
- scripts/dbxicons.py 12 KB runs code
- scripts/diagram_ir.py 57 KB runs code
- scripts/diagramctl_mcp.py 13 KB runs code
- scripts/diagramctl.py 20 KB runs code
- scripts/dockerimports.py 6.2 KB runs code
- scripts/drawio2mermaid.py 5.8 KB runs code
- scripts/drawio2pptx.py 4.4 KB runs code
- scripts/drawiodiff.py 11 KB runs code
- scripts/drawiohtml.py 10 KB runs code
- scripts/edgeports.py 9.1 KB runs code
- scripts/encode_drawio_url.py 2.2 KB runs code
- scripts/explain.py 6.0 KB runs code
- scripts/goimports.py 6.0 KB runs code
- scripts/graphqlerd.py 16 KB runs code
- scripts/heatmap.py 9.0 KB runs code
- scripts/jsimports.py 6.4 KB runs code
- scripts/k8simports.py 9.6 KB runs code
- scripts/openapiimports.py 6.6 KB runs code
- scripts/prdiff.py 7.8 KB runs code
- scripts/protoimports.py 18 KB runs code
- scripts/pyclasses.py 6.1 KB runs code
- scripts/pyimports.py 6.9 KB runs code
- scripts/raster2drawio.py 7.3 KB runs code
- scripts/relabel.py 4.1 KB runs code
- scripts/repair_png.py 1.1 KB runs code
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.
- 1mo ago First seen · 186 lines · 107 tokens per session scan A 010947e73cf7
drawio-skill is a skill published in the GitHub repository tam159/next-role (65 stars, last pushed 2d ago), licensed MIT. It adds 107 tokens to every session and 2,808 once invoked, about $0.0004 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-10-05.
drawio-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| drawio-skilltam159/next-role | Skill | 65 | 2d ago | MIT | A | 107 | Claude Code, Codex |
| huashu-slidesnexu-io/open-design | Skill | 106k | yesterday | Apache-2.0 | A | 46 | Claude Code, Codex |
| gsd-sketchopen-gsd/gsd-core | Skill | 11k | yesterday | MIT | A | 27 | Claude Code |
| gsd-ui-phaseopen-gsd/gsd-core | Skill | 11k | yesterday | MIT | A | 18 | Claude Code |
| gsd-ui-reviewopen-gsd/gsd-core | Skill | 11k | yesterday | MIT | A | 17 | Claude Code |
| design-an-interfaceopen-gsd/gsd-pi | Skill | 1.4k | yesterday | MIT | A | 99 | Claude Code, Codex |
| 01-planai-driven-dev/framework | Skill | 550 | today | MIT | A | 42 | Claude Code |