next-role: Skill for Claude Code

.agents/skills/drawio-skill/SKILL.md

drawio-skill is a skill for Claude Code, Codex from tam159/next-role. It costs 107 tokens per session (2,808 once invoked), scanned A, original, MIT.

A tool-assisted guide for creating and editing draw.io diagrams, which are editable visual files for showing systems, processes, data, and relationships. It can work from descriptions, source code, infrastructure files, database schemas, and API definitions.

In plain words
What is it for?
Use it for architecture, UML, entity-relationship, sequence, BPMN, network, and swimlane diagrams, including diagrams derived from code, Terraform, Kubernetes, SQL, or API schemas.
Why use it?
It keeps diagrams editable and can help keep them aligned with the systems they describe instead of leaving only a static image. It also provides ways to check, export, and publish existing diagrams.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions Codex; built for openclaw.

This is tam159/next-role's own configuration. It tells Claude Code and Codex how to work on next-role itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything next-role configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/validate.py diagram.drawio --score.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tam159/next-role/main/.agents/skills/drawio-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tam159/next-role

Made for: Claude Code, Codex.

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 drawio-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/tam159/next-role/drawio-skill/github.svg)](https://agentmods.dev/skills/tam159/next-role/drawio-skill)
Your own site
<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.

agentmods 80×15 button for drawio-skill

Your own site · 80×15
<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>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,808 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.00107 $0.02808
Opus 5.5 $0.00043 $0.01123
Sonnet 5.5 $0.00021 $0.00562
Haiku 4.5 $0.00011 $0.00281

Measured 1mo ago against content hash 010947e73cf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 33 executable files (scripts/aiicons.py, scripts/asyncapiimports.py, scripts/autolayout.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/drawio-skill/SKILL.md · 186 lines

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

Read the full file on GitHub · 186 lines

Files

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.

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. 1mo ago First seen · 186 lines · 107 tokens per session scan A 010947e73cf7

Subscribe to this mod's changes

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.

Related

drawio-skill compared with skills from other repositories

drawio-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drawio-skilltam159/next-roleSkill652d agoMITA107Claude Code, Codex
huashu-slidesnexu-io/open-designSkill106kyesterdayApache-2.0A46Claude Code, Codex
gsd-sketchopen-gsd/gsd-coreSkill11kyesterdayMITA27Claude Code
gsd-ui-phaseopen-gsd/gsd-coreSkill11kyesterdayMITA18Claude Code
gsd-ui-reviewopen-gsd/gsd-coreSkill11kyesterdayMITA17Claude Code
design-an-interfaceopen-gsd/gsd-piSkill1.4kyesterdayMITA99Claude Code, Codex
01-planai-driven-dev/frameworkSkill550todayMITA42Claude Code