jpskill.com
💬 コミュニケーション コミュニティ

uml-modeling

ソフトウェアやシステムの構造・動作を、UML図を用いて設計、評価、修正し、視覚的な表現やモデルを通じて、関係者間のコミュニケーションを円滑に進めるSkill。

📜 元の英語説明(参考)

Design, critique, and revise UML diagrams from a modeling and communication perspective. Use when Codex is asked to create or improve UML; when the user asks for a graphical representation, diagram, schema, visual model, process map, state view, architecture view, or system representation of software/system behavior or structure; when the user does not explicitly choose UML but needs a model-like visual explanation; when Codex must autonomously choose the right UML diagram type or split across multiple UML diagrams. Use for reasoning about diagram form, abstraction level, boundaries, grouping, lifecycle/state design, behavior vs structure, interaction design, or diagnosing why a diagram feels wrong at the modeling level. This skill treats notation as the final representation, not as the core task.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ソフトウェアやシステムの構造・動作を、UML図を用いて設計、評価、修正し、視覚的な表現やモデルを通じて、関係者間のコミュニケーションを円滑に進めるSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o uml-modeling.zip https://jpskill.com/download/17749.zip && unzip -o uml-modeling.zip && rm uml-modeling.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17749.zip -OutFile "$d\uml-modeling.zip"; Expand-Archive "$d\uml-modeling.zip" -DestinationPath $d -Force; ri "$d\uml-modeling.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して uml-modeling.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → uml-modeling フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
26

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

UML モデリング

目的

このスキルは、単に図のテキストを出力するだけでなく、UML を設計するために使用します。目標は、意味的に正しく、視覚的に読みやすく、対象読者に適切で、ユーザーが意思決定を行う上で役立つモデルを作成することです。

また、ユーザーがソフトウェア/システムの懸念事項について、グラフィカルな表現、スキーマ、図、または視覚的な説明を一般的に求めており、UML を指定していない場合にも、このスキルを使用します。その場合、UML が適切かどうかを推測し、UML 図の種類を自律的に選択します。

UML を思考の形式を持つモデリング言語として扱います。

  • 構造形式: 何が存在し、どのように組織化されているか。
  • 行動形式: 何が起こり、どのように行動が制約されるか。
  • 相互作用形式: 誰が誰と、どのような順序またはタイミングで通信するか。
  • 拡張形式: モデリング言語がどのように調整されるか。

モデルが概念的に正しいと判断された後にのみ、表記法またはドキュメント形式を選択する必要があります。

交渉不可: 自己完結型 UML、メタ情報の漏洩禁止

すべての UML 図は、プロジェクト、会話、ソースファイル、またはユーザーリクエストに関する事前の知識がない外部の読者にとって、それ自体で完結している必要があります。

これはすべての図で必須です。

  • プロンプト、会話、リクエスタ、リポジトリ、タスク履歴、不確実性、または図がどのように作成されたかに関するメタ情報を含めないでください。
  • ユーザーリクエストの文言を、タイトル、注釈、ラベル、凡例、または図のコメントに漏洩させないでください。
  • プロジェクトをすでに知っている人にしか意味をなさないラベルを使用しないでください。
  • 暗黙のコンテキスト、隠れた前提、説明されていない頭字語、名前のない境界、または名前のない外部システムに依存しないでください。
  • as requestedcurrent projectexisting codethe userthis servicesame as aboveTODOunknown、または assumed などのラベルを記述しないでください。
  • モデル化された主題、スコープ、境界、アクター/参加者、外部システム、および理解に必要な重要な制約を、モデル内に明示的に記述します。
  • UML を理解するために事実が必要であり、安全に推測できない場合は、確定する前に明確化を求めるか、External ServiceAuthorization Provider、または Data Store などのニュートラルで明示的なドメイン名を使用します。

UML はリクエストの記録ではありません。それは主題のスタンドアロンモデルです。

知識の優先順位

