# Herdr Manager Query

Query the authoritative global Herdr Review and Work Manager inventory, recommend...

- Repository: https://github.com/mastra-ai/mastra (29259 stars)
- Category: Git and review
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add mastra-ai/mastra --skill herdr-manager-query -g -a claude-code -y`
Codex: `npx skills add mastra-ai/mastra --skill herdr-manager-query -g -a codex -y`
Cursor: `npx skills add mastra-ai/mastra --skill herdr-manager-query -g -a cursor -y`
Gemini CLI: `npx skills add mastra-ai/mastra --skill herdr-manager-query -g -a gemini-cli -y`

## Description

Query the authoritative global Herdr Review and Work Manager inventory, recommend actionable PR work, and explicitly materialize confirmed remote-only Review Manager records through the plugin's stable public CLI.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Herdr Manager Query

Use the enabled `herdr-kit` plugin as the authoritative repository-independent source for Review Manager and Work Manager data.

Activate this skill for requested reviews, authored PRs, managed checkouts, Herdr workspaces, manager review/CI/activity/freshness/cleanup state, work recommendations, or explicit Review Manager materialization.

## Safety and source of truth

- Querying and recommending are read-only.
- The manager inventory is authoritative. Never substitute direct GitHub/`gh`, current-directory Git, TUI scraping, raw manager state files, or another inventory.
- If discovery, capability negotiation, query execution, JSON parsing, schema validation, or a relevant source reports an error, stop and report the exact problem. Never fall back.
- Never synchronize, dematerialize, clean up, create a Git worktree directly, or materialize a Work Manager record.
- The only permitted mutation is explicit, user-confirmed materialization of authoritative remote-only Review Manager records through the plugin's public CLI.
- Treat protocol and schema versions as compatibility boundaries. Do not guess around unsupported versions.

## Discover the installed interface

Resolve the enabled plugin root through Herdr, not from the current repository:

```sh
plugin_file=$(mktemp)
if ! herdr plugin list --plugin herdr-kit --json > "$plugin_file"; then
    exit 1
fi
if ! plugin_root=$(python3 - "$plugin_file" <<'PY'
import json, sys
plugins = json.load(open(sys.argv[1]))["result"]["plugins"]
plugin = next((p for p in plugins if p.get("plugin_id") == "herdr-kit"), None)
if not plugin or not plugin.get("enabled") or not plugin.get("plugin_root"):
    raise SystemExit("Enabled herdr-kit plugin root is unavailable")
print(plugin["plugin_root"])
PY
); then
    exit 1
fi
manager_cli="$plugin_root/herdr-kit"
```

Negotiate capabilities before any query or mutation:

The rest: https://github.com/mastra-ai/mastra/blob/HEAD/.mastracode/skills/herdr-manager-query/SKILL.md
