Files
cursor__plugins/plugins/boilerplate/hooks/hooks.json
ericzakariasson 5e55a3a3f1 Initial commit: Cursor plugin specification and boilerplate
- Add plugin specification README with complete schema documentation
- Include boilerplate plugin demonstrating all components:
  - Rules (.mdc files with frontmatter)
  - Agents (specialized subagent definitions)
  - Skills (self-contained capabilities with SKILL.md)
  - Hooks (pre/post event automation)
  - MCP servers (external tool integrations)
  - Extensions directory structure

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-22 17:54:49 -08:00

21 lines
494 B
JSON

{
"$schema": "https://cursor.com/schemas/hooks.json",
"hooks": [
{
"name": "pre-commit-lint",
"description": "Run linting before commits",
"trigger": "pre-commit",
"command": "./scripts/lint.sh",
"enabled": true
},
{
"name": "post-save-format",
"description": "Format files after saving",
"trigger": "post-save",
"pattern": "**/*.{ts,tsx,js,jsx}",
"command": "npx prettier --write",
"enabled": false
}
]
}