create-rule

Create persistent Cursor rules with YAML frontmatter and glob patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you turn recurring coding guidance into persistent Cursor rules so the AI follows your project conventions consistently instead of relying on repeated reminders.

Core Features & Use Cases

  • Rule creation: Draft new .mdc rules for coding standards, workflow expectations, and project-specific behavior.
  • Scope handling: Determine whether a rule should apply globally or only to selected file patterns.
  • Conventions and policy capture: Convert discussions about architecture, formatting, naming, or review practices into reusable guidance.
  • Use case: If a team wants every TypeScript file to follow the same patterns, this Skill helps create a focused rule that enforces that expectation across future sessions.

Quick Start

Ask me to create a Cursor rule for your project and I will draft the rule content with the right scope, file patterns, 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 for coding conventions?

Persistent Cursor rules are created by drafting .mdc files with YAML frontmatter to define project conventions, scope, and matching glob patterns for AI guidance. This ensures the AI follows your standards consistently without repeated reminders.

What is the best way to enforce file-specific patterns in Cursor?

To enforce file-specific patterns in Cursor, you create .mdc rules with explicit scope and matching glob patterns. This targets only selected file types, like TypeScript files, ensuring the AI applies the correct conventions only where needed.

How do I capture architecture decisions as reusable AI guidance?

You capture architecture decisions as reusable AI guidance by converting discussions on formatting, naming, and review practices into persistent .mdc rules or AGENTS.md style files. This transforms recurring coding guidance into durable instructions.

When should I use global versus scoped .cursor rules?

Use global .cursor rules for project-wide conventions, and scoped rules with matching glob patterns when specificity is needed for certain file types. Scoped rules ensure file-specific patterns are enforced only where applicable.

Can I write AGENTS.md style instructions using .mdc files?

Yes, you can author AGENTS.md or RULE.md style persistent instructions by generating .mdc files with YAML frontmatter. These files provide durable AI guidance and project-specific behavior for coding standards and workflow expectations.