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.
npx skills add fmind/dot --skill diagrams-as-codegit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/diagrams-as-code)<a href="https://agentmods.dev/skills/fmind/dot/diagrams-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/diagrams-as-code/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.
<a href="https://agentmods.dev/skills/fmind/dot/diagrams-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/diagrams-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00413 |
| Opus 5.5 | $0.00008 | $0.00165 |
| Sonnet 5.5 | $0.00004 | $0.00083 |
| Haiku 4.5 | $0.00002 | $0.00041 |
Grade A, and why
diagrams-as-code 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 today.
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.
What it actually says
Diagrams as Code
Choose the simplest picture that explains the system, or none when prose, a list, or a table is more direct. This skill owns the format choice; fmind-visuals owns brand, decks, and terminal demos.
| Need | Format | Why |
|---|---|---|
| Technical docs: AGENTS.md, skills, architecture, contributor, reference | Mermaid | Renders in Markdown and GitHub; maintainers edit structure |
| User docs: README, documentation-site landing and concept pages, courses | SVG | Composed, branded illustration that carries one concept |
Existing .d2 sources, Fmind article diagrams, bespoke standalone layouts |
D2 | Containers, layers, and exports Mermaid cannot express |
Workflow
Read only the matching guide and its required resources. Use a known guide directly when shared prerequisites are not needed.
Task guides
What ships with it
5 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.
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.
- today Changed 2cb508dc2028
- 3d ago Changed b4df845a4691
- 4d ago Changed 52ca86eae3b8
- 9d ago Changed 46b94afd5032
- 11d ago Changed 6c7d1d152cc6
- 12d ago Changed · +7 lines · -2 tokens per session 4c9ac8f23a62
- 14d ago Changed ae1b1d260ab5
- 29d ago First seen · 29 lines · 22 tokens per session scan A 1751b405512b
diagrams-as-code is a skill published in the GitHub repository fmind/dot (11 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 413 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-17.
Other skills, from other repositories
fmind-visuals
Apply the Fmind visual identity and route slide or diagram work to Slidev, Mermaid, LikeC4, or D2. Use for Fmind talks, decks, article diagrams, architecture visuals, and www.fmind.dev assets.
mermaid
Create, theme, validate, and embed Mermaid diagrams as the default text-based diagram format for GitHub, Slidev, documentation, and technical communication.
d2
Create, theme, validate, and export D2 diagrams when an existing D2 source or a bespoke standalone composition is a better fit than the default Mermaid workflow.
product-design-review
Critique customer interface flows using interaction, visual, responsive, keyboard and screen-reader accessibility, content, and runtime evidence. Use for UX audits, design reviews, UI polish, onboarding, empty states, or redesign.
dotfiles-bootstrap
Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.
vibe
Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…