Skip to main content
CURSOR:S:0005 deterministic high structure cursor

Hook Prompt Has Field

Hook handlers with "type": "prompt" in .cursor/hooks.json MUST include a "prompt" field containing the instruction text. Without it, Cursor has no prompt to inject and the hook does nothing.

Antipatterns

  • Missing prompt field. Defining "type": "prompt" without a "prompt" key.
  • Empty prompt string. Setting "prompt": "" which passes the key check but provides no instruction.

Pass / Fail

Pass

{ "type": "prompt", "prompt": "Check for security issues before approving" }

Fail

{ "type": "prompt" }

Limitations

Checks that at least one handler has a prompt field with a non-empty value.