<?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: yin</title>
    <description>The latest articles on DEV Community by yin (@hellowkeke).</description>
    <link>https://dev.to/hellowkeke</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278614%2F7c26f3d8-2f14-466d-a52b-53dc9fc005ac.png</url>
      <title>DEV Community: yin</title>
      <link>https://dev.to/hellowkeke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hellowkeke"/>
    <language>en</language>
    <item>
      <title>Stop Losing 30% of Your Fixed-Price Freelance Projects to Scope Creep (Exact Change-Order Script)</title>
      <dc:creator>yin</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:42:56 +0000</pubDate>
      <link>https://dev.to/hellowkeke/stop-losing-30-of-your-fixed-price-freelance-projects-to-scope-creep-exact-change-order-script-b5f</link>
      <guid>https://dev.to/hellowkeke/stop-losing-30-of-your-fixed-price-freelance-projects-to-scope-creep-exact-change-order-script-b5f</guid>
      <description>&lt;p&gt;"Hey, quick favor—could we also add a dark mode toggle and export to CSV before Friday?"&lt;/p&gt;

&lt;p&gt;Every independent developer and designer knows how a &lt;code&gt;$3,000&lt;/code&gt; fixed-price project quietly turns into a &lt;code&gt;$18/hr&lt;/code&gt; nightmare: death by a thousand unpriced "tiny tweaks."&lt;/p&gt;

&lt;p&gt;Here is the exact &lt;strong&gt;3-guardrail system&lt;/strong&gt; to protect your fixed-fee margins without sounding confrontational.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Price a Visible 20–25% Scope Buffer Upfront
&lt;/h3&gt;

&lt;p&gt;Fixed-price quotes fail when you multiply ideal coding hours by your hourly rate with zero contingency. Always model client revision cycles, async feedback delays, and QA edge cases into your base quote.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Cap Revisions Explicitly in the SOW
&lt;/h3&gt;

&lt;p&gt;Replace vague "includes revisions" wording with:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Includes up to 2 consolidated revision rounds per milestone. Requests outside the agreed deliverables or after milestone sign-off are quoted as a separate Change Order."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. Use This Exact Diplomatic Change-Order Script
&lt;/h3&gt;

&lt;p&gt;When a client asks for an out-of-scope "quick favor," reply within 2 hours with zero friction:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Happy to add that! Since [Feature X] sits outside our current Phase 1 SOW, I can either: (A) keep Friday's launch on track and slot it into a quick Phase 2 add-on for &lt;code&gt;$[Amount]&lt;/code&gt; (&lt;code&gt;[Y]&lt;/code&gt; days), or (B) swap it for [Lower-Priority Item] inside the current budget. Which option works best for you?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;90% of clients respect the clarity—and either approve the paid add-on immediately or drop the unnecessary tweak.&lt;/p&gt;




&lt;h3&gt;
  
  
  Free Calculator &amp;amp; Pushback Script Generator
&lt;/h3&gt;

&lt;p&gt;I built a free browser-side fixed-price scope buffer calculator &amp;amp; 15-second diplomatic pushback generator (no signup):&lt;br&gt;
👉 &lt;strong&gt;Free Tool:&lt;/strong&gt; &lt;a href="https://scopeshield-calc.netlify.app/" rel="noopener noreferrer"&gt;scopeshield-calc.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want the complete offline &lt;strong&gt;ScopeShield Pro Client OS&lt;/strong&gt; (interactive SOW &amp;amp; Change-Order Builder, 25 copy-paste client pushback scripts, and milestone payment templates), it's currently on a &lt;strong&gt;$9 launch special&lt;/strong&gt; (normally $29) for the first 10 freelancers:&lt;br&gt;
👉 &lt;a href="https://kekeworld.gumroad.com/l/scopeshield-os" rel="noopener noreferrer"&gt;ScopeShield Pro Client OS ($9 Launch Special)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What's the wildest "quick favor" a client has ever tried to sneak into a fixed-price project?&lt;/p&gt;

</description>
      <category>freelance</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>career</category>
    </item>
    <item>
      <title>Why Most n8n &amp; AI Automation Freelancers Lose Money on Retainers (Exact 3x Margin Formula)</title>
      <dc:creator>yin</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:42:09 +0000</pubDate>
      <link>https://dev.to/hellowkeke/why-most-n8n-ai-automation-freelancers-lose-money-on-retainers-exact-3x-margin-formula-31p8</link>
      <guid>https://dev.to/hellowkeke/why-most-n8n-ai-automation-freelancers-lose-money-on-retainers-exact-3x-margin-formula-31p8</guid>
      <description>&lt;p&gt;If you build n8n, Make, or custom AI agent workflows for clients, you've probably felt this pain: you quote a flat &lt;code&gt;$1,500/mo&lt;/code&gt; retainer, the client runs a big campaign (or hits a retry loop), and your OpenAI/Anthropic API bill eats your entire profit margin overnight.&lt;/p&gt;

