Stats
Actions
Tags
From trainhub
Blocks edits to source code files and runs a shell script to enforce project-specific boundaries. Writes files to disk.
1 event · 1 hook
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
Edit|Writefor f in $CLAUDE_FILE_PATHS; do case "$f" in */weights/*|*/runs/*|*/results/*|*/datasets/*|*/checkpoints/*) echo "BLOCK: trainhub 保护 — 禁止直接修改 weights/ runs/ results/ datasets/ checkpoints/ 下的文件。这些是训练产物,应由训练脚本写入。" >&2; exit 2;; esac; done; exit 0npx claudepluginhub shallow-dusty/claude-plugins --plugin trainhub