---
title: "skillset hooks"
slug: "skillset/reference/cli/hooks"
description: The Skillset hooks command can print and run explicit hook integrations.
---
<!-- Generated by `bun run docs:generate`; do not edit directly. -->

<a id="skillset-hooks"></a>

> Generated from Skillset's CLI presentation contract. See the [documentation system](https://github.com/outfitter-dev/skillset/blob/24800e02ed4e7150ea1bc7130c35603c98ea9da2/docs/development/documentation-system.md).

Print and run explicit hook integrations.

## `skillset hooks context`

Normalize provider hook context.

### Usage

```text
skillset hooks context --event <event> [--format env|json] [--context-fields <field,...>] [--root <path>]
```

### Options

| Option | Meaning |
| --- | --- |
| `--context-fields <value>` | Select normalized hook runtime context fields. |
| `--event <value>...` | Select a hook event; repeat where the route permits. |
| `--format <value>` | Select a protocol command encoding such as hook context env or json. |
| `--root <value>` | Select the repository root; defaults to cwd or Git root according to the route. |

## `skillset hooks print`

Print hook runner or agent-runtime configuration.

### Usage

```text
skillset hooks print --runner <lefthook|husky|pre-commit|git> [--pre-commit] [--pre-push]
skillset hooks print --target <claude|codex> --agent-runtime
```

### Options

| Option | Meaning |
| --- | --- |
| `--agent-runtime` | Render provider agent-runtime hook guidance. |
| `--pre-commit` | Select the pre-commit hook snippet. |
| `--pre-push` | Select the pre-push hook snippet. |
| `--runner <value>` | Select the hook runner syntax to print. |
| `--target <value>` | Select one provider target for a route. |

## `skillset hooks run`

Run an explicit normalized hook event.

### Usage

```text
skillset hooks run <post-tool-use|session-start|stop> [--root <path>]
```

### Options

| Option | Meaning |
| --- | --- |
| `--root <value>` | Select the repository root; defaults to cwd or Git root according to the route. |
