On-demand loading: Read this skill only when the task clearly matches the description above. Load the references/*.md files only when you need the detailed templates, examples, or catalogs they contain. Do not load for unrelated work.
Manage Cursor Rules
Create, edit, validate, and organize Cursor rules — the .mdc files that provide persistent AI guidance for a project.
When to Use
- The user wants to create a new Cursor rule or coding standard
- An existing rule needs editing while preserving its structure
- A rule's format/metadata/content needs validating
- Rules need organizing, categorizing, or cross-referencing
- The user asks about
.mdc files or the .cursor/rules/ directory
Core Essentials
Every rule is an .mdc file with YAML frontmatter:
---
description: Short description of when/how the rule applies
globs: optional/path/pattern/**/* # limits rule to matching files
alwaysApply: false # true = applies to all files
---
# Rule Title
Guidance, do's and don'ts, good/bad examples, cross-references.
Non-negotiable rules:
- Location: files MUST live in
PROJECT_ROOT/.cursor/rules/ — never the project root, source dirs, or /docs/.
- Naming: kebab-case +
.mdc extension, descriptive (e.g. api-conventions.mdc).
- Scope: one concern per rule. Use
alwaysApply: true for project-wide standards, globs for targeted guidance.
- Descriptions: specific, actionable, context-aware — not vague.
Workflow
Creating a rule
- Determine details — purpose, scope (always vs glob), category.
- Choose scope —
alwaysApply: true or a globs pattern.
- Write a specific description — exactly what it covers and when it applies.
- Structure content — overview, guidelines, good/bad examples, related-rule links.
- Validate against the checklist before saving.
→ Full steps, scope options, and ready-to-use templates: references/templates.md.
Editing a rule
- Read the full rule first (never edit blind).
- Identify the change (examples, scope, description, cross-refs).
- Preserve structure — never remove the frontmatter.
- Re-validate after editing.
→ Detailed editing steps and worked workflows: references/examples.md.
Validating a rule
Check in order: location (.cursor/rules/) → extension (.mdc) → frontmatter delimiters → required fields (description, alwaysApply) → H1 title → fenced code examples.
→ Full structure spec, metadata table, and validation checklist: references/frontmatter-reference.md.
Organizing rules
Group by category (style, architecture, security, docs, testing, meta), use numbered prefixes (00-…99-) for ordering, and cross-reference related rules for discoverability.
→ Categories, naming strategy, and maintenance cadence: references/organizing.md.
Content Quality
- Show good vs bad examples for every guideline.
- Cross-reference project files with the
mdc: protocol, e.g. [auth.service.ts](mdc:src/services/auth.service.ts).
- Keep each rule narrow — one concern.
→ Best practices, anti-patterns, and full worked examples: references/examples.md.
References
references/frontmatter-reference.md — rule structure, required metadata table, file location, naming, validation checklist.
references/templates.md — detailed creation steps, security/style/architecture rule templates, command sequences.
references/examples.md — content best practices, anti-patterns, end-to-end workflow examples, editing steps.
references/organizing.md — rule categories, file-naming strategy, cross-referencing, maintenance schedule.
Source: kscius/KS-Cursor-Orchestrator — distributed by TomeVault.
1---2name: manage-cursor-rules3description: Create, edit, validate, and organize Cursor rules in .cursor/rules/ directory. Use when the user wants to create rules, add coding standards, set up project conventions, configure file-specific patterns, validate rule structure, or asks about .mdc files or .cursor/rules/. Use when this capability is needed.4---56> **On-demand loading:** Read this skill only when the task clearly matches the description above. Load the `references/*.md` files only when you need the detailed templates, examples, or catalogs they contain. Do not load for unrelated work.78# Manage Cursor Rules910Create, edit, validate, and organize Cursor rules — the `.mdc` files that provide persistent AI guidance for a project.1112## When to Use1314- The user wants to create a new Cursor rule or coding standard15- An existing rule needs editing while preserving its structure16- A rule's format/metadata/content needs validating17- Rules need organizing, categorizing, or cross-referencing18- The user asks about `.mdc` files or the `.cursor/rules/` directory1920## Core Essentials2122Every rule is an `.mdc` file with YAML frontmatter:2324```markdown25---26description: Short description of when/how the rule applies27globs: optional/path/pattern/**/* # limits rule to matching files28alwaysApply: false # true = applies to all files29---30# Rule Title3132Guidance, do's and don'ts, good/bad examples, cross-references.33```3435Non-negotiable rules:3637- **Location**: files MUST live in `PROJECT_ROOT/.cursor/rules/` — never the project root, source dirs, or `/docs/`.38- **Naming**: kebab-case + `.mdc` extension, descriptive (e.g. `api-conventions.mdc`).39- **Scope**: one concern per rule. Use `alwaysApply: true` for project-wide standards, `globs` for targeted guidance.40- **Descriptions**: specific, actionable, context-aware — not vague.4142## Workflow4344### Creating a rule45461. **Determine details** — purpose, scope (always vs glob), category.472. **Choose scope** — `alwaysApply: true` or a `globs` pattern.483. **Write a specific description** — exactly what it covers and when it applies.494. **Structure content** — overview, guidelines, good/bad examples, related-rule links.505. **Validate** against the checklist before saving.5152→ Full steps, scope options, and ready-to-use templates: `references/templates.md`.5354### Editing a rule55561. Read the full rule first (never edit blind).572. Identify the change (examples, scope, description, cross-refs).583. Preserve structure — **never** remove the frontmatter.594. Re-validate after editing.6061→ Detailed editing steps and worked workflows: `references/examples.md`.6263### Validating a rule6465Check in order: location (`.cursor/rules/`) → extension (`.mdc`) → frontmatter delimiters → required fields (`description`, `alwaysApply`) → H1 title → fenced code examples.6667→ Full structure spec, metadata table, and validation checklist: `references/frontmatter-reference.md`.6869### Organizing rules7071Group by category (style, architecture, security, docs, testing, meta), use numbered prefixes (`00-`…`99-`) for ordering, and cross-reference related rules for discoverability.7273→ Categories, naming strategy, and maintenance cadence: `references/organizing.md`.7475## Content Quality7677- Show **good vs bad** examples for every guideline.78- Cross-reference project files with the `mdc:` protocol, e.g. `[auth.service.ts](mdc:src/services/auth.service.ts)`.79- Keep each rule narrow — one concern.8081→ Best practices, anti-patterns, and full worked examples: `references/examples.md`.8283## References8485- `references/frontmatter-reference.md` — rule structure, required metadata table, file location, naming, validation checklist.86- `references/templates.md` — detailed creation steps, security/style/architecture rule templates, command sequences.87- `references/examples.md` — content best practices, anti-patterns, end-to-end workflow examples, editing steps.88- `references/organizing.md` — rule categories, file-naming strategy, cross-referencing, maintenance schedule.8990---91> Source: [kscius/KS-Cursor-Orchestrator](https://github.com/kscius/KS-Cursor-Orchestrator) — distributed by [TomeVault](https://tomevault.io).92<!-- tomevault:4.0:skill_md:2026-06-15 -->