Design hook-based event systems for ADW observability. Use when implementing real-time event broadcasting, creating hook pipelines, or building agent activity monitoring.
View on GitHubmelodic-software/claude-code-plugins
tac
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/melodic-software/claude-code-plugins/blob/main/plugins/tac/skills/hook-event-architecture/SKILL.md -a claude-code --skill hook-event-architectureInstallation paths:
.claude/skills/hook-event-architecture/# Hook Event Architecture Design hook-based event systems for capturing and broadcasting agent activities in AI Developer Workflows. ## MANDATORY: docs-management Delegation > **Documentation Verification:** This skill references Claude Code hook events and configuration > that may change between releases. Before implementing, invoke `hook-management` skill to verify > current event types and hook configuration patterns. **Verification Checkpoint:** - [ ] Did I invoke `hook-management` for current event types? - [ ] Did official documentation confirm the event schema? - [ ] Is my implementation based on official docs? ## When to Use - Implementing real-time event broadcasting - Building observability infrastructure - Creating swimlane visualizations - Logging agent activities to database - Generating AI-powered event summaries ## Prerequisites - Understanding of Claude Code hooks (@hook-event-patterns.md) - Familiarity with WebSocket patterns (@websocket-architecture.md) - Access to Claude Agent SDK for full implementation ## SDK Requirement > **Implementation Note**: Full hook event architecture requires Claude Agent SDK with custom tooling. This skill provides design patterns and specifications. ## Event Types > **Documentation Verification:** The event types listed here are Claude Code internal types that may change between releases. For authoritative current event types, query the `hook-management` skill which delegates to `docs-management` for official documentation. ADW systems capture these event types: | Event Type | Icon | Source | Payload | | --- | --- | --- | --- | | `PreToolUse` | ๐ช | Hook | Tool name, inputs, session | | `PostToolUse` | ๐ช | Hook | Tool name, outputs, duration | | `TextBlock` | ๐ฌ | Agent | Response text, tokens | | `ToolUseBlock` | ๐ ๏ธ | Agent | Tool invocation record | | `ThinkingBlock` | ๐ง | Agent | Extended thinking content | | `StepStart` | โ๏ธ | System | Step name, inputs | | `StepEnd` | โ๏ธ | System | Step name, ou