此内容尚未提供您的语言版本,正在以英文显示。
Hooks Safety
插件 已验证 活跃Essential 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.
功能
- 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 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.
非目标
- 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.
实践
- Security hardening
- Pre-execution validation
- Defensive programming
先决条件
- Bash shell
- jq installed
- Claude Code environment
安装
/plugin install hooks-safety@davepoon-buildwithclaude质量评分
已验证99 /100
1 day ago 分析
类似扩展
Claude Recap
99为 Claude Code 提供基于主题的自动记忆——跨会话或压缩时绝不会丢失上下文。
插件
hatawong
Cc Safe Setup
99734 个用于 Claude Code 的安全钩子 — 在自主 AI 编码会话期间防止文件删除、凭证泄露、git 灾难和令牌浪费
插件
yurukusa
Claude Code Hooks
99为 Claude Code 的自动化运行提供生产环境安全钩子。包括上下文监控、语法检查、分支保护、活动日志记录等。
插件
yurukusa
Dotforge
100Node.js 20+ with Express/Fastify, TypeScript, and ESM module rules for Claude Code.
插件
luiseiman
Shell Scripting Plugins
99Production-grade Bash scripting with defensive programming, POSIX compliance, and comprehensive testing
插件
wshobson
Tdd
99TDD workflow enforcement with auto-test hook
插件
luiseiman