Skip to content
Back to skills

Hooks

ASecurity

Handle hook scripts and paths for plugin packaging

  • 3 stars
  • 0 votes
  • 0 copies
  • 18 views
  • Added February 7, 2026
developmentgobashsecurity

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add JamesPrial/claudefiles --skill hooks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hooks?

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

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

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: plugin-packager-hooks
description: Handle hook scripts and paths for plugin packaging
---

# Hook Script Handling

## Make Executable

```bash
chmod +x hooks/golang/scripts/*.sh
chmod +x hooks/security/scripts/*.py
```

## Dynamic Path Resolution

Use `${CLAUDE_PLUGIN_ROOT}` for portable paths:

```json
{
  "script": "${CLAUDE_PLUGIN_ROOT}/hooks/golang/scripts/go-fmt.sh"
}
```

## Validate All Scripts

```bash
find hooks -type f \( -name "*.sh" -o -name "*.py" \) ! -perm -u+x
```

## Multiple hooks.json Handling

### Option 1: Array Reference (Recommended)

```json
{
  "hooks": [
    "./hooks/golang/hooks.json",
    "./hooks/security/hooks.json"
  ]
}
```

### Option 2: Inline Merged

Combine all hook definitions into single inline object in plugin.json.

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.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.