Hand off a task to the CEO agent for execution. Triggers on "/ceo:delegate", "ceo do this", "hand this off", "delegate this".
Accept a task from the user, match it to a playbook, and execute it.
Read vault path from the obsidian plugin config: ~/.claude/plugins/cache/nhangen/obsidian/*/obsidian.local.md
Set $VAULT to the vault_path value.
The user provides a task description after the command, e.g.:
/ceo:delegate review PR #6980/ceo:delegate triage open PRs/ceo:delegate fix the linting errors in PR #7001Read global agent rules — read $VAULT/CEO/AGENTS.md.
Read CEO identity — read $VAULT/CEO/IDENTITY.md.
Read training — read $VAULT/CEO/TRAINING.md and the domain-specific training file matching the task type.
Read skills dispatch table — read $VAULT/CEO/SKILLS.md.
Match task to playbook — compare the user's task description against the Task Type Index in SKILLS.md:
Read matched playbook — read $VAULT/CEO/playbooks/<matched-type>.md.
<type>.md is listed in SKILLS.md but hasn't been created yet. Want me to create a starter playbook based on your task?"Execute playbook with subagent dispatch — read the playbook steps. For each step:
a. Determine if the step needs a specialist. Match by keywords:
b. Choose dispatch mode:
c. Dispatch subagent (if specialist needed):
skills/ceo/agents/<role>.mdTASK_DESCRIPTION with the specific step's taskSCOPED_CONTEXT with:
$VAULT/CEO/AGENTS.md (global rules)$VAULT/CEO/delegations/<timestamp>-<role>-<slug>.md with task details## Result sectiond. Process subagent result:
e. Handle directly (if no specialist needed):
Log results — append to $VAULT/CEO/log/YYYY-MM-DD.md:
## HH:MM — <task-type>
**Status:** completed | failed | partial
**Playbook:** playbooks/<type>.md
**Delegated task:** <user's original description>
**Actions:**
- <what was done>
**Audibles:**
- <deviations from playbook, if any>
**Errors:**
- <errors encountered, if any>
**Delegations:**
- <role>: <task summary> — <status>
Report back — summarize what was done to the user.
If the user confirms they want to proceed without a playbook: