task-graph-orchestration
Skill3 starsChanged 3 months agoMITView on GitHub
Use for complex coding tasks with several independent work items, real dependencies, broad file or repository scope, layered consolidation, separate implementation and verification paths, or an approval-gated irreversible action. Records an instruction-only dependency graph, executes ready work, combines accepted results, and repeats only invalidated work. Skip for small or genuinely linear tasks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ArcanEdge-AI/coding-agent-playbook-claude-codetheir own version, first seen Jul 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ArcanEdge-AI/coding-agent-playbook-claude-code★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aws-local-preflightSkill
- design-taste-frontendSkill
- feature-branch-lifecycleSkill
- handoffSkill
- humanizerSkill
- impeccableSkill
- legacy-path-retirementSkill
- local-ci-preflightSkill
- multi-role-repo-reviewSkill
- multi-session-coordinationSkill
- platform-documentationSkill
- production-api-integrationSkill
- production-architecture-reviewSkill
- production-code-qualitySkill
- production-database-integritySkill
- production-devops-releaseSkill
- production-documentation-onboardingSkill
- production-pass-orchestratorSkill
- production-performance-reviewSkill
- production-readiness-reportSkill
- production-reliability-observabilitySkill
- production-security-reviewSkill
- production-testing-qaSkill
- production-ux-accessibilitySkill
- reference-doc-routingSkill
- senior-code-reviewSkill
- session-cleanupSkill
- subagent-orchestrationSkill
- taste-new-websiteSkill
- taste-redesign-websiteSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the task record to show bounded outcomes and their real dependencies.
- Distinctive: line 12
Use a formal graph when the task has substantial fan-out, several real dependencies, broad audit or transformation scope, layered …
- Distinctive: line 19
Use the multi-session-coordination skill first when related tasks, branches, worktrees, pull requests, or active-work records may affect …
- Very specific: line 22
Read references/templates/task-graph.md before creating a formal graph artifact.
- Distinctive: line 23
Use the worktree-lifecycle skill when any node proposes or owns an auxiliary worktree.
- Distinctive: line 36
only the upstream nodes whose accepted output it consumes
- Distinctive: line 37
read scope and write or mutable-state ownership
- Distinctive: line 43
Use states consistently: Proposed, Ready, Running, Complete, Failed, Blocked, or Superseded.
- Distinctive: line 49
If yes, do not add a dependency merely to preserve narrative order.
- Distinctive: line 51
Add a consolidation node when several accepted outputs must be combined.
- Distinctive: line 59
use a direct root-to-helper assignment
- Distinctive: line 65
verify the returned artifact before accepting it
- Distinctive: line 76
update the affected graph portion when the failure reveals a missing dependency
- Distinctive: line 77
stop unchanged retries when evidence shows the approach is not progressing
- Distinctive: line 81
Before completion, reconcile node states, required approval gates, helper assignments, and every task-created auxiliary worktree.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task Graph Orchestration
Use the task record to show bounded outcomes and their real dependencies. Do not introduce a graph database, scheduler, runner, schema package, or orchestration framework. A work node is an outcome, not automatically a separate agent.
Decide Whether to Use a Formal Graph
Use a formal graph when the task has substantial fan-out, several real dependencies, broad audit or transformation scope, layered consolidation, separate implementation and verification paths, or an approval-gated action.
Skip formal graph mode when the task is small, genuinely linear, dominated by one coherent design judgment, limited to tightly coupled writes, or cheaper to execute than to maintain as a graph. Skipping graph mode does not waive relevant skills or verification, and graph mode does not require delegation.
Establish the Preflight
- Inspect the request, repository state, applicable instructions, validation surfaces, and existing ownership.
- Use the multi-session-coordination skill first when related tasks, branches, worktrees, pull requests, or active-work records may affect ownership or contracts.
- Define the overall goal and observable success criteria.
- Identify actions requiring explicit approval because they are audience-facing, destructive, irreversible, sensitive, production-impacting, materially costly, or outside existing authority.
- Read references/templates/task-graph.md before creating a formal graph artifact.
- Use the worktree-lifecycle skill when any node proposes or owns an auxiliary worktree.
Keep a medium graph in the working plan or response. For long-running, multi-phase, or multi-session implementation, create .codex/task-graphs/<task-slug>.md only when repository policy permits that local coordination artifact. Do not create a repository artifact for an informational question or when the task does not authorize changes.
Define the Graph
Define each meaningful node with:
- a stable identifier
- one bounded goal
- required inputs and authoritative sources
- the produced artifact or decision
- an observable acceptance condition
- only the upstream nodes whose accepted output it consumes
- read scope and write or mutable-state ownership
- an executor: root by default, or one directly assigned helper when delegation has a concrete benefit
- a verification gate proportionate to risk
- a current state
- an exact workspace, plus a root-issued worktree permit only when an auxiliary checkout is justified
Use states consistently: Proposed, Ready, Running, Complete, Failed, Blocked, or Superseded.
Audit every proposed edge:
Can the downstream node correctly begin without consuming an accepted output or decision from the upstream node?
If yes, do not add a dependency merely to preserve narrative order. Track overlapping writes, shared mutable state, schema or interface ordering, external ownership, resource limits, and approval gates as hidden constraints.
Add a consolidation node when several accepted outputs must be combined. Add independent verification when required by the risk or affected scope. Identify the chain of required outcomes that controls completion and the work that is ready now.
Execute Ready Work
Execute only nodes whose dependencies and hidden constraints are satisfied.
The main agent completes coherent work directly by default. Use helpers sparingly, only when independent evidence, parallel progress, or context reduction justifies the coordination and review overhead, or governing instructions require independent assistance:
- use a direct root-to-helper assignment
- apply the subagent-orchestration skill and its assignment contract
- set a finite helper-launch and retry allowance
- assign disjoint ownership or serialize conflicting writes
- select and establish the approved task-based model and reasoning effort
- require the helper to execute directly without spawning descendants
- verify the returned artifact before accepting it
Graph planning does not authorize helpers, worktrees, spending, or broader permissions. A graph may contain many nodes and use no helpers. Runtime capacity is a constraint, not a reason to queue speculative work.
Verify and Retry Selectively
Validate each necessary handoff and the final combined result. When a gate fails:
- preserve accepted outputs whose inputs remain valid
- revise or rerun the failed work
- repeat downstream work only when its consumed input changed
- update the affected graph portion when the failure reveals a missing dependency
- stop unchanged retries when evidence shows the approach is not progressing
Retries and replacements remain within the finite helper allowance when delegated. Expand execution cost only for an identified new dependency, invalidated gate, or changed user scope; obtain user approval immediately before a material expansion.
Before completion, reconcile node states, required approval gates, helper assignments, and every task-created auxiliary worktree.
Enforce Approval Gates
Complete safe inspection, reversible preparation, and validation before a gate when useful. Immediately before the gated action, present the exact target, scope, consequences, material cost, audience, and recovery path when one exists. Approval for a plan or earlier node does not authorize a broader action.
Respect Instruction-Only Limits
This skill provides planning semantics, not a deterministic runtime. Recheck repository state, ownership, node inputs, and approval status at consequential transitions. Do not describe the graph as mechanically enforced.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

