AgentStack
SKILL verified MIT Self-run

Cursor Hooks

skill-hktitan-cursor-sdk-cursor-hooks · by HKTITAN

File-based agent loop hooks via `.cursor/hooks.json` — pre/post commands, governance gates. Use when enforcing policy without modifying agent prompts.

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add skill-hktitan-cursor-sdk-cursor-hooks

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Are you the author of Cursor Hooks? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

cursor-hooks

Hooks are file-based, not programmatic. The SDK does not expose JS callbacks for the agent loop — use .cursor/hooks.json and rely on local.settingSources to load them.

When to use

  • Lint / type-check gates before agent commits
  • Audit logging or compliance commands after each turn
  • Fail-fast policies that must run regardless of prompt

Concepts

  • [[references/file-format]] — .cursor/hooks.json shape
  • [[references/loading]] — settingSources and project vs user vs team scope
  • [[references/programmatic-alternatives]] — what to use when you need JS callbacks (onDelta, onStep)

Cross-links

  • local.settingSources → [[../cursor-sdk/references/local-options]]
  • Stream-side observation → [[../cursor-runs/references/interaction-updates]]
  • Sibling .cursor/ features → [[../cursor-rules/SKILL]] · [[../cursor-skills-system/SKILL]]

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.