Skip to content
Development
Agent

hooks

Two hook events enforce quality when teammates finish work or complete tasks:

BOOST
From plugin
bendrucker-claude
1713 skills13 agents1 MCP
Install
> /plugin marketplace add bendrucker/claude

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Two hook events enforce quality when teammates finish work or complete tasks:

Agent definition

hooks.md

Team Quality Gate Hooks

Two hook events enforce quality when teammates finish work or complete tasks:

  • **TeammateIdle**: runs when a teammate is about to go idle. Block to verify output before letting them stop (tests pass, lint clean, deliverables exist).
  • **TaskCompleted**: runs when a task is being marked complete. Block to enforce acceptance criteria before allowing the status change.
{
  "hooks": {
    "TeammateIdle": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bun ./hooks/check-teammate-output.ts"
          }
        ]
      }
    ]
  }
}

Exit Code Behavior

| Code | Effect | |---|---| | 0 | Allow (teammate goes idle / task completes) | | 2 | Block with feedback (stdout sent back to the agent) | | Other | Hook error, operation continues |

Ships withbendrucker-claude

My personal plugin marketplace for Claude Code, Anthropic's AI coding assistant.

Get the whole plugin

Other agents on bendrucker-claude.