create-rule

Create and manage Cursor rules in .curs/rules with YAML frontmatter.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/pohlai88/AFENDA-NEXUS --skill create-rule-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/pohlai88/AFENDA-NEXUS/tree/main/.agents/skills/create-rule
Command: npx skills add https://github.com/pohlai88/AFENDA-NEXUS --skill create-rule-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Create Cursor rules in .cursor/rules/ to provide persistent context for the AI agent.
  • Define rule file formats (.mdc) and the YAML frontmatter needed for rules stored in .cursor/rules/.
  • Manage project standards and conventions; reference AGENTS.md for broader governance.

Quick Start

Create a new rule in .cursor/rules by describing its purpose and file patterns.

Frequently Asked Questions about create-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Cursor rules to enforce persistent coding standards?

You create Cursor rules by generating .mdc files with YAML frontmatter under .cursor/rules/ to provide persistent AI guidance and codify project conventions across software projects.

What is the required format for rule files stored in .cursor/rules?

Rule files must use the .mdc format and include YAML frontmatter containing both a name and description to properly define persistent AI context for the Cursor agent.

How do I manage project conventions and reference AGENTS.md for AI guidance?

Manage project conventions by creating targeted rules in .cursor/rules/ and reference AGENTS.md within those files to establish broader governance and persistent AI context.

Can I define file-pattern rules to trigger specific AI guidance automatically?

Yes, you can define file-pattern rules within .cursor/rules/ by describing the rule purpose and matching file patterns, ensuring the AI agent applies the correct context.

Does this approach support organizing multiple rule files for different project areas?

Yes, this approach organizes resources under the .cursor/rules/ directory, allowing you to create multiple distinct .mdc rule files to manage different standards and file patterns.