create-rule

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

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cuongnm-dev/team-ai-config --skill create-rule-cuongnm-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/cuongnm-dev/team-ai-config/tree/main/cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/cuongnm-dev/team-ai-config --skill create-rule-cuongnm-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create project rules in .cursor/rules/ to provide persistent context for the AI agent.

Core Features & Use Cases

  • Create and manage rules that govern AI behavior across projects.
  • Enforce coding standards, conventions, and file-pattern guidance in Cursor workflows.
  • Use across software engineering tasks to maintain consistent AI interactions and project practices.

Quick Start

Create one or more rules in .cursor/rules/ to enforce your chosen project standards.

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 enforce coding standards?

To create persistent Cursor rules, you define project conventions in .cursor/rules/ using YAML frontmatter and .mdc templates. This enforces coding standards by guiding AI behavior deterministically across your software engineering workflows.

What are .cursor rules and when do I need them for AI guidance?

Cursor rules are persistent context files stored in .cursor/rules/ that govern AI agent behavior. You need them when you want to consistently enforce project standards, file patterns, and documentation guidelines across AI interactions.

How do I set up rule file formats with .mdc templates in Cursor?

Setting up rule file formats involves creating .mdc templates in the .cursor/rules/ directory. These templates use YAML frontmatter driven by SKILL.md to define the rule's description and scope for deterministic application within the Cursor environment.

Can I use Cursor rules to manage file patterns and project conventions?

Yes, you can use Cursor rules to manage file patterns and project conventions. By creating rules in .cursor/rules/, you provide persistent context that shapes when and how the AI agent acts, enforcing your specific coding standards.

What is the best way to maintain consistent AI interactions in software engineering projects?

The best way to maintain consistent AI interactions is by creating persistent rules in .cursor/rules/. This approach uses YAML frontmatter to define rule scope and description, ensuring the AI agent consistently applies your project's coding standards and conventions.

Do I need YAML frontmatter to define rule scope in Cursor?

Yes, YAML frontmatter is required to define rule scope in Cursor. Driven by SKILL.md, the frontmatter specifies the description and scope of the rule, enabling the Cursor environment to apply project conventions deterministically.