The cchooks Python SDK enables developers to create and manage Claude Code hooks, allowing for automation of workflows and integration with other systems. Operations teams benefit from streamlined processes and reduced manual intervention. It connects to the Claude Code platform and can be integrated into existing Python-based workflows.
git clone https://github.com/GowayLee/cchooks.gitThe cchooks Python SDK enables developers to create and manage Claude Code hooks, allowing for automation of workflows and integration with other systems. Operations teams benefit from streamlined processes and reduced manual intervention. It connects to the Claude Code platform and can be integrated into existing Python-based workflows.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/GowayLee/cchooksCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Using the cchooks Python SDK, create a Claude-code hook that automatically logs all function calls and their outputs to a JSON file named [LOG_FILE_NAME] for [COMPANY] in the [INDUSTRY] sector. Include error handling and timestamping for each entry.
```python
import json
from datetime import datetime
def log_function_call(function_name, args, output, error=None):
log_entry = {
'timestamp': datetime.now().isoformat(),
'function_name': function_name,
'args': args,
'output': output,
'error': error
}
with open('function_calls.log', 'a') as f:
f.write(json.dumps(log_entry) + '\n')
def example_function(x, y):
try:
result = x + y
log_function_call('example_function', {'x': x, 'y': y}, result)
return result
except Exception as e:
log_function_call('example_function', {'x': x, 'y': y}, None, str(e))
raise e
# Example usage
if __name__ == '__main__':
example_function(5, 3)
```Agents that listen, think and act for you.
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan