Skip to main content
BuildAI reviewed Aug 28, 2026

graph

Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install oh-my-claudecode-graph
Or get the file:
Browse all CLI commands β†’
Manual setup by platform

Claude Code

~/.claude/skills/oh-my-claudecode-graph/SKILL.md

Setup guide β†’
0Save

Instructions

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

  1. Descriptor given -> go to step 3.

  2. 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_id must be unique per logical pipeline;
    rerunning with the same run_id RESUMES, not restarts.

  3. 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.

  4. 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)

  5. 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 fixed edges and
    fan_out/join pairs. conditional and back_edge routes are fully
    supported by the runtime and scheduler contracts but require a custom
    NodeExecutor that emits route on its results β€” built-in executors never
    produce routes, so graphs relying on them fail fast with
    route_required rather 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 idempotent commands, the resolved key is available to the
    command as GRAPH_IDEMPOTENCY_KEY before it starts and is also recorded for
    downstream dedupe. Built-in executors reject reconcile; 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, USER identity,
    GRAPH_*, and the optional idempotency key), not the host's full secrets.
    Commands are not filesystem/process sandboxed.
  • Agent authority boundary: built-in agent nodes are explicitly read-only.
    They run in the current working directory with no additional directories,
    only Read, Glob, and Grep, permissionMode: dontAsk, session
    persistence disabled, and a provider-specific environment allowlist. Agent
    timeouts abort and interrupt the SDK query. Use a custom executor for any
    agent that needs mutation or external effects. Treat
    .omc/graph-runs/<run_id>/descriptor.json as executable content.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all β†’

More from Oh My ClaudeCode

View source β†’

More Build skills

Browse category β†’
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.642 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.546 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about graph

What does the graph skill do?

Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the graph skill?

Run `npx @skills-hub-ai/cli install oh-my-claudecode-graph` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/oh-my-claudecode-graph/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does graph work with?

graph runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the graph skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use graph after installing it?

In Claude Code, type `/oh-my-claudecode-graph` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the graph skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.