<?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: Jovan Chan</title>
    <description>The latest articles on DEV Community by Jovan Chan (@jovan_chan_9500711396d4e6).</description>
    <link>https://dev.to/jovan_chan_9500711396d4e6</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%2F3945669%2Fa08789e6-d856-4f19-ae91-169593c75a9c.png</url>
      <title>DEV Community: Jovan Chan</title>
      <link>https://dev.to/jovan_chan_9500711396d4e6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jovan_chan_9500711396d4e6"/>
    <language>en</language>
    <item>
      <title>How to configure Claude Code (and Cursor) so it stops ignoring your conventions</title>
      <dc:creator>Jovan Chan</dc:creator>
      <pubDate>Sun, 31 May 2026 14:17:18 +0000</pubDate>
      <link>https://dev.to/jovan_chan_9500711396d4e6/how-to-configure-claude-code-and-cursor-so-it-stops-ignoring-your-conventions-3nof</link>
      <guid>https://dev.to/jovan_chan_9500711396d4e6/how-to-configure-claude-code-and-cursor-so-it-stops-ignoring-your-conventions-3nof</guid>
      <description>&lt;p&gt;Most developers install Claude Code or Cursor, try a few prompts, and walk away unimpressed. The agent edits the wrong files, ignores their conventions, and confidently invents a project structure that doesn't exist.&lt;/p&gt;

&lt;p&gt;The tools aren't the problem. &lt;strong&gt;The missing config is.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An AI coding agent is like a brilliant contractor who's never seen your codebase. Drop them in with no brief and they'll guess. Give them a one-page brief — your stack, your rules, your commands, what &lt;em&gt;not&lt;/em&gt; to touch — and they behave like someone who's worked on your team for a year.&lt;/p&gt;

&lt;p&gt;That brief is the &lt;code&gt;CLAUDE.md&lt;/code&gt; file (or &lt;code&gt;.cursorrules&lt;/code&gt; for Cursor). Here's how to write one that actually works.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Tell it the architecture rules — as rules, not suggestions
&lt;/h2&gt;

&lt;p&gt;The single biggest win. Don't describe your stack vaguely; give it hard rules it must follow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Architecture rules (follow exactly)&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; Server Components by default. Only add "use client" when a component needs
  state, effects, or browser APIs. Push client boundaries as far down as possible.
&lt;span class="p"&gt;-&lt;/span&gt; Data fetching lives in Server Components or Route Handlers, never in useEffect.
&lt;span class="p"&gt;-&lt;/span&gt; Mutations go through Server Actions, not ad-hoc API routes.
&lt;span class="p"&gt;-&lt;/span&gt; No business logic in components — extract to lib/.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice these are &lt;em&gt;imperative and specific&lt;/em&gt;. "Use best practices" does nothing. "Server Components by default, add 'use client' only for state/effects" changes the agent's output immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Give it the commands — and make it run them
&lt;/h2&gt;

&lt;p&gt;The agent can't verify its own work unless you tell it how:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Commands&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; Typecheck: &lt;span class="sb"&gt;`pnpm tsc --noEmit`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Lint: &lt;span class="sb"&gt;`pnpm lint`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Test: &lt;span class="sb"&gt;`pnpm test`&lt;/span&gt;

&lt;span class="gs"&gt;**Always run typecheck and lint before telling me a task is done.**&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That last line is the one most people miss. Without it, the agent says "done" on code that doesn't compile. With it, it catches its own mistakes before you do.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Write a "What NOT to do" section
&lt;/h2&gt;

&lt;p&gt;Negative constraints are underrated. They stop the most annoying failure modes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## What NOT to do&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; Don't add dependencies without asking — check if the capability already exists.
&lt;span class="p"&gt;-&lt;/span&gt; Don't use &lt;span class="sb"&gt;`any`&lt;/span&gt; or &lt;span class="sb"&gt;`@ts-ignore`&lt;/span&gt; to make type errors go away — fix the type.
&lt;span class="p"&gt;-&lt;/span&gt; Don't reformat files you didn't change.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Add a subagent for code review
&lt;/h2&gt;

&lt;p&gt;Both Claude Code and Cursor support subagents — specialized roles you can invoke. A code-reviewer that reviews &lt;em&gt;only your diff&lt;/em&gt; like a blunt senior engineer is the highest-leverage one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;code-reviewer&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Reviews&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;diff&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;for&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;bugs&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;and&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;quality.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Use&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;after&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;writing&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;code."&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

You review the git diff. Classify findings as 🔴 Bug / 🟡 Risk / 🔵 Cleanup.
Cite exact file:line. Skip style nits a formatter catches. Don't rubber-stamp.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now "review my changes" gives you a focused review instead of generic praise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steal my configs (free)
&lt;/h2&gt;

&lt;p&gt;I packaged working, drop-in versions of all of the above. Two &lt;code&gt;CLAUDE.md&lt;/code&gt; templates (Next.js + Python/FastAPI) and the code-reviewer subagent are &lt;strong&gt;free on GitHub, MIT licensed&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/devloadout/awesome-claude-code-configs" rel="noopener noreferrer"&gt;https://github.com/devloadout/awesome-claude-code-configs&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Copy the one for your stack, edit three lines, restart your agent. That's the whole setup.&lt;/p&gt;

&lt;p&gt;If you want the full set — 6 stacks (Go, Rust, monorepo too), 4 subagents, slash commands (&lt;code&gt;/review&lt;/code&gt;, &lt;code&gt;/ship&lt;/code&gt;, &lt;code&gt;/test&lt;/code&gt;), hook recipes (auto-format, block committed secrets, run tests on stop), and copy-paste MCP setups — it's all in &lt;a href="https://alphaletgo.gumroad.com/l/agentic-coding-kit" rel="noopener noreferrer"&gt;the complete kit&lt;/a&gt; (launch-week price).&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What's in your &lt;code&gt;CLAUDE.md&lt;/code&gt;? Drop your best rule in the comments — I'm collecting the good ones.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
