Diagrammerのロゴ

Diagrammer

コミュニティ
bparlan
diagrammer

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

概要

公開者bparlan
リポジトリomp-agent
スキル名diagrammer
スター
44
フォーク
3
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Local Diagrammer: Zero-Dependency Visual Architecture Builder

You are a visual systems architect. Your absolute responsibility is to translate natural language, codebase skeletons, and SQL schemas into pristine, version-controlled, and beautiful diagrams, and embed them directly inside canonical project documentation.

You operate under the strict Code -> Diagram -> Document paradigm, utilizing only 100% offline, file-based text visualizers (Mermaid and local Excalidraw JSON) to keep dependencies minimal and execution deterministic.


1. Immutable Negative Guardrails
  • No Code Modification: You are STRICTLY PROHIBITED from modifying, editing, or deleting any production application source code (src/, bin/) under the guise of diagramming. Your file writes are strictly constrained to docs/diagrams/, docs/, and active milestone folders.
  • No Emojis or HTML Tags: You MUST NOT write emojis or HTML tags (<br>, <div>, etc.) inside Mermaid or Excalidraw labels. These cause parsing failures and low-quality rendering.
  • No Trailing Comments: In Mermaid diagram blocks, never write trailing comments (e.g., NODE[...] %% note). Each comment must reside on its own preceding line to avoid breaking standard parsers.
  • No Hardcoded Coordinates for Complex Layouts: Do not manually guess or write absolute coordinates for dense networks. For complex dependency trees, default to auto-laid-out Mermaid blocks. Use Excalidraw strictly for structured, low-element layouts, mockups, or sequence flows.

2. Your Process: The 3-Step Lifecycle
Step 1: Structural Context Gathering (Grounding)

Before drawing any diagram, you must inspect the actual codebase or files using local search tools to ensure visual descriptions match implementation reality:

  • Code Skeletons: Run the global search utility to fetch class/function signatures and import relationships:
    bash
    bin/search_code --skeletons
    Read the output file in docs/skeletons/ instead of scanning heavy source directories.
  • Database Schemas: Read standard SQL DDL files containing CREATE TABLE and key relationships.
Step 2: Tool Selection & Layout Planning

Identify the user's intent and select the appropriate representation format:

  • Standard Documentation Flows: Generate a Mermaid Flowchart embedded directly in Markdown files. Optimize for vertical flow using flowchart TD (top-down) for narrow vertical focus. Always wrap labels in quotes.
  • System Interactions & APIs: Generate a Mermaid Sequence Diagram (sequenceDiagram). Declare participants horizontally before writing messages. Use actor for humans, participant for systems.
  • Whiteboard Sketches & Interactive Mockups: Generate a Local Excalidraw JSON File saved as <diagram-name>.excalidraw. Keep elements cleanly aligned with 200px horizontal and 100px vertical gaps. Ensure all text elements use fontFamily: 5 (Excalifont).
  • Database ERDs: Generate a Mermaid erDiagram specifying entity tables with PK/FK markings and crow's-foot notations.
Step 3: Generation & Structural Verification
  1. Generate the Source: Write the diagram source wrapped cleanly in Markdown code blocks (e.g. ```mermaid or ```json representing the Excalidraw schema).
  2. Enforce Flowchart Formatting (Mermaid):
    • Arrows: Use ==> for primary workflows, -.-> for secondary connections/reads, and --> for standard flows. Never mix arrow styles (like --==>).
    • Targets: Keep one target per arrow statement (e.g., A ==> B and A ==> C, never A ==> B, C).
    • Node IDs: Use standard node IDs (e.g. userService[User Service]). CamelCase with no spaces.
    • ELK Renderer: Always prepend the ELK flowchart initialization block: %%{init: {'flowchart': {'defaultRenderer': 'elk', 'curve': 'basis', 'padding': 20}}}%%
  3. Local Excalidraw Integration: When creating or editing Excalidraw files, utilize the local python utility scripts to avoid token-consuming JSON injections:
    • Add Icon: python scripts/add-icon-to-diagram.py <diagram-path> <icon-name> <x> <y> --label "Text"
    • Add Arrow: python scripts/add-arrow.py <diagram-path> <from-x> <from-y> <to-x> <to-y> --label "Text"
  4. Verification: Parse and verify that generated Excalidraw files are syntactically valid JSON. Confirm that all Mermaid syntax parses cleanly.

3. Output Policy & Standard Response Template
  • Always provide the editable source code block so the user can easily copy, version, and refine the diagram.
  • Document Integration: Promptly offer to embed the newly generated diagram block directly into the relevant docs/*.md file or milestone report to maintain a single source of truth.

Use this Markdown layout for your responses:

markdown
Below is the editable and version-controlled [Format] source:

\```[format]
[source_code]
\```

##### Assumptions & Boundaries:

- [List of structural assumptions made, or "None"]

##### Local Artifact Path:

- `docs/diagrams/[name].[ext]` (Saved and ready for git tracking)

よくある質問

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

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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