Claude Code Hooks & Skills
Automate your AI development workflow with custom hooks and reusable skills
Claude Code supports two powerful automation mechanisms: Hooks (event-driven shell commands that run before/after actions) and Skills (reusable prompt templates invoked via slash commands). Together, they let you standardize workflows, enforce code quality, and boost team productivity.
Hooks Documentation
Event-driven automation that runs shell commands before or after Claude Code actions. Configure auto-formatting, linting, testing, and custom validations.
Skills Guide
Create reusable prompt templates that package common workflows into slash commands. Share with your team for consistent AI-assisted development.
Related Resources
Frequently Asked Questions
What are Claude Code Hooks?
Hooks are shell commands that execute automatically before or after Claude Code performs actions like file edits or command execution. Configure them in .claude/settings.json to automate tasks like linting, formatting, and testing.
What are Claude Code Skills?
Skills are reusable prompt templates stored as markdown files in .claude/skills/. They let you package common workflows into slash commands that can be invoked consistently across your team.
How do Hooks differ from Skills?
Hooks are reactive — they run automatically in response to events (like file saves). Skills are proactive — you invoke them manually with a slash command when you need a specific workflow executed.
Can I share Hooks and Skills with my team?
Yes. Both hooks (in .claude/settings.json) and skills (in .claude/skills/) can be committed to version control, ensuring your entire team uses the same automation and workflows.