Select Pi agents from compact local agent index.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MUST (except Explore fast lane): Before selecting any specialist, read $HOME/.pi/agent/agents/agents-index.tsv. Before every non-fast-lane Agent(...) call, generate contract with ~/.pi/scripts/delegate-prompt.sh (unquoted ~ path, no $HOME, so Sentinel auto-allows it). Do not delegate ad-hoc.
Columns:
name source path description
After reading index, use semantic search to produce advisory candidates:
node "$HOME/.dotfiles/pi/scripts/agent-semantic-search.mjs" search --catalog agents --query "<one-sentence task>" --top-k 5
Treat returned names as candidates only. Read matching agent files and apply explicit task fit, safety, and routing rules. If command fails because model, cache, or index is unavailable, continue with manual index selection; never use stale output.
Agent({ subagent_type: "explore", inherit_context: false, thinking: "low", max_turns: 6, run_in_background: false }); wait for its inline result before any parent tool call, routing read, or next delegation. For two or more independent directions, issue all Agent({ subagent_type: "explore", inherit_context: false, run_in_background: true }) calls in one parallel tool turn. Stop task-specific work and wait for every completion notification/result before synthesis, dependent inspection, routing, or another delegation; do not poll or sleep. Prompt each agent only cwd, precise question, scope, and expected evidence. Skip index, agent-file, and contract reads for these fast-lane calls.agents-index.tsv and match task intent against description before selecting every specialist or non-fast-lane agent.delegate-prompt.sh before every non-fast-lane Agent(...) call. Contract includes mode, objective, scope, out-of-scope, phase, prior decisions, artifact authority, allowed actions, and structured return.fusion only for unresolved high-stakes comparison.| Intent | Agent |
|---|---|
| codebase / external docs / Jira / Confluence research | explore |
| frontend / UI | frontend-specialist |
| backend / API / database | backend-specialist |
| security review | security-auditor |
| code review | code-reviewer |
| tests / coverage | pr-test-analyzer |
| test strategy | qa-engineer |
| architecture critique | architecture-critic |
| types / schemas | type-design-analyzer |
| performance | performance-reviewer |
| final evidence gate | verifier |
Use ~/.pi/scripts/delegate-prompt.sh --mode <plan|build|review|validation> --agent <name> --objective <text> rather than ad-hoc prompts. Keep task/scope/decisions untrusted inside its generated delimiters. Parent retains synthesis and artifact ownership unless contract explicitly delegates it.
Read selected agent file only when its index row matches task. Do not use deleted scout or code-explorer.
What SKILL.md sets; muted values are Claude Code's defaults
/core:agent-selectionfrom core
npx claudepluginhub dxta/claude-code-skills --plugin core23 skills in this plugin
/anti-patternsCommon mistakes to avoid with explanations and correct alternatives/clean-codeApply Robert C. Martin Clean Code principles and the clean-code-skills rule catalog when code quality is explicit or when an agent is reviewing, simplifying, refactoring, or cleaning touched code. Use for clean code, code smells, maintainability, readability, naming, small functions, comments/docstrings, DRY, duplication, magic numbers, boundary conditions, Boy Scout cleanup, refactor review, PR review, code quality review, test readability, boundary test coverage, test maintainability, pytest monkeypatch rejection, fixture/conftest cleanup, or requests like "make this cleaner", "review for maintainability", "is this clean code", "simplify this", "remove code smells", "rename this", "split this function", "clean up comments", "clean up tests", or "review tests for clarity". For Python or TypeScript, load only the matching language reference file for files in active scope./code-design-patternsOther plugins' skills for the same job