When starting Claude Code with the ecc plugin enabled, this warning appears:
ecc: hooks.json: unknown keys "$schema", "description" in hooks.PreToolUse[0], "id" in hooks.PreToolUse[0], "description" in hooks.PreToolUse[1], "id" in hooks.PreToolUse[1] and 44 more ignored
Cause
hooks/hooks.json (and the 2.1.0/2.2.1 cache copies) don't conform to Claude Code's hooks schema:
- Top-level
"$schema" key (line 2) isn't part of the schema.
- Every hook entry under each event (
PreToolUse, PreCompact, SessionStart, PostToolUse, PostToolUseFailure, Stop, SessionEnd) includes "description" and "id" fields alongside matcher/hooks, which aren't recognized keys.
This produces a validation warning on every session start when the plugin is enabled, even though the hooks themselves appear to run fine.
Suggested fix
Either:
- Move
description/id metadata out of the schema-validated shape (e.g., into a comment-only sibling file or a wrapper the plugin loader strips before handing to Claude Code), or
- Confirm with Claude Code whether these keys are actually supported/planned for the hooks schema, and if not, drop them from
hooks/hooks.json.
Environment
- Repo: affaan-m/everything-claude-code
- File:
hooks/hooks.json
- Reproduced with plugin versions 2.1.0 and 2.2.1 (same issue in cached copies)
When starting Claude Code with the ecc plugin enabled, this warning appears:
Cause
hooks/hooks.json(and the2.1.0/2.2.1cache copies) don't conform to Claude Code's hooks schema:"$schema"key (line 2) isn't part of the schema.PreToolUse,PreCompact,SessionStart,PostToolUse,PostToolUseFailure,Stop,SessionEnd) includes"description"and"id"fields alongsidematcher/hooks, which aren't recognized keys.This produces a validation warning on every session start when the plugin is enabled, even though the hooks themselves appear to run fine.
Suggested fix
Either:
description/idmetadata out of the schema-validated shape (e.g., into a comment-only sibling file or a wrapper the plugin loader strips before handing to Claude Code), orhooks/hooks.json.Environment
hooks/hooks.json