27 lines
805 B
JSON
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"]
|
|
}
|
|
}
|
|
}
|