Aller au contenu
Skillpedia
Documentation41k · #7001

diagram

Ce qu’il fait

Cette compétence indique à un agent quand un diagramme ou un visuel simple expliquera une idée technique mieux qu'un texte. Elle s'adresse aux personnes qui doivent comprendre le cheminement du code ou la façon dont ses parties s'assemblent.

Quand l’utiliser

  • ✓Quand une explication écrite du flux ou de la structure du code est difficile à suivre.
  • ✓Quand vous voulez voir comment les parties d'un système s'appellent ou dépendent les unes des autres.
  • ✓Quand vous voulez un diagramme simple d'une modification dans un document ou une réponse de chat.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/diagram/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Montre-moi comment le processus de connexion circule dans notre code, avec le diagramme le plus simple qui le rende clair.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent choisit une vue qui correspond à la question, comme du pseudo-code, un arbre d'appels, une arborescence de fichiers ou un diagramme Mermaid. Il renonce au visuel lorsque la prose répond déjà à la question.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes

Ajoute-t-il toujours un diagramme ?

Non. Il n'en ajoute un que lorsque la prose obligerait à garder toute la forme en tête.

Quels types de diagrammes utilise-t-il ?

Du pseudo-code, des arbres d'appels, des arbres de composants, des arborescences de fichiers, des diagrammes Mermaid et des différences.

Crée-t-il des fichiers image ?

Au plus un fichier d'artefact est écrit, et la plupart des visuels apparaissent comme des blocs de texte dans le chat.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
41k
Position au classement
#7001
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires