<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sriram Sureshkumar</title>
    <description>The latest articles on DEV Community by Sriram Sureshkumar (@sriram7).</description>
    <link>https://dev.to/sriram7</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230468%2Fc5456cd5-7882-4ac8-8f4c-430eabc7965b.jpeg</url>
      <title>DEV Community: Sriram Sureshkumar</title>
      <link>https://dev.to/sriram7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sriram7"/>
    <language>en</language>
    <item>
      <title>Cursor Rules Not Working? Here's Why (And the Fix)</title>
      <dc:creator>Sriram Sureshkumar</dc:creator>
      <pubDate>Mon, 15 Jun 2026 23:04:57 +0000</pubDate>
      <link>https://dev.to/sriram7/cursor-rules-not-working-heres-why-and-the-fix-21bk</link>
      <guid>https://dev.to/sriram7/cursor-rules-not-working-heres-why-and-the-fix-21bk</guid>
      <description>&lt;p&gt;If &lt;strong&gt;Cursor rules aren't working&lt;/strong&gt;, you're not alone. You wrote &lt;code&gt;.cursor/rules&lt;/code&gt; (or a legacy &lt;code&gt;.cursorrules&lt;/code&gt; file) telling the agent to use named exports, Zod validation, and your error-handling pattern — and the agent still generates default exports and skips validation.&lt;/p&gt;

&lt;p&gt;This usually means one of three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The rules file is in the wrong place or format&lt;/li&gt;
&lt;li&gt;The rules are too vague for the model to prioritize&lt;/li&gt;
&lt;li&gt;The conventions you wrote don't match what your team &lt;strong&gt;actually&lt;/strong&gt; enforces in PR review&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cursor rules are static instructions you maintain by hand. They don't learn from your PR history unless you rebuild them constantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Symptom: Cursor ignores your rules
&lt;/h2&gt;

&lt;p&gt;This is the most common complaint from teams adopting AI coding tools. The agent has strong defaults; your rules compete with open files, chat history, and generic model behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause 1: Wrong file location or format
&lt;/h2&gt;

&lt;p&gt;Cursor has moved from a single &lt;code&gt;.cursorrules&lt;/code&gt; file to the &lt;code&gt;.cursor/rules/&lt;/code&gt; directory with individual rule files. If your rules live in the old location, newer Cursor versions may not load them consistently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Check Cursor's docs for your version and migrate to the current rules directory structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause 2: Rules compete with everything else
&lt;/h2&gt;

&lt;p&gt;Vague rules like "write clean code" lose against strong defaults. Specific, evidence-backed rules work better — but writing them for every convention your team enforces takes hours and drifts out of date.&lt;/p&gt;

&lt;p&gt;I wrote more about this dynamic in &lt;a href="https://codehabits.dev/blog/why-ai-tools-ignore-team-patterns" rel="noopener noreferrer"&gt;why AI tools ignore your team's patterns&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause 3: Rules don't match PR reality
&lt;/h2&gt;

&lt;p&gt;The gap between what you &lt;em&gt;think&lt;/em&gt; your team does and what PR review actually enforces is large. A rule file written by one engineer often misses conventions that only appear in review comments — the named-export preference, the ban on &lt;code&gt;console.log&lt;/code&gt;, the custom error base class.&lt;/p&gt;

&lt;p&gt;Without PR-derived evidence, rules are guesswork.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: evidence-ranked team intelligence
&lt;/h2&gt;

&lt;p&gt;Instead of hand-writing rules forever, extract conventions from merged and closed PRs where your team already enforced them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codehabits.dev" rel="noopener noreferrer"&gt;Codehabits&lt;/a&gt; analyzes review comments and code patterns, ranks each convention by confidence, and writes structured intelligence to &lt;code&gt;.codehabits/&lt;/code&gt; plus an &lt;a href="https://codehabits.dev/docs/agent-skills" rel="noopener noreferrer"&gt;Agent Skill&lt;/a&gt; that Cursor auto-discovers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @codehabits/cli &lt;span class="nb"&gt;enable
&lt;/span&gt;git add .codehabits/ .cursor/skills/ AGENTS.md
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"chore: add team intelligence"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Teammates clone the repo and Cursor picks up the same skill — no per-developer rule files, no copy-paste.&lt;/p&gt;

&lt;p&gt;(Free for individuals and OSS repos; team workspaces have a trial on &lt;a href="https://codehabits.dev/pricing" rel="noopener noreferrer"&gt;codehabits.dev/pricing&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  When hand-written rules still make sense
&lt;/h2&gt;

&lt;p&gt;Project-specific one-offs (a migration in progress, a temporary API freeze) belong in explicit rules. Team-wide conventions that repeat in every PR belong in intelligence extracted from evidence.&lt;/p&gt;

&lt;p&gt;Use both: keep short-lived rules in &lt;code&gt;.cursor/rules/&lt;/code&gt; and let automated extraction own the long-lived patterns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next steps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://codehabits.dev/docs/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt; — enable in ~5 minutes&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codehabits.dev/blog/migrate-cursor-rules-to-agent-skills" rel="noopener noreferrer"&gt;Migrate from Cursor rules to Agent Skills&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codehabits.dev/blog/setup-codehabits-mcp-in-cursor" rel="noopener noreferrer"&gt;Add MCP for real-time convention checks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://codehabits.dev/blog/cursor-rules-not-working" rel="noopener noreferrer"&gt;codehabits.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>cursor</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
