sdd-orchestrate-tasks
Skill3 starsChanged 35 days agoMITView on GitHub
SDD DAG when PRD, TechSpec, and tasks are already approved and must be executed; implements each task in this session with read-only explorers, moves on between tasks until the context threshold, and delegates the final review to a fresh-context subagent. For the cycle from PRD, use sdd-orchestrate-flow.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-ready-fixSkill
- ai-ready-scoreSkill
- architectural-analysisSkill
- commitSkill
- deep-reviewSkill
- domain-modelingSkill
- dotnet-efficient-validationSkill
- herdr-orchestrationSkill
- no-workaroundsSkill
- repository-cli-efficiencySkill
- sdd-create-prdSkill
- sdd-create-techspecSkill
- sdd-execute-correctionsSkill
- sdd-execute-taskSkill
- sdd-orchestrate-flowSkill
- sdd-orchestrate-prdsSkill
- sdd-plan-auditSkill
- sdd-plan-correctionsSkill
- sdd-plan-refactoringSkill
- sdd-plan-tasksSkill
- sdd-review-codeSkill
- sdd-snapshotSkill
- sdd-triageSkill
- update-nuget-packagesSkill
- writing-agents-mdSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 14
Resume: Read references/session-continuity.md in full once per session: its context measurement applies to every task.
- Distinctive: line 33
Output: all complete with valid integrated evidence, or pending items enumerated.
≈ “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
Orchestrate SDD tasks
The session that runs this skill is the only writer: it implements every task itself, following sdd-execute-task, and owns the manifest and moves. Subagents are read-only explorers; they never edit files, run builds or tests that write bin/, obj/, or TestResults/, or talk to the user. The exception is the delegated reviewer of step 8, with its own contract. Execution is one task at a time; between tasks the session moves on by itself until the session pause says stop. This session does not issue the global review of the code it wrote: it delegates it.
If the caller limits execution to one task, return after step 7 instead of running the session pause: task-completed with the next eligible IDs, or blocked with evidence. When all tasks are complete, run step 8 before returning. A task return does not mean the feature is complete.
- Resume. Read references/session-continuity.md in full once per session: its context measurement applies to every task. Look for
tasks/prd-[slug]/context-snapshot.md; if it exists, load it through the Load branch of.agents/skills/sdd-snapshot/SKILL.mdbefore anything else. Output: snapshot applied, partially trusted with the suspect entries named, or absent. - Reconcile. Resolve the feature and check
prd.md,techspec.md,tasks.md, the root, anddone/. Read sources once per version, then task metadata. Confirm authorization to implement and record the base commit and pre-existing changes so they are preserved; the delegated review uses that commit as--base. If there is evidence of an incorrect completion, reopen the task: record reason, review, and previous handoff underProblems and solutions, move it fromdone/to the root, and update link and state to pending. Preserve contract and IDs; revalidate affected dependents. This does not authorize regenerating completed tasks to change their scope. Output: IDs, links, states, and dependencies reconciled; divergences have evidence and block the affected unit. - Select. Pick one pending task whose dependencies are complete, preferring the snapshot's
next_stepwhen it is still eligible. Read.agents/skills/sdd-execute-task/SKILL.mdonce per session and follow it as the procedure for this task. Output: one task with its contract, write scope, and the snapshot entries that match it loaded. - Explore. Before editing, list the questions the change needs answered (callers, affected tests, provider behavior in the relevant
docs/specs/spec, Terrain baseline hits, similar implementations). Answer small, targeted ones directly. Delegate a question to a read-only explorer subagent only when answering it means sweeping many files or directories and only the conclusion matters; run disjoint questions in parallel. Give each explorer the exact question, the paths to start from, the read-only constraint, and the return format: conclusion,path:lineevidence, and what it could not confirm. Do not send the conversation, the PRD, or the TechSpec unless the question is about them. Output: change points and test targets known with evidence; explorer conclusions that later work relies on are verified at the cited lines before editing. - Implement. Apply steps 2 to 5 of
sdd-execute-taskin this session: smallest coherent change, behavior tests proportional to risk, the TechSpec quality profile over the touched files, and the## Handoffupdated with evidence. Serialize builds and test runs that sharebin/,obj/, orTestResults/; when available, usedotnet-efficient-validation. Scope and architecture deviations stop the task and go to the user as a decision with alternatives and impact. Output: implementation limited to the contract, with checks run on the current state. - Review. Re-read the task diff against the contract, acceptance criteria,
AGENTS.mdand the TechSpec quality profile, as if another author wrote it. Reuse validation proven in the same state; rerun only for a change, failure, uncovered risk, or project requirement. Essential manual validation still pending prevents completion. Run the profile's blocking commands over the task diff: it is a sweep whose cost is proportional to hits, not an audit. Discount what the Terrain baseline already recorded. A new or aggravated hit without aDEC-NNcovering it prevents completion even with conformant acceptance and tests. Accumulate reservation hits per feature for the escalation trigger, without treating them as blocks. With budgethighor a real risk, add one read-only explorer that checks the diff against the acceptance criteria and returns gaps with evidence; its findings are input, not approval. Fix findings and review again. After two attempts without progress, record a block and move on to independent work. Output: the task approved by evidence or pending with a concrete cause; no task completed with an unjustified blocking hit. - Record and move on. Move an approved task to
done/, checking that resolved source and destination stay inside the feature. Update link and state in the manifest and check both. Record relevant problems and solutions at the end of the manifest. Recalculate the DAG. If interrupted between move and update, reconcile using handoff and review without assuming approval from location. Then wait for background processes and explorers to finish and run the session pause from references/session-continuity.md with stagetasks,authored_code: yes, and the next eligible task as next step; on theMove ondestination, return to step 3. A blocked task stays recorded and execution moves on to the next eligible one; with none eligible, go to step 8. Output: file, link, and state consistent; the next task started, or the snapshot written before the question and the user's choice applied. - Close. When none remain eligible, check every obligation and integrated-set validation, serializing shared builds and test runs. Report task completion or blocks; global review belongs to
sdd-review-code, in a context that did not write this code. Undersdd-orchestrate-flow, return to the caller, which delegates it. In standalone use, with every task complete, apply the independence rule of the session pause: delegate the review under the protocol in.agents/skills/sdd-review-code/references/delegated-review.md, read the status in the report, and run the end-of-standalone-use session pause with the next step the status points to (sdd-plan-correctionsforREJECTED, the user's decision on the reservations, or acceptance). Without an eligible reviewer, the pause namessdd-review-codeand recommends ending this session. Output: all complete with valid integrated evidence, or pending items enumerated; delegated review received or a pause for it; no feature is claimed approved only because tasks moved.
Under sdd-orchestrate-flow, the caller runs the session pause and prints its own resume command.
Budget
Preserve the inherited model by default. economical: explorers only for sweeps the session cannot answer in a few searches; medium: parallel explorers for disjoint questions; high: also the read-only diff check in step 6. Change model or capability only when authorized and available. Budget reduces redundant work, never acceptance criteria.
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.

