一键导入
protocol
Defines the shared planning/execution protocol for issue-DAG work. Use when creating, validating, or executing protocol-driven DAG work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Defines the shared planning/execution protocol for issue-DAG work. Use when creating, validating, or executing protocol-driven DAG work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | protocol |
| description | Defines the shared planning/execution protocol for issue-DAG work. Use when creating, validating, or executing protocol-driven DAG work. |
Use this skill when work should flow through one shared protocol from planning to execution.
hierarchical-work.protocol/v1proto:hierarchical-work-v1Use only the protocol ID and tag above.
Use this controlled tag vocabulary:
proto:hierarchical-work-v1kind:root (root container)kind:goal (top-level executable objective under root)kind:spawn (independent executable child)kind:fork (context-inheriting executable child)kind:synth (synthesis executable child)kind:ask (human-input node)ctx:clean (independent context)ctx:inherit (depends on upstream outputs)ctx:human (user input required)actor:user for human question nodesNode role rules:
Root container node
node:root, kind:root, proto:hierarchical-work-v1node:agent removed)Executable work nodes (kind:goal|spawn|fork|synth)
proto:hierarchical-work-v1kind:* from the executable setctx:* tag (ctx:clean or ctx:inherit)node:agent present)Human input nodes (kind:ask)
proto:hierarchical-work-v1, kind:ask, ctx:human, actor:usernode:agent removed)Policy overlays are layered on top of this protocol and should not redefine
protocol primitives or kind:* semantics.
flow:*route:*spawn, fork, expand,
ask, complete, serial) and per-turn/per-session model overrides
(mu exec / mu turn with --provider --model --thinking) instead of
introducing ad-hoc mutations.Current compositional overlay skills:
control-flow (for example flow:review-gated-v1 behavior)model-routing (for example route:model-routing-v1 behavior)read_treeRead current node + local neighborhood before every mutation:
mu issues get <issue-id> --pretty
mu issues children <issue-id> --pretty
mu issues ready --root <root-id> --tag proto:hierarchical-work-v1 --pretty
mu forum read issue:<issue-id> --limit 20 --pretty
claimClaim executable work before execution:
mu issues claim <issue-id>
mu forum post issue:<issue-id> -m "START: <plan for this pass>" --author operator
spawnCreate independent executable child work:
child_json="$(mu issues create "<title>" \
--parent <issue-id> \
--body "<prompt + acceptance criteria>" \
--tag proto:hierarchical-work-v1 \
--tag kind:spawn \
--tag ctx:clean \
--priority 2 \
--json)"
child_id="$(echo "$child_json" | jq -r '.id')"
mu forum post issue:"$child_id" -m "<task packet>" --author operator
forkCreate context-inheriting executable child work:
mu forum read issue:<dep-id>.kind:fork + ctx:inherit + proto:hierarchical-work-v1.askCreate explicit human-input nodes:
ask_json="$(mu issues create "Question: <question>" \
--parent <issue-id> \
--tag proto:hierarchical-work-v1 \
--priority 1 \
--json)"
ask_id="$(echo "$ask_json" | jq -r '.id')"
mu issues update "$ask_id" \
--remove-tag node:agent \
--add-tag kind:ask \
--add-tag ctx:human \
--add-tag actor:user
mu forum post issue:"$ask_id" \
-m "QUESTION: <question>\nOPTIONS: <list or free-form>\nReply in this topic, then close this issue." \
--author operator
completeClose executable work with explicit result packets:
mu forum post issue:<issue-id> -m "RESULT:\n<result>" --author operator
mu issues close <issue-id> --outcome success
Use explicit non-success outcomes when required (failure, needs_work, skipped).
expandEncode decomposition as first-class graph transitions:
spawn and/or fork.kind:synth, ctx:inherit, proto:hierarchical-work-v1.mu issues dep <child> blocks <synth>).mu issues close <issue-id> --outcome expanded.serialEncode ordered execution explicitly with dependency edges:
mu issues dep <step-a> blocks <step-b>
node:agent.START/RESULT packets).mu issues validate <root-id> must pass before declaring completion.Before handoff from planning to execution supervision:
node:root, kind:root, proto:hierarchical-work-v1.proto:hierarchical-work-v1.kind:* tag.kind:root, kind:ask) have node:agent removed.kind:goal|spawn|fork|synth) include ctx:* and acceptance criteria.mu issues ready --root <root-id> --tag proto:hierarchical-work-v1 --pretty
mu issues validate <root-id>
Worker/orchestrator passes always choose one primitive at a time:
read_treeask | expand | complete | protocol primitive)get, children, ready, validate)heartbeatsroot_json="$(mu issues create "Root: <goal>" \
--tag node:root \
--tag kind:root \
--tag proto:hierarchical-work-v1 \
--json)"
root_id="$(echo "$root_json" | jq -r '.id')"
mu issues update "$root_id" --remove-tag node:agent
goal_json="$(mu issues create "Goal execution" \
--parent "$root_id" \
--tag kind:goal \
--tag ctx:clean \
--tag proto:hierarchical-work-v1 \
--priority 2 \
--json)"
goal_id="$(echo "$goal_json" | jq -r '.id')"
mu forum post issue:"$goal_id" -m "<goal brief + acceptance criteria>" --author operator
Planning-to-execution continuity
execution without re-shaping.Decomposition with synthesis fan-in
expanded.Human-input interruption
kind:ask node is created, marked non-executable, downstream nodes are blocked on the ask node, execution resumes after answer issue closes.Runs core mu operator workflows for bounded investigation, CLI-first state operations, and session handoffs. Use when general mu execution or state-management guidance is needed.
Meta-skill for core mu operating primitives. Routes to mu, programmable-ui, memory, tmux, and code-mode based on task shape.
Produces clear, argument-driven technical prose. Use when drafting or reviewing systems papers, design docs, READMEs, PR descriptions, error messages, API references, or other technical communication.
Builds and debugs mu_ui UiDocs with schema-valid payloads, interaction wiring, and status/snapshot verification.
Runs cross-store memory retrieval and index maintenance workflows with bounded filters and timeline anchors. Use when querying prior context or repairing memory index health.
Defines compositional control-flow policies for orchestration DAGs (for example review-gated retry loops) using protocol-preserving transitions.