CCB Workflow Orchestrate
Use this skill to design and activate a CCB workflow across mounted agents
without turning ccb_self into the business-task owner. Keep manager ownership,
dispatch contracts, review gates, and runtime refresh decisions visible.
Read references/ccb-workflow-orchestration.md for orchestration patterns,
memory overlay rules, activation gates, and research provenance. Also use
references/runtime-authority.md, references/ccb-command-surface.md, and
references/ccb-role-and-config-system.md when commands or reload/restart
impact matter.
Workflow
- Inventory the live CCB state before planning:
ccb ps
ccb queue --detail all
ccb pend --inbox --detail all
ccb config validate
ccb reload --dry-run when config or role assets may be affected
- Classify the user's goal:
- analysis/research only;
- implementation with separate review;
- parallel exploration with synthesis;
- recovery or rebalancing of an existing workflow;
- temporary mounted-agent memory overlay and activation.
- Choose the lightest orchestration pattern:
- single-agent skill chain for small or low-risk work;
- manager-owned worker calls when
ccb_self must synthesize the final
answer;
- parallel consult lanes for independent analysis or design options;
- handoff when one specialist should own a branch;
- analysis -> implementation -> review pipeline for risky code changes.
- Produce a plan before mutation:
- agents and lanes;
- task contract per agent;
- inputs, forbidden changes, expected output, and validation evidence;
- handoff and review gates;
- dedupe rule for overlapping agents;
- activation commands and restart risk.
- If per-agent memory changes are necessary, write only bounded
mounted-agent orchestration overlays:
- target mounted-agent memory, not Role source;
- create a backup first;
- use a clearly delimited block with owner, timestamp, task id, expiry, and
removal condition;
- include role lane, task contract, communication contract, validation
criteria, and return route;
- do not store secrets, provider state, progress logs, or broad permanent
policy changes.
- Activate through CCB control-plane gates:
- run validation after config-like edits;
- run
ccb reload --dry-run before ccb reload;
- run
ccb reload only when the user intended materialization;
- restart only affected current-graph agents, one at a time, with
ccb restart <agent> after busy checks pass.
- Dispatch work through CCB:
- use
ccb ask --chain <agent> only when the parent cannot finish without
the result;
- use
ccb ask --silence <agent> only for independent work where success
result is not needed;
- do not poll in the same turn unless the user asked for diagnostics.
- Adapt after evidence:
- compare replies against the plan;
- deduplicate overlapping results;
- add a review lane when quality or risk is uncertain;
- reassign or narrow lanes when an agent is blocked, busy, or off-scope;
- return business ownership to the original target agent.
Memory Overlay Template
Use this shape for a temporary mounted-agent overlay:
<!-- ccb-orchestrate:begin owner=ccb_self task=<id> expires=<condition> -->
Lane: analysis | implementation | review | synthesis | support
Mission: ...
Inputs: ...
Must not: ...
Output contract: ...
Validation evidence: ...
Communication: reply to ccb_self; use chain only when result is required
Return route: ...
Removal condition: ...
<!-- ccb-orchestrate:end -->
Keep overlays small. Prefer editing or replacing the existing
ccb-orchestrate block for the same task instead of appending duplicates.
Red Lines
- Do not edit Role source memory to encode a project workflow.
- Do not overwrite an agent's base mounted memory.
- Do not edit lifecycle, lease, mailbox, provider session, pid, socket, or raw
tmux authority files.
- Do not run raw tmux mutation or
restart-all.
- Do not restart a busy, unknown, stale, or non-current-graph agent.
- Do not store credentials, API keys, auth state, provider sessions,
screenshots, traces, or progress logs in memory overlays.
Report
Report:
- selected orchestration pattern;
- agents, lanes, and task contracts;
- memory/config files changed or proposed;
- validation, reload, and restart commands run or blocked;
- dispatch commands submitted;
- review/synthesis result;
- cleanup or overlay removal follow-up.
1---2name: ccb-workflow-orchestrate3description: Plan and activate CCB multi-agent workflow orchestration from ccb_self. Use when the user asks to split work across mounted agents, assign analysis/implementation/review roles, adjust per-agent task memory, coordinate ask dispatch, deduplicate overlapping work, or reload/restart affected panes so new mounted-agent instructions are loaded.4---56# CCB Workflow Orchestrate78Use this skill to design and activate a CCB workflow across mounted agents9without turning `ccb_self` into the business-task owner. Keep manager ownership,10dispatch contracts, review gates, and runtime refresh decisions visible.1112Read `references/ccb-workflow-orchestration.md` for orchestration patterns,13memory overlay rules, activation gates, and research provenance. Also use14`references/runtime-authority.md`, `references/ccb-command-surface.md`, and15`references/ccb-role-and-config-system.md` when commands or reload/restart16impact matter.1718## Workflow19201. Inventory the live CCB state before planning:21 - `ccb ps`22 - `ccb queue --detail all`23 - `ccb pend --inbox --detail all`24 - `ccb config validate`25 - `ccb reload --dry-run` when config or role assets may be affected262. Classify the user's goal:27 - analysis/research only;28 - implementation with separate review;29 - parallel exploration with synthesis;30 - recovery or rebalancing of an existing workflow;31 - temporary mounted-agent memory overlay and activation.323. Choose the lightest orchestration pattern:33 - single-agent skill chain for small or low-risk work;34 - manager-owned worker calls when `ccb_self` must synthesize the final35 answer;36 - parallel consult lanes for independent analysis or design options;37 - handoff when one specialist should own a branch;38 - analysis -> implementation -> review pipeline for risky code changes.394. Produce a plan before mutation:40 - agents and lanes;41 - task contract per agent;42 - inputs, forbidden changes, expected output, and validation evidence;43 - handoff and review gates;44 - dedupe rule for overlapping agents;45 - activation commands and restart risk.465. If per-agent memory changes are necessary, write only bounded47 mounted-agent orchestration overlays:48 - target mounted-agent memory, not Role source;49 - create a backup first;50 - use a clearly delimited block with owner, timestamp, task id, expiry, and51 removal condition;52 - include role lane, task contract, communication contract, validation53 criteria, and return route;54 - do not store secrets, provider state, progress logs, or broad permanent55 policy changes.566. Activate through CCB control-plane gates:57 - run validation after config-like edits;58 - run `ccb reload --dry-run` before `ccb reload`;59 - run `ccb reload` only when the user intended materialization;60 - restart only affected current-graph agents, one at a time, with61 `ccb restart <agent>` after busy checks pass.627. Dispatch work through CCB:63 - use `ccb ask --chain <agent>` only when the parent cannot finish without64 the result;65 - use `ccb ask --silence <agent>` only for independent work where success66 result is not needed;67 - do not poll in the same turn unless the user asked for diagnostics.688. Adapt after evidence:69 - compare replies against the plan;70 - deduplicate overlapping results;71 - add a review lane when quality or risk is uncertain;72 - reassign or narrow lanes when an agent is blocked, busy, or off-scope;73 - return business ownership to the original target agent.7475## Memory Overlay Template7677Use this shape for a temporary mounted-agent overlay:7879```text80<!-- ccb-orchestrate:begin owner=ccb_self task=<id> expires=<condition> -->81Lane: analysis | implementation | review | synthesis | support82Mission: ...83Inputs: ...84Must not: ...85Output contract: ...86Validation evidence: ...87Communication: reply to ccb_self; use chain only when result is required88Return route: ...89Removal condition: ...90<!-- ccb-orchestrate:end -->91```9293Keep overlays small. Prefer editing or replacing the existing94`ccb-orchestrate` block for the same task instead of appending duplicates.9596## Red Lines9798- Do not edit Role source memory to encode a project workflow.99- Do not overwrite an agent's base mounted memory.100- Do not edit lifecycle, lease, mailbox, provider session, pid, socket, or raw101 tmux authority files.102- Do not run raw tmux mutation or `restart-all`.103- Do not restart a busy, unknown, stale, or non-current-graph agent.104- Do not store credentials, API keys, auth state, provider sessions,105 screenshots, traces, or progress logs in memory overlays.106107## Report108109Report:110111- selected orchestration pattern;112- agents, lanes, and task contracts;113- memory/config files changed or proposed;114- validation, reload, and restart commands run or blocked;115- dispatch commands submitted;116- review/synthesis result;117- cleanup or overlay removal follow-up.