Skip to main content
Version: 0.57.0

CC-SK-010: Invalid Hooks in Skill Frontmatter

Summary​

  • Rule ID: CC-SK-010
  • Severity: HIGH
  • Category: Claude Skills
  • Normative Level: MUST
  • Auto-Fix: No
  • Verified On: 2026-02-07

Applicability​

  • Tool: claude-code
  • Version Range: unspecified
  • 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​

---
name: hook-skill
description: Use when running a skill with hooks
hooks:
InvalidEvent:
- type: command
command: echo bad
---
Run with hooks.

Valid​

---
name: hook-skill
description: Use when running a skill with hooks
hooks:
PreToolUse:
- type: command
command: echo pre
---
Run with hooks.