dag-library
Qué hace
Esta herramienta te permite guardar la definición de un 'grafo' de tareas (llamado DAG) para usarlo más adelante. En lugar de describir el grafo cada vez, lo guardas con un nombre y lo ejecutas usando ese nombre.
Cuándo usarla
- ✓Cuando quieras guardar un grafo de tareas para reutilizarlo.
- ✓Cuando necesites ejecutar el mismo grafo de tareas varias veces.
- ✓Cuando quieras programar la ejecución repetida de un flujo de trabajo complejo.
Link de la skill
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-senpi/skills/dag-library/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
“Guarda este grafo de tareas como 'monthly-audit' y ejecútalo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Guardas la definición del grafo en un archivo especial. Después, puedes pedirle a la IA que ejecute el grafo usando el nombre que le diste. La IA busca el archivo y ejecuta las tareas en el orden definido.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
dag-library
Use this skill when the user wants to KEEP a dag definition and run it again later — the graph is an asset, not a one-off. For authoring a brand-new graph, read mass-ulw first; this skill covers the storage-and-rerun half.
The shape
A stored definition is a plain dag definition JSON file named <name>.json in one of the library dirs. First hit wins:
$OMO_DAG_LIBRARY(multiple dirs, separated by:— or by;on Windows, so drive-letter paths survive)$PWD/.omo/dags$HOME/.omo/dags
{
"key": "nightly-audit",
"name": "Nightly audit",
"nodes": [
{ "id": "audit", "category": "unspecified-low", "prompt": "Audit docs/ for stale claims; write findings to /tmp/audit-{{key}}.md." },
{ "id": "verify", "category": "quick", "prompt": "Verify each finding in /tmp/audit-{{key}}.md against src/.", "dependsOn": ["audit"] }
]
}
String values may carry placeholders, filled at load time: {{key}} (the final rotated key — use it in file paths so reruns never clobber each other), {{date}} (UTC YYYYMMDD), {{datetime}} (UTC YYYYMMDD-HHmmss). Node prompts must still stand alone: dependsOn is ordering only, so pass data between nodes through files, exactly as in mass-ulw.
Running it — JS eval cell, two lines
The extension publishes library.js next to sdk.js at OMO_DAG_SDK_ROOT:
const lib = await import(`${env("OMO_DAG_SDK_ROOT")}/library.js`)
const run = await lib.start("nightly-audit")
const result = await run.done()
await lib.load(name) returns the filled definition without starting it; await lib.start(name) loads and starts in one call and returns the same handle shape as sdk.start (run_id, done(), cancel(reason)). Both are async — the kernel's read global is async, so never call them un-awaited.
Key rotation — the one rule that matters
The dag engine keys idempotency on key + graph fingerprint: re-starting the same key with the same graph REUSES the old run instead of running again. So the library treats the stored key as a BASE key and rotates it on every load:
lib.start("nightly-audit")→ key becomesnightly-audit-<UTC YYYYMMDD-HHmmss>: every call is a fresh run. This is the default because wanting a fresh run is the common case.lib.start("nightly-audit", { suffix: "20260818" })→ key becomesnightly-audit-20260818: explicit suffix, so re-running the same logical run reuses it (idempotent recovery), while a new day gets a new run. Recovering a FAILED node inside such a run isretry/amendon that run id, not a new suffix.lib.start("nightly-audit", { suffix: "" })→ key staysnightly-audit: full idempotency; only reach for this when reusing the previous result is exactly what you want.
Python cells
Python cannot import the ESM library. Reproduce the same semantics with plain dicts — read the file, rotate the key, fill placeholders, call tool.workflow:
import json
from datetime import datetime, timezone
defn = json.loads(read(f"{env('HOME')}/.omo/dags/nightly-audit.json"))
stamp = datetime.now(timezone.utc).strftime("%Y%m%d-%H%M%S")
defn["key"] = f"{defn['key']}-{stamp}"
text = json.dumps(defn).replace("{{key}}", defn["key"]).replace("{{date}}", stamp[:8]).replace("{{datetime}}", stamp)
run = tool.workflow({"action": "start", "definition": json.loads(text)})
result = tool.workflow({"action": "wait", "run_id": run["run_id"], "detach": False}) # detach=False keeps the cell-blocking wait; the bare tool action detaches against a live run
Saving a new definition
When the user asks to save the current graph: write it as <name>.json into $HOME/.omo/dags (user-level, survives cwd changes) or <repo>/.omo/dags (project-level, shareable through git if the team commits it), then confirm by running it once via lib.start. Names are letters, digits, dot, dash, underscore — the library rejects path-shaped names.
Preguntas frecuentes
¿Dónde se guardan los grafos?
Los grafos se guardan en carpetas específicas de tu ordenador, como '$HOME/.omo/dags', o en una carpeta '.omo/dags' dentro de tu proyecto actual.
¿Cómo sabe la IA qué grafo ejecutar?
Tú le dices el nombre del grafo que guardaste. La IA busca ese nombre en las ubicaciones donde se guardan los grafos y ejecuta lo que se definió.
¿Puedo modificar un grafo guardado?
Esta habilidad se centra en guardar y ejecutar. Para crear o modificar un grafo desde cero, es posible que necesites otra herramienta, como 'mass-ulw'.
Detalles
Descripción original del autor
Stores a DAG definition once and re-runs it by name, instead of pasting the definition into every run. Use when the user wants to save a DAG, run a saved one, or schedule the same multi-agent graph repeatedly.
Popularidad
- Estrellas en GitHub
- 70 mil
- Posición en el ranking
- #3118
- Licencia
- NOASSERTION
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
comment-checker
70 milAyuda a tu agente a entender y responder al feedback de revisores automáticos de comentarios. Útil para procesar resultados de revisiones automáticas de código o contenido.
lcx-contribute-bug-fix
70 milAyuda a tu agente a aportar correcciones de errores a proyectos relacionados con LazyCodex. Crea incidencias o pull requests para garantizar la calidad del código.
lcx-doctor
70 milPermite a tu agente comprobar el estado de las instalaciones de LazyCodex y Codex CLI. Es útil si el sistema se comporta de forma extraña tras actualizaciones o cambios.
lcx-report-bug
70 milAyuda a tu agente a reportar errores en detalle para proyectos LazyCodex. Crea incidencias con información útil para que los desarrolladores solucionen el problema.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.