10-hooks
OfficialAdd guardrails and automation to Claude Code
Authorrhpds
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers control and automate Claude Code tool execution by creating hooks that prevent risky actions, add visibility, and enforce workflow rules without changing Claude's behavior directly.
Core Features & Use Cases
- PreToolUse Guardrails: Create hooks that inspect commands before execution and block destructive operations such as unsafe Git actions.
- PostToolUse Automation: Build hooks that react after tool execution to log changes, trigger workflows, or maintain audit trails.
- Use Case: A development team can use this Skill to add project-level safety checks that prevent accidental force pushes while recording file edits made during AI-assisted coding sessions.
Quick Start
Use the hooks skill to create a Claude Code pre-tool guardrail that blocks destructive Git commands.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 10-hooks Download link: https://github.com/rhpds/claude-code-courseware/archive/main.zip#10-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 545,000+ vetted skills library on demand.