Files
gh-tobyhede-turboshovel-plugin/hooks/examples/convention-based.json
2025-11-30 09:02:16 +08:00

27 lines
805 B
JSON

{
"description": "Demonstrates convention-based context injection with explicit gates",
"comment": "Combines zero-config conventions with explicit verification gates",
"gates": {
"test": {
"description": "Run project test suite",
"comment": "Examples: 'npm test' | 'cargo test' | 'mise run test'",
"command": "npm test",
"on_pass": "CONTINUE",
"on_fail": "BLOCK"
}
},
"hooks": {
"SlashCommandEnd": {
"comment": "Convention file .claude/context/code-review-end.md auto-injects if exists",
"enabled_commands": ["/code-review"],
"gates": ["test"]
},
"SkillStart": {
"comment": "Convention file .claude/context/test-driven-development-start.md auto-injects",
"enabled_skills": ["test-driven-development"]
}
}
}