mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
bbb10da31d
- 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>
Cursor Plugins
This directory contains official plugins for Cursor.
Plugin Structure
Each plugin follows a standard structure:
plugin-name/
├── .cursor/
│ └── plugin.json # Plugin manifest (required)
├── README.md # Plugin documentation
├── rules/ # Cursor rules (.mdc files)
├── agents/ # Subagents (markdown files)
├── skills/ # Agent skills (directories with SKILL.md)
├── hooks/
│ └── hooks.json # Hook configuration
├── mcp.json # MCP server definitions (optional)
├── extensions/ # VS Code extensions (.vsix files)
├── scripts/ # Utility scripts for hooks
├── LICENSE
└── CHANGELOG.md
Plugin Components
| Component | Location | Purpose |
|---|---|---|
| Manifest | .cursor/plugin.json |
Required metadata file |
| Rules | rules/ |
Cursor rules (.mdc files) |
| Agents | agents/ |
Subagent Markdown files |
| Skills | skills/ |
Agent Skills with SKILL.md files |
| Hooks | hooks/hooks.json |
Hook configuration |
| MCP servers | mcp.json |
MCP server definitions |
| Extensions | extensions/ |
VS Code extension bundles (.vsix files) |
Creating a Plugin
- Create a new directory under
plugins/ - Add a
.cursor/plugin.jsonmanifest file - Add your components (rules, agents, skills, hooks, etc.)
- Add a
README.mddocumenting your plugin
See the boilerplate directory for a complete example.
Plugin Manifest
The .cursor/plugin.json manifest is required and defines your plugin's metadata:
{
"name": "my-plugin",
"version": "1.0.0",
"description": "A brief description of what your plugin does",
"author": {
"name": "Your Name",
"email": "you@example.com"
},
"license": "MIT",
"keywords": ["example"],
"agents": "./agents/",
"skills": "./skills/",
"rules": "./rules/",
"hooks": "./hooks/hooks.json",
"mcpServers": "./mcp.json",
"extensions": "./extensions/"
}
Available Plugins
| Plugin | Description |
|---|---|
boilerplate |
Complete example plugin demonstrating all components |
Installation
Plugins can be installed via CLI:
agent install <plugin-name>
Or from a marketplace:
agent install <plugin-name>@<marketplace>
Contributing
When adding a new plugin:
- Follow the standard directory structure
- Include a comprehensive README.md
- Use semantic versioning (MAJOR.MINOR.PATCH)
- Include a LICENSE file
- Test your plugin thoroughly before submitting