extensions/pi-subagent/skills/pi-subagent/SKILL.md
Delegate tasks to specialized subagents for parallel or sequential execution.
npx skillsauth add espennilsen/pi pi-subagentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the subagent tool to delegate tasks to isolated pi subprocesses. Each subagent gets a fresh context window — no shared state with the parent session.
{ "agent": "scout", "task": "Find all REST endpoints in src/" }
{ "tasks": [
{ "agent": "scout", "task": "Audit auth module" },
{ "agent": "scout", "task": "Audit API routes" },
{ "agent": "scout", "task": "Audit database queries" }
]
}
{previous} for prior step's output{ "chain": [
{ "agent": "scout", "task": "Find all TODO comments in the codebase" },
{ "agent": "planner", "task": "Categorize and prioritize these TODOs:\n{previous}" },
{ "agent": "worker", "task": "Fix the top 3 critical TODOs:\n{previous}" }
]
}
Every task (single, parallel item, chain step) supports these overrides:
| Option | Type | Description |
|--------|------|-------------|
| model | string | Model override (e.g. "claude-haiku-4-5" for fast, "claude-sonnet-4-5" for complex) |
| thinking | string | Thinking level: off, minimal, low, medium, high, xhigh |
| extensions | string[] | Extension paths to load (subagents run with -ne — only whitelisted) |
| skills | string[] | Skill files/dirs to load via --skill |
| noTools | boolean | Disable all built-in tools (--no-tools) — for analysis-only agents |
| noSkills | boolean | Disable skill discovery (-ns) |
| cwd | string | Working directory override |
Priority: per-task item > top-level params > agent .md frontmatter > global settings
Fast recon with cheap model, no thinking overhead:
{ "agent": "scout", "task": "Map the auth module", "model": "claude-haiku-4-5", "thinking": "off" }
Research task needing web search:
{ "agent": "worker", "task": "Find pricing for Vercel Pro", "extensions": ["extensions/pi-brave-search"] }
Parallel with different models per task:
{ "tasks": [
{ "agent": "scout", "task": "Map the codebase", "model": "claude-haiku-4-5" },
{ "agent": "reviewer", "task": "Review the PR diff", "model": "claude-sonnet-4-5", "thinking": "high" }
]
}
Chain with escalating capability:
{ "chain": [
{ "agent": "scout", "task": "Map the auth module", "model": "claude-haiku-4-5", "thinking": "off" },
{ "agent": "planner", "task": "Plan a refactor based on: {previous}", "thinking": "high" },
{ "agent": "worker", "task": "Implement the plan: {previous}", "thinking": "medium" }
]
}
Subagents always run with --no-extensions (-ne). They cannot:
Whitelist only what a specific task needs via the extensions parameter.
"user" (default) — loads from ~/.pi/agent/agents/*.md"both" — also includes .pi/agents/*.md (prompts for confirmation)"project" — only project-local agentsPlace .md files in ~/.pi/agent/agents/ with YAML frontmatter:
---
name: scout
description: Fast codebase reconnaissance
tools: read, grep, find, ls, bash
extensions: extensions/pi-dotenv
model: claude-haiku-4-5
---
System prompt for the agent goes here...
| Frontmatter | Description |
|-------------|-------------|
| name | Agent name (required) |
| description | What the agent does (required) |
| tools | Comma-separated tool whitelist |
| model | Default model |
| extensions | Comma-separated extension paths to load |
off for fast tasks, high/xhigh for complex reasoningtools
# pi-a2a Long-Running Tasks Skill ## Overview The pi-a2a extension supports **long-running tasks** that can execute for hours or days without timeouts. This is essential for: - Data processing pipelines - Batch operations - Research and aggregation tasks - External API jobs with unpredictable duration - Any A2A task that exceeds the standard timeout ## When to Use **Use long-running tasks when:** - Task execution time is unpredictable or known to exceed 10 minutes - The remote agent is proc
development
Orchestrate cmux terminal panes — split terminals, run parallel processes, read output from other panes, and use the built-in browser. Use when working inside cmux and you need to run a dev server, watch tests, spawn sub-agents, or preview web pages.
testing
Review UI designs and implementations for accessibility, consistency, usability, and visual quality. Use when asked to review a design, audit accessibility, check UI consistency, compare implementation against mockups, or evaluate a user interface.
tools
Create, review, and improve skills for Pi agents. A skill is a folder with a SKILL.md that teaches an agent specialized workflows, domain knowledge, or tool integrations. Use when asked to create a new skill, improve an existing skill, review a skill for quality, scaffold a skill from a workflow, or convert documentation into a skill. Also triggers on "make a skill for", "build a skill", "skill for [topic]", "teach the agent to", or "package this workflow as a skill".