create-rule

Create CURSOR rules with YAML frontmatter in .cursor/rules/.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/shankur/dots --skill create-rule-shankur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/shankur/dots/tree/main/dot_cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/shankur/dots --skill create-rule-shankur

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists in crafting rules for the Cursor AI, providing guidance and conventions for persistent AI interaction.

Core Features & Use Cases

  • Rule Creation: Generate rules to enforce coding standards, project conventions, and file-specific patterns.
  • File-specific Patterns: Configure rules for specific files using glob patterns.
  • Always Apply: Set up universal standards that apply across all sessions.

Quick Start

Use the create-rule skill to set up a rule for TypeScript standards on all TypeScript files.

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 coding standards in Cursor?

To create persistent AI coding standards in Cursor, you generate YAML frontmatter rule files within the .cursor/rules/ directory, enforcing project conventions consistently across all AI interactions.

What is the best way to enforce file-specific project conventions for AI responses?

Enforcing file-specific project conventions is achieved by configuring Cursor rules with glob patterns, targeting specific file types to ensure the AI applies the correct coding standards only where needed.

Can I set up universal coding standards that apply to all Cursor AI sessions?

Yes, you can set up universal coding standards by using the Always Apply feature when creating your Cursor rules, ensuring your project conventions are enforced across every AI session.

Does creating Cursor rules require manual YAML file setup?

Yes, creating Cursor rules requires manual setup of YAML files in the .cursor/rules/ directory to define the frontmatter and configuration needed for your AI guidance.

How do Cursor rules improve AI guidance for development environments?

Cursor rules improve AI guidance by storing persistent project conventions and coding standards, ensuring the AI consistently follows your specific file patterns and development standards across interactions.