서우 AgentOffice
← 라이브러리
development

Hook 개발

원문: Hook Development

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreT

무엇을 하나요

Hook Development for Claude Code Plugins Overview Hooks are event driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows. Key capabilities: Validate tool calls before execution (PreToolUse) React to tool results (PostToolUse) Enforce completion standards (Stop, SubagentStop) Load project context (SessionStart) Automate workflows across the development lifecycle Hook Types Prompt Based Hooks (Recommended) Use LLM driven decision making for context aware validation: Supported events: Stop, SubagentStop, UserPromptSubmit, PreToolUse Benefits: Context aware decisions ba

실행 시 본인 API 키(BYOK)로 동작하며, 모델 비용은 사용자 계정에서 직접 결제됩니다.