Mermaidのロゴ

Mermaid

コミュニティ
diegomarino
mermaid

Internal routing hub for mermaid diagram skills

Add to TypingMind

概要

公開者diegomarino
リポジトリclaude-toolshed
スキル名mermaid
スター
58
フォーク
5
同梱ファイル
24
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 24個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    diegomarinoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Mermaid」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/diegomarino/claude-toolshed/tree/main/plugins/mermaid/skills/mermaid
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/diegomarino/claude-toolshed.git /tmp/claude-toolshed
mkdir -p .claude/skills
cp -r /tmp/claude-toolshed/plugins/mermaid/skills/mermaid .claude/skills/mermaid
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMermaidを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMermaidを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Mermaidは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Mermaid — Diagram and Documentation Skill

Mermaid diagram and documentation system with specialized guides and code-to-diagram capabilities.

Entry Points

Entry pointWhen to use
/mermaid-{type} commandsYou know the diagram type — fastest path
/mermaid-diagramUnsure of type — describe what you want, gets routed automatically
/mermaid-validateBatch-check existing .md files for broken diagrams
/mermaid-renderRender an existing .mmd file to SVG
/mermaid-configConfigure defaults and check dependencies
/mermaid-architectAnalyze a codebase path and generate a diagram suite
diagram-architect agentClaude detects diagram need during active development work
This skill (SKILL.md)Extended sessions: design docs, code-to-diagram, multi-diagram projects

Diagram Type Routing

Load only the guide for the requested type. Do not pre-load all guides.

Suite requests ("generate diagrams from this codebase", "diagram this project"): use /mermaid-architect — it selects multiple diagram types automatically from actual code.

Ambiguous type (description matches multiple types): use /mermaid-diagram — it asks one clarifying question and routes automatically.

User wantsLoad
Workflow, process, approval flow, user journeyreferences/guides/diagrams/activity-diagrams.md
Infrastructure, cloud, K8s, deploymentreferences/guides/diagrams/deployment-diagrams.md
System architecture, components, microservicesreferences/guides/diagrams/architecture-diagrams.md
API flow, service interactions, request/responsereferences/guides/diagrams/sequence-diagrams.md
Class hierarchy, OOP design, data modelsreferences/guides/diagrams/class-diagrams.md
Database schema, ER modelreferences/guides/diagrams/er-diagrams.md
State machines, lifecycle, FSMreferences/guides/diagrams/state-diagrams.md

Reference Guides

NeedLoad
Syntax errors, rendering failuresreferences/guides/troubleshooting.md (18 documented patterns)
Learning Mermaid, preventing errorsreferences/guides/common-mistakes.md
Color schemes, accessibility, themesreferences/guides/styling-guide.md
Production workflow, validation loopreferences/guides/resilient-workflow.md
Quick routing from symptom to actionreferences/guides/quick-decision-matrix.md

styling-guide.md is a special-case reference. Do not load it by default. Load it only when the user explicitly asks for custom palette/theme behavior, brand colors, accessibility tuning, or style overrides.

Code-to-Diagram

Routing rule: if the user names a framework → use the row below. If no framework is named → use /mermaid-architect.

FrameworkLoadWhich diagram guide
Spring Bootexamples/spring-boot/README.mdRoutes/controllers → sequence · Models/entities → class · Overview → architecture
FastAPI / Python APIexamples/fastapi/README.mdEndpoints/deps → sequence · Pydantic models → class · Overview → architecture
React / frontendexamples/react/README.mdarchitecture (always)
Python ETL / batchexamples/python-etl/README.mdactivity (always)
Node/Expressexamples/node-webapp/README.mdMiddleware/routes → sequence · Overview → architecture
Java Web Appexamples/java-webapp/README.mdRoutes → sequence · Models → class · Overview → architecture
Any codebasereferences/guides/code-to-diagram/README.mdMaster guide determines type

Design Document Templates (assets/)

TemplateWhen to load
architecture-design-template.md"Create architecture doc", "Document system design"
api-design-template.md"API design doc", "Document REST API"
feature-design-template.md"Feature design", "Plan new feature"
database-design-template.md"Database design", "Document schema"
system-design-template.md"System design doc", "Full system documentation"
local-config-template.md"Create mermaid local config", "Generate .claude/mermaid.json template"

Scripts (scripts/)

ScriptUse for
extract_mermaid.jsExtract diagrams from Markdown, validate syntax
resilient_diagram.jsFull workflow: save .mmd, generate SVG, validate, recover errors

Resilient Workflow

CRITICAL: Use resilient_diagram.js for all diagram generation — ensures validation and error recovery.

Key principle: Never add a diagram to Markdown until it passes validation via extract_mermaid.js --validate.

If no target file is specified for embedding: ask the user for the file path before proceeding with the embed step.

If resilient_diagram.js fails (Node.js not found, node_modules missing): stop and tell the user to run /mermaid-config → option 7 (health check) to diagnose missing dependencies.

Error recovery order: troubleshooting.md → common-mistakes.md → WebSearch

Full guide: references/guides/resilient-workflow.md

Unicode Symbols

Load references/guides/unicode-symbols/guide.md when user mentions "symbols", "icons", "emoji in diagrams".

Quick reference: ☁️ cloud · 🌐 load balancer · ⚙️ compute · 💾 data · 📬 messaging · 🔐 security · 🚨 alerts

Theme-First Styling

Default behavior: preserve the user's configured theme/themeVariables.

  • Do not add classDef with hardcoded fill/stroke/color unless the user explicitly asks for custom node colors.
  • Prefer semantic structure (subgraphs, labels, edges) over custom palette overrides.
  • If custom styling is explicitly requested, keep overrides minimal and ensure readable contrast.

User Configuration

Read .claude/mermaid.json as a first step before routing. Supported keys: theme, auto_validate, output_directory. Sub-skills (mermaid-diagram, mermaid-architect, mermaid-render) handle their own config reads in their Step 2.

Common Mistakes

MistakeFix
Diagram won't render after adding to MarkdownValidate with extract_mermaid.js --validate first — see references/guides/resilient-workflow.md
Syntax error with no obvious causeCheck references/guides/troubleshooting.md (18 documented patterns)
Repeated syntax mistakesRead references/guides/common-mistakes.md before generating
Generated diagram ignores configured themeRemove hardcoded classDef fill/stroke/color; use theme-first defaults
Loading all guides upfrontLoad only the guide for the requested diagram type

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Mermaid」では何ができますか?

Internal routing hub for mermaid diagram skills

TypingMindでMermaidを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Mermaidはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMermaidをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/diegomarino/claude-toolshed/tree/main/plugins/mermaid/skills/mermaidを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Mermaidを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Mermaidで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMermaidを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Mermaid」は無料ですか?

diegomarinoがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