{
"description": "Auto-validate SKILL.md files after Write/Edit operations",
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "command -v jq >/dev/null 2>&1 || exit 0; file=\"$(jq -r '.tool_input.file_path // empty')\" && [ -n \"$file\" ] && echo \"$file\" | grep -q 'SKILL\\.md$' && command -v aigent >/dev/null 2>&1 && aigent validate \"$(dirname \"$file\")\" 2>&1 || true"
}
]
}
]
}
}