Prompt file imported from AdnanSattar/openclaw-slides (
.claude/commands/gen-diagram.md). Fill in{{arguments}}before use. Copyright stays with the author.
Use context7 to fetch current Mermaid docs: /mermaid-js/mermaid/v11_0_0
Read .agents/skills/mermaid-diagrams/SKILL.md first.
Read research/sections.md, find content between and .
Read slides/!printf "%02d" {{arguments}}-*.md to see current slide content.
Decide best diagram type for section content:
- request/response or multi-component flow → sequenceDiagram
- layered stack or architecture → flowchart TD
- system context (user → system → external) → C4Context
- state transitions or policy lifecycle → stateDiagram-v2
Validate syntax against fetched Mermaid docs. Add one dedicated diagram slide using with single mermaid block. Max 8 nodes. Patch file only — do not rewrite existing slides. No commentary.
