creating-cursor-commands

Create schema-compliant Cursor slash commands as frontmatter-free Markdown.

121|16|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/pr-pm/prpm --skill creating-cursor-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-cursor-commands
Source: https://github.com/pr-pm/prpm/tree/main/.claude/skills/creating-cursor-commands
Command: npx skills add https://github.com/pr-pm/prpm --skill creating-cursor-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the guesswork and common mistakes when creating Cursor slash commands, ensuring they work reliably and effectively.

Core Features & Use Cases

  • Best Practices & Validation: Provides expert guidance on command structure, naming conventions, and schema validation.
  • Template Examples: Includes ready-to-use command templates for code review, testing, documentation, and optimization tasks.
  • Use Case: When your team needs to standardize how AI handles code reviews, you can create a /review-code command that follows consistent patterns and produces reliable results.

Quick Start

Use this skill to create a new Cursor slash command for generating unit tests following your project's specific patterns.

Frequently Asked Questions about creating-cursor-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Cursor slash command that follows the required schema?

Cursor slash commands must be plain Markdown files without frontmatter, stored in .cursor/commands with kebab-case filenames. Include a single content field, required examples, and explicit instructions aligned with Cursor's schema to ensure reliable parsing and consistent behavior.

What's the correct format and naming convention for Cursor commands?

Use descriptive kebab-case filenames in the .cursor/commands directory. Commands contain only Markdown content with no metadata, a single content field, and mandatory examples. This structure ensures schema compliance and prevents parsing errors across your team's AI-assisted workflows.

Can I convert an existing prompt into a Cursor slash command?

Yes. Take your prompt, remove any frontmatter, restructure it into a single content field with explicit instructions and examples, then save it as a kebab-case Markdown file in .cursor/commands. Validation against Cursor's schema ensures the converted command works reliably.

Why does my Cursor slash command fail to parse or execute?

Common causes include frontmatter in the file, multiple content fields, missing examples, or non-compliant schema structure. Cursor commands require plain Markdown only, a single content section, descriptive instructions, and required examples—no metadata or formatting deviations.

How do I standardize slash commands across my team?

Apply consistent naming conventions, structure, and schema validation across all commands in .cursor/commands. Define command templates for common tasks like code review and testing, enforce the no-frontmatter rule, and include detailed examples so all team members produce reliable, predictable AI-assisted outputs.