Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By KerryHuangv0.44.6MITIn 1 marketplace
通用 hooks 與分層 guard——桌面通知、session 自動命名、AskUserQuestion 品質檢查、糾正回饋收集、context 大小提醒、git 紅線攔截
Claude hands work to one, or you mention it with @.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
通用 hooks 與分層 guard。安裝後自動註冊,不需改 settings.json。另附 9 個 skills 與 5 支 reviewer agents(見下)。
claude plugin marketplace add https://github.com/KerryHuang/plugharbor.git
claude plugin install toolkit@plugharbor
需要 python3(或 python)與 bash;找不到 python 時 hook 一律靜默 exit 0,不影響主流程。
| 事件 | Hook | 作用 |
|---|---|---|
PreToolUse Agent | agent-model-guard.py | 檢查派 subagent 時的 model 參數 |
PreToolUse Bash|Write|Edit|MultiEdit | guard.py | 依 guard 規則檔攔截(deny/ask) |
PreToolUse AskUserQuestion | ask-question-guard.py | 題目太短、選項沒說明、沒標(推薦)就退回 |
| PostToolUseFailure、UserPromptSubmit | loop-guard.py | 同一輪同一失敗第 3 次注入「停下重估」提示,之後再犯只提醒使用者;subagent 各自計數,換一則 user 訊息歸零 |
| Notification、Stop | notification.sh | 等你回應/完工時的桌面通知與音效(macOS、Linux、Windows Git Bash) |
| Stop | context-size-reminder.py | context 越過級距時提醒 |
PermissionRequest Bash | rm-scratch-allow.py | rm 的目標全在暫存區(session scratchpad、.tmp/、.superpowers/)、只串唯讀指令時自動核准,免得確認框讓無人值守卡住;其他照常跳確認 |
| Stop | reply-language-guard.py | 使用者用中日韓文提問、這回合卻有整段英文回覆時擋下一次,要求用使用者的語言重述 |
PreToolUse Bash|PowerShell | reply-language-guard.py | 同一套判斷套在工具呼叫的 description(使用者看得到的進度說明),英文就退回改寫 |
| Stop | text-question-guard.py | 回合以文字問句結尾、這回合又沒呼叫 AskUserQuestion 時擋下一次,要求改用 AskUserQuestion |
| Stop | dispatch-stop-guard.py | 被派出的 worker(有 AGENT_DISPATCH_RESULT)沒寫結果檔就結束時擋下一次;herdr/Herdr.app 的 worker 另設 AGENT_DISPATCH_INTERACTIVE=1,還沒做完可直接再結束一次 |
| UserPromptSubmit | auto-session-title.py | 套用上一回合建議的 session 標題,不覆寫手動命名;訊息提到標題時注入目前標題與各來源 |
| Stop | herdr-tab-title.py | Herdr.app 內把 session 標題同步成分頁名稱,不覆寫手動命名 |
| UserPromptSubmit | feedback-capture.py | 收集使用者糾正,寫入 ~/.claude/feedback-loop/queue.jsonl |
| SessionStart | herdr-env-context.py | 在 herdr 或 Herdr.app 內時注入一行狀態,agent 不必再檢查能否開 worker;Herdr.app 內另記錄 session id 供 mux.py session 取用 |
| SessionStart | memory-context.py | Codex/agy 開場唯讀注入(agy 用 injectSteps 格式) Claude Code 的 auto-memory 索引(~/.claude/projects/<專案>/memory/MEMORY.md 前 200 行,從 cwd 往上找);Claude 下不輸出。pi 由 pi/memory.ts 以同規則寫進 system prompt 區段 |
| SessionStart、UserPromptSubmit | disabled-skills.py | 被明確停用的 plugharbor plugin/skill(如 /doctor 關掉的):開場一行列名稱;使用者訊息命中其觸發詞(triggers 欄位或 description 的「」片語)時提示,先問再用;回「不要」只在該專案忽略 |
SessionStart compact | compact-context.py | context 壓縮後提醒沿用使用者指示的語言與格式 |
SessionStart startup | feedback-reminder.py | 佇列積壓或久未回顧時提醒 |
SessionStart startup | retro-due-reminder.py | retrospective 待驗指標到期時提議回顧(讀 .plugharbor/toolkit.yml,驗過且無新證據不重提) |
PostToolUse、SessionEnd、SessionStart startup | scratch-ledger.py | agent 暫存生命週期:開 .tmp/.superpowers 子資料夾時記帳並提示補用途與期限,結束時記大小,開場提議刪除過期的(每專案每天一次、前 4 大),每週或磁碟不到 20 GB 時提議全區掃描(sweep);本身不刪檔 |
所有狀態寫在 ~/.claude/(feedback-loop/、context-reminder/、loop-guard/、scratch-ledger/、notification-sound.wav),不寫進 plugin 目錄。
每個 guards/*.md 是一條規則,frontmatter 欄位 tool、pattern(regex)、action(deny/ask)、evidence(為什麼有這條,缺了不載入),內文是被攔時給 agent 看的修法。
讀取順序:plugin/guards → ~/.claude/guards → <專案>/.claude/guards,同名檔由後讀的覆寫;
專案想放寬內建規則,放一個同名檔即可。命中多條時 deny 優先。內建規則:
git-add-all(deny):擋 git add -A / . / --allgit-destructive(ask):force push、reset --hard、clean -fherdr-tab-create(ask):herdr tab create;手動開新 tab 只留給不回報的獨立 session(第 7 個 worker 起由 mux.py spawn 自己開新 tab,不經此 guard)herdr-pane-run-agent(deny):herdr pane run <pane> claude|codex|agy|pi,改用 mux.py spawn 帶模型參數hc-run-agent(deny):hc run … claude|codex|agy|pi,改用 mux.py spawn(漏帶 model/effort、版面與父子紀錄)檢討 agent 工作流程與 plugin 本身(與 feedback-review 並列,共用 references/improvement-loop.md 的「先驗上一輪、人審、記帳」原則)。
帳本 metrics.yml 與報告放專案內的版控目錄,路徑設在 .plugharbor/toolkit.yml:
retrospective:
path: docs/retrospective
units_glob: "docs/*/*" # 選填:工作單位目錄樣式
附 chain_cost.py:統計某個工作單位花了幾個 session、幾輪、多少 token。只支援 Claude Code,只讀本機 ~/.claude/projects。
多 session 塔台:動工前 takeoff 登記目標與範圍,看到與他班重疊就提醒使用者,落地前 land-check 核對,收工 release。登記表在 git common dir 的 tower/,同一 repo 的所有 worktree 共用(skills/tower/scripts/tower.py)。
Claude Code 另有三支 hook 自動配合:tower-context.py(SessionStart 摘要在飛航班)、tower-track.py(心跳與改動追蹤,撞檔提醒)、tower-landing.py(commit/merge/rebase 到預設分支、push 預設分支前跑 land-check,超出範圍、撞檔、落後時擋下或詢問)。專案可用 .plugharbor/tower.yml 的區塊式 shared: 清單登記共用檔(改了不算撞檔)。其他 CLI 沒有自動追蹤與硬擋,要手動跑 land-check。
implement-gate.py(Claude Code PreToolUse,matcher Skill):repo 有 .plugharbor/lifecycle.yml 時,session 第一次叫 superpowers:writing-plans/executing-plans/subagent-driven-development 會被擋一次,提示先叫 lifecycle:implement;重叫同一個 skill 即放行。沒裝 lifecycle 的 repo 沒有該檔,不作用。
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kerryhuang/plugharbor --plugin toolkit