<?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: mohamedp09</title>
    <description>The latest articles on DEV Community by mohamedp09 (@mohamedp09).</description>
    <link>https://dev.to/mohamedp09</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%2F3520872%2F462b0547-6be5-4309-8683-06bf4f4ec713.png</url>
      <title>DEV Community: mohamedp09</title>
      <link>https://dev.to/mohamedp09</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohamedp09"/>
    <language>en</language>
    <item>
      <title>The .cursorrules file I wish I had when building my SaaS</title>
      <dc:creator>mohamedp09</dc:creator>
      <pubDate>Sun, 15 Mar 2026 06:19:48 +0000</pubDate>
      <link>https://dev.to/mohamedp09/the-cursorrules-file-i-wish-i-had-when-building-my-saas-5c5p</link>
      <guid>https://dev.to/mohamedp09/the-cursorrules-file-i-wish-i-had-when-building-my-saas-5c5p</guid>
      <description>&lt;p&gt;I've been using Cursor to build a Node.js + TypeScript SaaS, &lt;br&gt;
and it's genuinely impressive — until it isn't.&lt;/p&gt;

&lt;p&gt;The frustrations were always the same:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Silent catch blocks with no logging&lt;/li&gt;
&lt;li&gt;any types slipping through everywhere&lt;/li&gt;
&lt;li&gt;Inconsistent API responses (sometimes data, sometimes &lt;code&gt;result&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Prisma queries without proper error handling&lt;/li&gt;
&lt;li&gt;Hardcoded secrets instead of environment variables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I kept correcting the same mistakes over and over. &lt;br&gt;
So I did what any developer would do — I wrote rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is .cursorrules?
&lt;/h2&gt;

&lt;p&gt;A .cursorrules file sits in your project root and tells &lt;br&gt;
Cursor how to behave in YOUR codebase. Think of it as a &lt;br&gt;
style guide that the AI actually reads and follows.&lt;/p&gt;

&lt;p&gt;The difference is dramatic.&lt;/p&gt;

&lt;p&gt;Without rules:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
typescript
// Cursor generates this
try {
  const user = await db.user.findFirst({ where: { id } });
  return user;
} catch (e) {
  // silent catch — the bug graveyard
}
👉 Available here: https://mohamedp2.gumroad.com/l/ruxmq
Drop it in your project root and Cursor starts following
your conventions immediately. No npm install, no config —
just copy the file.
What rules do you have in your .cursorrules?
Would love to see what others are doing.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>tooling</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
