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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user