create-rule

Create persistent AI guidance rules in `.cursor/rules/` with YAML frontmatter.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Brendon3578/MediaTranscriptKnowledgeRAG --skill create-rule-brendon3578
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/Brendon3578/MediaTranscriptKnowledgeRAG/tree/main/.cursor/skills/create-rule
Command: npx skills add https://github.com/Brendon3578/MediaTranscriptKnowledgeRAG --skill create-rule-brendon3578

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of persistent AI guidance by allowing users to define project-specific rules, coding standards, and file conventions, ensuring consistent AI behavior across sessions.

Core Features & Use Cases

  • Rule Creation: Define rules with descriptions, scope (global or file-specific), and file patterns.
  • Context Persistence: Rules are saved in .cursor/rules/ and provide persistent context to the AI.
  • Use Case: A team lead wants to enforce a new TypeScript coding standard. They use this Skill to create a rule that applies only to .ts files, detailing the new standard and providing examples.

Quick Start

Use the create-rule skill to define a new rule for always applying TypeScript standards to all 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 guidance rules for coding standards in Cursor?

You can create persistent AI guidance rules by defining structured Markdown files with YAML frontmatter in the `.cursor/rules/` directory, specifying rule descriptions, file-specific globs, and global application settings to ensure consistent AI behavior across sessions.

Can I apply project conventions to specific file types like TypeScript files?

Yes, you can apply project conventions to specific file types by defining file-specific globs within the rule configuration, ensuring the AI only enforces coding standards like TypeScript conventions on matching files.

What is the best way to enforce team coding standards consistently across AI sessions?

The best way to enforce team coding standards consistently is to save structured rules in the `.cursor/rules/` directory, providing persistent context to the AI so it follows your project conventions automatically in every session.

How do rule descriptions and file patterns work for AI configuration?

Rule descriptions provide context to the AI, while file patterns use globs to target specific files, allowing you to configure whether a rule applies globally across the project or only to matching file paths.

Do I need any dependencies to set up project conventions using Markdown files?

No dependencies are required to set up project conventions using Markdown files, as the Skill independently creates structured Markdown files with YAML frontmatter in the `.cursor/rules/` directory to establish your rules.