关于
The adding-hooks skill provides a comprehensive framework for implementing custom lifecycle events within Claude Code. It allows developers to automate repetitive tasks—such as auto-formatting code after edits, validating bash commands before execution, or injecting real-time context into prompts—by hooking into specific session events like PreToolUse and PostToolUse. By simplifying the setup of user-scoped and project-scoped configurations, this skill ensures consistent tool behavior across environments while enhancing security through automated pre-execution checks.