Pular para o conteúdo
Skillpedia
Documentação41 mil · #7001

diagram

O que ela faz

Esta skill indica ao agente quando um diagrama ou uma imagem simples vai explicar uma ideia técnica melhor do que o texto. É para quem precisa entender como o código flui ou como suas partes se encaixam.

Quando usar

  • ✓Quando uma explicação escrita do fluxo ou da estrutura do código é difícil de acompanhar.
  • ✓Quando você quer ver como as partes de um sistema se chamam ou dependem umas das outras.
  • ✓Quando você quer um diagrama simples de uma mudança em um documento ou em uma resposta do chat.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode me mostrar como o processo de login passa pelo nosso código, usando o diagrama mais simples que deixe isso claro?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente escolhe uma única visão que combine com a pergunta, como pseudocódigo, uma árvore de chamadas, uma árvore de arquivos ou um diagrama Mermaid. Ele dispensa o visual quando um texto simples já responde à pergunta.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.
Perguntas frequentes

Ele sempre adiciona um diagrama?

Não. Ele só adiciona um quando o texto obrigaria você a manter a forma inteira na cabeça.

Que tipos de diagrama ele usa?

Pseudocódigo, árvores de chamadas, árvores de componentes, árvores de arquivos, diagramas Mermaid e diffs.

Ele cria arquivos de imagem?

No máximo um arquivo de artefato é escrito, e a maioria dos visuais aparece como blocos de texto no chat.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
41 mil
Posição no ranking
#7001
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas