hook-development Cursor ruleA

hook-development from vibeeval/vibecosystem is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add vibeeval/vibecosystem/.cursor/rules/hook-development.mdc@git:20260330.cd5da78

Pins git:20260330.cd5da78 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
vibeeval/vibecosystem
Path
.cursor/rules/hook-development.mdc
Versions recorded
1
Latest version
git:20260330.cd5da78, committed Mar 30, 2026
Size
1,069 bytes
Repository stars
539
License
MIT

Rules for developing vibecosystem TypeScript hooks.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Hook Development Rules

## Hook Types
- **PreToolUse**: Runs before a tool executes (validation, parameter modification)
- **PostToolUse**: Runs after a tool executes (formatting, checking)
- **Stop**: Runs when session ends (final validation)

## File Structure
```
hooks/
  src/           # TypeScript source files
    shared/      # Shared utilities
  dist/          # Compiled .mjs files (esbuild output)
  package.json
  tsconfig.json
```

## Hook Output Format
```typescript
interface HookResult {
  result: string;           // shown in terminal
  systemMessage?: string;   // injected into AI context
  permissionDecision?: "allow" | "deny";
  reason?: string;          // if denied
}
```

## Rules
- Always handle errors with try/catch
- Return valid JSON to stdout
- Read input from stdin (JSON)
- Use `systemMessage` for AI context injection, not `message`
- Keep hooks fast (< 500ms)
- Build with: `cd hooks && npm run build`

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add vibeeval/vibecosystem/.cursor/rules/hook-development.mdc@sha256:6a514aac660fddbc

The line at the top of this page pins the label git:20260330.cd5da78, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3z2mgrcbxmafbel6.svg)](https://markdownregistry.com/a/art_3z2mgrcbxmafbel6)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 30, 2026.

versioncommittedcommitsizeaudit
git:20260330.cd5da78 latest2026-03-30 cd5da78 1,069 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (1069 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vibeeval/vibecosystem · 539 stars · license MIT · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3z2mgrcbxmafbel6
GET https://markdownregistry.com/api/v1/resolve?ref=vibeeval/vibecosystem/.cursor/rules/hook-development.mdc
GET https://markdownregistry.com/api/v1/blob/6a514aac660fddbc69e087ccdec0096376b6ec3d9e82f8ed252e0262f183d1bf

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from vibeeval/vibecosystem

agent-development Cursor rule
vibeeval/vibecosystem · .cursor/rules/agent-development.mdc · Rules for creating and editing vibecosystem agent definitions
git:20260330.cd5da78 · audit A · 539 stars
general Cursor rule
vibeeval/vibecosystem · .cursor/rules/general.mdc · vibecosystem core coding standards and quality rules
git:20260412.a904537 · audit A · 539 stars
security Cursor rule
vibeeval/vibecosystem · .cursor/rules/security.mdc · Security rules for code review and vulnerability prevention
git:20260330.cd5da78 · audit A · 539 stars
skill-development Cursor rule
vibeeval/vibecosystem · .cursor/rules/skill-development.mdc · Rules for creating and editing vibecosystem skills
git:20260330.cd5da78 · audit A · 539 stars
testing Cursor rule
vibeeval/vibecosystem · .cursor/rules/testing.mdc · TDD workflow and testing standards
git:20260330.cd5da78 · audit A · 539 stars
AGENTS.md AGENTS.md file
vibeeval/vibecosystem · AGENTS.md
git:20260808.3b763b1 · audit A · 539 stars
accessibility-patterns SKILL.md skill
vibeeval/vibecosystem · skills/accessibility-patterns/SKILL.md · WCAG 2.2 AA compliance, ARIA patterns, keyboard navigation, screen reader optimization
git:20260412.a904537 · audit A · 539 stars
accessibility-testing SKILL.md skill
vibeeval/vibecosystem · skills/accessibility-testing/SKILL.md · axe-core integration, WCAG 2.2 AA checklist, keyboard navigation testing, screen reader testing, and ARIA pattern…
git:20260314.f0071a0 · audit A · 539 stars
achievements SKILL.md skill
vibeeval/vibecosystem · skills/achievements/SKILL.md · Steam-style achievement system with XP, levels, streaks, and skill trees. Gamifies the development workflow. 25…
git:20260408.85b86f4 · audit A · 539 stars
agent-benchmark SKILL.md skill
vibeeval/vibecosystem · skills/agent-benchmark/SKILL.md · Framework for measuring and tracking agent response quality over time. Detects regressions before they reach…
git:20260328.603ff34 · audit A · 539 stars
agent-context-isolation SKILL.md skill
vibeeval/vibecosystem · skills/agent-context-isolation/SKILL.md · Agent Context Isolation
git:20260314.f0071a0 · audit A · 539 stars
agent-linter SKILL.md skill
vibeeval/vibecosystem · skills/agent-linter/SKILL.md · Agent ve skill dosyalarinin yapisal dogrulamasi. Frontmatter kontrol, naming convention, zorunlu bolum kontrolu…
git:20260405.9b528cf · audit A · 539 stars

Every file in vibeeval/vibecosystem

Other files named hook-development

hook-development SKILL.md skill
anthropics/claude-plugins-official · plugins/plugin-dev/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 46,363 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/platforms/codex/.agents/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-codex/.agents/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-cursor/.cursor/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook",
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/platforms/cursor/.cursor/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-claude/.claude/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook",
v0.1.0 · audit A · 93 stars
hook-development SKILL.md skill
kanevry/session-orchestrator · skills/hook-development/SKILL.md · Use when creating, modifying, or debugging Claude Code hooks — PreToolUse, PostToolUse, Stop, SubagentStop…
git:20261101.758cdac · audit A · 53 stars

Browse by kind, by grade A, or by owner.