Free .cursor/rules for secrets and Supabase RLS, and what they missed in 6 test runs

I’m the author of this and I do sell a larger paid set elsewhere, just to be upfront with y’all. The free part is MIT: three .cursor/rules/*.mdc files (secrets and env vars, Supabase RLS, scope guard): GitHub - vibeguardrails/vibe-guardrails-free: 3 free tested guardrail rules for vibe coders using Cursor, Claude Code, Lovable and Bolt. · GitHub

I ran one Next.js + Supabase + Stripe prompt 6 times with & without the rules and published every raw output, including where the rules missed (no Stripe coverage, and a policy that let users write their own is_pro flag): GitHub - vibeguardrails/vibe-guardrails-demo: Same AI prompt, with and without 3 free guardrail rules: real outputs and an honest score. · GitHub

One side effect to note: with strict rules the model refused at first because of a (fake) secret key in the prompt. Would love feedback on whether alwaysApply: true for the secrets rule is too heavy-handed.

Thanks, this is super useful! Splitting it into a short always-on secrets rule and a glob-scoped one for supabase/**, /api/ and .env* makes a lot of sense, and so does the placeholder line. I’m adding “never let a client-writable policy cover columns that grant access or money” to the RLS rule, along with your three fixes (separate billing table, column-level grants, BEFORE UPDATE trigger).

On Stripe: the prompt did ask for Stripe checkout, but the free rules don’t cover it, and it showed. 4 of the 5 runs that produced code granted Pro from the /success page with no payment check. The one run that used a signature-verified webhook still had a bug: it wrote the update with the anon key, so RLS would have blocked it. A Stripe rule is next, and I’ll publish that test the same way, misses included.