Skip to content
S

safety-hooks

Provides safety guards to block or require confirmation

by pchalasaniFree

2K
#6531in AI Skills
0In stores

Description

safety-hooks is a plugin for Claude Code that adds guards to risky command-line operations. Its hooks use three decisions: block, which stop…

Highlights

  • Block, ask or allow decisions for commands
  • Blocks rm and suggests a TRASH folder
  • Guards destructive git actions
  • Guards .env file access
  • Guards large file operations

Ratings & Reviews

No ratings yet

Be the first to rate safety-hooks.

People also visit

G

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands

AI Skills
Get
G

git-guardrails-claude-code

设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D

AI Skills
Get
G

garrytan/careful

Safety Guardrails: warns before destructive commands

AI Skills
Get
C

Claude Code Safety Net

by kenryu42 - A coding agent CLI hook

AI Skills
Get
G

garrytan/guard

Full Safety: /careful + /freeze in one command for maximum safety

AI Skills
Get
S

safety-guard

Guard against destructive operations

AI Skills
Get

safety-hooks FAQ

What does safety-hooks do?

It adds hooks to Claude Code that block, or ask you to approve, risky command-line operations.

What happens when I run rm?

The rm guard blocks the deletion and suggests moving the files to a TRASH folder, with the move logged in TRASH-FILES.md.

What else is guarded?

Destructive git actions, access to .env files and large file operations, according to the listing.

Which decision wins if several checks disagree?

Block takes priority over ask, and ask over allow.

Where is it from?

The claude-code-tools collection by pchalasani on GitHub.

What are the best safety-hooks alternatives?

Popular alternatives to safety-hooks include git-guardrails-claude-code, git-guardrails-claude-code and garrytan/careful. See all safety-hooks alternatives

Developer Stuff

Badges