Claude Tools · Safety first

Hooks

Scripts that auto-fire on events. This is a safety-forward type: the card leads with what runs, when, and the sandbox verdict.


Five starter examples for reviewing this page template. They illustrate the content shape only and are not audited listings or rankings.

All examplesSessionStartPreToolUsePostToolUse

5 examples · starter content

Example 01

Session ContextSessionStart

Loads a short project briefing automatically when a session begins.

Editable sampleView full page →

Example 02

Secret GuardPreToolUse

Checks proposed shell commands and file writes for exposed credentials before execution.

Editable sampleView full page →

Example 03

Format After EditPostToolUse

Runs the project formatter after supported source files change.

Editable sampleView full page →

Example 04

Prompt Policy CheckUserPromptSubmit

Checks submitted prompts against project policy before the agent continues.

Editable sampleView full page →

Example 05

Session SummarySessionEnd

Writes a compact work summary when the session ends.

Editable sampleView full page →