agentsclimarketplace

Decompose

Skill kendrick/agent-guild/plugins/agent-guild/skills/decompose

Phase 1 of a guild job. Turn .agent-guild/state/spec.md plus the constitution into task files under .agent-guild/state/tasks/, each with an executor, a checker, and a check method. Use after the constitution passes audit, when breaking a job into dispatchable work.From its SKILL.md

Install
npx -y skills add kendrick/agent-guild --skill decompose

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.3 KB, as published. Nobody here has run it

Decompose the spec into tasks

A job is built one task at a time, so the unit that matters is the one-dispatch task: small enough that a single worker finishes it in one dispatch, self-contained enough that the worker needs only its own task file and the constitution. Too big and the worker loses the thread; too small and the overhead of a paired check outweighs the work.

Run this after a CON-audit PASS exists. Each task is created from .agent-guild/templates/task.md and lands in .agent-guild/state/tasks/.

1. Cut the spec into one-dispatch tasks

Read .agent-guild/state/spec.md and the constitution together. Break the spec into tasks, each producing a coherent artifact or a coherent slice of one. Every task must trace to at least one constitution clause; if a piece of spec maps to no clause, that's a gap to resolve now (add a clause, or confirm it's a non-goal), not to paper over.

Done when every section of the spec belongs to a task and every task cites at least one clause.

2. Allocate an id per task

For each task, run .agent-guild/scripts/new-task.py "<title>" to claim the next T-NNN and stamp the template. This is collision-safe, so you can create tasks in any order.

3. Fill each task file

Set the frontmatter per the routing table in CLAUDE.md:

  • executor and executor_model: mechanical work to worker-bulk (haiku), clear-spec work to worker-standard (sonnet), taste work to worker-craft (opus).
  • checker: a clause checked by a script routes to checker-deterministic; a clause checked by a rubric routes to checker-judgment.
  • check_method: name the check for every clause the task cites—a .agent-guild/scripts/ invocation, or checker-judgment: <rubric>. A cited clause with no check is a task that can't be verified.
  • clauses: the clause ids this task must satisfy.
  • deps: task ids whose artifacts this task needs before it can start. A dep no longer has to be complete for that: its worker returning is enough, so the edge costs a dispatch rather than a full check-and-verdict cycle (#135). Declare the edge on what the work genuinely needs, exactly as before; what changed is the price.
  • dep_rationale: one line per id in deps, naming what this task actually needs from that task—not a summary of what the other task does in general. Fill it in whenever deps is non-empty; every dep edge still keeps two tasks out of one wave, so an edge nobody can justify is wall clock nobody agreed to pay. check-job-spec.py's R14 checks only that the two lists correspond one to one, and only on a task that also declares owns—whether a rationale actually holds up is the auditor's job, not R14's.
  • owns: every path this task writes, so concurrent dispatch can't lose an update. Each entry is one of two shapes: an exact file path, or a directory prefix ending in / (covers everything under it). Repo-relative, forward slashes, no ./ and no ..; R15 refuses anything else, because a directory spelled without its trailing slash reads as a file claim and then collides with nothing. If two tasks' owns overlap, one has to transitively depend on the other—the dep path is what keeps them from running at the same time. Fill it in for every task that writes files. Leaving it empty is not a claim that the task writes nothing; it's the absence of a claim, and the wave can't tell the two apart, so an owns-less task always dispatches alone. A task that genuinely writes nothing (pure verification, say) loses little by going alone, since it blocks no peer's paths either way. owns tracks whole files and whole directories only—two tasks each owning a different region of one file is out of scope, and has to be split into separate files or handled by hand.
  • ## Spec excerpt: the self-contained slice of spec the worker needs. Write it so the worker never has to open the full spec.

Optional: a constitution may designate select high-severity clauses cross-vendor—checker must run on a different vendor than the executor. No clause can be assigned that way today. checker-courier only ever produces second opinions, and #34 closed the line of work that would have made a courier lane eligible as checker of record.

A task that changes a shared contract—a schema, a template shape, a hook-visible format—cites the constitution's consumer-suite clause in its check_method, so the checker runs every suite that consumes the contract, not just the contract's own tests. Tasks that don't touch a shared contract carry no such citation.

If your repo builds checked-in trees from checked-in sources, exactly one task regenerates them. It goes last, downstream of every task that edits a build input, and it names the generated trees in its own artifacts. Nobody else runs the build: editing a build input is not a license to regenerate, and two workers doing it at once race over the same output while both report green. R16 refuses a decomposition that leaves the build unmodeled or that lets two tasks regenerate without a dep path between them.

check-job-spec.py --audit-id DEC-audit proves the mechanical half of a decomposition before an auditor reads it: every cited clause exists and is keyed in the task's check_method, every deps id resolves and the graph is acyclic, whichever task regenerates the shipped trees sits downstream of every task that edits a build input and is the only task that regenerates, every declared owns entry is one of the two shapes, any two tasks whose owns overlap are connected by a dep path, and every owns-bearing task's dep_rationale lines up one to one with its deps. Run it before you dispatch the auditor, since dispatch-guard refuses that dispatch until it passes. #117 lost a round to a terminal task that wasn't terminal, so a regeneration could pass while a later edit was still coming and every verdict stayed green.

Done when every task names an executor, a checker, a check method covering each cited clause, an owns list for every task that writes files, a dep_rationale line for every id in deps, and a spec excerpt a worker could act on cold.

4. Send it to audit

Dispatch the auditor with Audit-ID: DEC-audit. Dispatch it rather than asking whether to; nothing here is the user's call, and Phase 1 carries no equivalent of Phase 0's clause-ceiling exception. One thing does cross the phase boundary: a **Lint exception** line waiving a heuristic lives in the constitution's preamble even when the rule fired on a task file, so a DEC-audit blocked by R2, R9, R10 or R12' is fixed in a Phase 0 artifact. The auditor confirms the tasks cover the spec, the assignments follow the routing table, and deps form a DAG, then re-reads the constitution against the schedule those tasks now make visible and runs every clause whose check is a command. A clause defect that only becomes falsifiable there comes back keyed to its clause id rather than to the task that surfaced it, and the fix is a clause revision and another CON round rather than a re-cut decomposition. Until that verdict passes, dispatch-guard blocks every worker, and a later FAIL closes the gate an earlier PASS opened. Fix what it flags and re-submit.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.