Skip to content
Entertainment
Hook

Hooks

What coding-buddy runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
coding-buddy
4671 skill3 hooks

Claude Code

> /plugin marketplace add ramarivera/coding-buddy
> /plugin install coding-buddy@coding-buddy

What fires, and when

PostToolUse

  • MatchesBash${CLAUDE_PLUGIN_ROOT}/hooks/react.sh
  • MatchesWrite|Edit${CLAUDE_PLUGIN_ROOT}/hooks/file-type-react.sh

Stop

  • ${CLAUDE_PLUGIN_ROOT}/hooks/buddy-comment.sh
  • ${CLAUDE_PLUGIN_ROOT}/hooks/suggest.sh

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • ${CLAUDE_PLUGIN_ROOT}/hooks/name-react.sh
  • ${CLAUDE_PLUGIN_ROOT}/hooks/mood-react.sh
Read hooks/hooks.json

Where it lives

  • hooks/buddy-comment.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/buddy-comment.ts" || exit 0
    
  • hooks/file-type-react.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/file-type-react.ts" || exit 0
    
  • hooks/mood-react.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/mood-react.ts" || exit 0
    
  • hooks/name-react.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/name-react.ts" || exit 0
    
  • hooks/react.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/react.ts" || exit 0
    
  • hooks/suggest.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    set +e
    SCRIPT_DIR="${BASH_SOURCE[0]%/*}"
    ROOT="$(cd "$SCRIPT_DIR/.." 2>/dev/null && pwd)" || exit 0
    [ -n "$ROOT" ] || exit 0
    BUN="$(command -v bun 2>/dev/null || true)"
    [ -x "$BUN" ] || BUN="$HOME/.bun/bin/bun"
    [ -x "$BUN" ] || BUN="/opt/homebrew/bin/bun"
    [ -x "$BUN" ] || BUN="/usr/local/bin/bun"
    [ -x "$BUN" ] || exit 0
    exec "$BUN" run "$ROOT/server/hooks/suggest.ts" || exit 0
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

@ramarivera
Ships withcoding-buddy

Keep Your Claude Code Buddy Forever — permanent coding companion that survives every update

Stars on GitHub

Momentum

stars in total
467
Star history of ramarivera/coding-buddy on GitHub, a chart by star-history.com

More plugins that ship hooks.

unreal-engine-skills-for-claude-code

unreal-engine-skills-f…

Lets Claude Code control a running Unreal Editor over MCP, covering actors, blueprints, materials, Niagara, Sequencer, widgets and more. Includes skills for building Unreal toolsets and Agent Skills.

3 skills1 hook2k
@epicgames@epicgames
Install Plugin
workout-gate

workout-gate

Your AI works hard, so should you. A Claude Code and Codex hook that blocks your prompt until you work out, push-ups or squats, counted live via webcam. When a challenge fires you pick your pain (say 6 push-ups or 9 squats).

2 hooks+1222
@botchetdig@botchetdig
Install Plugin

Questions about the hooks in coding-buddy.

Which coding agents can use the hooks in coding-buddy?
The hooks in coding-buddy install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.