What problem does it solve?
Manually overseeing every action in Claude Code can be time-consuming and prone to error. This Skill empowers you to automate tasks, validate actions, and inject context into Claude's workflow, ensuring safety, consistency, and efficiency without modifying core code.
Core Features & Use Cases
- Event-Driven Automation: Execute shell commands or LLM prompts in response to specific events like tool use, session start/end, or user prompts.
- Workflow Customization: Implement custom logic to validate commands (e.g., block destructive
git operations), auto-format code after edits, or inject project-specific context at session start.
- Use Case: Automatically log all
Bash commands executed by Claude to an audit file for compliance, or set up a prompt hook to prevent accidental force pushes to your main branch.
Quick Start
To log all Bash commands, create a .claude/hooks.json file in your project. Inside, define a PreToolUse hook that matches "Bash" tools and executes a command to append the tool's command input to a log file.