Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/smileynet/teach-menpx agentmods add skills/smileynet/teach-me/draw-diagramWrote 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/smileynet/teach-me/draw-diagram)<a href="https://agentmods.dev/skills/smileynet/teach-me/draw-diagram"><img src="https://agentmods.dev/badge/skills/smileynet/teach-me/draw-diagram/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/smileynet/teach-me/draw-diagram"><img src="https://agentmods.dev/badge/skills/smileynet/teach-me/draw-diagram.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.00053 | $0.02082 |
| Opus 5 | $0.00026 | $0.01041 |
| Sonnet 5 | $0.00011 | $0.00416 |
| Haiku 4.5 | $0.00005 | $0.00208 |
Grade B, and why
draw-diagram scanned grade B with 1 finding 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 10d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt install graphviz # system binary (Linux) How it starts
The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Draw Diagram
Generate teaching diagrams as inline SVG via tools/draw-diagram.py. Output goes to stdout — paste directly into lesson HTML.
Prerequisites
mise run setup # installs drawsvg via uv
Commands
Layered Stack (architecture layers, top-to-bottom)
python tools/draw-diagram.py --type stack --data '{
"layers": [
{"label": "AWS Glue Catalog", "color": "blue"},
{"label": "Metadata (JSON)", "color": "amber", "subtitle": "schema + snapshots"},
{"label": "Data Files (Parquet)", "color": "green"}
],
"arrows": ["points to", "lists files"]
}'
Left-to-Right Flow (pipelines, sequences)
python tools/draw-diagram.py --type flow --data '{
"nodes": [
{"label": "Producers", "color": "blue"},
{"label": "Glue ETL", "color": "amber"},
{"label": "Iceberg Table", "color": "green"},
{"label": "Athena", "color": "blue"}
],
"arrows": ["raw events", "write Parquet", "query"]
}'
Hub-and-Spoke (central service + connections)
python tools/draw-diagram.py --type hub --data '{
"center": {"label": "Glue Catalog", "color": "blue"},
"spokes": [
{"label": "Athena", "color": "gray"},
{"label": "EMR Spark", "color": "gray"},
{"label": "Redshift", "color": "gray"},
{"label": "Glue ETL", "color": "gray"}
]
}'
Graph (fan-out/fan-in, groups, auto-layout)
The most flexible type. Nodes are named by ID, edges can connect one-to-many or many-to-one. Layout is computed automatically via topological ranking.
python tools/draw-diagram.py --type graph --data '{
"direction": "LR",
"nodes": [
{"id": "lb", "label": "Load Balancer", "preset": "infrastructure"},
{"id": "w1", "label": "Worker 1", "preset": "concept"},
{"id": "w2", "label": "Worker 2", "preset": "concept"},
{"id": "db", "label": "Database", "preset": "example"}
],
"edges": [
{"from": "lb", "to": ["w1", "w2"], "label": "distribute"},
{"from": ["w1", "w2"], "to": "db", "label": "write"}
],
"groups": [
{"label": "Compute", "nodes": ["w1", "w2"]}
]
}'
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.
- 10d ago First seen · 218 lines · 53 tokens per session scan B efc717f5d3ca
draw-diagram is a skill published in the GitHub repository smileynet/teach-me (3 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 2,082 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
anki
Anki spaced repetition learning system reference. Covers the science of SRS and SM-2 algorithm, card design principles, optimal deck settings, FSRS scheduler, study workflow, essential add-ons, custom templates, filtered decks, and AnkiConnect API.
reading-metaskill
A reading and learning guide based on building a regular reading habit, choosing books, and understanding difficult subjects through original works and explanation.
textbook-distillation
Turn a textbook or long-form source into a self-paced learning track: chapter map, lesson plan, then self-contained HTML lecture notes (styled as the human specifies) with worked examples, exercises, and checkpoint questions. Read this for "lecture notes" / "study notes" / "course" / "syllabus" requests from a…
learning-notes-automation
A workflow for turning videos, podcasts, and articles into structured learning notes. It extracts key ideas and creates flashcards that can be imported into Anki, a spaced-repetition study app.
antivibe
Code learning and audit framework. Analyze any codebase — new, legacy, or AI-generated — and produce educational explanations or architectural audits. Use when the user wants to understand WHAT and WHY behind any code, not just accept it.
learning-agility
Builds the leader's capacity for rapid, continuous learning through humility, curiosity, feedback receptivity, cross-training, reflective practice, and deliberate skill selection. Use when a leader's expertise has become stale, when the organisation faces skills gaps that training alone cannot close, when setbacks…