KR-HK-001: Invalid Kiro IDE Hook Event Type - Kiro Hooks
Summary
- Rule ID:
KR-HK-001 - Severity:
HIGH - Category:
Kiro Hooks - Normative Level:
MUST - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
kiro - Version Range:
unspecified - Spec Revision:
IDE 0.x .kiro.hook
Evidence Sources
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{
"when": {
"type": "userPrompt"
},
"then": {
"type": "askAgent",
"prompt": "Review the change"
}
}
Valid
{
"when": {
"type": "fileEdited",
"patterns": [
"src/**/*.ts"
]
},
"then": {
"type": "askAgent",
"prompt": "Review the change"
}
}