本文へ移動
cccskills
無料GitHub で公開日本語紹介

mermaid

システムや依存関係の説明から、構成要素と呼び出しの向きを整理したMermaid図を作り、構文を検証してMarkdownで提示します。

原文原文の説明を見る

Create concise, syntax-verified Mermaid architecture diagrams. Use when the user asks to diagram a chapter topic, system, component, dependency flow, or supplied description in Mermaid.

puncsky/system-design-and-architectureスター 3,606(GitHub 3,606 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • システム構成を図にしたいとき
  • 依存関係の向きを整理したいとき
  • 章の内容をMermaidで図解したいとき

日本語での紹介

できること

システムや章の説明をもとに、サービス、データストア、人、依存関係を絞り込んだMermaidの構成図を作成します。矢印は呼び出しや読み書きの向きを示し、必要な場合だけ通信方法などのラベルを付けます。章の内容を図にする場合は該当ファイルを読んで、説明にある名称と整合させます。作成した図は指定バージョンのMermaid CLIで構文を検証し、問題があれば修正してから、図と短い説明を提示します。

こんなときに便利

システムの構成やコンポーネント間の関係を図にしたいとき、依存関係の流れを共有したいとき、章の内容を図解したいときに向いています。手順書のような手作業を稼働中のサービスと同列に描かず、必要に応じて区別して表します。

使い方の例

  • 「この章のシステム構成をMermaidで図にして」
  • 「API、データベース、キューの依存関係を図示して」

注意点

検証にはnpx -y @mermaid-js/mermaid-cli@11.16.0を使います。GitBookではMermaidのコードブロックが標準で表示されない場合があり、公開章ではSVG画像にするか、プラグインの有効化確認が必要です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Draw a mermaid architecture diagram in markdown for: $ARGUMENTS

Conventions

  • Boxes are services/components: svc[api-gateway]. Use [(...)] for datastores, [[...]]-style queues only if the chapter does. Humans (user, operator) are triangles: user@{ shape: tri, label: "user" }.
  • A box that is not a long-running service must say so in its label (cron["nightly compaction job (spawned, exits when done)"]). Never draw a manual procedure as a peer of running infrastructure; give it its own subgraph titled as manual.
  • Arrows are dependency direction: A --> B means A calls/reads/writes B — never the reverse. Label an edge (A -->|gRPC| B) only when the relationship isn't obvious.
  • Concise: only load-bearing components and edges. No styling, colors or legend. Default flowchart TB; LR only if much wider than deep. subgraph only for real boundaries (region, cluster, trust zone, sync vs. async path).
  • If $ARGUMENTS refers to a chapter in this book, read it first (en/<file>.md) — don't diagram from guesswork. Keep names consistent with the chapter's prose.

Syntax gotchas: quote labels containing (, ), [, { (a["Queue (SQS)"]); never name a node bare end or graph; quote subgraph titles with spaces.

Verify (mandatory, before answering)

  1. Write the diagram body (no fence) to a unique .mmd file under .agents/tmp/ (gitignored).
  2. Run npx -y @mermaid-js/mermaid-cli@11.16.0 -i <file>.mmd -o <file>.svg; exit 0 means valid. The version is pinned deliberately (supply chain) — bump consciously.
  3. On failure, fix and re-verify. Never output an unverified diagram.

Output

A single ```mermaid fenced block plus a short explanation of the key flow. If asked to put it in a file, insert the verified block there.

Book caveat: the GitBook build (gitbook-cli, Node 10) does not render Mermaid fences by default. For published chapters, either render the verified .mmd to an image under images/ (-o images/<name>.svg, referenced as ../images/<name>.svg) or confirm a Mermaid plugin is enabled in book.json before leaving a raw fence in a chapter. Mirror the diagram in both en/ and zh-CN/ (translate labels only).

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

dont-code-but-answer

無料概要あり

書籍や章、システム設計について、ファイルを変更せずに資料を読み、根拠を添えて質問に回答します。

  • 書籍や章の内容を確認したいとき
  • 設計の仕組みを説明してほしいとき
  • 変更せず資料の根拠を知りたいとき
puncsky/system-design-and-architecture3,6062026年10月23日 更新

loopx

無料概要あり

`.pm`の作業項目を順に確認し、実装・完了処理・保留・無効項目の整理を進め、対応できる項目がなくなるまで作業します。

  • 作業系列のバックログを整理したいとき
  • 未処理のマイルストーンを進めたいとき
  • 受信箱のメモを順に処理したいとき
puncsky/system-design-and-architecture3,6062026年10月23日 更新

pm

無料概要あり

本の公開作業ボードを確認・整理し、作業の追加、完了、保留、取り下げなどを反映します。状態や未解決の課題も把握できます。

  • 作業ボードの進捗や保留事項を確認したいとき
  • ロードマップ案をタスクとして登録したいとき
  • 完了・保留・再開をボードに反映したいとき
puncsky/system-design-and-architecture3,6062026年10月23日 更新

pm-brainstorm

無料概要あり

本のロードマップ案を読者への影響から整理し、マイルストーンやタスク候補に分解します。公開ボードへ反映するための提案文を作成します。

  • 本の改善テーマを作業案に分けたいとき
  • 読者への影響でロードマップを整理したいとき
  • タスクの規模や依存関係を見積もりたいとき
puncsky/system-design-and-architecture3,6062026年10月23日 更新

ship

無料概要あり

現在のブランチの変更を確認し、リモートの更新を取り込んでからコミットしてプッシュします。依頼に沿って変更を公開する作業を進めます。

  • 作業ブランチの変更を公開したいとき
  • 変更を選んでコミット・プッシュしたいとき
  • 公開前にリモートの更新を取り込みたいとき
puncsky/system-design-and-architecture3,6062026年10月23日 更新

puncsky のスキルをすべて見る

このスキルの問題を報告する