Skip to main content
Run any Skill in Manus
with one click

hooks-automation

Comprehensive guide to Claude Code hooks — the system for running shell commands, LLM prompts, or subagents automatically at specific points in Claude Code's lifecycle. Use when creating, configuring, debugging, or understanding Claude Code hooks. Trigger phrases: "create a hook", "hook configuration", "hooks.json", "PreToolUse", "PostToolUse", "SessionStart", "hook events", "hook matchers", "automate with hooks", "prompt hooks", "agent hooks", "hook lifecycle", "UserPromptSubmit", "PermissionRequest", "PostToolUseFailure", "SubagentStart", "SubagentStop", "Stop hook", "TeammateIdle", "TaskCompleted", "PreCompact", "SessionEnd", "Notification hook". Also for blocking dangerous commands, auto-formatting code, desktop notifications, file protection, context re-injection after compaction, async hooks, MCP tool hooks, and hook debugging.

Stars0
Forks0
UpdatedFebruary 11, 2026 at 23:58
File Explorer
5 files
SKILL.md
readonly