Saltar al contenido
Skillpedia
Documentación41 mil · #7001

diagram

Qué hace

Esta skill indica a un agente cuándo un diagrama o una imagen sencilla explicará una idea técnica mejor que el texto. Está pensada para personas que necesitan entender cómo fluye el código o cómo encajan sus partes.

Cuándo usarla

  • ✓Cuando una explicación escrita del flujo o la estructura del código es difícil de seguir.
  • ✓Cuando quieres ver cómo se llaman o dependen entre sí las partes de un sistema.
  • ✓Cuando quieres un diagrama sencillo de un cambio en un documento o en una respuesta del chat.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes mostrarme cómo fluye el proceso de inicio de sesión por nuestro código, usando el diagrama más sencillo que lo deje claro?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente elige una vista que encaje con la pregunta, como pseudocódigo, un árbol de llamadas, un árbol de archivos o un diagrama Mermaid. Omite la imagen cuando la prosa ya responde a la pregunta.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes

¿Siempre añadirá un diagrama?

No. Solo añade uno cuando la prosa te obligaría a retener toda la forma en la cabeza.

¿Qué tipos de diagramas usa?

Pseudocódigo, árboles de llamadas, árboles de componentes, árboles de archivos, diagramas Mermaid y diferencias.

¿Crea archivos de imagen?

Como mucho escribe un archivo de artefacto, y la mayoría de las imágenes aparecen como bloques de texto en el chat.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
41 mil
Posición en el ranking
#7001
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas