terminal-diagrams

terminal-diagrams is a skill for Claude Code from martineserios/thebrana. It costs 36 tokens per session (1,498 once invoked), scanned A, original, MIT.

A reference for drawing diagrams as plain text in a terminal using boxes, lines, arrows, and tree connectors. It covers flows, hierarchies, architecture, and other structures that are easier to see than describe.

In plain words
What is it for?
Use it when explaining architecture, workflows, decisions, hierarchies, or comparisons in monospace terminal output.
Why use it?
It gives text-only sessions a way to show relationships and sequences without an external diagram renderer.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the brana plugin — 53 skills, 4 commands, 14 agents shipped together

Good fit Use it when explaining architecture, workflows, decisions, hierarchies, or comparisons in monospace terminal output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martineserios/thebrana/terminal-diagrams
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add martineserios/thebrana --skill terminal-diagrams
Clone the repo
git clone --depth 1 https://github.com/martineserios/thebrana

Made for: Claude Code.

Or install brana, the plugin that ships this one along with the rest of its 53 skills, 4 commands, 14 agents.

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 terminal-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/martineserios/thebrana/terminal-diagrams/github.svg)](https://agentmods.dev/skills/martineserios/thebrana/terminal-diagrams)
Your own site
<a href="https://agentmods.dev/skills/martineserios/thebrana/terminal-diagrams"><img src="https://agentmods.dev/badge/skills/martineserios/thebrana/terminal-diagrams/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 terminal-diagrams

Your own site · 80×15
<a href="https://agentmods.dev/skills/martineserios/thebrana/terminal-diagrams"><img src="https://agentmods.dev/badge/skills/martineserios/thebrana/terminal-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,498 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.00036 $0.01498
Opus 5.5 $0.00014 $0.00599
Sonnet 5.5 $0.00007 $0.00300
Haiku 4.5 $0.00004 $0.00150

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

Security

Grade A, and why

terminal-diagrams 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 2mo 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.

system/skills/terminal-diagrams/SKILL.md · 152 lines

How it starts

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

Terminal Diagrams

Draw any diagram shape as plain monospace text — no external renderer, no Mermaid, no Artifact call. This is reference material: read it directly when a structural answer (architecture, flow, hierarchy, comparison) would be clearer as a diagram than prose alone — the trigger heuristic lives in system/rules/work-preferences.md §Terminal diagrams.

Not a closed list of diagram "types." Every diagram below is the same handful of primitives composed differently — learn the primitives, then compose whatever shape the answer needs.

Primitives

Boxes and lines (Unicode box-drawing — matches the vocabulary already established in display-themes.md's tree connectors):

┌─────────┐   corners: ┌ ┐ └ ┘     lines: ─ (horizontal) │ (vertical)
│  node   │   tree connectors: ├── └── │   (reuse display-themes.md exactly)
└─────────┘

Arrows and connectors:

→ ←  ↓ ↑     sync / direct flow
⇢ ⇠          async / eventual (dotted-in-spirit; Unicode has no dashed arrow, use ⇢)
├──          branch point (tree, decision fan-out)

Alignment rules (non-negotiable — a misaligned diagram is worse than none):

  • Fixed-width monospace only. Count visual width, not byte/char count — wide glyphs (most emoji, some box-drawing corners) can render 2-cells wide in a terminal; when in doubt, stick to the plain single-width set above and verify by eyeballing column alignment before sending.
  • Keep total width reasonable for a terminal pane — wrap or restructure past ~80-100 columns rather than letting a line run long and reflow.
  • Label every node and every edge that isn't obvious from position alone.

Worked examples

These four are the styles most explanations need — not the only ones the primitives support (see Composing other shapes below).

1. Flow / pipeline

┌─────────┐      ┌─────────┐      ┌─────────┐
│  LOAD    │ ───→ │ CLASSIFY │ ───→ │  BUILD   │
└─────────┘      └─────────┘      └─────────┘

Branching flow (decision point):

Read the full file on GitHub · 152 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. 2mo ago First seen · 152 lines · 36 tokens per session scan A 6322e1f147ec

Subscribe to this mod's changes

terminal-diagrams is a skill published in the GitHub repository martineserios/thebrana (3 stars, last pushed 8d ago), licensed MIT. It adds 36 tokens to every session and 1,498 once invoked, about $0.0001 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-03.

Related

terminal-diagrams compared with skills from other repositories

terminal-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terminal-diagramsmartineserios/thebranaSkill38d agoMITA36Claude Code
tech-diagramdesirecore/marketSkill2todayMITA210Claude Code
diagram-creatorclaude-office-skills/skillsSkill59910mo agoMITA34Claude Code, Codex
code-to-diagramzebbern/claude-code-guideSkill4.7k4d agoMITA74Claude Code, Codex
aws-architecture-diagramautomateyournetwork/netclawSkill739todayApache-2.0A43Claude Code, Codex
fin-arch-diagramcsmar432/finai-researchSkill1127d agoMITA72Cursor
svg-presskdcube/kdcubeSkill27yesterdayMITA87Claude Code