mirror of
https://github.com/duthaho/claudekit.git
synced 2026-07-18 13:39:40 +03:00
feat: secret-detection and sensitive-file-guard hooks (#3)
This commit is contained in:
@@ -53,6 +53,8 @@ Hooks run automatically in response to Claude Code events:
|
||||
|------|-------|-------------|
|
||||
| `auto-format` | After Write/Edit | Runs ruff (Python) or eslint (JS/TS) on changed files |
|
||||
| `block-dangerous-commands` | Before Bash | Blocks `rm -rf /`, force push to main, `DROP TABLE`, etc. |
|
||||
| `detect-secrets` | Before Write/Edit | Blocks writes containing secret-looking content (API keys, tokens, private key blocks) |
|
||||
| `guard-sensitive-files` | Before Write/Edit | Blocks edits to `.env` files, key material (`.pem`/`.key`/`id_rsa`), and credential dotfiles |
|
||||
| `notify` | Notification | Cross-platform desktop notifications |
|
||||
|
||||
Hooks are installed to `.claude/hooks/` with config in `settings.local.json` (gitignored).
|
||||
|
||||
@@ -42,7 +42,7 @@ The wizard interactively installs:
|
||||
|----------|------|----------|
|
||||
| **Rules** | API, frontend, migrations, security, testing | `.claude/rules/` |
|
||||
| **Modes** | brainstorm, deep-research, default, implementation, orchestration, review, token-efficient | `.claude/modes/` |
|
||||
| **Hooks** | auto-format, block-dangerous-commands, notifications | `.claude/hooks/` + `settings.local.json` |
|
||||
| **Hooks** | auto-format, block-dangerous-commands, detect-secrets, guard-sensitive-files, notifications | `.claude/hooks/` + `settings.local.json` |
|
||||
| **MCP Servers** | Context7, Sequential, Playwright, Memory, Filesystem | `.mcp.json` |
|
||||
|
||||
Or install everything at once:
|
||||
|
||||
Reference in New Issue
Block a user