graph
Qué hace
Esta skill ejecuta un conjunto de pasos conectados a partir de un archivo de plan escrito. Está pensada para personas con trabajos repetibles de varios pasos que deben poder auditarse y sobrevivir a interrupciones.
Cuándo usarla
- ✓Cuando tienes un trabajo repetible de varios pasos en el que algunos dependen de otros.
- ✓Cuando un trabajo largo debe poder reiniciarse desde donde se detuvo tras una interrupción.
- ✓Cuando quieres un registro completo de cada paso de una ejecución.
Link de la skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/graph/SKILL.mdCó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
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Compila el proyecto, ejecuta las pruebas y pregúntame antes de desplegar. Configura esto como un pipeline repetible que pueda reanudarse si se interrumpe.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente escribe o usa un archivo JSON que describe cada paso y sus dependencias. Un ejecutor de línea de comandos corre los pasos en orden, registra el progreso en un diario y reanuda desde ese diario tras un reinicio.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Puede cambiar el plan mientras se ejecuta?
No. Los pasos son fijos, así que el agente no vuelve a planificar en mitad de una ejecución.
¿Dónde se guarda el registro de una ejecución?
En una carpeta dentro del proyecto, con un diario para cada ejecución.
¿Sirve para tareas puntuales?
No. El trabajo exploratorio puntual se gestiona mejor en una conversación normal.
Detalles
Descripción original del autor
Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #7005
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-doc-discipline
41 milEnseña a tu agente a escribir instrucciones que otros agentes de IA puedan seguir por sí mismos, con reglas que se puedan comprobar y una razón clara detrás de cada una.
ai-slop-cleaner
41 milAyuda a tu agente a limpiar código escrito por IA que funciona pero está inflado o repetido, eliminando código sobrante sin cambiar lo que hace.
architecture-survey
41 milAyuda a tu agente a revisar la estructura de un código base y enumerar las partes que cada vez cuestan más de cambiar, con pruebas y sin modificar nada por sí mismo.
ask-navigator
41 milAyuda a tu agente a convertir un proyecto confuso en un mapa de preguntas de decisión claras, y luego a resolverlas una por una hasta que el camino esté claro.
Skills parecidas
knowledge-automation
394 milAyuda a tu agente a configurar una tarea recurrente que añade contenido nuevo a tu bóveda de Knowledge según un horario, y después comprueba que la tarea funciona.
knowledge-source-ingest
394 milAyuda a tu agente a mantener al día una bóveda de Knowledge con elementos nuevos de canales de chat, fuentes o buzones, sin volver a añadir lo que ya tiene.
benchmark
280 milAyuda a tu agente a medir la velocidad y el rendimiento del código. Es útil para asegurar que todo vaya rápido y encontrar problemas de lentitud.