&lt;p&gt;Here is the exact &lt;strong&gt;3-part pricing &amp;amp; margin formula&lt;/strong&gt; that protects AI automation freelancers and agencies from token spikes.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Never Bundle Build Fees Into Monthly Retainers
&lt;/h3&gt;

&lt;p&gt;Mixing setup labor with recurring maintenance makes clients think they can cancel after Month 1 once the workflow is live.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One-Time Setup Fee&lt;/strong&gt; = &lt;code&gt;Build Hours × Dev Rate&lt;/code&gt; (e.g., &lt;code&gt;25h × $120 = $3,000&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monthly Retainer&lt;/strong&gt; = Monitoring, prompt tuning, API drift fixes, and SLA—billed separately every month.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Stress-Test Every Workflow Against a 3x Token Spike
&lt;/h3&gt;

&lt;p&gt;Always calculate your monthly LLM token cost (&lt;code&gt;Daily Runs × 30 × (Input + Output Tokens)&lt;/code&gt;) &lt;strong&gt;with prompt caching&lt;/strong&gt;, then multiply by &lt;strong&gt;3x&lt;/strong&gt; for worst-case bursts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Either require &lt;strong&gt;client-owned API keys (BYOK)&lt;/strong&gt;, OR&lt;/li&gt;
&lt;li&gt;Include a &lt;strong&gt;1.5x burst buffer&lt;/strong&gt; in your retainer and add an explicit &lt;strong&gt;API pass-through clause&lt;/strong&gt; above 1.5x baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Anchor Your Price to Client Labor Saved (Not Your Hours)
&lt;/h3&gt;

&lt;p&gt;If an n8n lead-qualification or invoice-OCR workflow saves a client &lt;code&gt;100 hours/month&lt;/code&gt; at &lt;code&gt;$40/hr&lt;/code&gt; (&lt;code&gt;$4,000/mo&lt;/code&gt; labor value), pricing your Growth Retainer at &lt;code&gt;$1,500/mo&lt;/code&gt; is an instant &lt;strong&gt;2.6x ROI&lt;/strong&gt;—even when your actual delivery cost is under &lt;code&gt;$300/mo&lt;/code&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Free Tool to Run Your Numbers in 60 Seconds
&lt;/h3&gt;

&lt;p&gt;I built a free, browser-side AI retainer &amp;amp; 3x token-spike calculator (zero signup) with presets for GPT-4.1, Claude Sonnet, and Gemini Flash:&lt;br&gt;
👉 &lt;strong&gt;Free Calculator:&lt;/strong&gt; &lt;a href="https://agentquote-calc.netlify.app/" rel="noopener noreferrer"&gt;agentquote-calc.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want the complete offline &lt;strong&gt;AgentQuote Pro OS&lt;/strong&gt; (branded PDF Proposal Studio + &lt;strong&gt;5 production-ready importable n8n JSON blueprints&lt;/strong&gt; including an LLM Token Budget Circuit Breaker + AI liability contract clauses), it's currently on a &lt;strong&gt;$12 launch special&lt;/strong&gt; (normally $39) for the first 10 builders:&lt;br&gt;
👉 &lt;a href="https://kekeworld.gumroad.com/l/agentquote-os" rel="noopener noreferrer"&gt;AgentQuote Pro OS ($12 Launch Special)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How are you handling LLM API overages with your automation clients—BYOK or markup?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>freelance</category>
      <category>saas</category>
    </item>
    <item>
      <title>5 Supabase RLS &amp; API Key Leaks I Keep Finding in Cursor &amp; Lovable Apps</title>
      <dc:creator>yin</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:26:12 +0000</pubDate>
      <link>https://dev.to/hellowkeke/5-supabase-rls-api-key-leaks-i-keep-finding-in-cursor-lovable-apps-3448</link>
      <guid>https://dev.to/hellowkeke/5-supabase-rls-api-key-leaks-i-keep-finding-in-cursor-lovable-apps-3448</guid>
      <description>&lt;p&gt;Shipping a full-stack app in a weekend with Cursor, Lovable, or Bolt is genuinely amazing—until your first real user opens DevTools and dumps your entire &lt;code&gt;users&lt;/code&gt; table with one &lt;code&gt;curl&lt;/code&gt; call.&lt;/p&gt;

&lt;p&gt;After auditing dozens of AI-generated Next.js + Supabase MVPs, the same &lt;strong&gt;5 production leaks&lt;/strong&gt; show up over and over again. Here is the exact 5-minute pre-launch checklist (and SQL/code fixes) to catch them before you post on Product Hunt or X.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Tables Created Without Row Level Security (RLS) Enabled
&lt;/h3&gt;

&lt;p&gt;By default, a new table in Postgres has RLS &lt;strong&gt;disabled&lt;/strong&gt;. Because Supabase exposes your &lt;code&gt;anon&lt;/code&gt; key in the browser bundle, &lt;em&gt;anyone&lt;/em&gt; can query &lt;code&gt;/rest/v1/&amp;lt;table_name&amp;gt;&lt;/code&gt; directly if RLS is off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Run this audit query in the Supabase SQL Editor before every launch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rowsecurity&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_tables&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;rowsecurity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For every user-owned table, enforce both RLS and explicit policies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="n"&gt;security&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Users can only access their own rows"&lt;/span&gt;
&lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Using &lt;code&gt;getSession()&lt;/code&gt; Instead of &lt;code&gt;getUser()&lt;/code&gt; on the Server
&lt;/h3&gt;

&lt;p&gt;AI coding assistants still frequently generate &lt;code&gt;supabase.auth.getSession()&lt;/code&gt; inside Next.js Server Components, Route Handlers, or Middleware. &lt;code&gt;getSession()&lt;/code&gt; reads directly from cookies without revalidating the JWT against Supabase Auth—making it spoofable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Always use &lt;code&gt;@supabase/ssr&lt;/code&gt; and call &lt;code&gt;await supabase.auth.getUser()&lt;/code&gt; on the server before returning protected data or mutating records.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Leaking &lt;code&gt;SUPABASE_SERVICE_ROLE_KEY&lt;/code&gt; via &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Prefixing a secret with &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt; (or &lt;code&gt;VITE_&lt;/code&gt;) bundles it straight into client-side JavaScript. If &lt;code&gt;service_role&lt;/code&gt; ever touches the browser, it &lt;strong&gt;bypasses all RLS policies globally&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Search your repo for &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt; / &lt;code&gt;VITE_&lt;/code&gt; and verify ONLY the URL and &lt;code&gt;anon&lt;/code&gt; key are exposed. Keep &lt;code&gt;SUPABASE_SERVICE_ROLE_KEY&lt;/code&gt;, Stripe secrets, and OpenAI/Anthropic keys strictly in server-side env vars.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Permissive &lt;code&gt;INSERT&lt;/code&gt; / &lt;code&gt;UPDATE&lt;/code&gt; Policies Allowing Privilege Escalation
&lt;/h3&gt;

&lt;p&gt;Even when RLS is enabled, a common AI-generated policy lets authenticated users update &lt;em&gt;any&lt;/em&gt; column on their own &lt;code&gt;profiles&lt;/code&gt; row—including &lt;code&gt;is_pro = true&lt;/code&gt;, &lt;code&gt;role = 'admin'&lt;/code&gt;, or &lt;code&gt;credits = 99999&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Split billing/role fields into a separate table that only &lt;code&gt;service_role&lt;/code&gt; webhooks can write to, or enforce column-level restrictions via triggers / Postgres views.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Public Storage Buckets With Predictable Paths
&lt;/h3&gt;

&lt;p&gt;Putting user uploads (invoices, resumes, private PDFs) into a &lt;strong&gt;public&lt;/strong&gt; Supabase Storage bucket means anyone who guesses or scrapes the URL can download them without auth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Set sensitive buckets to &lt;code&gt;Private&lt;/code&gt;, add Storage RLS policies on &lt;code&gt;storage.objects&lt;/code&gt;, and serve files exclusively via short-lived signed URLs (&lt;code&gt;createSignedUrl(path, 60)&lt;/code&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  Want to Run This Check Automatically Before Launch?
&lt;/h3&gt;

&lt;p&gt;I built a free, 100% browser-side pre-launch security risk checker (zero signup, no code leaves your browser) to score your AI-built app's exposure across RLS, env leaks, and auth flows:&lt;br&gt;
👉 &lt;strong&gt;Free Checker:&lt;/strong&gt; &lt;a href="https://vibeaudit-calc.netlify.app/" rel="noopener noreferrer"&gt;vibeaudit-calc.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want the complete offline &lt;strong&gt;VibeAudit Pro Launch Kit&lt;/strong&gt; (copy-paste Supabase RLS SQL templates, Next.js middleware hardening snippets, and a 42-point production launch audit pack), it's currently on a &lt;strong&gt;$9 launch special&lt;/strong&gt; (normally $29) for the first 10 builders:&lt;br&gt;
👉 &lt;a href="https://kekeworld.gumroad.com/l/vibeaudit-pro" rel="noopener noreferrer"&gt;VibeAudit Pro Launch Kit ($9 Launch Special)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What's the nastiest AI-generated security bug you've caught before shipping? Drop it in the comments.&lt;/p&gt;

</description>
      <category>supabase</category>
      <category>webdev</category>
      <category>security</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
