Initial commit
This commit is contained in:
26
hooks/examples/convention-based.json
Normal file
26
hooks/examples/convention-based.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user