Skip to main content

Hooks Safety

Plugin Verified Active

Essential safety hooks to prevent destructive operations in Claude Code. From cc-safe-setup (655+ hooks).

Purpose

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-buildwithclaude

Quality Score

Verified
99 /100
Analyzed about 18 hours ago

Trust Signals

Last commit5 days ago
Stars2.9k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.