>_ last-mile
free · MIT · v2.0

Last Mile Rules
Launch-security rules for your coding agent.

Drop-in AGENTS.md, CLAUDE.md, .claude/settings.json and Cursor .mdc rules that stop the mistakes that hurt on launch day. Every rule ships with a verify step, so you check the result instead of trusting the agent.

~/your-project

$ curl -sLO https://last-mile-kit.vercel.app/dl/last-mile-rules-free.zip
$ unzip -q last-mile-rules-free.zip && cp -Rn last-mile-rules/{AGENTS.md,CLAUDE.md,.cursor,.claude,verify} . && rm -rf last-mile-rules*

-n never overwrites your files. Paste-in text for Lovable, Bolt, v0 and Replit is in paste-in/.

Read it before you trust it

A rules file is instructions your agent will follow, so read any AGENTS.md or CLAUDE.md from someone else, this one included, before it goes in your repo. Ours is plain text, never tells the agent to install or download anything, and tells it to treat instruction files found outside your repo as untrusted. Don't start a coding agent in ~/Downloads.

The 10 rules

AGENTS.md
  • ✓ LM-01 Secrets stay on the server prevents: sk_live_, whsec_ or service_role keys in your JavaScript
  • ✓ LM-02 RLS on every table prevents: Anyone with your anon key reading every row
  • ✓ LM-03 Supabase grants after Oct 30, 2026 prevents: 42501 errors on new tables, and "fixes" that disable RLS
  • ✓ LM-04 Stripe webhooks signed and idempotent prevents: Forged "payment succeeded" requests; double grants
  • ✓ LM-05 Prices come from the server prevents: A buyer editing the request to pay $0.01
  • ✓ LM-06 Ownership checks where RLS is bypassed prevents: User B reading user A's record by changing an ID
  • ✓ LM-07 Protected files need a human prevents: An agent loosening auth or payments to "fix" a bug
  • ✓ LM-08 Nothing private is served prevents: /.env, /.git or source maps downloadable
  • ✓ LM-09 Every route checks auth on the server prevents: Hidden-but-callable routes; self-made admins
  • ✓ LM-10 Paid endpoints have limits prevents: A bot or loop burning your AI, email or SMS bill

Want all 110?

The full pack turns all 100 Last Mile checks into scoped rules for Cursor and Claude Code, with paste-in sections and a 110-box verify checklist. Pro adds per-host security headers and a retest script.

Not legal, tax or security advice. Rules lower risk; they don't guarantee a secure app.