Skip to content
Back to skills

Diagrams As Code

ASecurity

Create and check Mermaid, SVG, and D2 diagrams and README illustrations.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsexpressgitdocumentation

Works with

  • terminal

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add fmind/dot --skill diagrams-as-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagrams As Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagrams As Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-diagrams-as-code/badge)](https://www.skillsdirectory.com/skills/fmind-diagrams-as-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagrams-as-code
description: "Create and check Mermaid, SVG, and D2 diagrams and README illustrations."
license: MIT
metadata:
  kind: task
  author: Médéric HURIER (Fmind)
  source: github.com/fmind/dot/tree/main/skills/diagrams-as-code
  created: "2026-09-16"
  updated: "2026-10-05"
---

# 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](../fmind-visuals/SKILL.md) owns brand, decks, and terminal demos.

| Need                                                                       | Format                           | Why                                                        |
| -------------------------------------------------------------------------- | -------------------------------- | ---------------------------------------------------------- |
| Technical docs: AGENTS.md, skills, architecture, contributor, reference    | [Mermaid](references/mermaid.md) | Renders in Markdown and GitHub; maintainers edit structure |
| User docs: README, documentation-site landing and concept pages, courses   | [SVG](references/svg/GUIDE.md)   | Composed, branded illustration that carries one concept    |
| Existing `.d2` sources, Fmind article diagrams, bespoke standalone layouts | [D2](references/d2.md)           | 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

<!-- guides:start -->

- [d2](references/d2.md): D2 sources, standalone layouts, theming, and exports.
- [mermaid](references/mermaid.md): Technical-doc diagrams in Markdown and GitHub: syntax, validation, and rendering.
- [svg](references/svg/GUIDE.md): Hand-authored SVG illustrations for READMEs and user docs: composition, branding, embedding, and visual checks.

<!-- guides:end -->

Files in this skill

  • SKILL.md966 B
  • references/d2.md2.6 KB
  • references/mermaid.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…