[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTHVBKPTZBEEN5KXXXY0RH":3,"skill-same:01M7CTHVBKPTZBEEN5KXXXY0RH":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CTHVBKPTZBEEN5KXXXY0RH","decomposing-design-documents",null,"Decompose an accepted request or design document into a Change DAG. Use when new work needs semantic decomposition and exact work nodes authored as a Change DAG; do not create task plans or implementation graphs.","xiaden\u002FSkyScow","xiaden","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3605480?v=4","01M7CTGKNTD1XNQE710J977HVD","Lucian Hardy","01M7CTGKPVQ3XRNXNRJ3A6E31F",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: decomposing-design-documents\ndescription: Decompose an accepted request or design document into a Change DAG. Use when new work needs semantic decomposition and exact work nodes authored as a Change DAG; do not create task plans or implementation graphs.\n---\n\n# Decomposing Design Documents\n\nFor new work, this skill derives a Change DAG from an accepted request or design document and hands it to `change-dag-author`. The Change DAG is the single implementation-work authority. This skill does not create task plans, plan phases, plan letters, `CONTRACTS.md`, execution rounds, or `GRAPH.json` implementation graphs.\n\n## New-work pipeline\n\n```text\naccepted request \u002F accepted DD\n        ↓\nbounded live-repository discovery\n        ↓\nchange-dag-author (one atomic semantic dag_create, then exits)\n         ↓\n controller-owned serialized frontier motion and one bounded change-dag-worker per opaque branch_ref per round (lower to exact work, or decompose further)\n        ↓\nobservable independent-review trigger?\n   ├─ no → Nyx: dag_start \u002F dag_status\n   └─ yes → change-dag-reviewer (bounded external evidence)\n                      ↓\n                  PASS → Nyx lifecycle control\n                 FINDINGS → route by category: Fixer for exact work, semantic-repairer for semantic\u002Fgraph, upstream for authority\n        ↓\nindependent post-change QA (separate lifecycle, not a DAG phase)\n```\n\nThe Change DAG bundle keeps construction and execution records separate: `DAG.json` is current declarative construction state; `DAG_MUTATIONS.jsonl`, when present, is append-only construction provenance; `EXECUTION_STATE.json` records terminal-node execution lifecycle state for resumability; and `WORK_LOG.jsonl` is append-only execution evidence. Archival moves these bundle files as-is and does not merge mutation provenance into the Work Log.\n\n## Graph model\n\n- `requires` is the only edge; it is ALL-of and expresses what must become true for a semantic requirement to be fulfilled — a semantic node is satisfied only when every node it directly requires is satisfied.\n- A semantic node with no `requires` is an unresolved semantic node and is not satisfied; unresolved semantic nodes are legal graph state. A semantic node is locally resolved when it directly requires at least one terminal work node, or declares `decomposition_only=true` over semantic children only. Unresolved DAGs are valid authoring artifacts but are not executable.\n- Shared descendants are legal: multiple parents may reference one child identity, and that child is executed or satisfied once.\n- Opaque branch components are serialized authoring units; nodes grouped in one branch are not necessarily independently dispatchable. The frontier service derives branches from the graph and never infers a missing causal relationship. If correct authoring of B requires accepted work from A, B must have a `requires` path to A rather than being treated as an independent sibling.\n- Node IDs are opaque, service-assigned, and monotonic (`^N[0-9]+$`); agents never allocate IDs.\n- Depth is derived from the longest path from root and is never persisted.\n- Direct-terminal composition is structural: semantic children are always allowed; `edit` is composable (any number may coexist with each other and with semantic children); `create`, `remove`, `move`, and `run` are exclusive direct terminals — when a semantic node has any of them it must be that node's only terminal child. A `run` child is additionally the run-barrier node, and a semantic node has at most one direct `run` child.\n- `schema_valid`, `executable`, and `resolved` are distinct derived properties. `executable` is the aggregate execution-admission\u002Flint result: it requires structural validity, `resolved`, and no deterministic compiler\u002Fcontext admission conflict. Recoverable live-applicability failures stay reported as `runtime_failures`, not admission blockers.\n- A running\u002Fin-progress DAG is immutable; repair requires execution to stop\u002Ffail or `dag_stop`, then the stopped mutable region may be edited before `dag_start(retry=true)`.\n\n## Authoring a Change DAG\n\n1. Read the authoritative request, the accepted DD when present, repository facts, and relevant live surfaces. Discovery always reads the live repository; there is no projected planning worktree.\n2. Generate the smallest complete semantic graph as an initial **semantic skeleton** grounded in known correctness\u002Fcausal structure: distinct obligations stated as postconditions, with causal edges derived as a separate judgment. Do not pre-size nodes for one Worker context; Worker-discovered breadth may be refined later through lossless SCALE decomposition. Follow the canonical derivation procedure in `references\u002Fsemantic-generation.md` — obligation extraction, postcondition normalization, deduplication, compound splitting, the sibling-independence test, and the representation-assumption guard. State a condition\u002Fpostcondition per semantic node — never an implementation action, and never an assumed file\u002Fsymbol\u002Fmechanism unless authoritative. Pure paraphrase or recursive restatement is invalid decomposition.\n3. Submit the whole semantic graph atomically through `dag_create(slug, semantic_graph)`. Initial semantic construction is not a loop of `dag_add_requirement` calls; incremental insertion is reserved for later review, reconciliation, and recovery.\n4. After the atomic create, the controller queries the decomposition frontier and admits at most one fresh bounded `change-dag-worker` per opaque branch in each serialized round. The packet contains `slug`, `branch_ref`, the opaque capability `construction_ref`, and `checkpoint_identity`, not a selected node ID. The Worker first calls `dag_worker_resolve(slug, branch_ref, construction_ref)`, and the service selects\u002Fbinds one currently authorable semantic node before the Worker uses `dag_decomposition_scope` and lowers the returned node's requirement into exact terminal work (`create`, `edit`, `remove`, `move`, `run`, attached with `dag_add_create` \u002F `dag_add_edit` \u002F `dag_add_remove` \u002F `dag_add_move` \u002F `dag_add_run`) or refines it into further semantic decomposition. The controller never computes depths itself, never keeps a processed-frontier registry, and reconciles a frontier only when worker results or conflicts require it. Edit work is authored as exact `{old, new}` replacements (`dag_add_edit(slug, parent_ids, path, replacements)`); the service generates the internal unified diff, so agents never author diff syntax. A worker that reports `edit_base_unavailable` for a peer-produced file signals a missing causal edge or decomposition defect, which the author repairs by adding a `requires` edge or decomposing the producing obligation — never by exposing peer work.\n5. For affected paths, combine live source with applicable accepted lower DAG work through `dag_read` \u002F `dag_grep` \u002F `dag_search` at `node_id=\u003Cboundary semantic node>`. These return that boundary's SELF view — live source, strictly-deeper accepted work, and the boundary node's own persisted terminal work — while same-frontier peers and shallower\u002Ffuture work stay excluded. The narrower BASE lens (accepted lower work only, without the boundary's own work) is what a new mutation is validated against, so an operation never becomes its own base. `dag_preview(path=..., node_id=...)` remains available for compiled operation\u002Fconflict metadata. New files, renamed paths, and planned-only symbols are read from DAG work, not rediscovered by repository search.\n6. Correct proposed mutable nodes with the typed `dag_update_*` tools or `dag_remove`. `dag_add_requirement` may insert a requirement between existing parents and selected children (convergence) and is also the recovery tool.\n7. Validate with `dag_validate` and inspect with `dag_show` and `dag_preview`. Authoring stops at a validated DAG; it never edits repository source.\n\n## Discovery and generation boundaries\n\n- Discovery remains bounded by the semantic requirement being handled. Broad implementation discovery is evidence to evaluate SCALE decomposition, not automatic evidence of a new semantic concern. The file-count rule and the MEANING\u002FSCALE model are defined once in `change-dag-semantics`; real repository breadth or context cost may justify narrowing the SAME predicate recursively.\n- Decomposition has two reasons: **MEANING** (distinct required states or causal obligations) and **SCALE** (the same semantic postcondition is too broad for one bounded context); SCALE refinement is lossless and exhaustive. The Worker owns scale refinement beneath its assigned scope; the Author owns the initial semantic skeleton. The canonical model — including the parent\u002Fchild completeness invariant — is `change-dag-semantics`.\n- Each returned branch is processed by at most one bounded `change-dag-worker` invocation per round; the service selects the concrete semantic node inside the branch at resolution time reasoning from its SELF view — BASE plus the boundary node's own persisted terminal work, where BASE is live repository plus strictly-deeper accepted work. A new or changing mutation is validated against BASE alone, so an operation never becomes its own base. Branch components are serialized authoring units, so same-frontier nodes are not necessarily independently dispatchable; peer proposals are excluded from both lenses and are not a design basis, and the frontier service infers no missing causal dependency. There is no persisted frontier, worker registry, or construction-state artifact — the DAG is the only construction artifact.\n- Exact work is authored against live repository source plus applicable accepted lower DAG patches; there is no generated write scope and no file-ownership claim system.\n- GPU\u002Fconsumer contracts are not a second dependency system. Interface coherence is re-homed to semantic requirements, bounded caller\u002Fimplementation discovery, and patch-aware work review.\n- A `run` node verifies or satisfies the change (tests, builds, type checks, schema checks). Publication\u002Flifecycle commands — commit, push, PR, release, deploy — never belong in a `run` node and are excluded by the canonical argv policy.\n- Edit work is authored as ordered exact `{old, new}` replacements applied sequentially with zero fuzz (`old` non-empty and occurring exactly once); the service derives and validates the internal unified diff. Agents never author unified diff syntax, hunk numbers, or `*** Begin Patch` \u002F `*** End Patch`.\n- `anchor_commit` is a creation-time drift\u002Fprovenance marker only; a dirty tree and `HEAD != anchor_commit` do not invalidate the DAG.\n\n## Optional independent review\n\nDispatch `change-dag-author` for one initial semantic `dag_create`; it verifies creation and exits. The controller owns frontier motion, serialized Worker admission, mandatory review, exact-work routing to `change-dag-fixer`, semantic\u002Fgraph routing to `change-dag-semantic-repairer`, authority escalation, reconciliation, `dag_preview`, `dag_validate`, and mutable recovery. The Author uses semantic authoring tools only, never mutates source, and never dispatches agents.\n\nThe orchestrator\u002Fcontroller selects `change-dag-reviewer` only when observable conditions justify independent judgment: shared semantic convergence, incompatible cross-branch proposals, nontrivial behavior-changing ordering, producer\u002Fconsumer or interface migration, shared schema\u002Fregistry\u002Fpersistence\u002Fmigration work, request\u002FDD decomposition ambiguity, DD authority ambiguity, materially useful recovery amendment, or an explicit user request. Do not invoke it for node count, node types, ordinary run barriers, mechanically independent branches, or ordinary author-correctable mechanical errors.\n\nReviewer input includes the DAG slug, relevant node IDs\u002Fbounded scope, source context, a concrete review question, the observable trigger, and `review_kind` (`SEMANTIC`, `EXACT_WORK`, `DD_CONSISTENCY`, or `COMBINED`). The reviewer is read-only (`dag_show`, `dag_preview`, `dag_validate`). `PASS` means only that the requested scope found no material issue; it is not persisted DAG state, execution authorization, or a mandatory lifecycle transition. Final review uses `BLOCK_RUN`, `ALLOW_WITH_FOLLOWUP`, or `ALLOW`: Nyx routes exact-work defects to `change-dag-fixer`, semantic\u002Fgraph defects to `change-dag-semantic-repairer`, and authority issues upstream. `ALLOW_WITH_FOLLOWUP` preserves evidence for post-run QA or follow-on repair; ordinary repairable correctness defects do not automatically block execution.\n\n## Lifecycle boundary\n\nAuthoring ends at a validated DAG; optional independent review is a controller-selected evidence step. Nyx owns lifecycle control through the four public tools; `dag_executor` performs deterministic execution:\n\n- `dag_start(slug, retry?)` launches or queues whole-DAG execution and returns `running` or `queued`.\n- `dag_status(slug?)` is the canonical completion poll until the DAG is `root_satisfied` or idle\u002Fnot active. There is no durable `quiescent` state; a stopped DAG with failed\u002Funresolved blockers is reported descriptively.\n- `dag_stop(slug)` stops a queued or running DAG; it is recovery, not rollback.\n- On successful root satisfaction the executor records inherited starting-worktree state, runs `git add -A`, and creates a local checkpoint commit. That checkpoint is not publication and is not a DAG `run` node.\n- `dag_archive(slug, reason)` retires a pending bundle into `artifacts\u002Fchange-dags\u002Farchived\u002F` with a required reason and an `ARCHIVE.json` disposition record. It is lifecycle cleanup: it does not require resolution, executability, root satisfaction, absence of failures, or QA. A running DAG must be stopped first; a queued DAG must be cancelled with `dag_stop`. Load `change-dag-lifecycle` for the concise operating contract.\n\n## DD lifecycle\n\nA DD may be archived through `dd_archive` only after every Change DAG bundle linked from its Related Documents (or referenced from its Change DAG section) has been retired into `artifacts\u002Fchange-dags\u002Farchived\u002F` (artifact lifecycle). Retirement is not success: consult the Change DAG's `ARCHIVE.json` for the recorded outcome. `dd_archive` evaluates both linked Change DAG completion and any declared non-DAG prerequisite gate. A declared prerequisite must be satisfied or explicitly migrated before archival; ordinary DDs with no declared prerequisite are not subject to an invented prerequisite gate. Archival does not depend on independent Change-DAG QA or `final_qa` PASS. QA-before-publication remains enforced by the separate `qa-push-manager` publication gate.\n\n## Validation checklist\n\n- [ ] Every required requirement maps to an owned semantic node.\n- [ ] Each semantic node states a postcondition, not an action.\n- [ ] Every semantic node is either locally resolved or an explicit unresolved semantic node.\n- [ ] The graph is acyclic, reachable, and free of illegal exclusive-terminal structure (`edit` composable; `create`\u002F`remove`\u002F`move`\u002F`run` exclusive direct terminals).\n- [ ] Exact work is authored against live source plus applicable accepted lower DAG patches.\n- [ ] No `GRAPH.json`, task plan, phase letter, or `CONTRACTS.md` authority is created.\n- [ ] `dag_validate` reports the DAG as schema-valid (and executable when execution is intended).\n- [ ] `dag_construction_state` reports completion and `dag_validate` confirms resolved before construction is declared complete.\n\n## References\n\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsubagent-protocol.md` — Change DAG authoring and handoff protocol.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsemantic-generation.md` — canonical initial semantic-graph derivation procedure.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-author.md` — author dispatch contract.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-worker.md` — bounded opaque\u002Fsession-bound Worker dispatch contract (internal to the controller).\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-reviewer.md` — read-only review dispatch contract.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_DAG_Agents.md` — Change DAG agent construction protocol.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_DAG_Toolset.md` — Change DAG tool contract.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_Execution_Artifacts.md` — Change DAG \u002F Execution State \u002F Work Log artifacts.\n","# Decomposing Design Documents\n\nFor new work, this skill derives a Change DAG from an accepted request or design document and hands it to `change-dag-author`. The Change DAG is the single implementation-work authority. This skill does not create task plans, plan phases, plan letters, `CONTRACTS.md`, execution rounds, or `GRAPH.json` implementation graphs.\n\n## New-work pipeline\n\n```text\naccepted request \u002F accepted DD\n        ↓\nbounded live-repository discovery\n        ↓\nchange-dag-author (one atomic semantic dag_create, then exits)\n         ↓\n controller-owned serialized frontier motion and one bounded change-dag-worker per opaque branch_ref per round (lower to exact work, or decompose further)\n        ↓\nobservable independent-review trigger?\n   ├─ no → Nyx: dag_start \u002F dag_status\n   └─ yes → change-dag-reviewer (bounded external evidence)\n                      ↓\n                  PASS → Nyx lifecycle control\n                 FINDINGS → route by category: Fixer for exact work, semantic-repairer for semantic\u002Fgraph, upstream for authority\n        ↓\nindependent post-change QA (separate lifecycle, not a DAG phase)\n```\n\nThe Change DAG bundle keeps construction and execution records separate: `DAG.json` is current declarative construction state; `DAG_MUTATIONS.jsonl`, when present, is append-only construction provenance; `EXECUTION_STATE.json` records terminal-node execution lifecycle state for resumability; and `WORK_LOG.jsonl` is append-only execution evidence. Archival moves these bundle files as-is and does not merge mutation provenance into the Work Log.\n\n## Graph model\n\n- `requires` is the only edge; it is ALL-of and expresses what must become true for a semantic requirement to be fulfilled — a semantic node is satisfied only when every node it directly requires is satisfied.\n- A semantic node with no `requires` is an unresolved semantic node and is not satisfied; unresolved semantic nodes are legal graph state. A semantic node is locally resolved when it directly requires at least one terminal work node, or declares `decomposition_only=true` over semantic children only. Unresolved DAGs are valid authoring artifacts but are not executable.\n- Shared descendants are legal: multiple parents may reference one child identity, and that child is executed or satisfied once.\n- Opaque branch components are serialized authoring units; nodes grouped in one branch are not necessarily independently dispatchable. The frontier service derives branches from the graph and never infers a missing causal relationship. If correct authoring of B requires accepted work from A, B must have a `requires` path to A rather than being treated as an independent sibling.\n- Node IDs are opaque, service-assigned, and monotonic (`^N[0-9]+$`); agents never allocate IDs.\n- Depth is derived from the longest path from root and is never persisted.\n- Direct-terminal composition is structural: semantic children are always allowed; `edit` is composable (any number may coexist with each other and with semantic children); `create`, `remove`, `move`, and `run` are exclusive direct terminals — when a semantic node has any of them it must be that node's only terminal child. A `run` child is additionally the run-barrier node, and a semantic node has at most one direct `run` child.\n- `schema_valid`, `executable`, and `resolved` are distinct derived properties. `executable` is the aggregate execution-admission\u002Flint result: it requires structural validity, `resolved`, and no deterministic compiler\u002Fcontext admission conflict. Recoverable live-applicability failures stay reported as `runtime_failures`, not admission blockers.\n- A running\u002Fin-progress DAG is immutable; repair requires execution to stop\u002Ffail or `dag_stop`, then the stopped mutable region may be edited before `dag_start(retry=true)`.\n\n## Authoring a Change DAG\n\n1. Read the authoritative request, the accepted DD when present, repository facts, and relevant live surfaces. Discovery always reads the live repository; there is no projected planning worktree.\n2. Generate the smallest complete semantic graph as an initial **semantic skeleton** grounded in known correctness\u002Fcausal structure: distinct obligations stated as postconditions, with causal edges derived as a separate judgment. Do not pre-size nodes for one Worker context; Worker-discovered breadth may be refined later through lossless SCALE decomposition. Follow the canonical derivation procedure in `references\u002Fsemantic-generation.md` — obligation extraction, postcondition normalization, deduplication, compound splitting, the sibling-independence test, and the representation-assumption guard. State a condition\u002Fpostcondition per semantic node — never an implementation action, and never an assumed file\u002Fsymbol\u002Fmechanism unless authoritative. Pure paraphrase or recursive restatement is invalid decomposition.\n3. Submit the whole semantic graph atomically through `dag_create(slug, semantic_graph)`. Initial semantic construction is not a loop of `dag_add_requirement` calls; incremental insertion is reserved for later review, reconciliation, and recovery.\n4. After the atomic create, the controller queries the decomposition frontier and admits at most one fresh bounded `change-dag-worker` per opaque branch in each serialized round. The packet contains `slug`, `branch_ref`, the opaque capability `construction_ref`, and `checkpoint_identity`, not a selected node ID. The Worker first calls `dag_worker_resolve(slug, branch_ref, construction_ref)`, and the service selects\u002Fbinds one currently authorable semantic node before the Worker uses `dag_decomposition_scope` and lowers the returned node's requirement into exact terminal work (`create`, `edit`, `remove`, `move`, `run`, attached with `dag_add_create` \u002F `dag_add_edit` \u002F `dag_add_remove` \u002F `dag_add_move` \u002F `dag_add_run`) or refines it into further semantic decomposition. The controller never computes depths itself, never keeps a processed-frontier registry, and reconciles a frontier only when worker results or conflicts require it. Edit work is authored as exact `{old, new}` replacements (`dag_add_edit(slug, parent_ids, path, replacements)`); the service generates the internal unified diff, so agents never author diff syntax. A worker that reports `edit_base_unavailable` for a peer-produced file signals a missing causal edge or decomposition defect, which the author repairs by adding a `requires` edge or decomposing the producing obligation — never by exposing peer work.\n5. For affected paths, combine live source with applicable accepted lower DAG work through `dag_read` \u002F `dag_grep` \u002F `dag_search` at `node_id=\u003Cboundary semantic node>`. These return that boundary's SELF view — live source, strictly-deeper accepted work, and the boundary node's own persisted terminal work — while same-frontier peers and shallower\u002Ffuture work stay excluded. The narrower BASE lens (accepted lower work only, without the boundary's own work) is what a new mutation is validated against, so an operation never becomes its own base. `dag_preview(path=..., node_id=...)` remains available for compiled operation\u002Fconflict metadata. New files, renamed paths, and planned-only symbols are read from DAG work, not rediscovered by repository search.\n6. Correct proposed mutable nodes with the typed `dag_update_*` tools or `dag_remove`. `dag_add_requirement` may insert a requirement between existing parents and selected children (convergence) and is also the recovery tool.\n7. Validate with `dag_validate` and inspect with `dag_show` and `dag_preview`. Authoring stops at a validated DAG; it never edits repository source.\n\n## Discovery and generation boundaries\n\n- Discovery remains bounded by the semantic requirement being handled. Broad implementation discovery is evidence to evaluate SCALE decomposition, not automatic evidence of a new semantic concern. The file-count rule and the MEANING\u002FSCALE model are defined once in `change-dag-semantics`; real repository breadth or context cost may justify narrowing the SAME predicate recursively.\n- Decomposition has two reasons: **MEANING** (distinct required states or causal obligations) and **SCALE** (the same semantic postcondition is too broad for one bounded context); SCALE refinement is lossless and exhaustive. The Worker owns scale refinement beneath its assigned scope; the Author owns the initial semantic skeleton. The canonical model — including the parent\u002Fchild completeness invariant — is `change-dag-semantics`.\n- Each returned branch is processed by at most one bounded `change-dag-worker` invocation per round; the service selects the concrete semantic node inside the branch at resolution time reasoning from its SELF view — BASE plus the boundary node's own persisted terminal work, where BASE is live repository plus strictly-deeper accepted work. A new or changing mutation is validated against BASE alone, so an operation never becomes its own base. Branch components are serialized authoring units, so same-frontier nodes are not necessarily independently dispatchable; peer proposals are excluded from both lenses and are not a design basis, and the frontier service infers no missing causal dependency. There is no persisted frontier, worker registry, or construction-state artifact — the DAG is the only construction artifact.\n- Exact work is authored against live repository source plus applicable accepted lower DAG patches; there is no generated write scope and no file-ownership claim system.\n- GPU\u002Fconsumer contracts are not a second dependency system. Interface coherence is re-homed to semantic requirements, bounded caller\u002Fimplementation discovery, and patch-aware work review.\n- A `run` node verifies or satisfies the change (tests, builds, type checks, schema checks). Publication\u002Flifecycle commands — commit, push, PR, release, deploy — never belong in a `run` node and are excluded by the canonical argv policy.\n- Edit work is authored as ordered exact `{old, new}` replacements applied sequentially with zero fuzz (`old` non-empty and occurring exactly once); the service derives and validates the internal unified diff. Agents never author unified diff syntax, hunk numbers, or `*** Begin Patch` \u002F `*** End Patch`.\n- `anchor_commit` is a creation-time drift\u002Fprovenance marker only; a dirty tree and `HEAD != anchor_commit` do not invalidate the DAG.\n\n## Optional independent review\n\nDispatch `change-dag-author` for one initial semantic `dag_create`; it verifies creation and exits. The controller owns frontier motion, serialized Worker admission, mandatory review, exact-work routing to `change-dag-fixer`, semantic\u002Fgraph routing to `change-dag-semantic-repairer`, authority escalation, reconciliation, `dag_preview`, `dag_validate`, and mutable recovery. The Author uses semantic authoring tools only, never mutates source, and never dispatches agents.\n\nThe orchestrator\u002Fcontroller selects `change-dag-reviewer` only when observable conditions justify independent judgment: shared semantic convergence, incompatible cross-branch proposals, nontrivial behavior-changing ordering, producer\u002Fconsumer or interface migration, shared schema\u002Fregistry\u002Fpersistence\u002Fmigration work, request\u002FDD decomposition ambiguity, DD authority ambiguity, materially useful recovery amendment, or an explicit user request. Do not invoke it for node count, node types, ordinary run barriers, mechanically independent branches, or ordinary author-correctable mechanical errors.\n\nReviewer input includes the DAG slug, relevant node IDs\u002Fbounded scope, source context, a concrete review question, the observable trigger, and `review_kind` (`SEMANTIC`, `EXACT_WORK`, `DD_CONSISTENCY`, or `COMBINED`). The reviewer is read-only (`dag_show`, `dag_preview`, `dag_validate`). `PASS` means only that the requested scope found no material issue; it is not persisted DAG state, execution authorization, or a mandatory lifecycle transition. Final review uses `BLOCK_RUN`, `ALLOW_WITH_FOLLOWUP`, or `ALLOW`: Nyx routes exact-work defects to `change-dag-fixer`, semantic\u002Fgraph defects to `change-dag-semantic-repairer`, and authority issues upstream. `ALLOW_WITH_FOLLOWUP` preserves evidence for post-run QA or follow-on repair; ordinary repairable correctness defects do not automatically block execution.\n\n## Lifecycle boundary\n\nAuthoring ends at a validated DAG; optional independent review is a controller-selected evidence step. Nyx owns lifecycle control through the four public tools; `dag_executor` performs deterministic execution:\n\n- `dag_start(slug, retry?)` launches or queues whole-DAG execution and returns `running` or `queued`.\n- `dag_status(slug?)` is the canonical completion poll until the DAG is `root_satisfied` or idle\u002Fnot active. There is no durable `quiescent` state; a stopped DAG with failed\u002Funresolved blockers is reported descriptively.\n- `dag_stop(slug)` stops a queued or running DAG; it is recovery, not rollback.\n- On successful root satisfaction the executor records inherited starting-worktree state, runs `git add -A`, and creates a local checkpoint commit. That checkpoint is not publication and is not a DAG `run` node.\n- `dag_archive(slug, reason)` retires a pending bundle into `artifacts\u002Fchange-dags\u002Farchived\u002F` with a required reason and an `ARCHIVE.json` disposition record. It is lifecycle cleanup: it does not require resolution, executability, root satisfaction, absence of failures, or QA. A running DAG must be stopped first; a queued DAG must be cancelled with `dag_stop`. Load `change-dag-lifecycle` for the concise operating contract.\n\n## DD lifecycle\n\nA DD may be archived through `dd_archive` only after every Change DAG bundle linked from its Related Documents (or referenced from its Change DAG section) has been retired into `artifacts\u002Fchange-dags\u002Farchived\u002F` (artifact lifecycle). Retirement is not success: consult the Change DAG's `ARCHIVE.json` for the recorded outcome. `dd_archive` evaluates both linked Change DAG completion and any declared non-DAG prerequisite gate. A declared prerequisite must be satisfied or explicitly migrated before archival; ordinary DDs with no declared prerequisite are not subject to an invented prerequisite gate. Archival does not depend on independent Change-DAG QA or `final_qa` PASS. QA-before-publication remains enforced by the separate `qa-push-manager` publication gate.\n\n## Validation checklist\n\n- [ ] Every required requirement maps to an owned semantic node.\n- [ ] Each semantic node states a postcondition, not an action.\n- [ ] Every semantic node is either locally resolved or an explicit unresolved semantic node.\n- [ ] The graph is acyclic, reachable, and free of illegal exclusive-terminal structure (`edit` composable; `create`\u002F`remove`\u002F`move`\u002F`run` exclusive direct terminals).\n- [ ] Exact work is authored against live source plus applicable accepted lower DAG patches.\n- [ ] No `GRAPH.json`, task plan, phase letter, or `CONTRACTS.md` authority is created.\n- [ ] `dag_validate` reports the DAG as schema-valid (and executable when execution is intended).\n- [ ] `dag_construction_state` reports completion and `dag_validate` confirms resolved before construction is declared complete.\n\n## References\n\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsubagent-protocol.md` — Change DAG authoring and handoff protocol.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsemantic-generation.md` — canonical initial semantic-graph derivation procedure.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-author.md` — author dispatch contract.\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-worker.md` — bounded opaque\u002Fsession-bound Worker dispatch contract (internal to the controller).\n- `file:\u002F\u002Fconfig\u002Fskills\u002Fdispatching-agents\u002Freferences\u002Fchange-dag-reviewer.md` — read-only review dispatch contract.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_DAG_Agents.md` — Change DAG agent construction protocol.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_DAG_Toolset.md` — Change DAG tool contract.\n- `file:\u002F\u002Fartifacts\u002FSkyScow_Change_Execution_Artifacts.md` — Change DAG \u002F Execution State \u002F Work Log artifacts.\n",{"name":5,"description":7},"main","8f95d6b7cbf4ec39161b4e6c8bc5e1493e58003c","config\u002Fskills\u002Fdecomposing-design-documents",0,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow","https:\u002F\u002Fgithub.com\u002Fxiaden","2026-09-30 22:33:49",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add xiaden\u002FSkyScow --skill decomposing-design-documents",{"tool":37,"command":38},"bunx","bunx skills add xiaden\u002FSkyScow --skill decomposing-design-documents",{"tool":40,"command":41},"pnpm","pnpm dlx skills add xiaden\u002FSkyScow --skill decomposing-design-documents","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002FADR_MARKDOWN_SCHEMA.json","REFERENCE","参考文档",4317,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002FADR_MARKDOWN_SCHEMA.json",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fsemantic-generation.md",13141,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsemantic-generation.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fsubagent-protocol.md",12349,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fdecomposing-design-documents\u002Freferences\u002Fsubagent-protocol.md",[60,66,73,79,86,93],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CTNJ49PJ794TEFBCNYYKQM","unquoted-colon","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Funquoted-colon\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CTNENFBZPEX63HNSRBCW4T","quoted-description","Use when a plain scalar contains a colon: like this one.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fquoted-description\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTNBBPKA6GMCVEM3GPB59F","block-description","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fblock-description\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTN4M0SR4Z4TPJMHWC3A3B","work-routing","Canonical authority for who owns the next unit of work — direct work versus delegation, task tiers, bounded localization, the Change DAG size threshold, R&D evaluation routing, progressive research escalation, researcher scope signals, and QA\u002Fsupport owner selection. Use before choosing execution, investigation, design, or QA ownership; do not use to construct dispatch prompts, handoff schemas, or Change DAG\u002FDD tool operation.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fwork-routing\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTMY5AY3NSNHGQJA0M7VP9","update-docs","Update project documentation to match code changes — generate codemaps, refresh READMEs, detect doc\u002Fcode drift using AST analysis. Use when updating documentation after code changes, generating codemaps, verifying doc accuracy, or detecting stale documentation. Do NOT use for writing API reference docs from scratch (use doc-coauthoring) or for creating new skill files (use making-editing-skills).","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7CTMSQD82CPD53C6F07J0R9","skill-loading-system","Explain or troubleshoot OpenCode skill discovery, loading, permissions, availability, or prompt injection.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fskill-loading-system\u002FSKILL.md",[],[]]