add-diagram
Add Mermaid diagrams to a Slidev presentation slide.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Add Mermaid diagrams to a Slidev presentation slide.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Analyze code-to-spec coverage in an Openspec project and generate a compliance score and report.
Update existing Openspec spec files to match the standard spec template format. Ensures consistency and completeness across all specs in a project.
Add new slides with various layouts to a Slidev presentation.
Build a static SPA or export a Slidev presentation to PDF.
Initialize a new Slidev project with slides.md and configuration.
| name | add-diagram |
| description | Add Mermaid diagrams to a Slidev presentation slide. |
| license | MIT |
| compatibility | Requires Slidev project with slides.md. Mermaid is built-in. |
| metadata | {"author":"user","version":"1.0","generatedBy":"copilot"} |
Description: Add Mermaid diagrams to an existing Slidev presentation to visualize concepts, flows, and relationships.
slides.md file in your Slidev project.mermaid as the language.pnpm dev or your Slidev dev server.Wrap your diagram in:
```mermaid
graph LR
A --> B
```
graph TD or graph LRsequenceDiagramslides.md file.presentations/openspec-with-copliot-experience/slides.md.presentations/transport-slides/slides.md./slidevjs/slidev or Mermaid docs for more diagram options.mermaid as the language.graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
sequenceDiagram
participant User
participant Server
participant Database
User->>Server: Request
Server->>Database: Query
Database-->>Server: Results
Server-->>User: Response
classDiagram
class Animal {
+String name
+int age
+makeSound()
}
class Dog {
+fetch()
}
Animal <|-- Dog
stateDiagram-v2
[*] --> Idle
Idle --> Processing: start
Processing --> Complete: finish
Processing --> Error: fail
Complete --> [*]
Error --> Idle: retry
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
PRODUCT ||--o{ LINE-ITEM : "ordered in"
gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Phase 1
Research :a1, 2024-01-01, 30d
Design :a2, after a1, 20d
section Phase 2
Development :a3, after a2, 60d
Testing :a4, after a3, 15d
pie title Language Usage
"JavaScript" : 45
"Python" : 30
"Go" : 15
"Other" : 10
gitGraph
commit
branch feature
checkout feature
commit
commit
checkout main
merge feature
commit