본문으로 건너뛰기
Skillpedia
문서화41k · #7001

diagram

하는 일

이 스킬은 다이어그램이나 간단한 시각 자료가 기술 아이디어를 글보다 더 잘 설명할 때를 에이전트에게 알려 줍니다. 코드 흐름이나 구성 요소의 연결 방식을 이해해야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓코드 흐름이나 구조에 대한 글 설명이 따라가기 어려울 때.
  • ✓시스템의 부분들이 서로 어떻게 호출하거나 의존하는지 보고 싶을 때.
  • ✓문서나 채팅 답변에 변경 사항의 간단한 다이어그램을 넣고 싶을 때.

스킬 링크

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

repo: Yeachan-Heo/oh-my-claudecode

인기도

GitHub 스타
41k
순위
#7001
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