graph
यह क्या करती है
यह स्किल एक लिखी हुई योजना फ़ाइल से जुड़े हुए चरण चलाती है। यह उन लोगों के लिए है जिनके पास बार-बार दोहराए जाने वाले बहु-चरण काम हैं, जिनका रिकॉर्ड रहना चाहिए और जो बाधाओं के बाद भी जारी रह सकें।
कब इस्तेमाल करें
- ✓जब आपके पास बार-बार होने वाला बहु-चरण काम हो, जिसमें कुछ चरण दूसरों पर निर्भर हों।
- ✓जब लंबे काम को बाधा के बाद वहीं से फिर शुरू होना चाहिए जहाँ वह रुका था।
- ✓जब आप हर चरण का पूरा रिकॉर्ड चाहें।
Skill का लिंक
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/graph/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“प्रोजेक्ट बनाइए, टेस्ट चलाइए, और फिर डिप्लॉय करने से पहले मुझसे पूछिए। इसे एक दोहराने योग्य पाइपलाइन बनाइए जो बाधा आने पर वहीं से फिर चल सके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक JSON फ़ाइल लिखता है या मौजूदा फ़ाइल इस्तेमाल करता है, जिसमें हर चरण और उसकी निर्भरताएँ लिखी होती हैं। एक कमांड-लाइन रनर चरणों को क्रम से चलाता है, प्रगति एक जर्नल में दर्ज करता है और रीस्टार्ट के बाद उसी जर्नल से आगे बढ़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या चलते समय योजना बदल सकती है?
नहीं। चरण तय हैं, इसलिए एजेंट रन के बीच में दोबारा योजना नहीं बनाता।
किसी रन का रिकॉर्ड कहाँ रहता है?
प्रोजेक्ट के भीतर एक फ़ोल्डर में, हर रन के लिए एक जर्नल के साथ।
क्या यह एक बार के काम के लिए अच्छा है?
नहीं। खोजपूर्ण एक बार के काम सामान्य बातचीत में बेहतर संभलते हैं।
जानकारी
लेखक का मूल विवरण
Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #7005
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-doc-discipline
41kयह आपके एजेंट को ऐसे निर्देश लिखना सिखाती है जिन्हें दूसरे AI एजेंट बिना अतिरिक्त समझ के फ़ॉलो कर सकें।
ai-slop-cleaner
41kयह आपके एजेंट को AI से लिखे गए ऐसे कोड को साफ़ करने में मदद करती है जो चलता है पर फूला हुआ या दोहराव वाला है, बिना उसका व्यवहार बदले।
architecture-survey
41kयह आपके एजेंट को कोडबेस की संरचना देखकर उन हिस्सों की सूची बनाने में मदद करती है जिन्हें बदलना कठिन होता जा रहा है, सबूत के साथ, बिना खुद कुछ बदले।
ask-navigator
41kयह आपके एजेंट को एक धुंधले प्रोजेक्ट को साफ़ फ़ैसले वाले सवालों के नक्शे में बदलने में मदद करती है, फिर उन्हें एक-एक करके हल करती है।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।