Set up Cursor Rules for your project
Read the field note below to see how we apply this pattern in real Cursor projects.
Turn this cable into a shipping system.
We help teams deploy reliable AI workflows with architecture, implementation, and hardening support.
Set up Cursor Rules for your project
Cursor without rules is a capable assistant that doesn't know your project. Cursor with well-written rules is an assistant that already knows your stack, conventions, and constraints before you type a word. The setup takes fifteen minutes. The payoff is every session that follows.
What we tried
We started by dumping everything about our project into a single rules file. Stack details, naming conventions, architectural decisions, testing patterns, preferred libraries. It was thorough. It was also too long — Cursor was technically aware of everything, but the rules were so dense they seemed to dilute each other.
What happened
We split the rules by concern: one rule for stack and conventions, one for testing, one for commit standards. Shorter, more focused rules applied more reliably than one long one.
What we learned
The new rules format (.cursor/rules/):
Cursor moved from a single .cursorrules file to a directory of .mdc files. The new format is more powerful — rules can be scoped to specific file patterns and toggled on per-session.
your-project/
└── .cursor/
└── rules/
├── project.mdc ← always-on project context
├── testing.mdc ← applies to *.test.ts files
└── commits.mdc ← applies when writing commit messages
MDC file structure:
---
description: Project stack and conventions
globs: []
alwaysApply: true
---
# Stack
Next.js 15 App Router, TypeScript strict, Tailwind CSS v4.
Path alias: @/* → src/*.
# Conventions
- Functional components only
- `cn()` from src/lib/utils.ts for conditional class names
- No inline styles
- No `any` without a comment
Key frontmatter fields:
alwaysApply: true— rule loads in every chat and Composer sessionglobs— array of file patterns that trigger this rule (e.g.["**/*.test.ts"])description— shown in the rules picker; be specific
Start with one rule:
Don't create five rules on day one. Create one — the stack and conventions rule, set alwaysApply: true. Use it for a week. Add rules only when you catch Cursor making the same mistake twice. That mistake is telling you what rule to write next.
Verify it's loading:
In any Cursor chat, type @rules to see which rules are active for the current file and session. If your rule isn't listed, check the frontmatter syntax — a YAML error silently prevents loading.
Next
- Next cable — Migrating from
.cursorrulesto the new rules format. - Next cable — Team Cursor rules: sharing conventions across a multi-developer project.
Quick answers
What do I get from this cable?
You get a dated field note that explains how we handle this onboarding workflow in real Cursor projects.
How much time should I budget?
Typical effort is 15 min. The cable is marked beginner.
How do I install the artifact?
This cable is guidance-only and does not ship an installable artifact.
How fresh is the guidance?
The cable is explicitly last verified on 2026-04-17, and includes source links for traceability.
More from @frenxt
Migrate from .cursorrules to Cursor Rules
Cursor deprecated the `.cursorrules` file in favor of `.cursor/rules/` in late 2024. The old format still works, but it doesn't support scoping, per-session toggling, or file-patt…
Team Cursor Rules: shared conventions for multi-developer projects
The problem with AI-assisted teams is not that the tools are inconsistent — it's that each developer's tool has a different idea of what "correct" looks like. One person's Cursor…