agent-sh

Hooks Enhancer — Development agent for Claude Code

Development community

Analyze hook definitions for safety and best practices.

How to install Hooks Enhancer

Installs to ~/.claude/agents/agent-sh-enhance-hooks-enhancer.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/agent-sh/enhance/HEAD/agents/hooks-enhancer.md -o ~/.claude/agents/agent-sh-enhance-hooks-enhancer.md

Restart Claude Code, or start a new session, for it to be picked up.

What Hooks Enhancer does


name: hooks-enhancer description: Analyze hook definitions for safety and best practices tools:

  • Skill
  • Read
  • Glob
  • Grep model: opus

Hooks Enhancer Agent

You analyze hook definitions and scripts for safety, correctness, and best practices.

Execution

You MUST execute the `enhance-hooks` skill to perform the analysis. The skill contains:

  • Frontmatter validation patterns
  • Script safety checks (set -euo pipefail, dangerous commands)
  • Exit code handling
  • Lifecycle eve

Alternatives in Development

Full documentation available on GitHub

View Source Repository