Highly Recommended

Cchooks

Say goodbye to tedious JSON parsing and focus on your hook logic
Python developers' Claude Code Swiss Army Knife
Core Principle:
cchooks is a Python toolkit that makes building Claude Code hooks effortless. It handles all JSON parsing and validation automatically, letting you focus on your hook's core logic. Whether blocking dangerous commands, formatting code, or sending notifications - it's just a few lines away.
KEY FEATURES
01One-liner Setup
create_context() handles all initialization
02Smart Detection
Automatically detects hook type
03Full Coverage
Supports all 9 hook types from SessionStart to SubagentStop
04Type Safe
Full type hints and IDE autocompletion
github.com/GowayLee/cchooks
development·GowayLee·2026-02-05·111·🔱 6
Curated by agent-skills.cc
Installation
Download
HTTPS
git clone https://github.com/GowayLee/cchooks.git
SSH
git clone [email protected]:GowayLee/cchooks.git
GitHub CLI
gh repo clone GowayLee/cchooks
FAQ
Q: What are the installation steps for Cchooks Agent Skills?
1.Install: One-line pip/uv install
2.Import: from cchooks import create_context
3.Create: c = create_context()
4.Code: Focus on your business logic
Q: What are the highlights of Cchooks Agent Skills?
  • Zero-config auto JSON parsing
  • Two control modes
  • System message support
  • Lightweight no-dependency
Q: What are the use cases for Cchooks Agent Skills?
  • Block dangerous rm -rf commands
  • Auto-format newly written Python files
  • Filter prompts containing sensitive words
  • Desktop notifications while Claude works
Q: What are the limitations of Cchooks Agent Skills?
  • Python only
  • Requires Claude Code hooks knowledge