mermaid-diagram-specialist
できること
このスキルにより、AIは処理、システム、データモデルを分かりやすい図に変換できます。ドキュメントに図を入れたい書き手や技術チーム向けです。
使う場面
- ✓ワークフローや意思決定の流れのフローチャートが必要なとき。
- ✓部品同士のやり取りを示すシーケンス図がほしいとき。
- ✓データベースのエンティティ関連図が必要なとき。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/mermaid-diagram-specialist/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ログイン要求が私のAPIとデータベースをどう流れるかを示すシーケンス図を作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、質問に合った図の種類を選び、エンティティ、ステップ、関係を説明するMermaidのテキストを書きます。Mermaidに対応したツールで、そのテキストを図として表示できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Mermaid Diagram Specialist
Overview
Purpose: Expert in creating comprehensive Mermaid diagrams for documentation, architecture visualization, and process mapping
Category: Tech Primary Users: tech-writer, architecture-validator, product-technical, tech-lead
When to Use This Skill
- Creating architecture documentation
- Visualizing workflows and processes
- Documenting data models (ERDs)
- Explaining sequence flows
- Creating state machines
- Documenting component relationships
- Creating decision trees
- Visualizing user journeys
Prerequisites
Required:
- Understanding of the system/process to document
- Access to technical specifications
- Knowledge of diagram type needed
Optional:
- Design system colors for consistency
- Existing documentation to reference
Input
What the skill needs:
- Process/system description
- Entities and relationships (for ERDs)
- Component interactions (for sequence diagrams)
- Architecture layers (for C4 diagrams)
- States and transitions (for state diagrams)
Workflow
Step 1: Diagram Type Selection
Objective: Choose appropriate diagram type for requirements
Available Diagram Types:
- Flowchart: Decision flows, algorithms, processes
- Sequence Diagram: API interactions, message flows
- ERD: Database schemas, entity relationships
- Class Diagram: Object-oriented design
- State Diagram: State machines, lifecycle
- Gantt Chart: Project timelines, schedules
- C4 Diagram: Architecture at different levels
- Pie/Bar Charts: Data visualization
- Git Graph: Version control flows
- User Journey: User experience flows
Decision Matrix:
- Process with decisions → Flowchart
- API/system interactions → Sequence Diagram
- Database structure → ERD
- System architecture → C4 Diagram
- Object relationships → Class Diagram
- State transitions → State Diagram
- Project timeline → Gantt Chart
Validation:
- Diagram type matches content
- Complexity appropriate
- Audience considered
- Purpose clear
Output: Selected diagram type
Step 2: Flowchart Creation
Objective: Create process and decision flow diagrams
Syntax:
flowchart TD
Start([Start]) --> Input[/User Input/]
Input --> Validate{Valid?}
Validate -->|Yes| Process[Process Data]
Validate -->|No| Error[Show Error]
Error --> Input
Process --> Save[(Save to DB)]
Save --> Success[/Success Response/]
Success --> End([End])
Node Shapes:
[Rectangle]- Process step([Rounded])- Start/End{Diamond}- Decision[/Parallelogram/]- Input/Output[(Database)]- Data storage((Circle))- Connector
Direction Options:
TD- Top to DownLR- Left to RightBT- Bottom to TopRL- Right to Left
Example - Booking Flow:
flowchart TD
Start([User Initiates Booking]) --> CheckDates[Check Date Availability]
CheckDates --> Available{Dates Available?}
Available -->|No| ShowError[/Show Unavailable Message/]
ShowError --> End([End])
Available -->|Yes| CreateBooking[Create Pending Booking]
CreateBooking --> Payment[Process Payment]
Payment --> PaymentSuccess{Payment Success?}
PaymentSuccess -->|No| CancelBooking[Cancel Booking]
CancelBooking --> ShowError
PaymentSuccess -->|Yes| ConfirmBooking[Confirm Booking]
ConfirmBooking --> SendEmail[/Send Confirmation Email/]
SendEmail --> SaveDB[(Save to Database)]
SaveDB --> Success[/Show Success/]
Success --> End
Validation:
- All paths covered
- Decision points clear
- Start and end defined
- Flow direction logical
Output: Process flowchart
Step 3: Sequence Diagram Creation
Objective: Document API interactions and message flows
Syntax:
sequenceDiagram
actor User
participant Frontend
participant API
participant DB
participant Payment
User->>Frontend: Click "Book"
Frontend->>API: POST /api/bookings
API->>DB: Check availability
DB-->>API: Available
API->>Payment: Process payment
Payment-->>API: Payment successful
API->>DB: Create booking
DB-->>API: Booking created
API-->>Frontend: 201 Created
Frontend-->>User: Show confirmation
Participant Types:
actor- Human userparticipant- System/Servicedatabase- Database
Arrow Types:
->- Solid line
よくある質問
どの図の種類がありますか?
フローチャート、シーケンス図、エンティティ関連図、クラス図、状態図、ユーザージャーニーに対応しています。
図の種類を選ぶ手伝いもしますか?
はい。最初の手順は、要件に合った図の種類を選ぶことです。
デザインの色に合わせられますか?
はい。一貫性のために、デザインシステムの色を使えます。
詳細
作者による元の説明
Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations
人気
- GitHubのスター
- 33k
- ランキング
- #8777
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
owasp-security
33kエージェントがWebアプリ、API、モバイル、コンテナ、AIエージェント向けの OWASP のセキュリティ指針を理解し、よくある弱点を見つけて修正案を出せるよう支援します。
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。