/director-mode-lite:hooks-checkfrom director-mode-lite
Validates Claude Code hooks configuration in settings.json and hook scripts against the official spec. Use after editing hooks or when a hook fails to fire.
Ships in director-mode-lite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Validate hooks configuration in .claude/settings.json and hook scripts against
the official Claude Code spec.
Verify the hooks section exists and is valid.
Claude Code defines 33 hook events. Accept any of them; flag unknown names
with a typo hint (e.g. PrePromptSubmit -> UserPromptSubmit,
PostToolBatchFailure -> PostToolBatch, SubagentStarts -> SubagentStart).
| Group | Events |
|---|---|
| Lifecycle | SessionStart, SessionEnd, Setup |
| Prompt | UserPromptSubmit, UserPromptExpansion |
| Tool | PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch |
| Permission | PermissionRequest, PermissionDenied |
| Subagent | SubagentStart, SubagentStop |
| Stop | Stop, StopFailure |
| Task | TaskCreated, TaskCompleted |
| Compaction | PreCompact, PostCompact |
| Notification | Notification, MessageDisplay |
| MCP elicitation | Elicitation, ElicitationResult |
| Model | PreModelSwitch, PostModelSwitch |
| Environment | ConfigChange, CwdChanged, DirectoryAdded, FileChanged, InstructionsLoaded, WorktreeCreate, WorktreeRemove, TeammateIdle |
That is all 33 events. See the official hooks docs for each event's payload.
type is present and one of: command, prompt, http, mcp_tool, agenttype: command: command path exists and script is executable; a
shell-form path variable is quoted ("$CLAUDE_PROJECT_DIR"/...), or the
hook uses exec form (args)type: prompt or agent: prompt string is non-emptytype: http: url is set; if type: mcp_tool: server and tool are setmatcher is a string if present (exact names joined by | or ,, *,
or a regex); warn when it sits on an event without matcher support
(UserPromptSubmit, Stop, PostToolBatch, TeammateIdle,
TaskCreated, TaskCompleted, WorktreeCreate, WorktreeRemove,
MessageDisplay, CwdChanged), where it is silently ignoredtimeout is a positive integer if present (defaults: 600s command/http/mcp_tool, 30s prompt, 60s agent)if is a permission rule such as Bash(git *), used only on tool eventsonFailure is continue or block (v2.1.295+); recommend block for security guardsonce appears only in skill frontmatter hooks; settings files ignore itasync / asyncRewake appear only on command hooksstatusMessage is a string if presentSessionEnd matchers do not use bypass_permissions_disabled (removed in v2.1.234)0 = allow/continue, exit 2 = block for PreToolUse).When a script does emit JSON, validate it against the event contract:
hookSpecificOutput.permissionDecision is allow, deny,
ask, or defer (-p only). The legacy top-level
{"decision": "approve" | "block"} is still accepted.{"ok": true} or
{"ok": false, "reason": "..."}.{"decision": "block", "reason": "<next prompt>"} — the key is reason.hook_event_name (not hook_type).## Hooks Validation Report
### Configuration Status: VALID / INVALID
### Configured Hooks
| Event | Matcher | Script | Status |
|-------|---------|--------|--------|
| Stop | * | auto-loop-stop.sh | OK |
### Script Validation
| Script | Exists | Executable | Output |
|--------|--------|------------|--------|
| auto-loop-stop.sh | OK | OK | JSON OK / silent |
### Issues Found
1. [Issue and fix]
hook_type -> hook_event_name in emitted JSONWhat SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/agent-checkValidate custom agent file format and structure. Use after creating or editing an agent, before committing agent changes, or when an agent fails to load./agentsList all available agents (core, expert, self-evolving). Use when the user asks what agents are available or runs /agents./agent-templateGenerate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter./auto-loopTDD-based autonomous development loop with checkpoint recovery and observability changelognpx claudepluginhub claude-world/director-mode-lite --plugin director-mode-liteOther plugins' skills for the same job