用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/espennilsen/pi --skill pi-subagent命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when inspecting or operating Herdr sessions, workspaces, tabs, panes, agents, terminal output, agent messaging, or waits.
Use when installing, updating, configuring, or troubleshooting Herdr, including missing commands, PATH errors, version differences, or Pi integration setup.
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.
基于 SOC 职业分类
正在显示 SKILL.md
| name | pi-subagent |
| description | Delegate tasks to specialized subagents for parallel or sequential execution. |
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 " }
{ "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 reasoning