npx claudepluginhub nsalvacao/nsalvacao-claude-code-plugins --plugin waterfall-lifecycleDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/validate-artefact.sh",
"timeout": 10,
"description": "Validate artefact structure before writing"
}
],
"matcher": "Write|Edit"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/lf-check.sh",
"timeout": 5,
"description": "Enforce LF line endings on markdown files"
}
],
"matcher": "Write|Edit"
}
]
}"Validates primitive I/O via validate-primitive-io.sh: PreToolUse blocks/modifies Read tools; PostToolUse checks Write tools. Involves file writes."