バンドルされている参照を運用知識ベースとして使用します。

  1. このスキルの参照ファイルは、すでに消化された UML モデリングガイダンスとして扱います。
  2. 1つの図の種類を扱う場合は、一般的なカタログよりも特定の図の詳細な解説を優先します。
  3. 問題がセマンティックな場合(主題、視点、状態 vs アクション、構造 vs 行動、境界、または抽象化レベル)は、modeling-foundations.md を優先します。
  4. 外部の公式 UML 資料は、このスキルを保守または更新する場合、またはバンドルされている参照が特定の未解決のセマンティックな競合に対して不十分な場合にのみ使用します。
  5. 表記法/ツールのドキュメントは、UML 形式が選択された後にのみ使用します。

必要に応じて参照を読みます。

  • references/modeling-foundations.md: 公式 UML 仕様から抽出され、モデリングルールに変換されたセマンティックな基礎。
  • references/uml-form-and-design.md: モデリング方法と形式の原則。
  • references/diagram-design-catalog.md: 完全な UML 図カタログと選択ガイダンス。
  • references/diagram-type-playbooks.md: 図ごとの詳細な解説のインデックス。
  • references/state-machines.md: ステートマシン設計、ライフサイクルモデリング、複合状態、アンチパターン。
  • references/activities.md: アクティビティ図設計、制御/オブジェクトフロー、決定、パーティション。
  • references/interactions.md: シーケンス、コミュニケーション、タイミング、および相互作用の概要設計。
  • references/structure-diagrams.md: クラス、オブジェクト、パッケージ、コンポーネント、複合構造、デプロイメント、プロファイル設計。
  • references/use-cases.md: アクターと目標のモデリングおよびシステム境界。
  • references/review-rubric.md: セマンティックレビューチェックリストと修復ワークフロー。

特定の図の種類については、一致する詳細な解説のみをロードします。

  • references/class-diagram.md
  • references/object-diagram.md
  • references/package-diagram.md
  • references/component-diagram.md
  • references/composite-structure-diagram.md
  • references/deployment-diagram.md
  • references/profile-diagram.md
  • references/use-case-diagram.md
  • references/activity-diagram.md
  • references/state-machine-diagram.md
  • references/sequence-diagram.md
  • references/communication-diagram.md
  • references/timing-diagram.md
  • references/interaction-overview-diagram.md

必須ワークフロー

0. 暗黙的な図のリクエストを認識する

正確なフレーズではなく、意図のカテゴリを認識します。ユーザーが以下を要求した場合、たとえ「UML」という単語がなくても、リクエストを UML モデリングのリクエストの可能性として扱います。

  • 図、スキーマ、グラフィカルな表現、または視覚的なモデルを作成する。
  • 状態、モード、ライフサイクル、可用性、有効性、または有効期限を表す。
  • フロー、プロセス、手順、アルゴリズム、またはステップのシーケンスを説明する。
  • アーキテクチャ、トポロジ、モジュール、コンポーネント、パッケージ、またはデプロイメントを描画する。
  • 関係、依存関係、所有権、包含、またはインターフェースをマッピングする。
  • 相互作用、メッセージ、タイミング、アクター、または責任を視覚化する。

ユーザーの言語に関係なく、この認識を適用します。ロケール固有のフレーズマッチングに依存しないでください。

主題がソフトウェア、アーキテクチャ、状態、ワークフロー、相互作用、デプロイメント、ドメイン構造、またはシステム動作である場合は、UML を使用します。ユーザーが純粋に装飾的な画像、インフォグラフィック、チャート、または非モデルのビジュアルを要求する場合は、UML を強制しないでください。

UML が適切であり、ユーザーが種類を指定しなかった場合は、自分で種類を選択します。2つの実質的に異なる解釈が、異なるリスクのあるモデルを生み出す場合にのみ、明確化を求めます。

1. モデリングの問題を組み立てる

描画する前に、以下を特定します。

  • 図の対象読者: 開発者、アーキテクト、アナリスト、プロダクトオーナー、テスター、オペレーター。
  • 図が答えなければならない質問。
  • モデル化される主題。
  • システムまたは要素の境界。

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

UML Modeling

Purpose

Use this skill to design UML, not merely to emit diagram text. The goal is a model that is semantically correct, visually legible, audience-appropriate, and useful for the decision the user needs to make.

Also use this skill when the user asks generically for a graphical representation, schema, diagram, or visual explanation of a software/system concern and does not name UML. In that case, infer whether UML is appropriate and choose the UML diagram type autonomously.

Treat UML as a modeling language with forms of thought:

  • structural form: what exists and how it is organized;
  • behavioral form: what happens and how behavior is constrained;
  • interaction form: who communicates with whom, in what order or timing;
  • extension form: how the modeling language is tailored.

Only after the model is conceptually right should you choose a notation or documentation format.

Non-Negotiable: Self-Contained UML, No Meta Leakage

Every UML diagram must stand on its own for an external reader who has no prior knowledge of the project, conversation, source files, or user request.

This is mandatory for every diagram:

  • Do not include meta-information about the prompt, conversation, requester, repository, task history, uncertainty, or how the diagram was produced.
  • Do not leak user-request wording into titles, notes, labels, legends, or diagram comments.
  • Do not use labels that only make sense to someone who already knows the project.
  • Do not rely on implicit context, hidden assumptions, unexplained acronyms, unnamed boundaries, or unnamed external systems.
  • Do not write labels such as as requested, current project, existing code, the user, this service, same as above, TODO, unknown, or assumed.
  • Make the modeled subject, scope, boundary, actors/participants, external systems, and important constraints explicit inside the model when they are needed for understanding.
  • If a fact is necessary to understand the UML and cannot be inferred safely, ask for clarification before finalizing or use a neutral, explicit domain name such as External Service, Authorization Provider, or Data Store.

UML is not a transcript of the request. It is a standalone model of the subject.

Knowledge Priority

Use the bundled references as the operational knowledge base:

  1. Treat the reference files in this skill as the already-digested UML modeling guidance.
  2. Prefer the specific diagram deep dive over the general catalog when working on one diagram type.
  3. Prefer modeling-foundations.md when the problem is semantic: subject, viewpoint, state vs action, structure vs behavior, boundaries, or abstraction level.
  4. Use external official UML material only when maintaining or updating this skill, or when the bundled references are insufficient for a specific unresolved semantic conflict.
  5. Use notation/tool documentation only after the UML form is chosen.

Read references as needed:

  • references/modeling-foundations.md: semantic foundations extracted from the official UML specification and converted into modeling rules.
  • references/uml-form-and-design.md: modeling method and form principles.
  • references/diagram-design-catalog.md: complete UML diagram catalog and selection guidance.
  • references/diagram-type-playbooks.md: index of the per-diagram deep dives.
  • references/state-machines.md: state machine design, lifecycle modeling, composite states, anti-patterns.
  • references/activities.md: activity diagram design, control/object flow, decisions, partitions.
  • references/interactions.md: sequence, communication, timing, and interaction overview design.
  • references/structure-diagrams.md: class, object, package, component, composite structure, deployment, profile design.
  • references/use-cases.md: actor-goal modeling and system boundaries.
  • references/review-rubric.md: semantic review checklist and repair workflow.

For a specific diagram type, load only the matching deep dive:

  • references/class-diagram.md
  • references/object-diagram.md
  • references/package-diagram.md
  • references/component-diagram.md
  • references/composite-structure-diagram.md
  • references/deployment-diagram.md
  • references/profile-diagram.md
  • references/use-case-diagram.md
  • references/activity-diagram.md
  • references/state-machine-diagram.md
  • references/sequence-diagram.md
  • references/communication-diagram.md
  • references/timing-diagram.md
  • references/interaction-overview-diagram.md

Mandatory Workflow

0. Recognize Implicit Diagram Requests

Recognize intent categories, not exact phrases. Treat a request as a possible UML modeling request even when the word "UML" is absent if the user asks to:

  • create a diagram, schema, graphical representation, or visual model;
  • represent states, modes, lifecycle, availability, validity, or expiration;
  • explain a flow, process, procedure, algorithm, or sequence of steps;
  • draw architecture, topology, modules, components, packages, or deployment;
  • map relationships, dependencies, ownership, containment, or interfaces;
  • visualize interactions, messages, timing, actors, or responsibilities.

Apply this recognition regardless of the user's language. Do not rely on locale-specific phrase matching.

