BeLazy167/claude-mods-skill/tree/main/examples/hello-mod
BeLazy167@BeLazy167
關於這個 mod
一個能實際運作的最小模組。僅有一個 tool.call 鉤子:將工具名稱寫入工作階段紀錄,並拒絕包含 rm -rf 的 Bash 指令。
複製此資料夾即可開始製作新模組。在 .claude-plugin/plugin.json 中修改名稱。
在一次工作階段中試用:
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir examples/hello-mod
無需互動式工作階段即可驗證它能載入:
examples/hello-mod/smoke.sh examples/hello-mod hello-mod
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add BeLazy167/claude-mods-skill claude plugin install hello-mod
原文 / README
hello-mod
The smallest mod that does something. One tool.call hook: logs the tool
name to the transcript and refuses Bash commands containing rm -rf.
Copy this folder to start a new mod. Rename in .claude-plugin/plugin.json.
Try it for one session:
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir examples/hello-mod
Prove it loads without an interactive session:
examples/hello-mod/smoke.sh examples/hello-mod hello-mod
取得徽章
這是你的專案嗎?把這個徽章放進 README 或網站,連回本頁。
Markdown
HTML
