Skip to content
Agent Orchestration
Skill

/agent-specialization-audit

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.

From plugin
pi-herdsman
2414 skills7 agents

Claude Code

$ npx -y skills add boadij/pi-herdsman --skill agent-specialization-audit --agent claude-code

SKILL.md

agent-specialization-audit.SKILL.md
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.

Agent specialization audit

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.

Collect evidence

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.

Interpret assignments

  • Count **verified assignments**, not raw tool calls. Deduplicate copied/forked

records by confirmed `(owner_session_id, request_id)`; conflicting or incomplete identity remains uncertain. Do not treat each repeated copy as another execution.

  • Keep `delegate` (fresh assignment) distinct from `continue` (new

assignment resuming saved context). Group by the actual responsibility, not by Agent label, definition name, or a repeated continuation alone.

  • Consider task classes across **all** eligible Agent definitions, including

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.

  • Compare each plausible gap with the **effective current** Agent definitions:

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

Read more
@boadij
Ships withpi-herdsman

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.

2414 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
241
Star history of boadij/pi-herdsman on GitHub, a chart by star-history.com

Other skills on pi-herdsman.

agent-definitions

agent-definitions

Manage Pi Herdsman Agent definitions and reserved Coordinator profiles. Use when inspecting, creating, customizing, enabling,…

@boadij@boadijInstall Skill
herdsman-guide

herdsman-guide

Explain Pi Herdsman features, roles, configuration, and workflows. Use when asked how Herdsman works, how to use a capability, or…

@boadij@boadijInstall Skill
machine-pairing

machine-pairing

Set up Herdr SSH machine connections for Pi Herdsman, including host-key verification, public-key authorization, and reciprocal…

@boadij@boadijInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw10d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca8d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip9d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about agent-specialization-audit.

Which coding agents can use agent-specialization-audit?
agent-specialization-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.