mcpField
A
architecture-diagram-gpt-imagegen

architecture-diagram-gpt-imagegen

github.com/arthurzakirovクリエイティブ・メディア0167 回インストール4 週間前に更新
リポジトリ

architecture-diagram-gpt-imagegen について

アーキテクチャ図やワークフロー図の画像生成プロンプトを作るエージェントスキルです。システムの説明を画像生成指示にしたい場合に向き、完成したプロンプトを指定ファイルに保存して、チャットにはファイルパスだけを返します。

主な機能

  1. 01説明から画像生成プロンプトを作成
  2. 02左から右への横向きレイアウトが既定
  3. 0316:9の横長キャンバスが既定
  4. 04Mermaidの構造アウトラインを作成
  5. 05指定ファイルへのプロンプト保存
  6. 06後続のCodex画像生成に対応

活用シーン

  1. 01サービス一覧からアーキテクチャ図のプロンプトを作成
  2. 02Mermaid図を画像生成指示に変換
  3. 03プロジェクトのワークフロー図プロンプトを作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/arthurzakirov/proofstack --skill architecture-diagram-gpt-imagegen

インストール後、Claude Code で/architecture-diagram-gpt-imagegenを入力して読み込まれたか確認します。

詳細

アーキテクチャ図 GPT 画像ジェネレーター

チャットモデルに貼り付けると、洗練されたアーキテクチャ図またはワークフロー図の画像を生成する GPT プロンプトを作成します。プロンプトはファイルに書き込みます。チャットへの出力はファイルパスだけにします。

出力ルール

このスキルが実行された場合:

  1. 完全なプロンプトを ~/diagram-prompts/<slug>.md に書き込みます。ディレクトリが存在しない場合は作成します。<slug> はトピックから推測した短いケバブケースにします。
  2. ファイルの内容はプロンプトのみとします。
  3. チャットへの返信は、正確に次のとおりにします。
Prompt -> /home/arthur/diagram-prompts/<slug>.md
Open the file, copy all, paste into GPT.
  1. 書き込み後、プロンプト本文をチャットに再掲しないでください。

最低限の入力

ユーザーは次の情報を提示できます。

  • Mermaid 図
  • 音声メモのような大まかな説明
  • サービスと接続の一覧
  • 現在のプロジェクトを図にする依頼

重要なフローの方向やシステムの意図が本当に曖昧な場合は、簡潔な確認質問を1つしてください。それ以外の場合は、以下のデフォルトに基づいて不足部分を補ってください。

必須のデフォルト

ユーザーが明示的に変更しない限り、常に次を適用してください。

  1. 方向はデフォルトで左から右への横向きとします。
  2. 画像のアスペクト比はデフォルトで横向きの16:9とします。
  3. プロンプトは自己完結型とし、新しいチャットセッションでも使用できるようにします。
  4. プロンプト内の Mermaid ソースは、デフォルトで flowchart LR とします。

プロンプトのテンプレート

内容を図に合わせて調整し、次の構成でプロンプトファイルを書き込みます。

Create a polished enterprise architecture diagram image. Render the image in 16:9 horizontal landscape aspect ratio. Do NOT output Mermaid code. Do NOT explain the diagram. Your task is to GENERATE AN IMAGE based on the specification below.

## Layout & system boundary

- Image canvas: 16:9 horizontal landscape
- Horizontal left-to-right layout
- [system-boundary containers and spatial arrangement]

## Visual style

- Clean, modern, enterprise-grade architecture diagram
- Rounded containers, soft shadows, generous spacing
- Crisp directional arrows; label branches on every decision diamond
- Minimal text inside nodes — use icons or emojis for meaning
- Prioritize clarity over technical detail

## Logos & icon mapping

Use recognizable logos for:
- [services that appear in the diagram]

Use visual metaphors:
- [emojis used in the diagram]

## Flow structure

[numbered left-to-right stages, grouping nodes and decisions]

## Color guidance

- System container: [platform tint]
- Entry points or triggers: warm red or amber
- Inputs or read tools: green
- AI or prompt nodes: purple or blue
- Decisions or retry loops: neutral blue-gray
- Output channels: green
- Per-service nodes use brand colors

## Semantic constraints

- [topology, ordering, and decision rules]

## Source structure (for reference only, do not output)

```mermaid
[mermaid source from the user or inferred from the description]

## Default Logo Library

Map products and systems to recognizable logos when relevant:

- Jira
- Bitbucket
- Slack
- Databricks
- AWS
- Kubernetes
- Datadog
- Confluence
- OpenAI
- Claude
- GitHub
- Google Sheets
- Java or backend services

If a service is not covered, use a plain rounded box with a fitting emoji.

## Default Visual Metaphors

Use emojis only when a concept has no natural product logo. Useful defaults include:

- `📄` prompt or document
- `🏷️` classification or label
- `💬` rationale or comment
- `⚙️` decision logic or processing
- `🛠️` fix or modification
- `🔒` validation
- `📣` routing
- `🚨` alert or failure
- `✅` success
- `❌` failure
- `⏰` schedule
- `🔁` retry loop
- `🔍` search or lookup
- `📊` metrics
- `🧠` AI or agent
- `🗄️` storage
- `📥` input
- `📤` output

## Parsing The User's Input

1. Identify services and products, then map them to logos.
2. Identify flow direction. Default to horizontal LR except genuine hierarchy-heavy exceptions.
3. Identify containers or subgraphs.
4. Identify decision diamonds and label both branches.
5. Identify retry loops and label them clearly.
6. Apply colors by role.
7. Build a Mermaid source block so the generator has a spatial spine.

## File Writing

Create `~/diagram-prompts` if it does not exist, then write the full prompt to `~/diagram-prompts/<slug>.md`. Do not add timestamps unless the user explicitly asks.

## Final Chat Reply

After the file is written, the chat reply must be exactly:

```text
Prompt -> /home/arthur/diagram-prompts/<slug>.md
Open the file, copy all, paste into GPT — or reply "imagegen" to render it directly via Codex CLI.

Codex による任意の画像生成

ユーザーが imagegen、yes generate、render it、またはその他の明確な肯定の返答をした場合は、プロンプトを画像に変換するローカルヘルパーを実行し、画像のパスと1行の起動コマンドのみを返します。

コメント