task-dependency-sequencing
Skill34 starsChanged 37 days agoMITView on GitHub
Run BEFORE starting any long/complex multi-step task (3+ interdependent steps, phased builds, or anything where execution order changes the outcome or where steps unlock each other). Produces a dependency map + the complementary order of operations up front — so steps run in the order that unlocks/sharpens each other, independent work overlaps wait-time, decisions follow their inputs, and pre-groundwork is surfaced before you're blocked mid-task. Invoke at task kickoff, before committing to an execution order.
In this repository31 other files it gives its agents.
- .github/AGENTS.mdAGENTS.md
- tui/AGENTS.mdAGENTS.md
- actionability-passSkill
- agent-memory-opsSkill
- blocked-page-retrievalSkill
- brain-consistency-auditorSkill
- brainstorm-panelSkill
- concurrent-push-integrationSkill
- curation-auditSkill
- decomposed-local-researchSkill
- dual-model-reconciliationSkill
- eval-integritySkill
- file-organizationSkill
- fleet-model-routingSkill
- fleet-operational-runbookSkill
- generate-review-fix-loopSkill
- guard-target-correctnessSkill
- honesty-stop-gateSkill
- large-file-cartographerSkill
- local-lane-build-loopSkill
- local-model-onboardingSkill
- model-routing-tableSkill
- multi-agent-code-workflowSkill
- peer-drop-watcherSkill
- protected-function-guardSkill
- research-dispatchSkill
- research-verificationSkill
- research-workflowSkill
- shared-brain-bookkeepingSkill
- should-weSkill
- verify-running-buildSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When several sub-tasks are on the table and "what's next" isn't obvious.
- Distinctive: line 13
Before committing to an execution order — this is pre-flight, not a post-mortem.
≈ “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 Dependency Sequencing
Before executing a complex multi-step task, map the dependencies and derive the complementary order — the sequence where each step unlocks or sharpens the next, nothing serializes that could parallelize, decisions follow their inputs, and you never discover mid-task that a prerequisite wasn't built. Do this FIRST, before any execution.
When to use
- Any task with 3+ interdependent steps, a phased build, or where order materially changes the outcome or cost.
- When several sub-tasks are on the table and "what's next" isn't obvious.
- Before committing to an execution order — this is pre-flight, not a post-mortem.
The method (produce this BEFORE executing)
1. Enumerate the steps
List every sub-task plainly.
2. Build the dependency map — classify each link
For each step, ask what it consumes and produces, then classify:
- HARD dependency — B literally cannot start without A's output (A → B).
- SOFT / informing — A doesn't block B, but A's output makes B cleaner, cheaper, or correct. ← the biggest sequencing wins hide here and are the easiest to miss.
- Independent — no link either way → a candidate for parallelism.
3. Identify the roles
- Groundwork — defines the method, metric, or input a later step needs. Goes EARLY even if it looks minor. (e.g. a rule that defines how a downstream experiment must be scored — skip it and you measure the wrong thing.)
- Gating unknown — the high-value question whose answer decides a later step. Goes BEFORE the decision it gates.
- Independent / cheap — gates nothing; slot into the wait-time of an expensive step (free parallelism). Never serialize it.
- Decision — goes LAST among its inputs. Deciding before the input lands is a guess.
4. Derive the order (priority ladder)
- Groundwork that defines metrics/inputs/methods for others.
- The highest-value gating unknown (build its pre-groundwork, then run it).
- Independent/cheap work overlapped into the gaps.
- Decisions, once their inputs are in hand.
5. Name the pre-groundwork
For each step: what must be built or prepared before it can run? Surface it now — the failure mode is hitting a missing prerequisite mid-execution.
6. State the complementarity explicitly
For every ordering choice, say why: "A before B because A's output makes B's metric honest / removes B's blocker / lets B parallelize." If you can't name the complementarity, the order is arbitrary — re-examine it.
Output
A short ordered plan: the sequence, each step's dependencies + pre-groundwork, what overlaps what, and a one-line rationale per ordering choice. Then execute in that order.
Pitfalls
- Serializing independent work — the most common waste; overlap it into an expensive step's wait-time.
- Deciding before the input — making a call whose deciding data isn't in yet.
- Skipping the metric-definer — running a test/experiment before codifying how it'll be judged → you measure the wrong thing or re-commit a known flaw.
- Unsurfaced pre-groundwork — discovering mid-task that a step needs a prerequisite you didn't build.
- Treating a soft dependency as independent — missing that doing A first would have made B cleaner.
Canonical pattern
rule / metric-definer → build the gating experiment (its pre-groundwork) → run it (overlap cheap independent work in the wait gap) → make the decision with the result in hand.
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.

