hktitan/cursor-sdk · Archived

cursor-hooks

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

First seen May 3, 2026

Installation

$ npx skills add hktitan/cursor-sdk --skill cursor-hooks

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from hktitan/cursor-sdk · top by installs.

npx skills add hktitan/cursor-sdk

Browse all from hktitan/cursor-sdk

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents cursor
More metadata
internal
source
https://cursor.com/docs/sdk/typescript

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,168 B
  • docs SUMMARY.md 172 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

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]]