Add .claude/hooks for command auditing, dangerous command blocking, file protection, and auto-formatting; update documentation and configuration to integrate new hooks.

This commit is contained in:
olekhondera
2026-02-14 21:22:27 +02:00
parent 5b28ea675d
commit 6d2eef5317
8 changed files with 227 additions and 0 deletions

View File

@@ -162,6 +162,14 @@ your-project/
│ └── api/ # Backend API (Node.js)
├── packages/ # Shared packages (if monorepo)
│ └── shared/ # Types, utils, API client
├── .claude/ # Claude Code configuration
│ ├── settings.json # Hooks configuration
│ ├── hooks/ # Hook scripts
│ │ ├── protect-files.sh # Block edits to sensitive files
│ │ ├── bash-firewall.sh # Block dangerous commands
│ │ ├── post-edit-format.sh # Auto-format after edits
│ │ └── audit-log.sh # Log all Bash commands
│ └── skills/ # Slash-command skills (14 total)
├── .editorconfig # Editor formatting standards
├── .env.example # Environment variables template
├── package.json # Project metadata & engines