Hooks Safety
Plugin Verified ActiveEssential safety hooks to prevent destructive operations in Claude Code. From cc-safe-setup (655+ hooks).
To protect users and their projects from accidental or malicious destructive operations by implementing preventative safety checks within Claude Code.
Features
- Blocks credential hunting and exfiltration
- Prevents dangerous `rm` commands on critical paths
- Guards against dangerous `--force` flags in Git, npm, and Docker
- Warns about writing large files to prevent repo bloat
- Blocks writes to system directories
Use Cases
- Use when operating in sensitive codebases or environments where accidental data loss is a concern.
- Use to enhance security posture by preventing common, dangerous command-line operations.
- Use to safeguard against prompt injection attempts that aim to exfiltrate credentials.
- Use when working in a team environment to enforce safer development practices.
Non-Goals
- Providing a comprehensive security suite for development environments.
- Replacing user awareness and responsibility for command execution.
- Performing automated cleanup of safe directories beyond specific `rm` patterns.
Practices
- Security hardening
- Pre-execution validation
- Defensive programming
Prerequisites
- Bash shell
- jq installed
- Claude Code environment
Installation
/plugin install hooks-safety@davepoon-buildwithclaudeQuality Score
VerifiedSimilar Extensions
Claude Recap
99Topic-based automatic memory for Claude Code — never lose context across sessions or compactions.
Cc Safe Setup
99734 safety hooks for Claude Code — prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions
Claude Code Hooks
99Production safety hooks for autonomous Claude Code operation. Context monitoring, syntax checking, branch protection, activity logging, and more.
Dotforge
100Node.js 20+ with Express/Fastify, TypeScript, and ESM module rules for Claude Code.
Shell Scripting Plugins
99Production-grade Bash scripting with defensive programming, POSIX compliance, and comprehensive testing
Tdd
99TDD workflow enforcement with auto-test hook