RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/stvmachine/arr-config

Cursor rule

.cursor/rules/999-mdc-format.mdc

Use when user asks to create or update *.mdc files

Cursor rules

Quality

73/100

Scores the file, not the repository.

Length

665 words

16 headings · 5 code blocks

Repository

1

— · pushed 196 days ago

Last changed

3 days ago

First indexed 3 days ago.
stvmachine/arr-config/.cursor/rules/999-mdc-format.mdcRawGitHub
1---
2description: Use when user asks to create or update *.mdc files
3globs: **/*.mdc
4alwaysApply: false
5---
6# MDC File Format Guide
7 
8MDC (Markdown Configuration) files are used by Cursor to provide context-specific instructions to AI assistants. This guide explains how to create and maintain these files properly.
9 
10## File Structure
11 
12Each MDC file consists of two main parts:
13 
141. **Frontmatter** - Configuration metadata at the top of the file
152. **Markdown Content** - The actual instructions in Markdown format
16 
17### Frontmatter
18 
19The frontmatter must be the first thing in the file and must be enclosed between triple-dash lines (`---`). Configuration should be based on the intended behavior:
20 
21```
22---
23description: Brief description of what the rule does
24globs: **/*.ts, **/*.ts # Optional: Comma-separated list, not an array
25alwaysApply: false # Set to true for global rules
26---
27```
28 
29> **Important**: Despite the appearance, the frontmatter is not strictly YAML formatted. The `globs` field is a comma-separated list and should NOT include brackets `[]` or quotes `"`.
30 
31#### Guidelines for Setting Fields
32 
33- **description**: Should be agent-friendly and clearly describe when the rule is relevant. Format as `<topic>: <details>` for best results.
34- **globs**:
35 - If a rule is only relevant in very specific situations, leave globs empty so it's loaded only when applicable to the user request.
36 - If the only glob would match all files (like `**/*`), leave it empty and set `alwaysApply: true` instead.
37 - Otherwise, be as specific as possible with glob patterns to ensure rules are only applied with relevant files.
38- **alwaysApply**: Use sparingly for truly global guidelines.
39 
40#### Glob Pattern Examples
41 
42- `**/*.js` - All JavaScript files
43- `src/**/*.jsx` - All JSX files in the src directory
44- `**/components/**/*.vue` - All Vue files in any components directory
45 
46### Markdown Content
47 
48After the frontmatter, the rest of the file should be valid Markdown:
49 
50```markdown
51# Title of Your Rule
52 
53## Section 1
54- Guidelines and information
55- Code examples
56 
57## Section 2
58More detailed information...
59```
60 
61## Special Features
62 
63### File References
64 
65You can reference other files from within an MDC file using the markdown link syntax:
66 
67```
68[rule-name.mdc](mdc:location/of/the/rule.mdc)
69```
70 
71When this rule is activated, the referenced file will also be included in the context.
72 
73### Code Blocks
74 
75Use fenced code blocks for examples:
76 
77```markdown
78```javascript
79// Example code
80function example() {
81 return "This is an example";
82}
83```
84```
85 
86## Best Practices
87 
881. **Clear Organization**
89 - Use numbered prefixes (e.g., `01-workflow.mdc`) for sorting rules logically
90 - Place task-specific rules in the `tasks/` subdirectory
91 - Use descriptive filenames that indicate the rule's purpose
92 
932. **Frontmatter Specificity**
94 - Be specific with glob patterns to ensure rules are only applied in relevant contexts
95 - Use `alwaysApply: true` for truly global guidelines
96 - Make descriptions clear and concise so AI knows when to apply the rule
97 
983. **Content Structure**
99 - Start with a clear title (H1)
100 - Use hierarchical headings (H2, H3, etc.) to organize content
101 - Include examples where appropriate
102 - Keep instructions clear and actionable
103 
1044. **File Size Considerations**
105 - Keep files focused on a single topic or closely related topics
106 - Split very large rule sets into multiple files and link them with references
107 - Aim for under 300 lines per file when possible
108 
109## Usage in Cursor
110 
111When working with files in Cursor, rules are automatically applied when:
112 
1131. The file you're working on matches a rule's glob pattern
1142. A rule has `alwaysApply: true` set in its frontmatter
1153. The agent thinks the rule's description matches the user request
1164. You explicitly reference a rule in a conversation with Cursor's AI
117 
118## Creating/Renaming/Removing Rules
119 
120- When a rule file is added/renamed/removed, update also the list under [010-workflow.mdc](mdc:.cursor/rules/010-workflow.mdc).
121- When changes are made to multiple `mdc` files from a single request, review also [999-mdc-format.mdc](mdc:.cursor/rules/999-mdc-format.mdc) to consider whether to update it too.
122 
123## Updating Rules
124 
125When updating existing rules:
126 
1271. Maintain the frontmatter format
1282. Keep the same glob patterns unless intentionally changing the rule's scope
1293. Update the description if the purpose of the rule changes
1304. Consider whether changes should propagate to related rules
131 
132```

Sections

  • MDC File Format Guide
  • File Structure
  • Frontmatter
  • Markdown Content
  • Title of Your Rule
  • Section 1
  • Section 2
  • Special Features
  • File References
  • Code Blocks
  • Best Practices
  • Usage in Cursor
  • Creating/Renaming/Removing Rules
  • Updating Rules

What it covers

lint-formatcode-stylearchitecturedo-notagent-behaviour

Stack — with the evidence

shell

(0.80)

docker

(0.60)

github-actions

(0.60)

Glob targeting

  • **/*.mdc

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
stvmachine
Language
—
License
—
Archived
no

All configs in this repo

Also in stvmachine/arr-config

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
stvmachine/arr-config.cursor/rules/010-workflow.mdc · 1Cursor rulesshelldocker+1gitdo-notagent-behaviour46/1003 days ago
stvmachine/arr-config.cursor/rules/011-conventional-commits.mdc · 1Cursor rulesshelldocker+1typesgit45/1003 days ago
stvmachine/arr-config.cursor/rules/012-minimal-code-changes.mdc · 1Cursor rulesshelldocker+1no sections4/1003 days ago
stvmachine/arr-config.cursor/rules/030-bug-handling.mdc · 1Cursor rulesshelldocker+1no sections16/1003 days ago
stvmachine/arr-config.cursor/rules/040-python-style.mdc · 1Cursor rulesshelldocker+1style20/1003 days ago
stvmachine/arr-config.cursor/rules/050-docker-compose.mdc · 1Cursor rulesshelldocker+1no sections16/1003 days ago
stvmachine/arr-config.cursor/rules/070-best-practices.mdc · 1Cursor rulesshelldocker+1stylesecuritydo-not27/1003 days ago
stvmachine/arr-config.cursor/rules/080-common-tasks.mdc · 1Cursor rulesshelldocker+1no sections25/1003 days ago
Diff against .cursor/rules/010-workflow.mdc Diff against .cursor/rules/011-conventional-commits.mdc Diff against .cursor/rules/012-minimal-code-changes.mdc Diff against .cursor/rules/030-bug-handling.mdc Diff against .cursor/rules/040-python-style.mdc Diff against .cursor/rules/050-docker-compose.mdc Diff against .cursor/rules/070-best-practices.mdc Diff against .cursor/rules/080-common-tasks.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49Cursor rulestypescriptcypress+14setupbuildteststyle+496/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126Cursor rulesgobiome+4buildlint-formatstylearch+396/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack