Skip to content

[DOCS] Request Syntax and usage examples for Frontmatter hooks #16842

@vantasnerdan

Description

@vantasnerdan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions