Agent skill
plugin-packager-hooks
Handle hook scripts and paths for plugin packaging
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/plugin-packager-hooks
SKILL.md
Hook Script Handling
Make Executable
chmod +x hooks/golang/scripts/*.sh
chmod +x hooks/security/scripts/*.py
Dynamic Path Resolution
Use ${CLAUDE_PLUGIN_ROOT} 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?