Skip to content

Commit 900ea80

Browse files
committed
Remove optional plugin files
1 parent c3d8122 commit 900ea80

9 files changed

Lines changed: 10 additions & 218 deletions

File tree

.cursor-plugin/marketplace.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.cursor-plugin/plugin.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@
2828
],
2929
"skills": "./skills/",
3030
"agents": "./agents/",
31-
"commands": "./commands/",
32-
"rules": "./rules/"
31+
"commands": "./commands/"
3332
}

CHANGELOG.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ No package install is required for the validator.
2222
## Release Checklist
2323

2424
1. Update `.cursor-plugin/plugin.json` version.
25-
2. Update `CHANGELOG.md`.
26-
3. Run `npm test`.
27-
4. Test local install from `~/.cursor/plugins/local/coderabbit`.
28-
5. Confirm README install and usage steps.
29-
6. Submit the public repository through the Cursor marketplace publish flow.
25+
2. Run `npm test`.
26+
3. Test local install from `~/.cursor/plugins/local/coderabbit`.
27+
4. Confirm README install and usage steps.
28+
5. Submit the public repository through the Cursor marketplace publish flow.

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This repository packages CodeRabbit for Cursor users with:
99
- Natural-language skills for code review and CodeRabbit PR autofix
1010
- Cursor command prompts for repeatable review and autofix workflows
1111
- A dedicated CodeRabbit review agent
12-
- Safety rules and documentation for review output, GitHub PR threads, and local fixes
12+
- Safety guidance for review output, GitHub PR threads, and local fixes
1313

1414
## Requirements
1515

@@ -121,20 +121,16 @@ The plugin does not bulk-apply reviewer prompts. Cursor must inspect the local c
121121
.
122122
+-- .cursor-plugin/
123123
| +-- plugin.json
124-
| +-- marketplace.json
125124
+-- agents/
126125
| +-- code-reviewer.md
127126
+-- commands/
128127
| +-- coderabbit-autofix.md
129128
| +-- coderabbit-review.md
130-
+-- rules/
131-
| +-- coderabbit-safety.mdc
132129
+-- scripts/
133130
| +-- validate-plugin.mjs
134131
+-- skills/
135132
+-- autofix/
136133
| +-- SKILL.md
137-
| +-- github.md
138134
+-- code-review/
139135
+-- SKILL.md
140136
```
@@ -151,8 +147,8 @@ The validator checks:
151147

152148
- Cursor manifest fields
153149
- Manifest component paths
154-
- Marketplace metadata
155-
- Required frontmatter for skills, agents, commands, and rules
150+
- Plugin metadata
151+
- Required frontmatter for skills, agents, and commands
156152
- Accidental em dashes in repository text files
157153

158154
## Publishing

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Do not open a public issue for vulnerabilities, credential exposure, or prompt-i
88

99
## Supported Surface
1010

11-
This plugin packages instructions, commands, rules, and metadata for Cursor. It does not ship a long-running service or store credentials.
11+
This plugin packages instructions, commands, skills, and metadata for Cursor. It does not ship a long-running service or store credentials.
1212

1313
Sensitive operations are delegated to:
1414

rules/coderabbit-safety.mdc

Lines changed: 0 additions & 18 deletions
This file was deleted.

scripts/validate-plugin.mjs

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if (plugin) {
135135
fail(`.cursor-plugin/plugin.json: description must be "${expectedPluginDescription}"`);
136136
}
137137

138-
for (const field of ["logo", "skills", "agents", "commands", "rules"]) {
138+
for (const field of ["logo", "skills", "agents", "commands"]) {
139139
const value = plugin[field];
140140
if (Array.isArray(value)) {
141141
value.forEach((item) => assertPathExists(`.cursor-plugin/plugin.json ${field}`, item));
@@ -145,37 +145,6 @@ if (plugin) {
145145
}
146146
}
147147

148-
const marketplace = readJson(".cursor-plugin/marketplace.json");
149-
if (marketplace) {
150-
if (!marketplace.name) {
151-
fail(".cursor-plugin/marketplace.json: missing name");
152-
}
153-
154-
if (!Array.isArray(marketplace.plugins) || marketplace.plugins.length === 0) {
155-
fail(".cursor-plugin/marketplace.json: plugins must contain at least one plugin");
156-
} else {
157-
if (marketplace.owner?.name !== "CodeRabbit") {
158-
fail('.cursor-plugin/marketplace.json: owner.name must be "CodeRabbit"');
159-
}
160-
161-
if (marketplace.metadata?.description !== expectedPluginDescription) {
162-
fail(`.cursor-plugin/marketplace.json: metadata.description must be "${expectedPluginDescription}"`);
163-
}
164-
165-
for (const entry of marketplace.plugins) {
166-
if (!entry.name || !entry.source) {
167-
fail(".cursor-plugin/marketplace.json: each plugin entry needs name and source");
168-
}
169-
if (plugin && entry.name !== plugin.name) {
170-
fail(`.cursor-plugin/marketplace.json: plugin entry ${entry.name} does not match ${plugin.name}`);
171-
}
172-
if (entry.description !== expectedPluginDescription) {
173-
fail(`.cursor-plugin/marketplace.json: plugin entry description must be "${expectedPluginDescription}"`);
174-
}
175-
}
176-
}
177-
}
178-
179148
for (const file of walk("skills").filter((item) => item.endsWith("SKILL.md"))) {
180149
requireFrontmatterFields(file, ["name", "description"]);
181150
}
@@ -188,10 +157,6 @@ for (const file of walk("commands").filter((item) => item.endsWith(".md") || ite
188157
requireFrontmatterFields(file, ["name", "description"]);
189158
}
190159

191-
for (const file of walk("rules").filter((item) => item.endsWith(".mdc"))) {
192-
requireFrontmatterFields(file, ["description", "alwaysApply"]);
193-
}
194-
195160
checkNoEmDashes();
196161

197162
if (failures.length > 0) {

skills/autofix/github.md

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)