AI Rules · v2 · Claude Code + Cursor

Rules are advice. v2 enforces them.

Guardrail hooks designed to refuse .env reads, supabase db push and the Stripe SDK in client components. Plus 18 skills and 6 subagents for Next.js + Supabase + Stripe, tested against a working app.

Get v2: $19 (plus VAT where applicable)Try the free v1 sample

One-off payment via Gumroad. Prices exclude VAT; UK and EU VAT is added at Gumroad checkout. Already own v1? You get v2 free, in your Gumroad library.

Stack & Ship Ship-Ready AI Rules v2: terminals showing hooks denying supabase db push and a .env read, and hook test names

What it’s designed to refuse

What the v2 hooks are designed to refuse
Your agent tries to…The hook…
Read or write .env secrets, or print secret env varsis designed to refuse it
Run supabase db push and --linked commands, Stripe live mode, --prod deploys and force pushesis designed to refuse it
Use the Supabase admin client, Stripe SDK or server secrets in client componentsis designed to refuse it
Say "done" while tests failtypechecks after TypeScript edits, and a test gate runs npm test before Claude finishes when code changed

It fails closed if the guard itself errors (on Claude Code 2.1.295+, with an exit-2 fallback for older versions).

New in 2.0.13: the guard is designed to read commands the way a shell does, so quoted, wrapped and nested forms (for example bash -c '…', a subshell, npx supabase@latest db push, or an npm run script that runs supabase db push) are checked too.

It reads the command text only, so it's a safety net, not a sandbox. It can't see values that live only in your shell or .env, script files, aliases, or commands built at run time; docs/HOOKS.md lists these limits. Keep your own backups and provider-side protections.

Why hooks

  • Enforced, not suggested. Hooks run on every matching tool call, not only when the agent remembers a rule.
  • Specific to your stack. Skills cover getClaims / getUser server auth, RLS migrations with pgTAP tests, idempotent and order-safe webhooks, and entitlements, not generic "write secure code" prompts.
  • Fits your tools. Claude Code plugin or copy-in .claude/, Cursor rules, AGENTS.md for Codex/Copilot/Cline, and an .agents/skills mirror.

What’s inside v2

  • 3 guardrail hooks
  • 18 skills: RLS migrations, RLS audit, server-side auth, Stripe Checkout + customer portal, hardened webhooks, subscriptions + entitlements, Server Actions, route handlers, testing (incl. pgTAP), pre-merge audit, /ship-check, /add-paid-feature, /deploy-checklist, and more
  • 6 subagents: code reviewer, security auditor, migration writer, Stripe integrator, test writer, build fixer
  • Demo app, 34 hook tests and 404 guard probe tests: npm run verify builds the plugins, runs the format validator, the hook, guard probe, sync and grants tests, and extracts the code snippets in the skills to typecheck, unit-test and build them in scaffold/
  • Everything from v1: rules, 29-point pre-launch security checklist, prompt library
  • Single-user commercial licence: unlimited projects of your own, including client work

New in v2 Changelog 2.0.0 (current version: 2.0.14)

New in 2.0.14:

  • Existing buyers get this update free. Re-download it from your Gumroad library.
  • The verification times in the changelog are now given in UTC.
  • No change to the rules or hooks.

Already own v1? v2 is an update to the same product, so you won't pay again. It's in your Gumroad library now.

  • Guardrail hooks: PreToolUse guard (secrets, remote DB, Stripe live, prod deploys, force push, client/server boundary, NEXT_PUBLIC_ secrets), PostToolUse typecheck, Stop test gate.
  • Claude Code plugin ship-ready; passes claude plugin validate --strict.
  • 13 new skills (18 in total) and 6 subagents.
  • .agents/skills mirror for Cursor, Codex and other Agent Skills readers.
  • Auth guidance updated: getClaims() for pages, getUser() for mutations.
  • .claude/settings.json with permission deny rules and hook wiring.

What’s tested

  • claude plugin validate in strict mode
  • A format validator
  • 34 hook tests and 404 guard probe tests, all passing on Node 24.22 from a clean unzip; npm run verify installs scaffold/ first
  • Typechecks, unit tests, and next build on a sample Next.js + Supabase + Stripe app
  • Checks on the demo app

What this doesn’t do

  • Hooks reduce risk. They don't replace reviewing your code.
  • Built for Next.js + Supabase + Stripe. Other stacks get little from the skills.
  • No live Supabase or Stripe run yet. It hasn't been run against a live Supabase project or Stripe account.

On Next.js with Drizzle, Better Auth, and Polar? See the Stack Pack.

Pick a version

Free sample vs v1 vs v2
Free sample (GitHub)v1 (previous version)v2 ($19*)
AGENTS.md golden rules Yes Yes Yes
Stripe .mdc rule Yes Yes Yes
All 6 Cursor rules No Yes Yes
Claude Code skills No518
Subagents No No6
Guardrail hooks No No3
Claude Code plugin No No Yes
Reference/demo app No Yes Yes
LicenceMITSingle-user commercialSingle-user commercial

*$19 plus VAT where applicable. Available now.

Free sample · MIT

Free sample

Try the core rules in your repo.

$0

on GitHub

  • AGENTS.md golden rules
  • The complete Stripe .mdc rule
Get the free sample

MIT licence

AI Rules · v2 New in v2

Ship-Ready AI Rules v2

Rules are advice. v2 enforces them.

$19

one-off · plus VAT where applicable · free for v1 buyers

  • 3 guardrail hooks
  • 18 skills
  • 6 subagents
  • Claude Code plugin + Cursor rules + AGENTS.md
  • Demo app, 34 hook tests and 404 guard probe tests, npm run verify
  • Everything from v1
Get v2: $19 (plus VAT where applicable)

Sold via Gumroad (merchant of record)

The mistakes the v1 rules guard against

Every one of these passes a click-through test. That's why they ship. The secure starting set of Cursor rules explains each one.

Mistakes the v1 rules guard against
What agents doWhat the rule enforces
Use the service/secret key in a page "to make the query work"Two clients: user client (RLS) vs admin client (webhooks only)
Create tables and "add RLS later"RLS + policies in the same migration
Call request.json() before verifying Stripe webhooksRaw body → constructEvent → idempotency by event id
Grant access on the Checkout success URLAccess only from the webhook-mirrored subscription
Redirect to whatever ?next= sayssafeNext(): relative paths only

Put guardrails in place before the agent writes code

Get Ship-Ready AI Rules v2: $19 (plus VAT where applicable)

Not affiliated with or endorsed by Anthropic, Anysphere (Cursor), Supabase, Stripe, or Vercel.

FAQ

What are the guardrail hooks designed to refuse?
The guard hook is designed to refuse reading or writing .env secrets, printing secret env vars, supabase db push and --linked commands, Stripe live mode, --prod deploys and force pushes, and the Supabase admin client, Stripe SDK or server secrets in client components. It fails closed if the guard itself errors (on Claude Code 2.1.295+, with an exit-2 fallback for older versions). New in 2.0.13: the guard is designed to read commands the way a shell does, so quoted, wrapped and nested forms are checked too. The other two hooks run a typecheck after TypeScript edits, and a test gate that runs npm test before Claude finishes when code changed.
Does it work with Cursor, Codex or Copilot?
Yes. It ships as a Claude Code plugin or a copy-in .claude/ folder, plus Cursor rules, AGENTS.md for Codex, Copilot and Cline, and an .agents/skills mirror. The hooks are Claude Code specific.
I bought v1. Do I pay again?
No. v2 is a free update for existing v1 buyers.
How is it tested?
Every code snippet in the skills compiles with tsc, is unit-tested and goes through next build against Next.js 16, Stripe SDK 23 and supabase-js 2. The plugin passes claude plugin validate --strict, and it includes 34 hook tests and 404 guard probe tests, all passing on Node 24.22 from a clean unzip, so you can re-run everything with npm run verify.
Can I use it for client work?
Yes. The single-user commercial licence covers unlimited projects of your own, including client work.

Further reading