Agent skill · writing content · k-dense-ai

markdown-mermaid-writing

Comprehensive markdown and Mermaid diagram writing skill. Use when creating any scientific document, report, analysis, or visualization. Establishes text-based diagrams as the default documentation standard with full style guides (markdown + mermaid), 24 diagram type references, and 9 document templates.

Why this skill is useful

Provides a comprehensive style guide and templates for markdown and Mermaid diagrams that the AI wouldn't reliably generate on its own.

What it needs

About 8k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.

What this skill does

Markdown and Mermaid Writing Overview This skill teaches you — and enforces a standard for — creating scientific documentation using markdown with embedded Mermaid diagrams as the default and canonical format. The core bet: a relationship expressed as a Mermaid diagram inside a .md file is more valuable than any image. It is text, so it diffs cleanly in git. It requires no build step. It renders natively on GitHub, GitLab, Notion, VS Code, and any markdown viewer. It uses fewer tokens than a prose description of the same relationship. And it can always be converted to a polished image later — but the text version remains the source of truth. "The more you get your reports and files in .md in just regular text, which mermaid is as well as being a simple 'script language'. This just helps with any downstream rendering and especially AI generated images (using mermaid instead of just long form text to describe relationships < tokens). Additionally mermaid can render along with markdown for easy use almost anywhere by humans or AI." — Clayton Young (@borealBytes), K-Dense Discord, 2026-02-19 When to Use This Skill Use this skill when: Creating any scientific document — reports, analyses, manuscripts, methods sections Writing any documentation — READMEs, how-tos, decision records, project docs Producing any diagram — workflows, data pipelines, architectures, timelines, relationships Generating any output that will be version-controlled — if it's going into git, it should be markdown Working with any other skill — this skill defines the documentation layer that wraps every other output Someone asks you to "add a diagram" or "visualize the relationship" — Mermaid first, always Do NOT start with Python matplotlib, seaborn, or AI image generation for structural or relational diagrams. Those are Phase 2 and Phase 3 — only used when Mermaid cannot express what's needed (e.g., scatter plots with real data, photorealistic images). …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills k-dense-ai/markdown-mermaid-writing

View the source on GitHub

Browse the @skills marketplace