spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / plugins / hookify / examples / sensitive-files-warning.local.md
18 lines · 421 BPreviewCodeRaw
1---
2name: warn-sensitive-files
3enabled: true
4event: file
5action: warn
6conditions:
7 - field: file_path
8 operator: regex_match
9 pattern: \.env$|\.env\.|credentials|secrets
10---
11
12🔐 **Sensitive file detected**
13
14You're editing a file that may contain sensitive data:
15- Ensure credentials are not hardcoded
16- Use environment variables for secrets
17- Verify this file is in .gitignore
18- Consider using a secrets manager