diagram
Fungsinya
Skill ini memberi tahu agent kapan diagram atau visual sederhana akan menjelaskan ide teknis lebih baik daripada teks. Skill ini untuk orang yang perlu memahami bagaimana alur kode berjalan atau bagaimana bagian-bagiannya saling terhubung.
Kapan dipakai
- ✓Saat penjelasan tertulis tentang alur atau struktur kode sulit diikuti.
- ✓Saat Anda ingin melihat bagaimana bagian-bagian sebuah sistem saling memanggil atau bergantung.
- ✓Saat Anda ingin diagram sederhana dari sebuah perubahan dalam dokumen atau balasan chat.
Link skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bisakah Anda menunjukkan bagaimana proses login mengalir melalui kode kami, dengan diagram paling sederhana yang membuatnya jelas?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memilih satu tampilan yang cocok dengan pertanyaan, seperti pseudokode, pohon pemanggilan, pohon file, atau diagram Mermaid. Agent melewati visual jika teks biasa sudah menjawab pertanyaannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah agent selalu menambahkan diagram?
Tidak. Diagram hanya ditambahkan jika teks biasa akan memaksa Anda menyimpan seluruh bentuknya di kepala.
Jenis diagram apa saja yang dipakai?
Pseudokode, pohon pemanggilan, pohon komponen, pohon file, diagram Mermaid, dan diff.
Apakah agent membuat file gambar?
Paling banyak satu file artefak yang ditulis, dan sebagian besar visual muncul sebagai blok teks di chat.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #7001
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
agent-doc-discipline
41kMengajari agent Anda menulis instruksi yang bisa diikuti agent AI lain tanpa bantuan, dengan aturan yang bisa diperiksa dan alasan yang jelas di balik setiap aturan.
ai-slop-cleaner
41kMembantu agent Anda merapikan kode yang ditulis AI, yang berfungsi tetapi membengkak atau berulang, dengan menghapus kode berlebih tanpa mengubah perilakunya.
architecture-survey
41kMembantu agent Anda meninjau struktur basis kode dan mendaftar bagian yang makin sulit diubah, dengan bukti, tanpa mengubah apa pun sendiri.
ask-navigator
41kMembantu agent Anda mengubah proyek yang masih samar menjadi peta pertanyaan keputusan yang jelas, lalu menjawabnya satu per satu sampai jalurnya terang.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.