Scaffold and validate a Cursor plugin with cursor/plugins
cursor/plugins is Cursor's official plugin marketplace repo; its create-plugin plugin scaffolds a new plugin, and a schema validator checks the manifests before you submit.
TL;DR
cursor/plugins holds Cursor's official plugins: each is a directory with a .cursor-plugin/plugin.json manifest, listed in one root marketplace file. Install the create-plugin plugin, ask it to scaffold your own, then run the repo's validator to check your manifest against the JSON schema.
Why this repo matters
Per the README, the repo is a multi-plugin marketplace: the root .cursor-plugin/marketplace.json lists every plugin and each plugin carries its own manifest. A plugin can bundle skills, rules, agents, commands, hooks and MCP server definitions. The root manifest currently lists 160 plugins, from developer workflows such as ralph-loop and thermos to third-party integrations such as playwright and github. Reading a few of them is the fastest way to learn what a well-formed plugin looks like.
Best practices
- One focused use case per plugin. The
create-plugin-scaffoldskill says to keep the plugin focused on one use case. - Prefer concise, actionable skill and rule text over long prose (same skill).
- Use folder discovery defaults. Add explicit component paths only when non-default discovery is needed.
- Keep paths relative. The
plugin-quality-gatesrule forbids absolute paths and..traversal, and requires declared paths to match real files. - Give every component frontmatter. Skills need
nameanddescription; rules needdescriptionandalwaysApply. - Document installation and usage in the plugin's
README.md, per the same rule.
How-to
Where do I start?
1. Install the helper plugin
How do I get the scaffolding tools? The create-plugin README gives one command, run inside Cursor:
/add-plugin create-plugin
It adds two skills (create-plugin-scaffold, review-plugin-submission), the plugin-quality-gates rule and a plugin-architect agent.
Next: Scaffold your plugin
Try it
Clone the repo and copy ralph-loop to scratch-plugin/ inside it. Change the manifest name to something uppercase and add an entry with "source": "scratch-plugin" to .cursor-plugin/marketplace.json. Run node scripts/validate-plugins.mjs and read the error: the schema pattern requires lowercase alphanumerics with hyphens and periods. Then delete scratch-plugin/ and revert the marketplace edit.
Pitfalls
- Name mismatches fail validation. The validator errors if the marketplace entry name differs from the
plugin.jsonname. - Differing versions fail too. If a plugin's manifests carry different
versionvalues, validation fails. - Loop plugins need a limit. The
ralph-loopREADME advises always passing--max-iterationsto prevent runaway loops. - Check the license. The README says MIT, but the GitHub API reports no license for the repo, so check each plugin's own
LICENSE.