ceo-delegate

star 2

Hand off a task to the CEO agent for execution. Triggers on "/ceo:delegate", "ceo do this", "hand this off", "delegate this".

nhangen By nhangen schedule Updated 4/19/2026

name: ceo-delegate description: Hand off a task to the CEO agent for execution. Triggers on "/ceo:delegate", "ceo do this", "hand this off", "delegate this". version: 0.1.0

CEO Delegate

Accept a task from the user, match it to a playbook, and execute it.

Config

Resolve $VAULT using this fallback chain (first match wins):

  1. Environment variable $CEO_VAULT (if set)
  2. Obsidian plugin config: ~/.claude/plugins/cache/nhangen/obsidian/*/obsidian.local.md → read vault_path
  3. Default: ~/Documents/Obsidian

If $VAULT/CEO/AGENTS.md does not exist, ask the user where their Obsidian vault is installed and use that path.

Arguments

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 #7001

Steps

  1. Read global agent rules — read $VAULT/CEO/AGENTS.md.

  2. Read CEO identity — read $VAULT/CEO/IDENTITY.md.

  3. Read training — read $VAULT/CEO/TRAINING.md and the domain-specific training file matching the task type.

  4. Read skills dispatch table — read $VAULT/CEO/SKILLS.md.

  5. Match task to playbook — compare the user's task description against the Task Type Index in SKILLS.md:

    • Match by keywords (e.g., "review PR" → pr-review, "triage" → pr-triage, "brief" → morning-brief)
    • If ambiguous, ask the user: "This could match [type A] or [type B]. Which playbook should I follow?"
    • If no match: say "No playbook matches this task. I can attempt it without a playbook, or you can create one. What would you prefer?"
  6. Read matched playbook — read $VAULT/CEO/playbooks/<matched-type>.md.

    • If the playbook file doesn't exist yet, tell the user: "Playbook <type>.md is listed in SKILLS.md but hasn't been created yet. Want me to create a starter playbook based on your task?"
  7. Execute playbook with subagent dispatch — read the playbook steps. For each step:

    a. Determine if the step needs a specialist. Match by keywords:

    • Diff analysis, code review, CI check → Code Reviewer
    • Write code, fix bug, run tests → Implementer
    • Search, investigate, literature review → Researcher
    • Draft text, write post, compose email → Writer
    • Check inventory, run SOP, review hiring → Ops Manager
    • Compare options, analyze data, evaluate → Analyst
    • No specialist needed → CEO handles directly

    b. Choose dispatch mode:

    • Will Nathan want to review the subagent's output later? → vault-mediated
    • Quick subtask within a larger flow? → inline

    c. Dispatch subagent (if specialist needed):

    • Read the role template from the plugin's skills/ceo/agents/<role>.md
    • Replace TASK_DESCRIPTION with the specific step's task
    • Replace SCOPED_CONTEXT with:
      • $VAULT/CEO/AGENTS.md (global rules)
      • Relevant training file for the domain
      • Task-specific context (repo path, PR number, vault files, etc.)
    • For vault-mediated: create $VAULT/CEO/delegations/<timestamp>-<role>-<slug>.md with task details
    • Dispatch via Agent tool
    • Collect the result
    • For vault-mediated: write result to the delegation record's ## Result section

    d. Process subagent result:

    • If result contains high-stakes recommendations → propose to user (interactive) or write to pending.md (cron)
    • If result is actionable low-stakes → continue playbook with the result
    • If result is a draft (Writer, Code Reviewer) → present to user for review

    e. Handle directly (if no specialist needed):

    • Execute the step respecting authority tiers (unchanged from current behavior)
  8. 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>
    
  9. Report back — summarize what was done to the user.

Without a Playbook

If the user confirms they want to proceed without a playbook:

  1. Assess the task and propose an action plan with tiers
  2. Wait for user approval of the plan
  3. Execute approved actions, log results
  4. After completion, ask: "Want me to save this as a playbook for next time?"
Install via CLI
npx skills add https://github.com/nhangen/claude-ceo --skill ceo-delegate
Repository Details
star Stars 2
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator