Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Hooks Safety

Plugin Verifiziert Aktiv

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

Zweck

To protect users and their projects from accidental or malicious destructive operations by implementing preventative safety checks within Claude Code.

Funktionen

  • 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

Anwendungsfälle

  • 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.

Nicht-Ziele

  • 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.

Praktiken

  • Security hardening
  • Pre-execution validation
  • Defensive programming

Voraussetzungen

  • Bash shell
  • jq installed
  • Claude Code environment

Installation

/plugin install hooks-safety@davepoon-buildwithclaude

Qualitätspunktzahl

Verifiziert
99 /100
Analysiert 1 day ago

Vertrauenssignale

Letzter Commit5 days ago
Sterne2.9k
LizenzMIT
Status
Quellcode ansehen