sub-agents
Spawn and coordinate sub-agent sessions for parallel work. Use when delegating tasks (research, code, analysis), routing to appropriate models, or managing multi-agent workflows. Trigger on "spawn", "sub-agent", "delegate", "parallel tasks", or when a task would benefit from a different model.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bill492/sub-agentsWhat This Skill Does
The sub-agents skill is the primary orchestration tool for OpenClaw, enabling the spawning of isolated, parallel execution sessions. By delegating complex or time-consuming tasks to specialized agents, you can drastically improve system throughput and accuracy. Each sub-agent is essentially a clean-slate worker, tailored by your task instructions and model selection to complete specific objectives without being bogged down by the parent agent's state.
Installation
To integrate this orchestration capability into your workflow, run the following command in your OpenClaw terminal:
clawhub install openclaw/skills/skills/bill492/sub-agents
Use Cases
The skill is ideal for multi-threaded workflows where blocking the main agent is inefficient. Common use cases include:
- Parallel research: Spawning one agent to analyze documentation while another verifies code syntax.
- Complex Model Routing: Assigning a high-thinking Opus model to debug a critical logic error while offloading routine writing tasks to a faster GPT-5.2 sub-agent.
- Sandboxed Operations: Running untrusted or experimental code in a separate session to prevent contamination of the primary working environment.
- Long-running tasks: Delegating operations expected to take over 10 seconds to ensure the main interface remains responsive for user interaction.
Example Prompts
- "Spawn a sub-agent using the codex model to refactor the entire auth module in src/auth.ts and run the unit tests when finished."
- "I need to research the latest trends in serverless architecture. Please delegate this to a gpt5 sub-agent and summarize the findings in a new file named research_report.md."
- "Run a parallel analysis of these two data files. Use an opus agent for deep reasoning and provide a comparative summary once both are complete."
Tips & Limitations
- Context Blindness: Remember that sub-agents do not inherit your environment. You must explicitly include all necessary file paths or inline attachments. If a sub-agent doesn't know where to look, it cannot act.
- The 10-Second Rule: If a task takes less than 10 seconds, perform it yourself. The overhead of spawning and coordinating sub-agents should not exceed the time saved.
- Model Optimization: Use
gpt5(GPT-5.2) for the vast majority of general tasks to leverage unlimited usage on the Codex subscription. Saveopusfor complex reasoning andsonnetfor massive context window requirements. - Cleanup: Use the
cleanup: 'delete'parameter for ephemeral tasks to keep your environment organized and logs clean, but set tokeepif you need to audit the agent's work logs after completion.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bill492-sub-agents": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
skill-audit
Audit all installed skills for quality, duplicates, structural issues, and best-practice compliance. Use when asked to review, audit, lint, or check skills for problems. Triggers on "audit skills", "skill quality", "check my skills", "skill duplicates", "skill hygiene".
browser-read-x
Extract the main X/Twitter post or article content from a page that is already open in the browser (using browser act evaluate).
cf-crawl
Crawl websites using Cloudflare Browser Rendering /crawl API. Async multi-page crawl with markdown/HTML/JSON output, link following, pattern filtering, and AI-powered structured data extraction. Use when crawling entire sites or multiple pages, building knowledge bases, extracting structured data from websites, or when web_fetch is insufficient (JS rendering, multi-page, authenticated crawls).
browser-read
Extract readable content from browser pages as markdown. Use when web_fetch fails (bot protection, auth-required pages, Twitter/X, LinkedIn) and you already have the page open in the browser.
slack-block-kit
Send rich Slack Block Kit messages — native tables, structured layouts. Use when formatting tabular data for Slack, sending Block Kit payloads, or when markdown tables render poorly in Slack.