create-rule

Create Cursor IDE rule files with YAML frontmatter and glob patterns.

3|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/ArangoGutierrez/claude-toolkit --skill create-rule-arangogutierrez
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/ArangoGutierrez/claude-toolkit/tree/main/.cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/ArangoGutierrez/claude-toolkit --skill create-rule-arangogutierrez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing persistent AI guidance for Cursor IDE requires knowing the exact .mdc file format, frontmatter fields, and glob scoping rules, which is easy to get wrong without a reference. ## Core Features & Use Cases - Rule File Generation: Produces .mdc rule files in .cursor/rules/ with correct description, globs, and alwaysApply frontmatter. - Scope Configuration: Guides the choice between always-apply rules and file-pattern-scoped rules using glob patterns like **/*.ts. - Use Case: A team wants TypeScript error-handling standards enforced in every AI session; the Skill asks clarifying questions about scope, then writes a concise rule file with concrete good and bad code examples. ## Quick Start Ask the assistant to create a Cursor rule that enforces your TypeScript error handling standards for all .ts 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 a Cursor rule for my project?▼

Create a .mdc file in the .cursor/rules/ directory with YAML frontmatter containing a description, optional globs pattern, and alwaysApply flag. The markdown body below the frontmatter holds the actual rule content the AI follows.

What is the difference between alwaysApply and globs in Cursor rules?▼

alwaysApply: true makes the rule active in every session regardless of context. globs restricts the rule to matching file patterns like **/*.ts, so it only applies when those files are being worked on.

Where are Cursor rules stored in a project?▼

Cursor rules are stored as .mdc files inside the .cursor/rules/ directory at the project root. Each file represents one focused rule with its own frontmatter configuration.

How long should a Cursor rule file be?▼

Rules should stay concise, ideally under 50 lines and never above 500 lines. Each rule should cover one concern, read like clear internal documentation, and include concrete examples of correct and incorrect patterns.

Can I create multiple Cursor rules for different topics?▼

Yes, splitting guidance into multiple focused .mdc files is recommended over one large rule. Create separate files for distinct concerns such as TypeScript standards, React patterns, and API conventions.