Claude Code Hooks
Plugin Verified ActiveProduction safety hooks for autonomous Claude Code operation. Context monitoring, syntax checking, branch protection, activity logging, and more.
To enhance the safety and reliability of autonomous Claude Code operations by intercepting common failure modes and providing essential monitoring and protection mechanisms.
Features
- Context window monitoring with graduated warnings
- Automatic syntax validation after edits
- Branch protection against pushes to main/master
- JSONL audit trail of file changes
- Prevention of destructive commands (rm -rf, git reset)
- Blocking of external actions when errors exist
- Auto-approval for read-only operations
Use Cases
- Running Claude Code autonomously without constant supervision
- Preventing accidental data loss or code corruption during development
- Auditing and understanding Claude Code's actions during a session
- Ensuring code quality through automatic syntax checks
Non-Goals
- Replacing core Claude Code functionality
- Implementing complex code generation or analysis tasks
- Providing a user interface beyond terminal output and configuration
Installation
First, add the marketplace
/plugin marketplace add yurukusa/claude-code-hooks/plugin install claude-code-hooks@claude-code-hooks-marketplaceContains 2 extensions
Skill (2)
Quality Score
VerifiedSimilar Extensions
Cc Safe Setup
99734 safety hooks for Claude Code — prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions
Hooks Safety
99Essential safety hooks to prevent destructive operations in Claude Code. From cc-safe-setup (655+ hooks).
Claude Hud
100Real-time statusline HUD for Claude Code - displays context usage, tool activity, agent tracking, and todo progress
Tdd
99TDD workflow enforcement with auto-test hook
Claude Recap
99Topic-based automatic memory for Claude Code — never lose context across sessions or compactions.
Hooks Automation
99Automation Hooks - Event-driven automation hooks