Разработка хуков для автоматизации и валидации
★ 8.6 · automation
hook-development is a Claude Code skill that guides the creation of event-driven hooks for automation, validation, and policy enforcement inside Claude Code plugins. It covers nine hook events — PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, and Notification — and supports two hook types: prompt-based hooks that use LLM reasoning for context-aware decisions, and command-based hooks that run deterministic bash scripts via `${CLAUDE_PLUGIN_ROOT}`. Typical use cases include blocking dangerous tool calls before execution, validating file writes for sensitive content, enforcing completion standards, loading project context at session start, and injecting security guidance into user prompts. The skill also documents two configuration formats — the plugin-specific `hooks/hooks.json` wrapper and the direct `.claude/settings.json` structure — making it the reference for developers building event-driven workflow automation within Claude Code.
- #hooks
- #event-driven
- #validation
- #claude-code
- #automation
- #policy-enforcement