claude-code
claude-code copied to clipboard
[DOCS] Request Syntax and usage examples for Frontmatter hooks
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/hooks-guide
Section/Topic
Front Matter Hooks
Current Documentation
Change Log for version 2.1.0 shows these two new features
- Added hooks support to agent frontmatter, allowing agents to define PreToolUse, PostToolUse, and Stop hooks scoped to the agent's lifecycle
- Added hooks support for skill and slash command frontmatter
What's Wrong or Missing?
The syntax for using these features is not documented.
Suggested Improvement
I've tried brute force validating this without success.
Impact
High - Prevents users from using a feature
Additional Context
No response