Skip to content

Light version: pages open quickly, without the 3D graphics. You are seeing the light version because the 3D graphics would be slow on this device. The content is the same.

Turn on 3D

Preparing the graphics. This can take a moment on the first visit.

Henry Lõiv

Web design & development

Quick Answer

Why is Cursor ignoring my project rule?

Artificial Intelligence 2 min read

First check whether the rule was loaded at all. Project rules under .cursor/rules/ use the .mdc extension. An ordinary .md file in that folder is not equivalent. Cursor also supports AGENTS.md for plain-text instructions. 1

Reduce the test to one rule

Create the rule through Cursor’s settings or inspect its metadata. For a diagnostic test, use one harmless instruction that always applies:

---
description: Project test command
alwaysApply: true
---
Use the existing test command from package.json.

Save it as something like .cursor/rules/tests.mdc and test in a fresh conversation, without several long, competing rule files.

For a rule intended only for selected files, check the file pattern and the folder opened as the workspace. File-scoped rules, description-based selection and manually selected rules have different activation conditions. 12

Loading is not the same as compliance

A visible rule that was ignored is a different problem from an instruction the agent never received. Check for contradictory legacy files rather than adding another copy of the same rule. Do not disable privacy protections as a troubleshooting shortcut.

Finish with an observable test and inspect the actual command or diff. Rules guide the agent; they do not replace automated checks or code review.

Related reading

Comparing AI models

Sources

  1. Cursor: Rules documentation
  2. Cursor: rules setup and migration

Fact checked:

Let’s talk about your project

Tell me about your project

Tell me what you’d like to build or improve. You don’t need a finished brief — we’ll work out the scope and next steps together.

01 How can I help?
02 How many pages do you need?
03 Which extras do you need? Choose all that apply
04 When does it need to be ready?
05 Project details
06 Your contact details

Enquiry received

Thank you!

Your enquiry has been received. I usually reply by email within 2 working days.