graph
Ce qu’il fait
Cette compétence exécute un ensemble d'étapes liées à partir d'un fichier de plan écrit. Elle s'adresse aux personnes qui ont des travaux répétitifs en plusieurs étapes, qui doivent être vérifiables et survivre aux interruptions.
Quand l’utiliser
- ✓Quand vous avez un travail répétitif en plusieurs étapes, dont certaines dépendent des autres.
- ✓Quand un long travail doit pouvoir repartir là où il s'est arrêté après une interruption.
- ✓Quand vous voulez un historique complet de chaque étape d'une exécution.
Lien du skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/graph/SKILL.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Construis le projet, lance les tests, puis demande-moi avant de déployer. Mets cela en place comme pipeline répétable pouvant reprendre en cas d'interruption.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent écrit ou utilise un fichier JSON qui décrit chaque étape et ses dépendances. Un exécuteur en ligne de commande lance les étapes dans l'ordre, consigne la progression dans un journal et reprend à partir de ce journal après un redémarrage.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Graph Skill
Run a deterministic orchestration graph from a declarative JSON descriptor.
The runtime consumes the sealed-descriptor and pure-scheduler contracts in
src/graph/* and executes through an independent OS process (omc graph run),
so crash recovery (kill mid-run, rerun, resume from journal) works for real.
Usage
/oh-my-claudecode:graph <descriptor.json>
/oh-my-claudecode:graph "build then test then ask me before deploy" (author the descriptor first)
The execution surface is always the CLI subcommand:
omc graph run <descriptor.json> [--runs-root <dir>]
Run it via the Bash tool for non-interactive graphs. Progress lines stream as
[run], [node], [ok], [fail], [join], [done].
When To Use
- Repeatable multi-step pipelines with explicit dependencies (DAG)
- Work that must survive interruption: kill/restart resumes from journal
- Auditable runs: OCC journal + projection snapshots under
.omc/graph-runs/<run_id>/
When NOT to use: exploratory one-off work (use conversation or /team); anything needing adaptive re-planning mid-run (graphs are deterministic).
Workflow
Descriptor given -> go to step 3.
Pipeline described -> author the descriptor JSON (schema below), write it next to the project (suggest
.omc/graphs/<name>.json) and show it to the user before running.run_idmust be unique per logical pipeline; rerunning with the samerun_idRESUMES, not restarts.Approval nodes: if the descriptor contains any
"kind": "human-approval"node, do NOT run it through the Bash tool (stdin is not interactive there; EOF fails closed to denied). Tell the user to run interactively instead:! omc graph run <file>The
!prefix runs it inside this session with live stdin so y/n works.Run and relay progress. Exit codes (normative): 0 succeeded | 1 terminal failed | 19 another writer owns this run (busy) 20 corrupt/tampered journal (fail-closed) | 21 descriptor drift on resume | 70 runtime crash (unmapped error)
Resume: rerunning the same command after a crash replays committed transitions and continues. Completed nodes never re-execute.
Descriptor Schema (minimal)
{ "descriptor_version": 1, "run_id": "unique-pipeline-id", "revision_id": "rev-1", "goal": "one line", "nodes": [ { "id": "n1", "kind": "command", "title": "...", "timeout_ms": 60000, "max_attempts": 2, "effect_policy": { "policy": "side_effect_free" }, "command": "npm test" }, { "id": "a1", "kind": "agent", "title": "...", "timeout_ms": 300000, "max_attempts": 1, "effect_policy": { "policy": "side_effect_free" }, "instructions": "..." }, { "id": "gate", "kind": "human-approval", "title": "...", "prompt": "Proceed?" } ], "edges": [ { "id": "e1", "kind": "fixed", "from": "n1", "to": "a1" } ], "entry_node_ids": ["n1"], "concurrency_limit": 2, "terminal_verification_node_id": "a1" }
Edge kinds: fixed | conditional | fan_out/join pairs | back_edge (bounded retries via max_traversals). See src/graph/schema.ts for the authoritative Zod schema — and read the Capability Boundary section above for what built-in executors actually execute today.
Capability Boundary & Semantics (read before authoring)
- Edge support: built-in command/agent executors cover
fixededges andfan_out/joinpairs.conditionalandback_edgeroutes are fully supported by the runtime and scheduler contracts but require a custom NodeExecutor that emitsrouteon its results — built-in executors never produce routes, so graphs relying on them fail fast withroute_requiredrather than guessing. - Crash-recovery guarantee is at-least-once for command nodes: a crash
between an external side effect and its journal append re-executes that node
on resume. For
idempotentcommands, the resolved key is available to the command asGRAPH_IDEMPOTENCY_KEYbefore it starts and is also recorded for downstream dedupe. Built-in executors rejectreconcile; reconciliation requires a custom executor with an actual external reconciliation authority. Exactly-once for external side effects is out of scope for v1. - Command trust boundary: command nodes are arbitrary shell lines with process authority in the current working directory. Only run descriptors you wrote or trust. Command children receive an allowlisted environment (PATH, HOME/USERPROFILE, TEMP/TMP, locale/timezone, U
Questions fréquentes
Le plan peut-il changer pendant l'exécution ?
Non. Les étapes sont fixes, donc l'agent ne replanifie pas au milieu d'une exécution.
Où est conservé l'historique d'une exécution ?
Dans un dossier du projet, avec un journal pour chaque exécution.
Convient-elle aux tâches ponctuelles ?
Non. Un travail exploratoire ponctuel se traite mieux dans une conversation normale.
Détails
Description originale de l’auteur
Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery
Popularité
- Étoiles GitHub
- 41k
- Position au classement
- #7005
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
agent-doc-discipline
41kApprend à votre agent à rédiger des instructions que d'autres agents IA peuvent suivre seuls, avec des règles vérifiables et une raison claire derrière chacune.
ai-slop-cleaner
41kAide votre agent à nettoyer le code écrit par IA qui fonctionne mais est alourdi ou répétitif, en supprimant le code superflu sans modifier son comportement.
architecture-survey
41kAide votre agent à examiner la structure d'une base de code et à lister les parties devenues difficiles à modifier, avec des preuves, sans rien changer lui-même.
ask-navigator
41kAide votre agent à transformer un projet flou en carte de questions de décision claires, puis à les traiter une à une jusqu'à ce que la voie soit dégagée.
Skills similaires
knowledge-automation
394kAide votre agent à configurer une tâche récurrente qui ajoute du nouveau contenu à votre coffre Knowledge selon un calendrier, puis vérifie qu'elle fonctionne.
knowledge-source-ingest
394kAide votre agent à tenir un coffre Knowledge à jour avec les nouveaux éléments de canaux de discussion, de flux ou de boîtes mail, sans rajouter ce qui existe déjà.
benchmark
280kAide votre agent à mesurer la vitesse et les performances du code. Utile pour s'assurer que tout est rapide et repérer les lenteurs.