mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
5e55a3a3f1
- 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>
21 lines
494 B
JSON
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
|
|
}
|
|
]
|
|
}
|