OA Agent Task Delegation

VerifiedCaution

Decides when to delegate coding tasks to separate OA agents based on task scope and complexity. Helps manage multi-file changes, parallel research, batch operations, and sequential workflows by spawning agents flat from the orchestrator with a structured delegation plan.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#prompting-delegation#agent-orchestration#parallel-agents#oa-pipeline

Recommended for

Automated summary

Decides when and how to delegate tasks to oa agents, using a decision tree and auto-delegation triggers to structure work into parallel agents or pipelines.

Strengths

  • Clear decision tree for choosing between inline execution, parallel agents, or pipeline
  • Support for research swarms, batch processing, and review chains
  • Planned delegation model with explicit names, scopes, and dependencies

Limitations

  • Requires spawning agents from the orchestrator session, not from nested agents
  • oa agents lack MCP tools, limiting certain use cases
  • Can become complex to configure for highly specific workflows
When to use it

Use this skill when you need to coordinate multiple file changes, multi-source research, or sequential steps requiring dedicated agents.

When not to use it

Avoid it for simple tasks (<30 min, single file) or when MCP access is essential, since oa agents cannot access it.

Security analysis

Caution
Quality score88/100

The skill provides patterns for delegating tasks to spawned agents using shell commands (oa run, oa pipeline). While these commands are for legitimate orchestration, they can execute arbitrary agent prompts, potentially causing resource exhaustion or unintended operations if not carefully controlled. No exfiltration or destruction commands present.

Findings
  • •Instructs spawning multiple agents via 'oa run' and 'oa pipeline', which could be resource-intensive or lead to unintended actions if misused.
How this analysis is made

Examples

Parallel research swarm
Research Claude API pricing and rate limits using two parallel agents, then combine the results into a final report.
Batch file processor
Add TypeScript strict types to all files in src/components/ by spawning one agent per file.
Delegation plan for a complex task
Create a delegation plan to analyze spec and API docs, then produce a combined summary report.

name: oa-prompting-delegation description: "Decide when and how to delegate tasks to oa agents. Use when evaluating task scope, choosing between inline work and agent spawning, or structuring a delegation plan. Activates for: delegate, spawn, auto-delegate, parallel agents, oa pipeline, delegation plan." user-invocable: false

Critical Rules

  • ALWAYS spawn agents flat from the orchestrator session — because nested agents (agent spawning agent) are invisible to oa status (Issue #9/#11).
  • NEVER delegate tasks that require live MCP access — because oa agents do not have MCP tool access; only the orchestrator session does.

Decision Tree

Task scope?
├── Single file, < 30 min → do it inline (no agent needed)
├── Touches > 3 files → parallel agents, one per file scope
├── Needs 2+ data sources → research swarm (3× researcher + 1 combiner)
├── N identical operations → N parallel workers on same template
├── 3+ sequential steps with clear handoffs → oa pipeline
├── Large/unclear scope → formulate delegation plan first
└── Output needs QA → spawn reviewer after writer completes

Auto-Delegation Triggers

| Trigger | Pattern | Agent Structure | |---------|---------|----------------| | Multi-file changes (> 3 files) | Parallel writers | One agent per file scope | | Multi-source research | Research swarm | 3× researcher (sonnet) + 1 combiner | | Batch operations | Same template, N inputs | N parallel workers (haiku or sonnet) | | Complex workflow (3+ steps) | Pipeline | oa pipeline "<task>" | | Large scope | Delegation plan | Planner (opus) → builders (sonnet) → validator | | Review needed | Review chain | Writer → reviewer → fixer (if needed) |

Instructions

  1. Evaluate the task against the auto-delegation triggers above.

  2. If delegating, formulate a delegation plan before spawning:

    • Name each agent and its exact scope
    • Define input/output file paths
    • Identify dependencies between agents
    • Choose model tier per agent (haiku/sonnet/opus)
  3. Spawn all independent agents in parallel (one oa run per agent):

    oa run "Research topic A, write to /tmp/results/a.md" --name researcher-a --model claude/sonnet --direct
    oa run "Research topic B, write to /tmp/results/b.md" --name researcher-b --model claude/sonnet --direct
    
  4. For sequential pipelines with 3+ steps, use oa pipeline:

    oa pipeline "Analyze codebase, write tests, then validate coverage"
    
  5. After all agents complete, run quality gates before proceeding:

    • Count: expected N outputs? Got N?
    • Content: complete, not truncated?
    • Format: matches reference structure?

Patterns

Pattern 1: Parallel research swarm

oa run "Research Claude API pricing, write summary to /tmp/research/pricing.md" \
  --name researcher-pricing --model claude/sonnet --direct
oa run "Research Claude API rate limits, write summary to /tmp/research/limits.md" \
  --name researcher-limits --model claude/sonnet --direct
oa run "Combine /tmp/research/*.md into /tmp/research/final.md" \
  --name combiner --model claude/sonnet --direct

Pattern 2: Batch file processor

# Run same template on N files
for f in src/components/*.tsx; do
  oa run "Add TypeScript strict types to $f, write back to same path" \
    --name "typer-$(basename $f .tsx)" --model claude/haiku --direct
done

Pattern 3: Delegation plan format

Delegation plan:
- Agent researcher-a (sonnet): Read /docs/spec.md → write /tmp/research/spec-summary.md
- Agent researcher-b (sonnet): Read /docs/api.md → write /tmp/research/api-summary.md
- Agent combiner (sonnet): Read /tmp/research/*.md → write /tmp/final-report.md
Dependencies: combiner waits for researcher-a and researcher-b

Anti-Patterns

  • Bad: Spawning agents from inside an agent prompt — nested agents are invisible to oa status.
  • Good: Always spawn from the main orchestrator session.
  • Bad: Using oa pipeline for 2-step tasks — inline is faster and simpler.
  • Good: Use oa pipeline only for 3+ sequential steps with unclear intermediate structure.
  • Bad: No delegation plan for 5+ agent spawns — leads to conflicting output files.
  • Good: Formulate plan with named agents, paths, and dependencies before spawning.

References

  • Related: oa-orchestration-spawn, oa-teams-coordination, oa-library-discovery

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/oa-agent-task-delegation-mmlj2paa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/oa-agent-task-delegation-mmlj2paa/download' --output '.skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md.part' && mv '.skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md.part' '.skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md' && test -s '.skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/oa-prompting-delegation' && cp -R '.skill-downloads/oa-agent-task-delegation-mmlj2paa' '.claude/skills/oa-prompting-delegation'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/oa-agent-task-delegation-mmlj2paa'

openskills read 'oa-agent-task-delegation-mmlj2paa'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/oa-agent-task-delegation-mmlj2paa/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills