HookStackGitHub

Ship fast. Break nothing.

Install a production-ready Claude Code hook workflow in one command

Up and running in 60 seconds

project root
0 / 70 selected
$ npx hookstack-cli@latest install

Writes the hooks into .claude/hooks and patches settings.json — nothing else.

or fine-tune it hook by hook
01BrowseFilter 68 hooks by event type, category, or your stack.
02SelectYour install command updates live as you pick.
03InstallPaste the npx command in your project root. Done.
Tailor to your stack
Universal hooks always show — pick a stack to add the rest.

PreToolUse

11

Secret detection before Bash execution

Security

Destructive command blocking

Security

Sensitive file write protection

Security

Lock file write protection

Security

git push to main guardrail

Security

Domain allowlist for WebFetch

Workflow

Enforce package managers

Validation

Worktree guardrail (Edit/Write)

Workflow

Enforce uv for Python dependencies

Validation

Block file writes on main branch

Security

Block push on closed PR

Workflow

PostToolUse

8

Automatic formatting after write

Validation

ESLint lint after write

Validation

TypeScript type checking

Validation

Tool usage tracking

Notification

Bash command log

Workflow

Ruff format after write

Validation

Ruff lint after write

Validation

Pyright type checking

Validation

PostToolUseFailure

1

Structured tool failure log

Context

UserPromptSubmit

4

Project conventions injection

Context

Current date and time injection

Context

Per-session prompt log

Context

Automatic session naming

Context

PermissionRequest

2

Auto-approve read-only permissions

Security

Automatic ExitPlanMode approval

Workflow

Notification

3

Slack notification on agent event

Notification

TTS voice notification

Notification

System sound notification

Notification

Stop

11

Run tests at end of response

Validation

Session summary generation

Documentation

Automatic quality check (Stop)

Validation

Missing test detection (Stop)

Validation

Per-modified-file coverage (Stop)

Validation

Per-modified-file lint (Stop)

Validation

Auto-disable Stop hook after N failures

Workflow

Full i18n validation (Stop)

Validation

Voice task-completion announcement

Notification

System sound on task completion

Notification

Run pytest at end of response

Validation

SubagentStop

1

Subagent end voice summary

Notification

SubagentStart

1

Subagent start voice announcement

Notification

PreCompact

1

Transcript backup before compaction

Workflow

SessionStart

9

Load Git context at startup

Context

Worktree env initialization

Workflow

Worktree dependency update

Workflow

Dependency check and install at startup

Workflow

Re-inject context after compaction

Context

Install project dependencies on init

Workflow

Auto-create worktree when starting on main

Workflow

Auto-pull on main at session start

Context

Stale stash warning at session start

Context

SessionEnd

2

End-of-session audit log

Notification

Temporary file cleanup at session end

Workflow

CwdChanged

1

Reload direnv on directory change

Workflow

ConfigChange

1

Configuration change audit log

Workflow

FileChanged

3

Reload .env on file change

Workflow

Auto-run tests when source files change

Validation

Registry auto-sync

Workflow

InstructionsLoaded

1

Audit log for CLAUDE.md file loads

Workflow

MessageDisplay

1

Redact secrets from displayed output

Security

PermissionDenied

1

Log auto-mode permission denials

Workflow

PostCompact

1

Save compaction summary to log

Documentation

PostToolBatch

1

Typecheck after parallel file edits

Validation

StopFailure

2

Desktop notification on rate limit

Notification

Log API errors to file

Workflow

TaskCompleted

1

Test suite gate before task completion

Validation

TaskCreated

1

Enforce task naming conventions

Workflow

UserPromptExpansion

1

Inject context on skill invocation

Context

WorktreeRemove

1

Clean up artifacts on worktree removal

Workflow
Select hooks (+ button) to generate your settings.json configuration.