SubClaude Hooks

Manage automated triggers and actions

Prevent Destructive Operations

Active

Blocks git reset --hard, git clean -fd, and database drops without explicit confirmation

Triggers

git reset --hardgit clean -fdDROP TABLETRUNCATE

Actions

Block commandRequire confirmationLog attempt

Require Code Review

Active

Prompts for code review when files are modified in critical paths (auth, payment, database)

Triggers

Modify auth filesModify payment filesModify database schema

Actions

Suggest code reviewList changed filesCreate PR draft

Environment Variable Check

Active

Validates that required environment variables are set before running deployment or build commands

Triggers

npm run builddocker-compose updeploy

Actions

Check .env fileValidate required varsShow missing vars

Dependency Audit

Inactive

Runs security audit on dependencies before installing new packages or updating existing ones

Triggers

npm installyarn addpnpm add

Actions

Run npm auditCheck vulnerability databaseSuggest alternatives