Claude Code Gists
Description
A collection of personal hooks for Claude Code. These are my personal Claude Code hooks - use at your own risk!
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
Claude Code Gists
A collection of personal hooks for Claude Code. These are my personal Claude Code hooks - use at your own risk!
Hooks
Pre-Tool Use Hooks
- command-safety-guard.py - Validates bash commands and blocks potentially dangerous operations
- security-audit.py - Audits file operations for security concerns
- task-quality-analyzer.py - Analyzes task descriptions for clarity and completeness
Post-Tool Use Hooks
- dependency-checker.py - Checks for outdated dependencies in
package.json,Cargo.toml,requirements.txt,pyproject.toml, and Python scripts- Supports npm packages with version range parsing
- Supports Rust crates with cargo integration
- Supports Python packages in requirements.txt and pyproject.toml
- Supports PEP 723 inline script metadata in .py files
- Uses uv if available for faster Python dependency resolution
- Blocks writes with outdated dependencies
User Prompt Submit Hooks
- user-prompt-hook.py - Advanced prompt engineering for Claude Code (improv: mode only)
- ONLY processes prompts with
improv:prefix - normal prompts bypass hook to avoid lag - Uses Claude Sonnet v4 with --append-to-system-prompt for enhancement
- Adds enhanced prompts as context (doesn't replace original)
- Includes conversation history for context-aware enhancements
- Logs all interactions to
~/.claude/hooks-using-claude/prompt_history.json
- ONLY processes prompts with
Notification Hooks
- notification-handler.sh - Handles system notifications for Claude Code events
Installation
- Clone this repository:
git clone git@github.com:pauloportella/claude-code-gists.git /path/to/your/location
- Create symlinks to your Claude Code hooks directory:
# Individual hooks
ln -sf /path/to/claude-code-gists/hooks/command-safety-guard.py ~/.claude/hooks/
ln -sf /path/to/claude-code-gists/hooks/dependency-checker.py ~/.claude/hooks/
ln -sf /path/to/claude-code-gists/hooks/notification-handler.sh
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