Awesome Agent Hooks
Description
A collection of useful hooks for Claude Code and OpenCode
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Awesome Agent Hooks
A collection of useful hooks for Claude Code and OpenCode.
Hooks
| Hook | Description | Trigger | Behavior |
|---|---|---|---|
| check-duplicate-functions.sh | Warns when creating a function that already exists in the codebase | PostToolUse on Write/Edit |
Warning |
| no-dynamic-imports.sh | Blocks dynamic imports in favor of static imports | PreToolUse on Write/Edit |
Blocks |
Installation
Claude Code
# Copy hooks
cp hooks/*.sh ~/.claude/hooks/
# Make executable
chmod +x ~/.claude/hooks/*.sh
Then configure in `~/.claude/settings.json`.
OpenCode
# Copy hooks
mkdir -p ~/.config/opencode/hooks
cp hooks/*.sh ~/.config/opencode/hooks/
# Make executable
chmod +x ~/.config/opencode/hooks/*.sh
Configuration Example
Add to your `settings.json`:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/no-dynamic-imports.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/check-duplicate-functions.sh"
}
]
}
]
}
}
License
MIT
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11