Skip to content

Commit fd1d127

Browse files
committed
chore: align plugin manifest with Cursor examples
Declare the rules directory in plugin.json and enforce it in validation so the package layout matches Cursor's published plugin patterns. Made-with: Cursor
1 parent 3d82095 commit fd1d127

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.cursor-plugin/plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"mcp",
3333
"api"
3434
],
35+
"rules": "./rules/",
3536
"skills": "./skills/",
3637
"mcpServers": "./mcp.json"
3738
}

scripts/validate-plugin.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ try {
5757
plugin.skills === "./skills/",
5858
"Plugin must expose the skills directory with an explicit relative path",
5959
);
60+
assert(
61+
plugin.rules === "./rules/",
62+
"Plugin must expose the rules directory with an explicit relative path",
63+
);
6064
assert(exists(plugin.logo), `Missing logo file: ${plugin.logo}`);
6165

6266
assert(

0 commit comments

Comments
 (0)