Stats
Actions
Tags
From cc-investigation
Blocks editing/writing tools like Write and Edit unless a precondition script passes. Also displays a nudge message at session start. Uses bun, writes files.
2 events · 2 hooks
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
Write|Editcase $(pwd) in */cases/*) echo "[cc-investigation] 案件文件操作 — 检查: 1) 文件名带序号前缀(01_) 2) 多版本文件带日期后缀(_YYYYMMDD) 3) 文件头尾有关联索引" ;; esac3ms*CONFIG_FILE=~/.claude/plugins/config/cc-investigation/team-profile.md; ACTIVE_CASES=$(ls -d cases/*/ 2>/dev/null | wc -l); if [ -f "$CONFIG_FILE" ] && ! grep -q '\[PLACEHOLDER\]' "$CONFIG_FILE"; then echo "[cc-investigation] 调查工具包已加载。"; [ "$ACTIVE_CASES" -gt 0 ] && echo "[cc-investigation] 当前目录有 $ACTIVE_CASES 个案件,运行 /investigate list 查看" || echo "[cc-investigation] 运行 /investigate new 启动新案件"; else echo "[cc-investigation] 首次使用? 运行 /cc-investigation:cold-start-interview 完成设置"; fi5msnpx claudepluginhub sxd007/cc-investigation --plugin cc-investigation