Skip to main content

cursor-hooks

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

소스 정보

저장소
HKTITAN/cursor-sdk
최근 소스 활동
2026년 5월 3일 08:23
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cursor-hooks
description
File-based agent loop hooks via `.cursor/hooks.json` — pre/post commands, governance gates. Use when enforcing policy without modifying agent prompts.
metadata
{"internal":false,"source":"https://cursor.com/docs/sdk/typescript"}
# 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]]
GitHub에서 보기