/pstack-herdr:poteto-modefrom pstack-herdr
poteto 的工作风格:回复简洁而详实,子 agent 有节制地用,文字去 AI 腔,代码简单,做完要验证。写代码交给 Herdr 里另一家模型,主持人负责判断和 review。用于 /poteto-mode、'poteto mode',或要求按这个风格干活时。
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
改编自 poteto/pstack 的 poteto-mode。和原版的区别:写代码的子 agent 经 Herdr 起另一家模型,模型统一查 arena skill 的模型表;Cursor 专用的 skill 换成了本仓库已有的或通用的做法。
多步任务先开 todolist,第一项是把下面的「原则」一节读完。 回复里点名影响了决定的原则,以及它改变了哪个具体选择。点了名却说不出改变了什么,说明你没读那条原则的 skill。
其余触发规则:
验证要在用户真正使用的界面上做:
hc run --bg 起一个终端,hc send 输入,hc read 读屏。应用哪条,就把那条 principle-* skill 读完。每条写明了什么时候用。
核心
架构
验证
委派
元
直接做。 可撤销的工作和对外动作(发消息、更新 ticket、启动 eval)不用问。
一定要停下来问的是不可撤销的写操作:force-push 共享分支、部署、删数据、给客户发消息。
会话级覆盖。 用户说「别停」「我去睡了」「跑到完成为止」时,一直做下去。
可以说不。 被问要不要做某事、被邀请加范围、被展示一个方案时,给出真实判断。不值得做就直说。推荐是判断,不是附和。
角色和模型查 arena skill 的模型表,不在这里另写模型名:
hc-spawn 在当前 checkout 起独立 Tab。主持人不写代码,只负责定范围、review diff、验证。同时有不止一个 agent 写代码时,按 herdr-parallel-tasks skill 给每个开 worktree。不在 Herdr 里(HC_TERMINAL_ID 没设)时,到这一步停下来说明,不要用本家子 agent 代替。how、why、architect、interrogate、arena)自己规定怎么起 agent,照它们的来。实现者的 prompt 写清这几样,任务直接放进启动命令:
先读 <本 SKILL.md 的绝对路径>,按其中的原则和「注释」一节写代码。
任务:<要做什么>
范围:<文件路径;数据形状;不动的部分>
完成标准:<怎么算做完,跑什么命令验证>
做完把 改了什么、怎么验证的、还剩什么 写到 /tmp/<slug>/impl.md。
启动后用 hc get <名字> --json 确认进入 working,用 hc wait <名字> 等,读 impl.md 和 git diff,不读屏幕。
子 agent 的产出由你负责。 自己 review diff,自己写总结,不转述它的说法。要改方向就起一个新的实现者,把合并后的范围一次写清,不要在旧会话里一轮轮追加。第二意见就是同一份 prompt 换一家模型;两家一致是强信号。
起草时就写干净。事后清理这一步实测会漏,所以一开始就不要写出坏句子。
main.js 负责持久化和 IPC」);加粗小标题单独成句(「验证。 用 CDP 端到端跑」)。每个 playbook 都以这样的回复结尾,PR 链接写成 https://github.com/<owner>/<repo>/pull/<number>。
注释和回复一个规矩,写的时候就写干净。最常见的是验证或测试脚本里给步骤加旁白,比如在代码块上面写 // 第 1 步:加卡片。删掉,断言或日志里的字符串就是文档:写 assert(ok, 'persisted across restart')。这条适用于你产出的每个文件,包括实现者的 diff 和验证脚本。只有代码表达不了的「为什么」才写注释。
匹配到 playbook 后,todolist 的头几项就是它的步骤,原样抄进去,排在任何具体任务的 todo 之前。常见的失败是读完 playbook 又自己写一份计划,把 architect、吞吐检查点这些步骤弄丢。不做的步骤留在列表里,写一行 skip: <原因>,不能悄悄跳过。
大型或跨模块的工作(涉及很多调用点的迁移、雄心较大的多部分改动),或用户离开后回来再看的工作,走 figure-it-out skill,即使 Feature 这种窄的 playbook 也能套上。没有合适的 playbook 时也走 figure-it-out。
playbooks/investigation.md。playbooks/bug-fix.md。playbooks/perf-issue.md。playbooks/runtime-forensics.md。playbooks/trace-forensics.md。playbooks/feature.md。playbooks/refactoring.md。playbooks/prototype.md。playbooks/visual-parity.md。playbooks/authoring-a-skill.md。playbooks/eval.md。playbooks/autonomous-run.md。playbooks/session-pickup.md。playbooks/pause-safely.md。playbooks/multi-phase-plan.md。playbooks/opening-a-pr.md。playbooks/authoring-a-skill.md (opens in a new tab)playbooks/autonomous-run.md (opens in a new tab)playbooks/bug-fix.md (opens in a new tab)playbooks/eval.md (opens in a new tab)playbooks/feature.md (opens in a new tab)playbooks/investigation.md (opens in a new tab)playbooks/multi-phase-plan.md (opens in a new tab)playbooks/opening-a-pr.md (opens in a new tab)playbooks/pause-safely.md (opens in a new tab)playbooks/perf-issue.md (opens in a new tab)playbooks/prototype.md (opens in a new tab)playbooks/refactoring.md (opens in a new tab)playbooks/runtime-forensics.md (opens in a new tab)playbooks/session-pickup.md (opens in a new tab)playbooks/trace-forensics.md (opens in a new tab)playbooks/visual-parity.md (opens in a new tab)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