agent-doc-discipline
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before…
Use the smallest visual when prose must carry structure—control flow, call depth, module ownership, or change shape: pseudocode, call tree, component/file tree, Mermaid diagram, or diff. Skip it when prose already answers the question.
$ npx -y skills add Yeachan-Heo/oh-my-claudecode --skill diagram --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagramContext preview
The summary Claude sees to decide when to auto-load this skill.
Use the smallest visual when prose must carry structure—control flow, call depth, module ownership, or change shape: pseudocode, call tree, component/file tree, Mermaid diagram, or diff. Skip it when prose already answers the question.
name: diagram description: "Use the smallest visual when prose must carry structure—control flow, call depth, module ownership, or change shape: pseudocode, call tree, component/file tree, Mermaid diagram, or diff. Skip it when prose already answers the question." level: 2
**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.
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
release**Call 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 + projections
**Mermaid** — 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 + facts**Diff** — 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.ts
a 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 + release
**The 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';
}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.
For Codex users: Check out oh-my-codex — the same orchestration experience for OpenAI Codex CLI. Liked OmC but found it a bit overkill? Try gajae-code.
Repo: Yeachan-Heo/oh-my-claudecode
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before…
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Periodic architecture survey — walks the module graph and reports ranked deepening candidates (shallow modules, hypothetical seams, logic behind the wrong…
Shipyard's navigator — chart a foggy effort (destination unclear, questions not yet stateable) into a map of decision tickets on the repo's issue tracker, then…
Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, or Cursor via `omc ask`, with artifact capture and no raw CLI assembly