Skip to content

Commit 9540b1d

Browse files
Initial commit
0 parents  commit 9540b1d

24 files changed

Lines changed: 738 additions & 0 deletions

File tree

‎.cursor-plugin/marketplace.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "cursor-plugin-starters",
3+
"owner": {
4+
"name": "Your Org",
5+
"email": "plugins@example.com"
6+
},
7+
"metadata": {
8+
"description": "Starter marketplace template for Cursor plugins",
9+
"version": "0.1.0",
10+
"pluginRoot": "plugins"
11+
},
12+
"plugins": [
13+
{
14+
"name": "starter-simple",
15+
"source": "./plugins/starter-simple",
16+
"description": "Minimal plugin with rules and skills only"
17+
},
18+
{
19+
"name": "starter-advanced",
20+
"source": "./plugins/starter-advanced",
21+
"description": "Full-featured plugin with rules, skills, agents, commands, hooks, and MCP"
22+
}
23+
]
24+
}

‎.cursor/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
plans/

‎.gitignore‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Environment and secrets
2+
.env
3+
.env.*
4+
!.env.example
5+
6+
# OS and editor
7+
.DS_Store
8+
*.swp
9+
*.swo
10+
11+
# Logs and temp
12+
*.log
13+
tmp/
14+
temp/

‎README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Cursor plugin template
2+
3+
Build and publish Cursor Marketplace plugins from a single repo.
4+
5+
Two starter plugins are included:
6+
7+
- **starter-simple**: rules and skills only
8+
- **starter-advanced**: rules, skills, agents, commands, hooks, MCP, and scripts
9+
10+
## Getting started
11+
12+
[Use this template](https://github.com/cursor/plugin-template/generate) to create a new repository, then customize:
13+
14+
1. `.cursor-plugin/marketplace.json`: set marketplace `name`, `owner`, and `metadata`.
15+
2. `plugins/*/.cursor-plugin/plugin.json`: set `name` (lowercase kebab-case), `displayName`, `author`, `description`, `keywords`, `license`, and `version`.
16+
3. Replace placeholder rules, skills, agents, commands, hooks, scripts, and logos.
17+
18+
To add more plugins, see `docs/add-a-plugin.md`.
19+
20+
## Single plugin vs multi-plugin
21+
22+
This template defaults to **multi-plugin** (multiple plugins in one repo).
23+
24+
For a **single plugin**, move your plugin folder contents to the repository root, keep one `.cursor-plugin/plugin.json`, and remove `.cursor-plugin/marketplace.json`.
25+
26+
## Submission checklist
27+
28+
- Each plugin has a valid `.cursor-plugin/plugin.json`.
29+
- Plugin names are unique, lowercase, and kebab-case.
30+
- `.cursor-plugin/marketplace.json` entries map to real plugin folders.
31+
- All frontmatter metadata is present in rule, skill, agent, and command files.
32+
- Logos are committed and referenced with relative paths.
33+
- `node scripts/validate-template.mjs` passes.
34+
- Repository link is ready for submission to the Cursor team (Slack or `kniparko@anysphere.com`).

‎docs/add-a-plugin.md‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Add a plugin
2+
3+
Add a new plugin under `plugins/` and register it in `.cursor-plugin/marketplace.json`.
4+
5+
## 1. Create plugin directory
6+
7+
Create a new folder:
8+
9+
```text
10+
plugins/my-new-plugin/
11+
```
12+
13+
Add the required manifest:
14+
15+
```text
16+
plugins/my-new-plugin/.cursor-plugin/plugin.json
17+
```
18+
19+
Example manifest:
20+
21+
```json
22+
{
23+
"name": "my-new-plugin",
24+
"displayName": "My New Plugin",
25+
"version": "0.1.0",
26+
"description": "Describe what this plugin does",
27+
"author": {
28+
"name": "Your Org"
29+
},
30+
"logo": "assets/logo.svg"
31+
}
32+
```
33+
34+
## 2. Add plugin components
35+
36+
Add only the components you need:
37+
38+
- `rules/` with `.mdc` files (YAML frontmatter required)
39+
- `skills/<skill-name>/SKILL.md` (YAML frontmatter required)
40+
- `agents/*.md` (YAML frontmatter required)
41+
- `commands/*.(md|mdc|markdown|txt)` (frontmatter recommended)
42+
- `hooks/hooks.json` and `scripts/*` for automation hooks
43+
- `mcp.json` for MCP server definitions
44+
- `assets/logo.svg` for marketplace display
45+
46+
## 3. Register in marketplace manifest
47+
48+
Edit `.cursor-plugin/marketplace.json` and append a new entry:
49+
50+
```json
51+
{
52+
"name": "my-new-plugin",
53+
"source": "./plugins/my-new-plugin",
54+
"description": "Describe your plugin"
55+
}
56+
```
57+
58+
`source` is the relative path from the repository root to the plugin folder.
59+
60+
## 4. Validate
61+
62+
```bash
63+
node scripts/validate-template.mjs
64+
```
65+
66+
Fix all reported errors before committing.
67+
68+
## 5. Common pitfalls
69+
70+
- Plugin `name` not kebab-case.
71+
- `source` path in marketplace manifest does not match folder name.
72+
- Missing `.cursor-plugin/plugin.json` in plugin folder.
73+
- Missing frontmatter keys (`name`, `description`) in skills, agents, or commands.
74+
- Rule files missing frontmatter `description`.
75+
- Broken relative paths for `logo`, `hooks`, or `mcpServers` in manifest files.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "starter-advanced",
3+
"displayName": "Advanced Starter",
4+
"version": "0.1.0",
5+
"description": "Full-featured Cursor plugin starter with rules, skills, agents, commands, hooks, and MCP.",
6+
"author": {
7+
"name": "Your Org",
8+
"email": "plugins@example.com"
9+
},
10+
"license": "MIT",
11+
"keywords": ["cursor", "plugin", "rules", "skills", "agents", "commands", "hooks", "mcp"],
12+
"logo": "assets/logo.svg"
13+
}

‎plugins/starter-advanced/README.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# starter-advanced
2+
3+
Full-featured Cursor plugin starter.
4+
5+
## Included
6+
7+
- `rules/`: coding standards and review checklist
8+
- `skills/code-reviewer/`: code review skill
9+
- `agents/`: security reviewer agent
10+
- `commands/`: deploy-staging command
11+
- `hooks/hooks.json`: hook definitions
12+
- `scripts/`: hook script placeholders
13+
- `mcp.json`: MCP server config
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: security-reviewer
3+
description: Security-focused reviewer that checks for common vulnerabilities and unsafe defaults.
4+
---
5+
6+
# Security reviewer
7+
8+
You are a security-focused reviewer. Prioritize concrete, high-impact findings.
9+
10+
## Review focus
11+
12+
1. Injection risks in SQL, shell commands, and rendered HTML content.
13+
2. Sensitive data handling (tokens, credentials, personal data).
14+
3. Authentication and authorization checks on privileged operations.
15+
4. Safe defaults in configuration and network-facing behavior.
16+
5. Dependency and supply-chain hygiene where relevant.
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: deploy-staging
3+
description: Deploy the current branch to the staging environment after validation.
4+
---
5+
6+
# Deploy to staging
7+
8+
1. Run project validation checks and tests.
9+
2. Build artifacts for the target environment.
10+
3. Publish or deploy to staging.
11+
4. Run smoke checks and report status.

0 commit comments

Comments
 (0)