d2

d2 is a skill for Claude Code from LiorCohen/sdd. It costs 38 tokens per session (1,660 once invoked), scanned A, original, no licence file.

A reference for D2, a text-based language used to describe diagrams such as system layouts, sequences, database tables, and class relationships.

In plain words
What is it for?
Use it when creating architecture, sequence, grid, SQL table, or class diagrams that can be rendered with the D2 command-line tool or playground.
Why use it?
It helps you write valid D2 files instead of drawing these diagrams manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when creating architecture, sequence, grid, SQL table, or class diagrams that can be rendered with the D2 command-line tool or playground.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liorcohen/sdd/d2
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 LiorCohen/sdd --skill d2
Clone the repo
git clone --depth 1 https://github.com/LiorCohen/sdd

Made for: Claude Code.

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 d2

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/liorcohen/sdd/d2"><img src="https://agentmods.dev/badge/skills/liorcohen/sdd/d2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,660 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 unknown 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.00038 $0.01660
Opus 5.5 $0.00015 $0.00664
Sonnet 5.5 $0.00008 $0.00332
Haiku 4.5 $0.00004 $0.00166

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

Security

Grade A, and why

d2 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.

.claude/skills/d2/SKILL.md · 258 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 258 lines · 38 tokens per session scan A 8bb8842e23b3

Subscribe to this mod's changes

d2 is a skill published in the GitHub repository LiorCohen/sdd (43 stars, last pushed 8mo ago), with no licence file. It adds 38 tokens to every session and 1,660 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

design-craft

Design or substantially improve user-facing interfaces with a product-specific visual direction, content hierarchy, and rendered critique. Use for new screens, landing pages, redesigns, typography/layout work, or UI that feels generic or AI-generated. For small fixes, preserve the existing design without starting a…

WrongStack/WrongStack · 63 tokens

design-critique

Use this skill to audit an interface that already exists and say precisely why it looks generated, templated, or unfinished — a scored rubric across composition, typography, color, states, accessibility and copy, ending in a ranked fix list. Triggers: user says "review the design", "critique this UI", "why does this…

WrongStack/WrongStack · 110 tokens

design-reference-read

Read a reference website or screenshot the way a designer does — by measuring it. Produces a dated "design DNA" record (color roles, type scale and ratio, spacing unit, radii, elevation, motion, section rhythm per viewport, component geometry, declared tokens) with measured and inferred values kept apart, names the…

WrongStack/WrongStack · 174 tokens

design-to-code

Implement a supplied Figma design, screenshot, live reference site or design specification as a working interface, and prove the match with measured fidelity scores per axis (color, type, space, shape, layout, motion) instead of eyeballing. Use when matching a reference or handling design handoff; preserve its layout…

WrongStack/WrongStack · 72 tokens

pptx

Author and design high-impact PowerPoint presentations (.pptx) with modern 16:9 layouts, strong typographic hierarchy, visual cards, and zero wall-of-bullet-point slides. Use when creating pitch decks, technical briefings, executive presentations, or keynote slide decks.

WrongStack/WrongStack · 58 tokens

theme-factory

Apply curated, professional font pairings, chromatic palettes, and design themes to slide decks, web artifacts, landing pages, and documentation. Use when establishing a distinct visual identity, selecting cohesive color palettes, or applying thematic styling across user-facing artifacts.

WrongStack/WrongStack · 54 tokens