使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill diagram开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Diagrams are load-bearing, not decoration. Reach for one only when prose forces the reader to hold a whole shape in their head at once — then pick the smallest view that lets them see the shape instead of reconstructing it from sentences. Everything here renders in the conversation as text blocks or Mermaid; at most one artifact file is ever written.
The vocabulary
Pick one view; two at most. More is noise.
Pseudocode — logic without language noise. Reduces a decision to its branching shape:
on(request)
if state file locked by another writer
queue and return pending
acquire lock
write
releaseCall tree — runtime control flow. Depth shows who owns the flow; annotate where the interesting edge is:
acquireStateFileLockSync()
resolveLockPath()
openExclusive()
writePid()Component tree — UI or module structure, with the boundaries that matter annotated inline:
<SettingsPage> (src/routes/settings)
<SessionList> (owns its fetches)
<DangerZone>
<ConfirmButton> (disabled until typed confirmation)File tree — where responsibility lives; keep it shallow, one annotation per directory:
src/
├── hooks/ # hook registry + types
├── tools/ # MCP tool handlers
└── workflow/ # registry + projectionsMermaid — interaction between parties, dataflow, or state transitions:
sequenceDiagram
participant CLI
participant Hook
participant State
CLI->>Hook: PreToolUse
Hook->>State: read mode
Hook-->>CLI: allow / deny + factsDiff — the shape of a change when the surrounding structure already exists. Match the diff to the topic:
a component change:
<SettingsPage>
<SessionList />
<DangerZone>
+ <ConfirmButton />
</DangerZone>a file-layout change:
src/tools/
-└── state-tools.ts
+└── state-tools/
+ ├── handlers.ts
+ └── schema.tsa control-flow change:
commit()
stage()
hashBlobs()
+ writeObject()
updateRef()
+ acquireStateFileLock()a state-machine change:
on(request)
- write immediately
+ if locked
+ queue and return pending
+ acquire lock
+ write
+ releaseThe whole block — when elision would hide who owns what or the order things run in, show the complete unit once, copyable:
export function isRegistryEnabled(): boolean {
const flag = process.env.OMC_WORKFLOW_REGISTRY;
return flag !== '0' && flag !== 'false';
}When text runs out
A UI layout, a before/after comparison, or a concept too dense for Mermaid: write one focused HTML file — a diagram, an infographic, or a few slides — styled after the product's own colors, type, and components, filled with real labels and data, working on desktop and mobile. Open it with the platform opener (start on Windows, open on macOS, xdg-open on Linux) and stop there: one artifact, not a gallery.
Discipline
- Place each visual directly beside the two or three sentences it supports.
- Carry only the calls, files, props, states, and boundaries that answer the current question — every extra node is a decoding tax on the reader.
- If the honest answer fits in one sentence, write the sentence.



