Agent skill

plugin-packager-hooks

Handle hook scripts and paths for plugin packaging

Stars 3
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/JamesPrial/claudefiles/tree/main/skills/plugin-packager/hooks

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results