create-rule

Create custom Cursor IDE rules with YAML frontmatter and Markdown content.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zapabob/Skills --skill create-rule-zapabob
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/zapabob/Skills/tree/main/registry/skills/create-rule/variants/cursor-rules
Command: npx skills add https://github.com/zapabob/Skills --skill create-rule-zapabob

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of persistent AI guidance within the Cursor IDE by defining project-specific rules, coding standards, and conventions.

Core Features & Use Cases

  • Rule Definition: Create .mdc files with YAML frontmatter to define rules.
  • Scope Management: Specify whether rules apply universally (alwaysApply: true) or to specific file patterns (globs).
  • Use Case: You want to enforce a consistent React component structure across your project. You can create a rule that applies to all .tsx files, providing examples and best practices for component creation.

Quick Start

Use the create-rule skill to define a new rule for all TypeScript files in the project.

Frequently Asked Questions about create-rule

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

FAQPage Schema
How do I create persistent AI guidance rules for the Cursor IDE?

You can create persistent AI guidance rules for Cursor by defining custom rules using .mdc files with YAML frontmatter and Markdown content to enforce project-specific coding standards and conventions.

How do I scope Cursor rules to specific file types like React components?

You scope Cursor rules to specific file types by defining globs in the rule configuration, such as targeting all .tsx files to enforce a consistent React component structure across your project.

Can I make a Cursor rule apply to every file in my project?

Yes, you can make a Cursor rule apply universally across your project by setting the alwaysApply option to true in the rule's YAML frontmatter configuration.

What is the best way to enforce consistent coding standards in Cursor?

The best way to enforce consistent coding standards in Cursor is by creating custom rule files that specify project conventions, providing examples and best practices for AI behavior during component creation.

What format do Cursor rules use to define project conventions?

Cursor rules use .mdc files consisting of YAML frontmatter to specify application scope and Markdown content to define the actual coding standards and project-specific AI guidance.