-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add Cursor runtime support (multi-format manifests + scaffold skill) #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
53035c3
feat(skills): rename plugin-builder to claude-code-plugin-builder; ad…
amondnet 11eceb5
feat(multi-format): generate cursor (.cursor-plugin) manifests and ma…
amondnet e81cf66
chore: apply AI code review suggestions
amondnet 0ea1ee7
chore: apply review suggestions for plugin branding
amondnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| --- | ||
| name: create-plugin-scaffold | ||
| description: Create a new Cursor plugin scaffold with a valid manifest, component directories, and marketplace wiring. Use when starting a new plugin or adding a plugin to a multi-plugin repository. | ||
| --- | ||
|
|
||
| # Create plugin scaffold | ||
|
|
||
| ## Trigger | ||
|
|
||
| You need to create a new Cursor plugin from scratch and make it ready for local use or marketplace submission. | ||
|
|
||
| ## Required Inputs | ||
|
|
||
| - Plugin name (lowercase kebab-case) | ||
| - Plugin purpose and target users | ||
| - Component set to include (`rules`, `skills`, `agents`, `commands`, `hooks`, `mcpServers`) | ||
| - Repository style (`single-plugin` or `multi-plugin marketplace`) | ||
|
|
||
| ## Output Location | ||
|
|
||
| By default, create the plugin inside the user's local plugin directory: | ||
|
|
||
| ``` | ||
| ~/.cursor/plugins/local/<plugin-name>/ | ||
| ``` | ||
|
|
||
| This path makes the plugin immediately available to Cursor without any install step. If the user explicitly asks to create the plugin elsewhere (e.g. inside an existing repo or a specific directory), respect that choice instead. | ||
|
|
||
| ## Workflow | ||
|
|
||
| 1. Validate plugin name format: lowercase kebab-case, starts and ends with an alphanumeric character. | ||
| 2. Determine the target directory: | ||
| - Default: `~/.cursor/plugins/local/<plugin-name>/` | ||
| - Override: use the path the user specifies, if any. | ||
| - Create the directory (and parents) if it does not exist. | ||
| 3. Create base files inside the target directory: | ||
| - `.cursor-plugin/plugin.json` | ||
| - `README.md` | ||
| - `LICENSE` | ||
| - optional `CHANGELOG.md` | ||
| 4. Populate `plugin.json`: | ||
| - Required: `name` | ||
| - Recommended: `version`, `description`, `author`, `license`, `keywords` | ||
| - Add explicit component paths only when non-default discovery is needed. | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| 5. Create component files with valid frontmatter: | ||
|
amondnet marked this conversation as resolved.
|
||
| - Rules: `.mdc` with `description`, `alwaysApply`, optional `globs` | ||
| - Skills: `skills/<skill-name>/SKILL.md` with `name`, `description` | ||
| - Agents: `agents/*.md` with `name`, `description` | ||
| - Commands: `commands/*.(md|txt)` with `name`, `description` | ||
| 6. If repository uses `.cursor-plugin/marketplace.json`, add plugin entry: | ||
| - `name` | ||
| - `source` | ||
| - optional metadata (`description`, `keywords`, `category`, `tags`) | ||
| 7. Ensure all manifest paths are relative, valid, and do not use absolute paths or parent traversal. | ||
|
|
||
| ## Guardrails | ||
|
|
||
| - Keep the plugin focused on one use case. | ||
| - Prefer concise, actionable skill and rule text over long prose. | ||
| - Do not reference files that do not exist. | ||
| - Use folder discovery defaults unless custom paths are required. | ||
| - Always save to `~/.cursor/plugins/local/<plugin-name>/` unless the user provides a different path. | ||
|
|
||
| ## Output | ||
|
|
||
| - Created file tree for the plugin (with full path to the output directory) | ||
| - Final `plugin.json` | ||
| - Marketplace entry (if applicable) | ||
| - Short validation report of required fields and component metadata | ||
| - Confirmation that the plugin is saved under `~/.cursor/plugins/local/` and ready for use | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.claude/skills/plugin-builder/SKILL.md → ...kills/claude-code-plugin-builder/SKILL.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../.agents/skills/create-plugin-scaffold |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.