omh-codebase-uml
できること
リポジトリのモジュールと、それらが使う公開の部分のPlantUMLのアーキテクチャ図を作り、画像にレンダリングします。コードベースがどうまとまっているかの明確な絵が欲しい開発者が対象です。
使う場面
- ✓コードベースの一部が、どうまとまっているかの絵が欲しいとき。
- ✓新しいチームメンバーに、主なモジュールとそのつながりを見せたいとき。
- ✓チャットで共有できるアーキテクチャの図が欲しいとき。
スキルのリンク
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-codebase-uml/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“当社のコードベースを図にして、ルーティングのパッケージが他とどうつながるかを見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、焦点を当てる範囲を決め、そのモジュールとつながりの範囲の限られた図を作り、画像にレンダリングします。図を読みやすく保つため、省いたものや畳んだものを一覧にします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Codebase Uml
This is an OMH codebase-uml workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
codebase-uml exists so 'visualize our codebase' produces one deterministic, readable picture instead of a hand-drawn guess: the interface each unit exposes is ranked by who imports it, the layout is bounded before PlantUML sees it, and every omission the bounding made is printed on the image.
Do Not Use When
- The user wants the local code index refreshed or a task-scoped handoff pack, not a picture; use
omh-codegraph-refresh. - The user wants a narrative first-read tour, reading path, or glossary; use
omh-codebase-onboarding. - The user wants a summary card, thumbnail, or explainer image of a PR, meeting, or release rather than a structural diagram; use
omh-image-cards.
Examples
Good example:
- Prompt: Visualize our codebase and drop the picture here so the new teammate can see how the routing package fits.
- Expected behavior: Run
omh codegraph uml --focus src/routing --output .omh/uml/routing.puml, render with the plan's command, attach the PNG, and read back the legend (units shown, folded, edges pruned). - Why: The request is a structural picture of one area for a chat surface, which is exactly the bounded diagram this workflow produces.
Bad example:
- Prompt: Just sketch what you think the architecture looks like from the README.
- Expected behavior: Decline to draw from memory; generate the diagram from the tree with
omh codegraph umlor say the renderer is missing and name the install step. - Why: A diagram not derived from the actual tree misleads more than no diagram.
Completion Checklist
- The view (package, focus, or module) matches the question asked, and only one view was rendered unless more were requested.
- The render command and its observed result are recorded before the image is claimed.
- The legend's omissions were read back to the user in the reply.
- Follow-up exploration used narrower generated views, not recollection of the first picture.
Recovery Notes
- If the render plan is blocked, send the PlantUML source path plus the install hint; do not attach a stale or hand-drawn image.
- If the picture is still unreadable, lower
--max-nodes, narrow--focus, or raise--depthby one, and say which knob changed. - If Graphviz
dotis missing, rerun with--layout smetana; the layout differs but the content is identical.
When to Use
Use when the user wants to see the shape of a codebase as one picture - a package, module, or focused-area diagram they can drop into Slack, Discord, a PR, or a doc - rather than a prose tour or a refreshed code index.
Strong routing signals: `codebase-uml`, `codebase uml`, `uml`, `plantuml`, `uml diagram`, `class diagram`, `package diagram`, `module diagram`, `architecture diagram`, `dependency diagram`, `module dependency diagram`, `visualize the codebase`, `visualize this codebase`, `visualize the code`, `visualize the architecture`, `codebase visualization`, `code visualization`, `diagram of the codebase`, `diagram the codebase`, `draw the architecture`, `draw the codebase`, `architecture picture`, `codebase picture`, `picture of the codebase`, `코드베이스 시각화`, `코드베이스 시각화해줘`, `코드베이스를 시각화`, `아키텍처 다이어그램`, `UML 다이어그램`, `패키지 다이어그램`, `클래스 다이어그램`, `코드베이스 다이어그램`, `코드 구조 그림`, `코드베이스 그림으로`, `코드 구조도`, `диаграмма архитектуры`, `нарисуй архитектуру кода`, `схема кодовой базы`, `визуализируй кодовую базу`, `uml диаграмма`, `диаграмма классов`, `архитектурная диаграмма`
Catalog Metadata
Category: planning
Phase: codebase-uml
Quality tier: codegraph-gated
Reasoning demand: standard
Quality bar:
- Scope first: whole-repo package view for 'show me the codebase',
--focus <path>for one area,--level modulefor a subsystem; never render more than one view per request unless asked. - Generate with
omh codegraph uml --repo <root> --output <dir>/codebase.pumland read the printed render plan; when it isblocked, report the exact blocker and install hint instead of improvising a renderer. - Render with the plan's command verbatim (
-DPLANTUML_LIMIT_SIZE=8192stays on) and attach the PNG; use--layout smetanawhen Graphvizdotis absent and--format svgonly when the user asked for SVG. - Read the legend back to the user in one line: units shown, units folded, edges pruned, symbols hidden - so nobody mistakes 16 boxes for the whole system.
- Answ
よくある質問
図はすべてのファイルを示しますか?
いいえ。読みやすさを保つため範囲を限り、畳んだものや省いたものを一覧にします。
図は実際のコードから描かれていますか?
はい。推測から描いたものではなく、リポジトリの構造から生成されます。
物語のような案内ですか?
いいえ。読む順序と用語集は、別のオンボーディングのワークフローから得られます。
詳細
作者による元の説明
[omh] Architecture picture of a codebase: turn a repository into one readable, interface-level PlantUML architecture picture - packages or modules, the public symbols other units actually import, bounded import edges - and get it rendered to a single PNG a chat surface can show. Use when the user says: codebase-uml, codebase uml, uml, plantuml, uml diagram, class diagram, package diagram, module diagram.
repo: rlaope/oh-my-hermes
人気
- GitHubのスター
- 5.1k
- ランキング
- #15086
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
omh-accessibility-audit
5.1kエージェントが、画面やフローのアクセシビリティ上の不足(キーボードでの操作、スクリーンリーダーのラベル、コントラスト、タッチの対象の大きさなど)を確認できるよう支援します。
omh-adversarial-consensus
5.1kエージェントが、技術的な提案を、いくつかの独立した視点から攻撃して、それに踏み切る前に検証し、生き残った点を要約できるよう支援します。
omh-agent-debug
5.1kエージェントが、ほかのAIエージェントがなぜ止まっているか、ループしているか、方向を外れているかを突き止め、最も小さく安全な回復方法を提案できるよう支援します。
omh-agent-instructions
5.1kエージェントが、AIツールにプロジェクトでの作業方法を伝える指示ファイル(AGENTS.mdやCLAUDE.mdなど)を書いたり更新したりできるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。