Skip to content
Prompt

rundgang2025 — Cursor Rules

by ff6347

AI Summary

A meta-rule guide for creating effective Cursor Project Rules (.mdc files) to provide persistent, project-specific instructions to Cursor's AI. Developers using Cursor will benefit from understanding how to structure rules that improve AI interactions with their codebase.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "rundgang2025 — Cursor Rules" prompt rules to my project.
Repository: https://github.com/ff6347/rundgang2025

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for rundgang2025

Creating Effective Cursor Project Rules

This meta-rule provides comprehensive guidance on creating effective Cursor Project Rules. These are .mdc files stored in your project's .cursor/rules directory that help the AI understand your specific codebase, conventions, and preferences. Following these guidelines will help you create rules that are easily understood by both humans and the AI, leading to more consistent and helpful AI interactions.

What are Cursor Project Rules?

Project Rules are the recommended way to provide persistent, project-specific instructions to Cursor's AI. They live alongside your code (in .cursor/rules/) and are automatically activated when files matching their defined patterns (glob) are referenced in chat or other AI features. Think of them as a structured knowledge base for your project, teaching the AI: • Coding conventions and style guides • Architectural patterns • API usage and interfaces • Domain-specific knowledge • Your personal or team preferences

Rule File Structure

While flexible, a well-structured rule file improves clarity for both humans and the AI. Consider including the following components:

1. YAML Frontmatter (Crucial)

Placement: The YAML frontmatter block (--- ... ---) must be the absolute first content in the file. Any leading spaces, lines, or characters can prevent the rule from loading correctly. `yaml --- title: Brief Title of the Rule (e.g., React Component Guidelines) description: Guidelines for [what this rule covers and its purpose, e.g., structuring functional React components] glob: "[pattern/to/match/files/*/.{ext}]" # See examples below alwaysApply: false # Optional: Set to true to always include this rule --- ` • title: A clear, descriptive title (5-7 words recommended). • description: A concise, semantic description. Start with phrases like "Guidelines for..." or "Instructions on..." This likely helps Cursor automatically select the most relevant rule when multiple match. • glob: File pattern(s) that trigger this rule's automatic activation. Be specific. • Examples: _ src/components/**/_.{tsx,jsx} (React components) _ src/server/api/**/_.ts (Server API routes) _ _.{json,yaml,yml} (Configuration files) _ src/utils/!(test).ts (Utility files, excluding tests) _ {package.json,pnpm-lock.yaml} (Specific root files) • alwaysApply (Optional, defaults to false): If true, the rule is included in context regardless of the files being referenced.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
1 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars1
Forks18
Issues6
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more