원클릭으로
mermaid-diagrams
Guide for creating syntactically correct Mermaid diagrams that render properly on GitHub
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Guide for creating syntactically correct Mermaid diagrams that render properly on GitHub
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate Mermaid architecture diagrams showing system components, layers, and data flows
Proactively identify at-risk issues and PRs: stale items, blocked work, deadline risks, scope creep, and unassigned high-priority items
Extract common questions from closed GitHub issues and generate an FAQ document with answers
Search project notes by topic, synthesize findings into a consolidated summary with cross-references
Proactively identify information gaps in project context and generate actionable questions to surface missing requirements, unclear specifications, or documentation gaps
Generate Mermaid dependency graphs showing issue relationships, blocking chains, and critical paths
| name | mermaid-diagrams |
| description | Guide for creating syntactically correct Mermaid diagrams that render properly on GitHub |
| instructions | When creating flowcharts, sequence diagrams, class diagrams, or any visual diagrams in markdown |
| tags | ["diagram","visualization","mermaid","flowchart","sequence","architecture","github"] |
Use Mermaid syntax to create clear, maintainable diagrams directly in markdown. Mermaid diagrams are rendered by GitHub, GitLab, and many documentation tools.
Using parentheses inside a label causes syntax errors when rendering on GitHub.
NEVER DO THIS:
flowchart TD
Start[Start agent loop (beginning)]
Criteria[Define completion criteria checklist 3-5]
ShowCriteria[Show criteria to user for approval]
CriteriaOK{User approved (causes errors)}
ALWAYS DO THIS INSTEAD:
flowchart TD
Start[Start agent loop - beginning]
Criteria[Define completion criteria checklist 3-5]
ShowCriteria[Show criteria to user for approval]
CriteriaOK{User approved}
Labels must have matching opening and closing brackets based on their shape.
CORRECT - Matching brackets:
flowchart TD
Start[Start agent loop]
Criteria[Define completion criteria checklist 3-5]
ShowCriteria[Show criteria to user for approval]
CriteriaOK{User approved}
INCORRECT - Mismatched brackets:
flowchart TD
Start[Start agent loop]
Criteria[Define completion criteria checklist 3-5]
ShowCriteria[Show criteria to user for approval]
CriteriaOK{User approved]
Notice that the brackets do not match on the label for CriteriaOK ({ opens but ] closes).
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
sequenceDiagram
participant Client
participant API
participant Database
Client->>API: Request data
API->>Database: Query
Database-->>API: Results
API-->>Client: Response
classDiagram
class User {
+String name
+String email
+login()
+logout()
}
class Post {
+String title
+String content
+publish()
}
User "1" --> "*" Post : creates
stateDiagram-v2
[*] --> Draft
Draft --> Review: submit
Review --> Published: approve
Review --> Draft: reject
Published --> [*]
erDiagram
USER ||--o{ POST : creates
USER {
int id PK
string name
string email
}
POST {
int id PK
int user_id FK
string title
text content
}
sequenceDiagram
participant U as User
participant F as Frontend
participant A as API
participant D as Database
U->>F: Click button
F->>A: POST /api/resource
A->>D: INSERT data
D-->>A: Success
A-->>F: 201 Created
F-->>U: Show confirmation
flowchart TD
Start[Receive Request] --> Auth{Authenticated?}
Auth -->|No| Reject[Return 401]
Auth -->|Yes| Valid{Valid Input?}
Valid -->|No| BadReq[Return 400]
Valid -->|Yes| Process[Process Request]
Process --> Success[Return 200]
flowchart LR
Client[Client App]
LB[Load Balancer]
API1[API Server 1]
API2[API Server 2]
Cache[(Redis Cache)]
DB[(Database)]
Client --> LB
LB --> API1
LB --> API2
API1 --> Cache
API2 --> Cache
API1 --> DB
API2 --> DB
[Rectangle] - Basic box(Rounded) - Rounded edges{Diamond} - Decision point([Stadium]) - Pill shape[[Subroutine]] - Double border[(Database)] - Cylinder((Circle)) - Circle--> - Solid arrow-.-> - Dotted arrow==> - Thick arrow--text--> - Labeled arrow--- - Line (no arrow)flowchart TD
A[Normal]
B[Highlighted]
style B fill:#f96,stroke:#333,stroke-width:4px
When asked to create diagrams:
[...], {...}, (...), etc.