Skip to content
Back to skills

Hooks Check

ASecurity

Validate hooks configuration and scripts

  • 81 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
code-quality

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add claude-world/director-mode-lite --skill hooks-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hooks Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hooks Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/claude-world-hooks-check/badge)](https://www.skillsdirectory.com/skills/claude-world-hooks-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hooks-check
description: Validate hooks configuration and scripts
user-invocable: true
---

# Hooks Validator

Validate hooks configuration in `.claude/settings.json` and hook scripts.

---

## Validation Steps

### 1. Check settings.json
Verify `hooks` section exists and is valid.

### 2. Validate Hook Structure
```json
{
  "hooks": {
    "PreToolUse": [...],
    "PostToolUse": [...],
    "Stop": [...],
    "Notification": [...]
  }
}
```

### 3. Validate Each Hook Entry
- [ ] `type` is "command"
- [ ] `command` path exists
- [ ] Script is executable

### 4. Validate Hook Scripts
- [ ] File exists and is executable
- [ ] Outputs valid JSON
- [ ] Has appropriate shebang

---

## Output Format

```markdown
## Hooks Validation Report

### Configuration Status: VALID / INVALID

### Configured Hooks
| Type | Matcher | Script | Status |
|------|---------|--------|--------|
| Stop | * | auto-loop-stop.sh | OK |

### Script Validation
| Script | Exists | Executable | Valid Output |
|--------|--------|------------|--------------|
| auto-loop-stop.sh | OK | OK | OK |

### Issues Found
1. [Issue and fix]
```

---

## Auto-Fix

- Make scripts executable
- Add missing shebang
- Create missing hook scripts

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…