mary-ext/claude-skills/tree/trunk/plugins/bash-guard
GitHub 儲存庫 · 發布者 mary-ext
bash-guard
一個 Claude Code 外掛,掛接 Bash 工具呼叫來阻擋破壞性指令,例如截斷輸出、讓程序脫離終端機,或依名稱大量終止程序。
mary-ext@mary-ext
關於這個 mod
bash-guard 是個人用的 Claude Code 外掛(來自 mary-skills 集合),會在 Bash 工具呼叫上註冊 hook。它透過自己的 hook 模組(register.ts 和 guard.ts)攔截 Bash 指令,阻擋它判定為具破壞性的指令,包括截斷輸出、讓程序脫離終端機,或依程序名稱大量終止程序的指令。儲存庫包含已驗證的 .claude-plugin/plugin.json manifest。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add mary-ext/claude-skills claude plugin install bash-guard
原文 / README
mary-skills
personal Claude Code skills.
