Create plugin scaffold

From cursor/plugins · View interactive version

Create plugin scaffold is an AI agent skill from the GitHub repository cursor/plugins. 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.

How to use this skill

Skill file

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

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:
  1. Create base files inside the target directory:
  1. Populate plugin.json:
  1. Create component files with valid frontmatter:
  1. If repository uses .cursor-plugin/marketplace.json, add plugin entry:
  1. Ensure all manifest paths are relative, valid, and do not use absolute paths or parent traversal.

Guardrails

Output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.