/claude-code-hooks:setupfrom claude-code-hooks
Guides users through setting up Claude Code hooks for production safety. Offers profiles for minimal, standard, and autonomous operation, and helps configure environment variables.
Ships in claude-code-hooks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping the user set up production safety hooks for Claude Code.
| Hook | Purpose | Event | Matcher |
|---|---|---|---|
| context-monitor.sh | Context window warnings (40% → 25% → 20% → 15%) | PostToolUse | all |
| activity-logger.sh | JSONL audit trail of file changes | PostToolUse | Edit|Write |
| syntax-check.sh | Auto syntax validation after edits | PostToolUse | Edit|Write |
| decision-warn.sh | Alerts on edits to sensitive paths | PreToolUse | Edit|Write |
| cdp-safety-check.sh | Blocks raw WebSocket CDP construction | PreToolUse | Bash |
| proof-log-session.sh | 5W1H session summaries | Stop, PreCompact | all |
| session-start-marker.sh | Records session start time | PostToolUse | all |
| no-ask-human.sh | Blocks questions during autonomous operation | PostToolUse | all |
| branch-guard.sh | Blocks pushes to main/master | PreToolUse | Bash |
| error-gate.sh | Blocks external actions when errors exist | PreToolUse | Bash |
CC_CONTEXT_MISSION_FILE — path to mission.md (default: $HOME/mission.md)CC_ACTIVITY_LOG — path to activity log (default: $HOME/claude-activity-log.jsonl)CC_MONITORED_DIRS — colon-separated paths for decision-warn (default: $HOME/bin:$HOME/.claude/hooks)CC_PROTECT_BRANCHES — colon-separated branch names (default: main:master)CC_ERROR_LOG — path to error tracker (default: $HOME/.claude/error-tracker.log)CC_PROOF_LOG_DIR — path to proof logs (default: $HOME/proof-log)What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub yurukusa/claude-code-hooks --plugin claude-code-hooks2 plugins ship this exact skill · first indexed Jul 16, 2026
Other plugins' skills for the same job