{{ feature.description }}

Lifecycle Hook

{{ feature.source|upper }}
{% if feature.triggers %}

Trigger Events

{% for trigger in feature.triggers %} {{ trigger }} {% endfor %}

This hook runs when any of these events occur

{% endif %} {% if feature.matchers %}

Tool Matchers

{% for matcher in feature.matchers %}
{{ matcher }}
{% endfor %}

Hook activates when these tools are used

{% endif %}

Handler Script

{{ feature.handler }}
{% if feature.config %}

Hook Configuration

{{ feature.config|tojson(indent=2) }}
{% endif %} {% if feature.inheritance and feature.inheritance.levels|length > 1 %}

Inheritance Chain

{% for level in feature.inheritance.levels %}
{{ level.source|upper }} {% if not loop.last %} {% endif %}
{% endfor %}
{% if feature.inheritance.winner %}

Active configuration from: {{ feature.inheritance.winner|upper }}

{% endif %}
{% endif %}

About Hooks

Hooks allow you to run custom scripts in response to Claude Code events, enabling automation and custom workflows.