Claude Templates / C-tier · Discipline

Discipline

The Pre-Production Hardening Checklist

The last pass before public traffic: secrets, RLS, headers, limits, legal.

PRE-PRODUCTION-HARDENING-CHECKLIST.md · 19 sections · 1,990 words · 13 KB · markdown

By Moe Ameen, founder of BILT · Published · Updated

The Pre-Production Hardening Checklist is the last pass before public traffic. Claude Code works top to bottom through secrets, auth and edge gating, row-level security, security headers, rate limits, webhooks, database hygiene, email authentication, error monitoring, a Core Web Vitals baseline, legal pages, SEO and GEO basics, DNS, deploy checks and smoke tests. Every unchecked box blocks launch unless it is waived in writing.

Key takeaways

  • Run it the day before announcing, before paid ads, or before a big share.
  • Every unchecked box is a launch blocker unless justified.
  • Write N/A reasons next to the box; silent skips aren't allowed.
  • Output: a green checklist, a launch lab note with the git SHA and a CWV report.

A line-by-line checklist to run in launch week. Secret hygiene and rotation, row-level security coverage, security headers, rate limits on anything that costs money, a Core Web Vitals baseline, and the legal pages you can't launch without.

What does the Pre-Production Hardening Checklist cover?

It covers 16 areas, from a secrets audit and RLS verification to legal pages, deploy verification and post-deploy smoke tests.

It ends with common pitfalls and a kickoff prompt to run it with Claude Code.

When should you run the hardening checklist?

Run it in launch week, before DNS flips to the new host, before paid ads and before sharing with an audience over about 100 people. The file says to run it again after major architecture changes.

Do it in one sitting so nothing is half-checked.

What do you need first?

Nothing from the library is required. It works on any app, though it assumes a Supabase and Vercel style stack in places.

Have production access and your audit folder ready, since one output is an archived CWV report.

What's inside

What does the playbook give you?

When to use it

Launch week, before public traffic.

Build these first

Nothing. This one stands alone.

Straight from the file

What does the writing look like?

Portable across any Next.js + Supabase + Vercel + Trigger.dev SaaS. Built from the BKE / Kompozy launch sequence. Reference repo: reference app.

Table of contents

Which sections does the file cover?

  1. 0. Use this checklist
  2. 1. Secrets audit
  3. 2. Auth + edge gating
  4. 3. RLS verification
  5. 4. Security headers
  6. 5. Rate limiting
  7. 6. Webhooks
  8. 7. Database hygiene
  9. 8. Email auth
  10. 9. Error monitoring
  11. 10. CWV baseline
  12. 11. Customer-facing legal
  13. 12. SEO + GEO baseline
  14. 13. Domain + DNS
  15. 14. Deploy verification
  16. 15. Smoke tests (run after deploy lands)
  17. 16. Documentation
  18. Common pitfalls
  19. Kickoff prompt

How do you run it?

Drop PRE-PRODUCTION-HARDENING-CHECKLIST.md into your repo, then tell Claude Code: “Read PRE-PRODUCTION-HARDENING-CHECKLIST.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.

↓ Download the playbook

Who is this for, and who should skip it?

Best for

  • Any web app about to go public
  • Solo founders without a security reviewer
  • Apps built quickly with AI coding tools

Not ideal for

  • A replacement for a professional penetration test
  • Internal tools that never face the public
  • Compliance programs like SOC 2, which need far more
  • Builders who won't adapt paths: the file points to a reference app you won't have

What else do people ask?

What if a checklist item doesn't apply to my app?

The Pre-Production Hardening Checklist says to write the reason next to any N/A box, because silent skips are how production fires start. By the end, every unchecked box is either a blocker to fix before launch or a waiver justified in writing.

Which section is highest risk?

The Pre-Production Hardening Checklist pauses for review after section 3, RLS, and calls it the highest-risk section. It includes a cross-tenant leak test: log in as user A, request user B's resource ID directly, and confirm you get an empty result or a 403.

Does it work if I'm not on Next.js, Supabase and Vercel?

The Pre-Production Hardening Checklist is written for Next.js, Supabase, Vercel and Trigger.dev apps, and many boxes name those tools directly, such as src/proxy.ts and next.config.ts headers. Checks like SPF, DKIM, DMARC and the DNS review apply on any stack.

Which security headers does it require?

The Pre-Production Hardening Checklist lists X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Strict-Transport-Security and a Content-Security-Policy, with suggested values. It sets them explicitly in next.config.ts instead of trusting Vercel defaults and aims for an A or better on securityheaders.com.

What is in the Pre-Production Hardening Checklist download?

The Pre-Production Hardening Checklist is a markdown file of about 2,000 words of checkbox lists, a pitfalls list and a kickoff prompt. It includes ready-to-run checks like a git log search for leaked key patterns, a SQL query that lists tables without RLS, and post-deploy smoke tests from signup to the first paid conversion.

How do we know this?

This page is based on the playbook file itself, PRE-PRODUCTION-HARDENING-CHECKLIST.md, which Moe Ameen wrote from the Kompozy codebase (called BKE in the file). We read the file on November 4, 2026; the facts here come from it, not from independent testing in other codebases.

More discipline playbooks

← All 28 Claude templates