smithery.ai

plugin-packager-hooks

Handle hook scripts and paths for plugin packaging

First seen Mar 27, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 775 B
  • docs SUMMARY.md 79 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Hook Script Handling

Make Executable

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

Dynamic Path Resolution

Use ${CLAUDEPLUGINROOT} for portable paths:

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

Validate All Scripts

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

Multiple hooks.json Handling

Option 1: Array Reference (Recommended)

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

Option 2: Inline Merged

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