From tools
Create excellent technical documentation with Mermaid diagrams. Use when documenting code architecture, API flows, database schemas, state machines, system design, or any technical concept that benefits from visual diagrams. Also use when asked to explain code, create documentation, write README files, or document how systems work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tools:docs-with-mermaidThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
references/common-patterns.mdreferences/diagram-best-practices.mdreferences/diagram-selection.mdreferences/documentation-types.mdreferences/mermaid-syntax.mdtemplates/api-doc.mdtemplates/architecture-doc.mdtemplates/documentation-structure.mdtemplates/quality-checklist.mdtemplates/readme-structure.mdworkflows/create-readme.mdworkflows/document-api.mdworkflows/document-architecture.mdworkflows/explain-code-with-diagrams.md<quick_start> "A diagram is worth a thousand lines of code."
Good technical documentation:
Diagram selection quick reference:
| Documenting... | Use This Diagram |
|---|---|
| Process flow, algorithms, decision logic | Flowchart |
| API calls, service interactions, protocols | Sequence Diagram |
| Object-oriented design, class relationships | Class Diagram |
| Lifecycle, state machines, workflows | State Diagram |
| Database schema, data models | ER Diagram |
| System architecture (high level) | C4 Context Diagram |
| Application architecture (containers) | C4 Container Diagram |
| Component internals | C4 Component Diagram |
| User experience flows | User Journey |
| Project timelines | Gantt Chart |
| Prioritization matrices | Quadrant Chart |
| Hierarchical concepts | Mindmap |
| Historical events | Timeline |
| Git workflows | Git Graph |
| Proportions/percentages | Pie Chart |
Diagram creation guidelines:
PascalCase for services/components, camelCase for actionsLR for timelines/sequential, TB for hierarchiesIf you provided a specific topic or file path, I'll determine the best approach automatically.
Wait for response before proceeding.
| Response | Workflow | |----------|----------| | 1, "architecture", "system", "design", "deploy" | workflows/document-architecture.md | | 2, "api", "endpoint", "request", "flow" | workflows/document-api.md | | 3, "explain", "code", "how does", "understand" | workflows/explain-code-with-diagrams.md | | 4, "readme", "README" | workflows/create-readme.md | | 5, "other", custom topic | workflows/document-architecture.md (default) |Intent-based routing (if user provides clear intent without selecting menu):
If unsure which diagram types to use → Read references/diagram-selection.md first
After reading the workflow, follow it exactly.
<reference_index>
All in references/:
| Reference | When to Read | Size |
|---|---|---|
| mermaid-syntax.md | When creating any diagram - full syntax reference | ~900 lines |
| common-patterns.md | When looking for diagram examples by use case | ~850 lines |
| diagram-best-practices.md | When reviewing diagram quality | ~200 lines |
| documentation-types.md | When deciding what to include by doc type | ~150 lines |
| diagram-selection.md | When unsure which diagram type to use | ~60 lines |
Progressive disclosure: Only read references when the workflow instructs you to, or when you need syntax help for a specific diagram type. </reference_index>
<templates_index>
All in templates/:
| Template | Purpose |
|---|---|
| documentation-structure.md | General documentation template |
| architecture-doc.md | Architecture documentation template |
| api-doc.md | API documentation template |
| readme-structure.md | README template with diagram placeholders |
| quality-checklist.md | Pre-publish validation checklist |
| </templates_index> |
<success_criteria> Documentation is complete when:
npx claudepluginhub helloworldsungin/ark-ai-agent --plugin toolsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.