/pstack-herdr:principle-boundary-disciplinefrom pstack-herdr
Apply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions.
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.
None: SKILL.md is the whole skill.
Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions; the shell is thin and mechanical.
Why: Scattered validation is noisy, redundant, and gives a false sense of safety. Validate data once at the boundary. Keep logic out of framework wiring so it can be tested without the framework.
The pattern:
Applications:
Validation and error handling:
Code organization:
The tests:
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./herdr-parallel-tasks在 Herdr 里把几件独立的事分派给 agent 并行完成:一件事一个 agent 从头做到尾;同时有不止一个 agent 写代码时,每个各开一个 worktree。用于用户要求「这几件事并行做」「派几个 agent 分别去做」。要求 HC_TERMINAL_ID 已设置;否则停下来说明。/howUse 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./interrogate在 Herdr 里让三家模型评审一份代码改动:Codex 找问题,Gemini 筛掉 Codex 过度防御的部分,Claude 看架构;当前会话汇总给用户。用于 /interrogate、'interrogate'、'对抗评审'、'多模型评审'、'挑挑毛病'。不自动改代码。要求 HC_TERMINAL_ID 已设置。Other plugins' skills for the same job