diagrams-expert

Generate Mermaid diagrams for technical documentation in Markdown.

2|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/coagus/php-api-builder --skill diagrams-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagrams-expert
Source: https://github.com/coagus/php-api-builder/tree/main/.claude/skills/diagrams-expert
Command: npx skills add https://github.com/coagus/php-api-builder --skill diagrams-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mermaid-first approach to diagrams enables developers to embed diagrams directly in Markdown docs, ensuring diagrams stay version-controlled alongside code and are renderable without plugins.

Core Features & Use Cases

  • Mermaid supports flowcharts, sequence diagrams, ER diagrams, state machines, class diagrams, and C4 architecture diagrams for inline documentation.
  • Provides guidelines for when to use which diagram type, captioning, and best-practices for documentation diagrams.
  • Use cases include architectural decision records, API design docs, and system diagrams placed beside relevant code or design notes.

Quick Start

Start by adding a fenced mermaid code block in your Markdown file to render the diagram alongside the prose.

Frequently Asked Questions about diagrams-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Mermaid diagrams to Markdown documentation?

To add Mermaid diagrams to Markdown documentation, insert a fenced code block labeled 'mermaid' to render flowcharts and sequence diagrams inline without external plugins. This keeps diagrams version-controlled directly within your docs.

Which diagram type should I use for architecture documentation?

For architecture documentation, use C4 architecture diagrams to visualize system context, while flowcharts map logic, sequence diagrams map interactions, and ER diagrams map data models based on specific documentation needs.

Can I generate sequence diagrams and ER diagrams from Markdown?

Yes, you can generate sequence diagrams and ER diagrams from Markdown by writing Mermaid syntax inside fenced code blocks. This allows developers to render interactive diagrams directly in developer docs.

What is the best way to version control technical diagrams alongside code?

The best way to version control technical diagrams is using a Mermaid-first approach in Markdown, embedding diagrams as fenced code blocks so they render natively in Git repositories without plugin dependencies.

Are there limitations to using Mermaid diagrams for developer docs?

A limitation of using Mermaid diagrams for developer docs is enforcing one-diagram-per-page guidance to maintain readability, though it supports diverse types like state machines, class diagrams, and C4 architecture diagrams.