/pstack-herdr:howfrom pstack-herdr
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Can critique architecture. Use why for motivation.
Ships in pstack-herdr. 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.
Read when SKILL.md points to them.
Explore the codebase to answer "how does X work?" questions. Produce clear architectural explanations at the level of a senior engineer onboarding onto a subsystem. Enough to build a working mental model, not annotated source code.
Two modes:
Parse what the user is asking about:
Identify the scope. If ambiguous, state your best-guess interpretation before exploring. Don't ask. Let the user redirect if you're off.
Assess complexity to decide the approach:
When in doubt, lean simple. You can always spawn explorers if the explainer hits a wall.
Decompose the question into 2-4 parallel exploration angles, each a distinct slice of the subsystem so explorers don't duplicate work. Example split for "how does the rate limiter work?":
The right decomposition depends on the question. Use your judgment. Narrow questions: 2 explorers is fine. Broad subsystems: up to 4.
Spawn all explorers in a single message, using your own tool's read-only subagents. One model family is fine here; explorers gather facts, they don't judge.
Each explorer gets the same base prompt from references/explorer-prompt.md plus a specific exploration angle naming its slice. Each explorer should:
Each explorer returns structured findings: components found, flow traced, files read, anything non-obvious. Overlap between explorers is fine; the explainer reconciles.
Then proceed to Step 3.
Spawn a single read-only subagent of your own tool that explores and explains in one pass.
The agent does its own exploration (Glob, Grep, Read) and writes the explanation directly. Read references/explainer-prompt.md for the communication style and output format. Same structure, just no explorer findings as input.
Proceed to Step 4.
Once all explorers return, spawn a single read-only subagent of your own tool to synthesize their findings into one coherent explanation.
The explainer gets all explorers' findings and writes the human-facing explanation (output format below). Read references/explainer-prompt.md for the full prompt template. The explainer reconciles overlapping findings, resolves contradictions, and weaves the slices into a unified picture.
Present the explainer's output to the user. You may lightly edit for clarity or add context from the conversation, but don't substantially rewrite. The explainer's communication is the product.
Follow this structure, adapted to the question. Not every section is needed for every question.
Overview. 1-2 paragraphs. What it is, what it does, why it exists. Enough to decide whether to keep reading.
Key Concepts. The important types, services, or abstractions. Brief definition of each. Not exhaustive, just the ones needed to understand the rest.
How It Works. The core of the explanation. Walk through the flow: what triggers it, what happens step by step, where data goes, the decision points. Prose, not pseudocode. Reference specific files and functions so the reader can go look, but don't dump code blocks unless a snippet is genuinely necessary.
Where Things Live. A brief map of the relevant files/directories. Not every file, just the ones needed to start working in this area.
Gotchas. Non-obvious or surprising things that would trip someone up. Historical context that explains why something looks weird. Known sharp edges.
Triggered when the user asks for architectural issues, problems, or improvements, not just understanding.
Run the full explain flow above (Steps 1-4). You must understand the architecture before critiquing it.
After the explanation is complete, start one architectural critic per model family, using the runners in the arena skill's model table. Model diversity is the point here, so critics run as separate agents in Herdr, not as subagents of your own tool. Follow arena's Phase B mechanics: launch each critic in its own new tab via hc-spawn (or hc run --bg --label herdr.space=<current-space>, never herdr.tab), with model and effort only (inherit the user's default permissions; include --no-daemon for codex), confirm each agent is actually working via hc get, and have each critic write its findings to its own file (e.g. /tmp/how-<slug>/critic-<runner>.md). Done = file exists and the agent is no longer working. Read the files, not the screens. Raise reasoning effort when the architecture warrants deeper analysis.
Without Herdr (HC_TERMINAL_ID unset), say critique mode needs it and stop after the explanation rather than substituting same-family critics.
Read references/critic-prompt.md for the prompt template. Each critic gets:
references/critique-rubric.mdSame framework as the interrogate skill. You're a pragmatic lead, not an aggregator.
Categorize findings:
Present the explanation first (from Step 1), then the critique verdict below it. The explanation should stand on its own; someone who just wants to understand the system shouldn't wade through critique.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dengnaichen/pstack-herdr --plugin pstack-herdr31 skills in this plugin
/architectSketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape./arena让不同家族的模型(Claude / OpenAI / Google)在 Herdr 里各自独立出一份方案,由当前会话主持:交叉评审、挑底稿、嫁接其他方案的长处,交给用户拍板。只用于方案类问题:架构、设计、技术选型。用于 /arena、'arena this'、'丢进 arena',以及其他 skill(如 architect)要求运行 arena 时。不写代码。要求 HC_TERMINAL_ID 已设置。/figure-it-outDesign an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.Other plugins' skills for the same job