Stats
Actions
Tags
From rockets-sdk-config
Runs shell scripts before Write/Edit/Bash to remind of skills, and after Skill events to mark completion. Executes bash commands and writes files.
2 events · 10 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
tool == "Write" && tool_input.file_path matches "\.(md|txt)$" && !(tool_input.file_path matches "(CLAUDE|AGENTS|SKILL|README|CHANGELOG)")echo '[Hook] Avoid creating documentation files unless explicitly requested. Prefer editing existing files.' >&2 && exit 1tool == "Bash" && tool_input.command matches "git (push.*(--force|-f)|reset --hard|checkout \.|clean -f|branch -D)"echo '[Hook] Destructive git commands require explicit user permission.' >&2 && exit 1tool == "Edit" && tool_input.file_path matches "\.module\.ts$" && tool_input.new_string matches "ACCESS_CONTROL_MODULE_SETTINGS_TOKEN|provide:\s*AccessControlService"echo '[Quality Gate] Do NOT add ACL workaround providers to feature modules. Register access query services via queryServices in AccessControlModule config.' >&2 && exit 2tool == "Edit" && tool_input.file_path matches "\.(service|controller)\.ts$" && !(tool_input.file_path matches "typeorm-crud\.adapter\.ts$") && tool_input.new_string matches "@InjectRepository"echo '[Quality Gate] @InjectRepository is only allowed in *-typeorm-crud.adapter.ts. Use @InjectDynamicRepository in model/access-query services instead.' >&2 && exit 2tool == "Edit" && tool_input.file_path matches "\.(ts|tsx)$"echo '[Reminder] Run yarn build to verify TypeScript compilation after edits.' >&2tool == "Edit" && tool_input.file_path matches "app\.acl\.ts$"echo '[Security] ACL rules modified. Verify all roles have correct permissions for all resources.' >&2tool == "Edit" && tool_input.file_path matches "access-query\.service\.ts$"echo '[Security] Access Query Service modified. Verify ownership checks and default-deny logic.' >&2tool == "Edit" && tool_input.file_path matches "-status\.service\.ts$"echo '[Business Logic] Status service modified. Verify transition map is complete — all states have defined allowed transitions.' >&2tool == "Edit" && tool_input.file_path matches "-workflow\.service\.ts$"echo '[Business Logic] Workflow service modified. Verify service injects model services, not repositories.' >&2tool == "Bash" && tool_input.command matches "integrate\.js"echo '[Post-Integration] Run validate.js to verify structural integrity after integration.' >&2npx claudepluginhub btwld/skills --plugin rockets-sdk-config