# Validate Hooks

> Validates Claude Code hooks.json files for schema, events, and commands. Use when user asks to "check my hooks", "validate hooks.json", "hook errors", "why isn't my hook firing", or "hook event types". Validates hook events, types (command, prompt, agent), matcher patterns, and command script references.

- **Type:** Skill
- **Install:** `agentstack add skill-pdugan20-claudelint-validate-hooks`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [pdugan20](https://agentstack.voostack.com/s/pdugan20)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [pdugan20](https://github.com/pdugan20)
- **Source:** https://github.com/pdugan20/claudelint/tree/main/skills/validate-hooks
- **Website:** https://www.claudelint.com

## Install

```sh
agentstack add skill-pdugan20-claudelint-validate-hooks
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Validate Hooks

Runs `claudelint validate-hooks` to validate `.claude/hooks/hooks.json` files.

## Usage

```bash
claudelint validate-hooks $ARGUMENTS
```

## Options

- `--path ` - Custom path to hooks.json
- `--verbose` - Show detailed output
- `--warnings-as-errors` - Treat warnings as errors

## What Gets Validated

- JSON syntax
- Hook events (tool-use, user-prompt-submit, etc.)
- Hook types (command, prompt, agent)
- Matcher validation (tool names, regex patterns)
- Command script file existence

## Examples

```bash
claudelint validate-hooks
claudelint validate-hooks --path /path/to/hooks.json
```

## See Also

- [validate-all](../validate-all/SKILL.md) - Run all validators

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [pdugan20](https://github.com/pdugan20)
- **Source:** [pdugan20/claudelint](https://github.com/pdugan20/claudelint)
- **License:** MIT
- **Homepage:** https://www.claudelint.com

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-pdugan20-claudelint-validate-hooks
- Seller: https://agentstack.voostack.com/s/pdugan20
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
