draw-diagram

draw-diagram is a skill for Kiro from smileynet/teach-me. It costs 53 tokens per session (2,082 once invoked), scanned B, original, MIT.

A tool for creating inline SVG teaching diagrams, such as architecture layers, data flows, and hub-and-spoke relationships. SVG is a scalable image format that stays sharp at different sizes.

In plain words
What is it for?
Use it to generate stack diagrams, left-to-right process flows, or diagrams with one central service connected to several others.
Why use it?
It gives lessons and technical explanations a visual way to show how parts connect or how data moves.

Skill for Kiro

Written for Kiro: installed under .kiro/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tools/draw-diagram.py --type stack --data '{.

Good fit Use it to generate stack diagrams, left-to-right process flows, or diagrams with one central service connected to several others.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/smileynet/teach-me
agentmods
npx agentmods add skills/smileynet/teach-me/draw-diagram

Made for: Kiro.

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 draw-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/smileynet/teach-me/draw-diagram/github.svg)](https://agentmods.dev/skills/smileynet/teach-me/draw-diagram)
Your own site
<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.

agentmods 80×15 button for draw-diagram

Your own site · 80×15
<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>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00053 $0.02082
Opus 5 $0.00026 $0.01041
Sonnet 5 $0.00011 $0.00416
Haiku 4.5 $0.00005 $0.00208

Measured 10d ago against content hash efc717f5d3ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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)
.kiro/skills/draw-diagram/SKILL.md · 218 lines

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"]}
  ]
}'

Read the full file on GitHub · 218 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. 10d ago First seen · 218 lines · 53 tokens per session scan B efc717f5d3ca

Subscribe to this mod's changes

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.

Related

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.

bytesagain/ai-skills · 53 tokens

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.

kangarooking/cangjie-skill · 139 tokens

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…

Lingtai-AI/lingtai · 116 tokens

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.

chubbyguan/chubbyskills · 58 tokens

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.

mohi-devhub/antivibe · 50 tokens

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…

fatihguner/foreman · 82 tokens