d2-diagram SKILL.md skillB

d2-diagram from mizchi/explainer is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mizchi/explainer/d2-diagram@git:20261006.fb5b169

Pins git:20261006.fb5b169 in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
mizchi/explainer
Path
skills/d2-diagram/SKILL.md
Versions recorded
3
Latest version
git:20261006.fb5b169, committed Oct 6, 2026
First version recorded
Oct 2, 2026
Size
26,370 bytes
Repository stars
452
License
MIT

Draw a software architecture, system, data-model or call-flow diagram as D2 text laid out by TALA (D2's whiteboard-style engine, open source since D2 0.9), look at it in the terminal before anyone opens an image, and check that the picture says what it claims — `d2 --layout=tala x.d2 x.txt` renders the layout as Unicode box drawing, `--ascii-mode standard` as plain ASCII for a README, and `assets/d2-facts.mjs` reads the drawn boxes and arrows back out of the render and holds them to a fact…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# d2-diagram

Paths below: `<skill>` is this skill's directory and `<skills>` the directory the skills are
installed in (`skills/` in mizchi/explainer, `.claude/skills/` in a project that installed them).

A D2 file is the diagram; the picture is a render of it. The writer's job is the
text — ids, labels, containers, connections — and TALA's job is where the boxes
go and how the lines bend. The terminal render exists so the writer reads the
picture on every round without leaving the shell, and so the diagram can live in
a README code block, a PR comment, or a `--help` text.

```d2
direction: right
web: Web frontend
api: API server
db: PostgreSQL {shape: cylinder}
web -> api: HTTPS
api -> db: SQL
```

```
                                                          .-‾‾‾‾‾‾-.
                                                         │╲-______-╱│
                    HTTPS                        SQL     │          │
┌─────────────┐──────────────▶┌───────────┐─────────────▶│          │
│Web frontend │               │API server │              │PostgreSQL│
│             │               │           │              │          │
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mizchi/explainer/d2-diagram@sha256:05df931fb5898b19

The line at the top of this page pins the label git:20261006.fb5b169, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vhhaa76fmszkfyjc.svg)](https://markdownregistry.com/a/art_vhhaa76fmszkfyjc)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Oct 2, 2026 and Oct 6, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261006.fb5b169 latest2026-10-06 fb5b169 26,370 BB view · diff
git:20261003.092c1732026-10-03 092c173 26,365 BB view · diff
git:20261002.50abac32026-10-02 50abac3 26,410 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No curl or wget piped into a shell (matched: curl -fsSL https://d2lang.com/install.sh | sh)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (26370 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

mizchi/explainer · 452 stars · license MIT · pushed 2026-10-10 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vhhaa76fmszkfyjc
GET https://markdownregistry.com/api/v1/resolve?ref=mizchi/explainer/d2-diagram
GET https://markdownregistry.com/api/v1/blob/05df931fb5898b19cb48010f5b81e351710f2b4bd34ca5ae37d79a878aa5ad51

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mizchi/explainer

d2-slides SKILL.md skill
mizchi/explainer · skills/d2-slides/SKILL.md · Build a slide deck whose source is text and whose figures are laid out by TALA — one Markdown file with a ```d2 fence…
git:20261006.fb5b169 · audit A · 452 stars
explainer-book SKILL.md skill
mizchi/explainer · skills/explainer-book/SKILL.md · 1 本の速習資料では収まらない、章立ての学習資料(<topic>-book/01-quickstart.md, 02-….md …)を、読み手のペルソナに合わせて設計・執筆・検証する。章ごとの学習目標と理解度チェックの対応、概念を導入より前…
git:20260925.3356251 · audit A · 452 stars
explainer SKILL.md skill
mizchi/explainer · skills/explainer/SKILL.md · 特定の読み手に向けて、概念・PR・設計を「冗長にならない水準」の速習資料として説明し、図と主張を道具で検証する。読み手のペルソナ(既に知っていること・知らないこと・読み方)を質問と公開情報から作り、その差分だけを書く。図は Mermaid…
git:20261010.c02cca9 · audit A · 452 stars
first-reader SKILL.md skill
mizchi/explainer · skills/first-reader/SKILL.md · Beta readers for any draft, run by simulating how a real reader experiences it, moment by moment. A skim gate, a…
git:20260925.3356251 · audit A · 452 stars

Every file in mizchi/explainer

Browse by kind, by grade B, or by owner.