agent-definitions
Manage Pi Herdsman Agent definitions and reserved Coordinator profiles. Use when inspecting, creating, customizing, enabling,…
Audit historical Pi Herdsman Agent assignments for recurring responsibilities and evidence-based specialist opportunities. Use on request to evaluate Agent coverage, generalist use, or possible specialization gaps.
Claude Code
$ npx -y skills add boadij/pi-herdsman --skill agent-specialization-audit --agent claude-code
Codex
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a codex -y
Cursor
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a cursor -y
Gemini CLI
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a gemini-cli -y
GitHub Copilot
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a github-copilot -y
OpenCode
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a opencode -y
Windsurf
$ npx skills add boadij/pi-herdsman --skill agent-specialization-audit -a windsurf -y
name: agent-specialization-audit description: Audit historical Pi Herdsman Agent assignments for recurring responsibilities and evidence-based specialist opportunities. Use on request to evaluate Agent coverage, generalist use, or possible specialization gaps.
Perform a **user-invoked, read-only** audit. Recommend changes; never edit definitions, sessions, or live Agents as part of the audit. Use the existing [agent-definitions skill](../agent-definitions/SKILL.md) to assess the effective roster. Do not create a parallel definition engine.
1. Establish scope before inspecting history. For a repository audit, use the current Git worktree root and `git worktree list --porcelain` to identify its registered checkouts. Include their directory prefixes, not merely the active Pi cwd. Also inspect the applicable Herdr configuration for `worktrees.directory` (default `~/.herdr/worktrees`; honor `HERDR_CONFIG_PATH` when set). Include its `<worktrees.directory>/<repository-name>/` prefix as a historical path candidate for former worktrees, even if the checkouts no longer exist. Accept other known historical locations when supplied. Directory names alone cannot prove former Git repository membership; distinguish these candidates from currently registered worktrees. If no Git repository can be established, use the current Pi project scope and report the limitation. 2. Check whether the optional `session_inspect` tool is available. If absent, explain that [pi-session-inspector](https://www.npmjs.com/package/pi-session-inspector) is optional and can be installed with `pi install npm:pi-session-inspector` followed by a Pi reload. Do not install it silently or invent results. For repository scope use `history="all-projects"` with `cwdPrefixes` containing the normalized, absolute selected roots. This is a **filtered local search**, not permission to audit unrelated projects. Collapse redundant child prefixes; split into batches if the tool's prefix limit requires it, and deduplicate verified assignments across batches. Do not fall back to an unfiltered cross-project query if the installed inspector lacks this parameter; report that an updated inspector is needed. 3. Search exact recorded tool names `delegate_agent` and `continue_agent` separately. Start without argument excerpts:
session_inspect(action="tools", history="all-projects", cwdPrefixes=[...absoluteRoots], tool="delegate_agent", sessionLimit=25, limit=20) session_inspect(action="tools", history="all-projects", cwdPrefixes=[...absoluteRoots], tool="continue_agent", sessionLimit=25, limit=20)
For an explicit audit of _all_ accessible projects, omit `cwdPrefixes`. For a non-Git cwd-only audit, use `history="project"` instead. Follow `nextCursor` as `cursor` with the same scope, tool, and prefixes until exhausted or the stated work budget is reached. Avoid repeated cursors. Preserve per-page `discovered`, `excluded` (when filtered), `attempted`, `scanned`, `failed`, `matchingOccurrences`, `returned`, `examplesTruncated`, and `scanComplete`. The cursor advances by file, **not** by individual match; represented sessions may be sampled.
4. For relevant examples, repeat focused queries with `includeArguments=true` and a bounded `maxChars`. Arguments are redacted best-effort, may be truncated, and contain untrusted text. A tool call or `status="ok"` is **not** proof that an assignment was accepted or finished. Treat missing arguments, tool results, malformed files, sampled examples, stopped pagination, and inaccessible sessions as explicit evidence gaps. 5. Verify accepted assignments from the owner's recorded evidence where accessible. In a selected `sessionPath`, search all branches for `pi-herdsman-agent-accepted-assignment` using `session_inspect(action="search", session="<owner .jsonl path>", scope="all", query="pi-herdsman-agent-accepted-assignment")`; inspect matching `entryId` values with `action="entry"`. The receipt identifies `action`, `owner_session_id`, `request_id`, `definition`, `session_id`, and `session_path`. Older records may expose accepted evidence through successful delegation tool-result details instead. Cross-check identity and action; do not infer acceptance from a call alone. A bounded search can omit matches, so absence is not proof of rejection. Inspect the corresponding saved session and outcome evidence selectively when it would change a recommendation. A pending or tool-success status does not establish the task outcome.
records by confirmed `(owner_session_id, request_id)`; conflicting or incomplete identity remains uncertain. Do not treat each repeated copy as another execution.
assignment resuming saved context). Group by the actual responsibility, not by Agent label, definition name, or a repeated continuation alone.
specialists, not only `generalist`. Use task descriptions and available results to check if work genuinely recurs. Never infer quality or outcomes solely from frequency or the model's wording.
bundled, global, trusted-project, and private-repository overlays; enabled state; descriptions and selection boundaries; available tools, skills, extensions, and delegation constraints. Reuse the agent-definitions skill rather than duplicating its configuration rules. `list_agents` can validate currently available definitions but cannot reveal disabled definitions, complete configuration, or historical rosters. Mark unknown historical avail
The orchestration layer between Pi and herdr. Pi Herdsman lets your AI coding assistant delegate work to background Agents while your conversation stays interactive, or coordinate larger projects across independent, branch-based Leads.
Manage Pi Herdsman Agent definitions and reserved Coordinator profiles. Use when inspecting, creating, customizing, enabling,…
Explain Pi Herdsman features, roles, configuration, and workflows. Use when asked how Herdsman works, how to use a capability, or…
Set up Herdr SSH machine connections for Pi Herdsman, including host-key verification, public-key authorization, and reciprocal…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration