create-rule

Create persistent Cursor rules with YAML frontmatter in .cursor/rules/.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/caezium/skills --skill create-rule-caezium
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/caezium/skills/tree/main/create-rule
Command: npx skills add https://github.com/caezium/skills --skill create-rule-caezium

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach to creating and enforcing persistent Cursor rules that guide AI behavior across projects, ensuring consistent guidance and behavior.

Core Features & Use Cases

  • Create Cursor rules in .cursor/rules/ to provide persistent context for the AI agent.
  • Enforce coding standards, project conventions, and file-pattern guidelines across teams.
  • Use Case: when starting a new project, generate a RULE.md and related rule files to codify expectations and guardrails.

Quick Start

Instruct the AI to generate a new Cursor rule set for a given project, including the rule filename and frontmatter.

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 Cursor rules to guide AI behavior across my project?

To create persistent Cursor rules, generate rule files in the .cursor/rules/ directory using YAML frontmatter for name and description. This standardizes coding standards and file patterns, providing durable context for the AI agent across projects.

What are Cursor rule files and when do I need them for AI guidance?

Cursor rule files are persistent context documents stored in .cursor/rules/ that enforce project conventions and coding standards. You need them when starting a new project or codifying expectations to ensure consistent AI behavior across your codebase.

Does the Cursor rules format require specific frontmatter or repository layout?

Yes, Cursor rules require YAML frontmatter with name and description fields. The repository layout supports optional scripts, references, and assets directories alongside the core rule files to structure your project conventions effectively.

What's the best way to enforce coding standards and project conventions with AI agents?

The best way to enforce coding standards is to define durable Cursor rules with file-pattern guidelines. By generating a RULE.md and related files in .cursor/rules/, you codify expectations and guardrails that standardize AI behavior across teams.

Can I include scripts and references when defining project conventions in Cursor?

Yes, you can include optional scripts, references, and assets directories when defining Cursor rules. This repository layout structure allows you to provide comprehensive project conventions and file-pattern guidelines alongside the rule files.