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
