cursor rules config

Other Community

Skill notes

Modern Project Rules (.cursor/rules/.mdc)

Each .mdc file contains YAML frontmatter followed by markdown content: Frontmatter fields: Field · Type · Purpose description · string · Concise rule purpose (shown in Cursor UI) globs · string · Gitignore-style patterns for auto-attachment

Rule Types by alwaysApply + globs Combination

alwaysApply · globs · Behavior true · empty · Always injected into every prompt false · set · Auto-attached when matching files are in context false · empty · Manual only -- reference with @Cursor Rules in chat

File Naming Convention

Use kebab-case with .mdc extension. Names should describe the rule's scope: Create new rules via: Cmd+Shift+P > New Cursor Rule

Complete Project Rules Example

.cursor/rules/project-context.mdc (always-on): .cursor/rules/react-patterns.mdc (glob-scoped): // Correct pattern export interface ButtonProps { variant: 'primary' | 'secondary';

Legacy .cursorrules Format

Place a .cursorrules file in project root. Plain markdown, no frontmatter:

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@tomevault-io · no license declared
Token usage
Lean
Setup complexity
Plug-and-play
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
Python >=3.12
Detected file/system behavior
  • Read-only
  • Write / modify
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview cursor-rules-config.preview
# Complete Project Rules Example

**`.cursor/rules/project-context.mdc`** (always-on): ```yaml --- description: "Core project context and conventions" globs: "" alwaysApply: true --- # Project: E-Commerce Platform Tech stack: Next.js 15, TypeScript 5.7, Prisma ORM, PostgreSQL, Tailwind CSS 4. Package manager: pnpm. Monorepo with turborepo.

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.