KR-HK-013: Invalid Kiro V3 Hook Action - Kiro Hooks
Summary
- Rule ID:
KR-HK-013 - Severity:
HIGH - Category:
Kiro Hooks - Normative Level:
MUST - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
kiro - Version Range:
>=2.8.0 - Spec Revision:
unspecified
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
{"version":"v1","hooks":[{"name":"ctx","trigger":"UserPromptSubmit","action":{"type":"askAgent","prompt":"Add repo context"}}]}
Valid
{"version":"v1","hooks":[{"name":"ctx","trigger":"UserPromptSubmit","action":{"type":"agent","prompt":"Add repo context"}}]}