Skip to content

Commit f4a1d74

Browse files
sjnimsclaude
andauthored
docs: add missing PermissionRequest hook event (#88)
## Summary Add the missing `PermissionRequest` event to hook events documentation in two locations where it was omitted. ## Problem Fixes #85 The `PermissionRequest` hook event was missing from the hook events list in: - `plugins/plugin-dev/skills/plugin-structure/SKILL.md:238` - `README.md:63` This event fires when a permission dialog is shown and is documented in the official Claude Code reference but was absent from this plugin's documentation. ## Solution Added `PermissionRequest` to both hook events lists, placing it between `PreToolUse` and `PostToolUse` to match the official documentation order. ### Alternatives Considered None - this is a straightforward documentation fix to align with official docs. ## Changes - `plugins/plugin-dev/skills/plugin-structure/SKILL.md`: Added PermissionRequest to available events - `README.md`: Added PermissionRequest to hook events list ## Testing - [x] markdownlint passes - [x] Verified order matches official Claude Code documentation --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent e84cc83 commit f4a1d74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Use this workflow for structured, high-quality plugin development from concept t
6060
**What it covers:**
6161
- Prompt-based hooks (recommended) with LLM decision-making
6262
- Command hooks for deterministic validation
63-
- All hook events: PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification
63+
- All hook events: PreToolUse, PermissionRequest, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification
6464
- Hook output formats and JSON schemas
6565
- Security best practices and input validation
6666
- ${CLAUDE_PLUGIN_ROOT} for portable paths

plugins/plugin-dev/skills/plugin-structure/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ hooks/
235235
}
236236
```
237237

238-
**Available events**: PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification
238+
**Available events**: PreToolUse, PermissionRequest, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification
239239

240240
**Usage**: Hooks execute automatically in response to Claude Code events
241241

0 commit comments

Comments
 (0)