diagram
하는 일
이 스킬은 다이어그램이나 간단한 시각 자료가 기술 아이디어를 글보다 더 잘 설명할 때를 에이전트에게 알려 줍니다. 코드 흐름이나 구성 요소의 연결 방식을 이해해야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓코드 흐름이나 구조에 대한 글 설명이 따라가기 어려울 때.
- ✓시스템의 부분들이 서로 어떻게 호출하거나 의존하는지 보고 싶을 때.
- ✓문서나 채팅 답변에 변경 사항의 간단한 다이어그램을 넣고 싶을 때.
스킬 링크
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“로그인 과정이 우리 코드에서 어떻게 흐르는지 보여 주세요. 그것이 명확해지는 가장 단순한 다이어그램을 써 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 질문에 맞는 하나의 보기를 고르는데, 예를 들어 의사 코드, 호출 트리, 파일 트리, Mermaid 다이어그램 중에서 고릅니다. 평범한 산문으로 질문에 이미 답할 수 있으면 시각 자료를 건너뜁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
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';
}
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.
자주 묻는 질문
항상 다이어그램을 추가하나요?
아니요. 산문으로는 전체 모양을 머릿속에 붙잡아야 할 때만 추가합니다.
어떤 종류의 다이어그램을 쓰나요?
의사 코드, 호출 트리, 컴포넌트 트리, 파일 트리, Mermaid 다이어그램, 차이점 등을 씁니다.
이미지 파일을 만드나요?
아티팩트 파일은 많아야 하나만 쓰이며, 대부분의 시각 자료는 채팅의 텍스트 블록으로 나타납니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 41k
- 순위
- #7001
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-doc-discipline
41k에이전트가 다른 AI 에이전트가 스스로 따를 수 있는 지침을 쓰도록 가르칩니다. 확인할 수 있는 규칙과 각 규칙의 명확한 이유를 담습니다.
ai-slop-cleaner
41k에이전트가 작동하지만 군더더기가 많거나 반복되는 AI 작성 코드를 정리해, 동작을 바꾸지 않고 불필요한 코드를 제거하도록 돕습니다.
architecture-survey
41k에이전트가 코드베이스의 구조를 검토하고, 근거와 함께 변경하기 어려워지는 부분을 나열합니다. 스스로 아무것도 바꾸지 않습니다.
ask-navigator
41k에이전트가 막연한 프로젝트를 명확한 결정 질문의 지도로 바꾸고, 길이 분명해질 때까지 질문을 하나씩 해결하도록 돕습니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.