Use UML when the subject is software, architecture, state, workflow, interaction, deployment, domain structure, or system behavior. If the user asks for a purely decorative image, infographic, chart, or non-model visual, do not force UML.

When UML is appropriate and the user did not specify a type, choose the type yourself. Ask a clarification only when two materially different interpretations would produce different, risky models.

1. Frame The Modeling Problem

Before drawing, identify:

  • the diagram's audience: developer, architect, analyst, product owner, tester, operator;
  • the question the diagram must answer;
  • the subject being modeled;
  • the boundary of the system or element;
  • the abstraction level: conceptual, logical, implementation, runtime, physical;
  • whether the model describes structure, behavior, interaction, or deployment.

If the user asks for a diagram type that does not match the intent, say so briefly and choose the correct type. If the user did not name a type, do not ask them to choose one unless the modeling subject is ambiguous.

2. Choose The UML Form Autonomously

Choose one primary diagram type. Do not blend diagram types just to include everything.

Use this quick decision tree:

  • "What are the types/modules/components/nodes and relationships?" -> structure diagram.
  • "What is the lifecycle of one thing?" -> state machine diagram.
  • "What steps happen in a workflow?" -> activity diagram.
  • "What messages happen over time?" -> sequence diagram.
  • "What user goals exist at the system boundary?" -> use case diagram.
  • "Where does software run?" -> deployment diagram.
  • "How do runtime instances look at one moment?" -> object diagram.
  • "How should UML be extended for this domain?" -> profile diagram.

Use more than one UML diagram only when the user is really asking more than one modeling question. For example, a stateful subsystem may need a state machine for lifecycle and a sequence diagram for external calls, but those should be separate diagrams with separate purposes.

3. Model Semantics Before Layout

Draft the semantic inventory first:

  • elements;
  • relationships;
  • events and transitions;
  • actions/activities;
  • actors and system boundary;
  • messages and ordering;
  • nodes/artifacts;
  • constraints and notes.

Then remove anything that does not answer the diagram's main question.

4. Design The Form

Apply visual/form rules:

  • the diagram must be understandable without the surrounding chat, documentation, or source files;
  • one diagram, one main question;
  • one abstraction level per diagram;
  • group by semantic containment, not decoration;
  • prefer fewer stronger labels over many long labels;
  • place stable/static things before dynamic annotations;
  • avoid crossing lines by reorganizing responsibility, not only by spacing;
  • use notes for explanation, not to compensate for wrong modeling;
  • use legends for compressed labels;
  • split when the diagram needs two different grammars.

5. Validate Against UML Semantics

Use the relevant checklist from references/review-rubric.md.

Examples:

  • In a state machine, a state is a condition that can persist. "Validate request" is normally an activity/action, not a state.
  • In an activity diagram, nodes are actions and control/object flows. "Order approved" is normally a state/condition, not an action.
  • In a use case diagram, use cases are user goals, not buttons, pages, or internal functions.
  • In a sequence diagram, messages are ordered interactions, not dependencies.
  • In a class diagram, composition implies strong whole-part lifetime ownership, not just "has a reference".

6. Notation Last

Only after the model is correct, choose notation:

  • a textual diagram notation when the repository or user asks for one;
  • Markdown tables or prose when UML would overcomplicate;
  • a split set of diagrams when one notation surface would distort the model.

Notation is subordinate to modeling. If a requested notation pushes the model into a wrong shape, change the notation, split the diagram, or explicitly tell the user that the requested representation is distorting the UML form.

When Fixing A Bad Diagram

Use this order:

  1. Identify the intended question.
  2. Identify the actual diagram type and the diagram type it should be.
  3. Name the semantic errors first.
  4. Redesign the model form.
  5. Only then repair notation/layout.

Do not keep polishing a diagram that is the wrong UML type.

Completion Standard

A finished UML answer should usually include:

  • the chosen UML diagram type and why;
  • the diagram;
  • a short legend only if labels were intentionally compressed;
  • explicit model boundaries and domain constraints needed to understand the diagram;
  • a note when a requested diagram type was changed for semantic correctness.

For documentation edits, preserve the surrounding language and style, but improve the modeling quality even if that means replacing the diagram rather than tweaking it.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。