create-rule

Create and manage .mdc rule files under .cursor/rules/ with YAML frontmatter.

5|2|Updated Jan 10, 2017
One-click install
npx skills add https://github.com/brujack/dotfiles --skill create-rule-brujack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/brujack/dotfiles/tree/main/.cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/brujack/dotfiles --skill create-rule-brujack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams codify and reuse consistent AI behavior by creating formal rules that guide an AI agent across sessions.

Core Features & Use Cases

  • Create and manage rules stored under .cursor/rules/ using .mdc files to describe the policy.
  • Define file-pattern scopes with glob patterns to apply rules selectively.
  • Centralize project conventions, coding standards, and decision prompts to improve consistency.
  • Use the AskQuestion flow to collect missing context and refine rules as conversations progress.

Quick Start

Place a .mdc file in .cursor/rules/ with a clear description and a globs pattern.

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 rules for consistent project guidance in Cursor?

To create persistent AI rules, place a .mdc file with YAML frontmatter inside the .cursor/rules/ directory to define coding standards and project conventions that guide the AI agent across sessions.

What are Cursor rules and how do they enforce project standards?

Cursor rules are .mdc files stored under .cursor/rules/ that codify project conventions and coding standards, enforcing persistent AI behavior by providing formal guidance across development sessions.

How do I apply AI guidance rules to specific file patterns in my project?

You can apply AI guidance rules to specific file patterns by defining glob patterns within the YAML frontmatter of your .mdc rule files, ensuring the rules trigger selectively for matching files.

Do I need YAML frontmatter to define rules in .cursor/rules/ files?

Yes, YAML frontmatter is required in .mdc rule files under .cursor/rules/ to properly define the rule description, scope, and glob patterns for the AI agent to follow.

Can I refine cursor rules dynamically when missing context is detected?

Yes, you can refine cursor rules dynamically by using the AskQuestion flow to collect missing context during conversations, allowing you to iteratively improve project conventions and decision prompts.

What is the best way to manage coding standards for AI agents across multiple sessions?

The best way to manage coding standards for AI agents is to centralize them as .mdc files in .cursor/rules/, using glob patterns to scope file patterns and ensure consistent guidance across sessions.