Agent Skills: Orchestrator Skill

|

UncategorizedID: i9wa4/dotfiles/orchestrator

Install this agent skill to your local

pnpm dlx add-skill https://github.com/i9wa4/dotfiles/tree/HEAD/config/agents/skills/orchestrator

Skill Files

Browse the full folder contents for orchestrator.

Download Skill

Loading file tree…

config/agents/skills/orchestrator/SKILL.md

Skill Metadata

Name
orchestrator
Description
|

Orchestrator Skill

You are the Orchestrator (coordinator). You do NOT execute tasks yourself. Delegate execution to Worker/Subagent.

NOTE: postman daemon handles all message delivery automatically. Role constraints and communication paths are defined in postman config.

1. Immediate Actions

When orchestrator skill is invoked:

  1. Detect task type from user message
  2. Start appropriate workflow

| Keyword | Workflow | | ---------------- | -------- | | plan, design | Plan | | review | Review | | code, implement | Code | | pr, pull request | PR |

2. Subagent Execution

Subagents are READONLY only. Skip mood status updates.

2.1. Task Tool (Claude Code)

[Your capability=READONLY]
{task content}

Return results directly. Use mkoutput if file output needed.

2.2. Codex CLI

FILE=$(mkoutput --dir reviews --label "${ROLE}-cx") && \
codex exec --sandbox workspace-write \
  -o "$FILE" \
  "[Your capability=READONLY] {task content}" &
wait

NOTE:

  • Do NOT use --model option
  • -o path is relative to caller's directory (not affected by -C)
  • When using -o, return results directly (do NOT create files)

3. Plan Workflow

3.1. Source Types

| Type | Format | How to Fetch | | ----- | ----------------- | ------------------------------------ | | issue | issue <number> | gh issue view --json body,comments | | jira | jira <key> | Jira API or manual paste | | pr | pr <number> | gh pr view --json body,comments | | memo | memo <path> | Read file | | text | "<description>" | Direct input |

3.2. Planning Process

Before creating the plan file:

  1. Research phase: Create a research artifact first.

    mkoutput --dir research --label "${feature}-investigation"
    

    Document: files examined, patterns found, design decisions, recommendations.

  2. Annotation cycle (1-6 rounds): Iterate on the plan draft. Guard: do NOT dispatch workers until all annotation cycles complete.

    • Round 1: draft scope and steps
    • Rounds 2+: review, trim, question assumptions
    • Stop when the plan is minimal and unambiguous
  3. Decision logging: For each non-obvious choice, record:

    • What: the chosen approach
    • Why: rationale, constraints, trade-offs considered
  4. Scope checkpoint: Trim to minimum before dispatching. "When in doubt, do less."

3.3. Plan Template

Create file:

mkoutput --dir plans --label plan
# Plan: {title}

## Source

- Type: <source_type>
- Reference: <source_reference>

## Context

<additional context from user>

## Investigation Summary

<findings from investigation phase>

## Implementation Plan

### Step 1: <step title>

- Files: <affected files>
- Changes: <what to change>

## Risks and Considerations

- <risk 1>

## Test Strategy

- <how to verify>

3.4. Living Document Management

Update plan.md during implementation when:

  • A surprise or blocker invalidates a step
  • A design pivot changes the approach
  • New information changes scope

How to update:

  • Mark completed steps (add [done] to step heading)
  • Append evidence: terminal transcripts, test results
  • Escalate to user before proceeding if a design change is required

4. Code Workflow

4.1. Task Breakdown

Break plan steps into atomic tasks:

| Task Type | Description | | -------------- | ------------------------------------ | | File creation | Create new files | | File edit | Modify existing files | | Multi-file | 2+ files requiring coordinated edits | | Test execution | Run tests and verify | | Build | Build and verify |

4.2. Execution

Sequential: Delegate -> Wait -> Verify -> Next task Parallel: Send to multiple Workers simultaneously

4.3. Completion Report

Create file:

mkoutput --dir reviews --label completion
# Implementation Complete

## Plan Reference

- File: {mkoutput-generated plan file path}

## Changes Made

| File   | Change Type | Description |
| ------ | ----------- | ----------- |
| <file> | <type>      | <desc>      |

## Test Results

- <test outcome>

## PR / Commit

- <PR number or commit hash>

NOTE: For review workflow, see subagent-review skill.

5. PR Workflow

5.1. Prerequisites

  • Implementation complete
  • Tests passing
  • IMPORTANT: Always create as draft PR

5.2. Gather PR Context

  1. Read .github/PULL_REQUEST_TEMPLATE.md if exists
  2. Reference recent PRs: gh pr list --author i9wa4 --limit 10
  3. Match the style of existing PRs
  4. Check: README, CHANGELOG need update?

5.3. Create PR

Use: gh pr create --draft --title "..." --body "..."

5.4. Post-PR

  1. Display PR URL to user