arch-diagram

arch-diagram is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 109 tokens per session (1,929 once invoked), scanned A, original, Apache-2.0.

A diagram generator that creates paper-style pipeline and framework diagrams as TikZ LaTeX code or editable SVG files. TikZ is a LaTeX language for drawing diagrams.

In plain words
What is it for?
Use it for method overviews, block diagrams, pipelines, and layer-stack illustrations.
Why use it?
It provides editable source instead of requiring a diagram to be drawn manually or exported as a fixed image.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/arch_diagram.py --type pipeline --blocks "Encoder,Decoder,Head" --output arch.tex.

Good fit Use it for method overviews, block diagrams, pipelines, and layer-stack illustrations.

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/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/arch-diagram

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/arch-diagram/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/arch-diagram)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/arch-diagram"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/arch-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 arch-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/arch-diagram"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/arch-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,929 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.00109 $0.01929
Opus 5.5 $0.00044 $0.00772
Sonnet 5.5 $0.00022 $0.00386
Haiku 4.5 $0.00011 $0.00193

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

Security

Grade A, and why

arch-diagram 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.

site/skills/paper/arch-diagram/SKILL.md · 106 lines

How it starts

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

Arch Diagram (SOTA)

Generate method-overview diagrams (TikZ + valid SVG) for the "Model Architecture" figure.

v1's three hard bugs are fixed: ① TikZ wrote \sffootnotesize, which is not a valid LaTeX command (compile always errors with Undefined control sequence) -> changed to \footnotesize; ② SVG referenced url(#arrow) but never defined a marker (arrows didn't render) -> now outputs <defs><marker id="arrow">; ③ all blocks crammed on one line -> added row / wrap / stack layouts.

Input Checklist

Input Required Notes
diagram type yes --type pipeline (module flow) / nn (layered schematic) / svg (pure SVG)
blocks or layers conditional pipeline uses --blocks "Encoder,Decoder,Head", supports Label#color (blue/orange/green/red/purple/gray/yellow/cyan); nn uses --layers
layout no --layout row (default) / wrap/stack; wrap pairs with --per-row 3
output format no --format tikz (default) / svg
output path no --output arch.tex; default writes /tmp/arch.tex

When missing, ask everything at once: "Please provide: ① diagram type (pipeline / nn / svg) ② block names or layer spec ③ layout (row/wrap/stack; choose wrap when there are many blocks) ④ output path (default /tmp)."

Pre-flight Checks

python3 --version                       # expect >= 3.8, else error and STOP
test -f scripts/arch_diagram.py && echo OK   # expect OK printed, else script missing STOP

If python3 is missing -> prompt to install Python >=3.8; if the script is missing -> say this skill's directory is incomplete and don't continue.

Workflow

Step 1: Generate a Pipeline / Block Diagram

python3 scripts/arch_diagram.py --type pipeline --blocks "Encoder,Decoder,Head" --output arch.tex
python3 scripts/arch_diagram.py --type pipeline --blocks "A,B,C,D,E" --layout wrap --per-row 3 --format svg --output arch.svg
python3 scripts/arch_diagram.py --type pipeline --blocks "Input#green,Encoder#blue,Head#red" --output arch.tex

Expected: JSON output containing output, format, layout, n_blocks, blocks, escaped (whether any label was escaped), font_command: "\\footnotesize", compilable: true (TikZ) or has_marker_def/valid_root/editable: true (SVG). If it fails: --blocks empty -> the script uses default blocks (Data/Feature/Model/Loss); an illegal color name -> falls back to blue, no error.

Read the full file on GitHub · 106 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. 1mo ago Changed · -12 tokens per session cba0cda02523
  2. 1mo ago Changed · +12 lines · +25 tokens per session 799100637c7e
  3. 1mo ago First seen · 94 lines · 96 tokens per session scan A ee78f2fc7ac1

Subscribe to this mod's changes

arch-diagram is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 109 tokens to every session and 1,929 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-09-19.

Related

Other skills, from other repositories

schematics

Creates or refines publication-quality technical diagrams with the native generateimage tool (Nano Banana Pro through Ace or a Gemini key, GPT Image 2 through an OpenAI key), method and architecture overviews, pipelines, CONSORT and PRISMA flows, experimental workflows, biological pathways, circuits and conceptual…

synthetic-sciences/openscience · 134 tokens

latex-posters

Create professional research posters in LaTeX using beamerposter, tikzposter, or baposter. Support for conference presentations, academic posters, and scientific communication. Includes layout design, color schemes, multi-column formats, figure integration, and poster-specific best practices for visual communication.

beita6969/ScienceClaw · 60 tokens

paperbanana-diagram

Author publication-quality diagram specifications (method.txt files) from paper prose and draw.io sketches, following federal data visualization standards and Tufte design principles. Use when creating, modifying, or regenerating conceptual diagrams, architecture figures, or visual explanations for academic papers or…

brockwebb/open-census-mcp-server · 156 tokens

beautiful-mermaid

Build publication-grade Mermaid diagrams with consistent styling and SVG-first export for manuscript assets.

sciclaw/sciclaw · 20 tokens

drug-discovery

Drug discovery: ChEMBL search, drug-likeness, interactions.

NousResearch/hermes-agent · 19 tokens

archify

Validated interactive HTML diagrams, upstream-maintained.

NousResearch/hermes-agent · 12 tokens