Works with the AI Agents you already use
SaaS Go-Live Production Hardener & Pre-Flight Auditor
by Tushar
Comprehensive 50-point pre-launch audit for SaaS apps. Detects leaked secrets, Stripe webhook flaws, rate limit gaps, broken auth, SEO tags, and telemetry errors.
$39.99
SaaS Go-Live Production Hardener & Pre-Flight Auditor
Example session with this skill installed
We're launching our Next.js App Router + Supabase SaaS tomorrow on Product Hunt. Audit our repo for launch blockers, security vulnerabilities, and Stripe webhook flaws, and fix any critical issues.
- Read your context and instructions
- Compiled the saas go-live production
Summary
Completed 50-point pre-flight launch audit for your Next.js SaaS codebase. Identified 3 critical launch blockers: an unverified Stripe webhook route, an exposed database credential in .env.local, and missing HTTP security headers. Patched all 3 issues with verified production code.
| Launch Domain | Pre-Audit Status | Post-Audit Status | Fix Applied |
|---|---|---|---|
| Stripe Billing | 🚨 CRITICAL (Unverified Webhook) | ✅ PASS (Hardened) | Added stripe.webhooks.constructEvent + idempotency |
| Secrets Exposure | 🚨 CRITICAL (NEXT_PUBLIC_DB) | ✅ PASS (Zero Leaks) | Stripped client prefix, moved to server env |
| Security Headers | ⚠️ WARNING (Missing CSP/HSTS) | ✅ PASS (A+ Rating) | Injected HSTS, CSP, and X-Frame-Options headers |
| SEO & Social | ⚠️ WARNING (No sitemap) | ✅ PASS (Generated) | Created app/sitemap.ts and app/robots.ts |
| Launch Score | 45 / 100 (Do Not Launch) | 95 / 100 (Ready to Launch) | All blocking defects remediated |
1. Hardened Stripe Webhook Handler (app/api/webhooks/stripe/route.ts)
import { NextRequest, NextResponse } from 'next/server';
import Stripe from 'stripe';
import { db } from '@/lib/db';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2024-11-20.acacia' });
export async function POST(req: NextRequest) {
const body = await req.text();
const signature = req.headers.get('stripe-signature')!;
let event: Stripe.Event;
try {
event = stripe.webhooks.constructEvent(body, signature, process.env.STRIPE_WEBHOOK_SECRET!);
} catch (err: any) {
return NextResponse.json({ error: `Signature verification failed: ${err.message}` }, { status: 400 });
}
// Idempotency: Prevent duplicate credits on network retries
const processed = await db.processedEvent.findUnique({ where: { id: event.id } });
if (processed) return NextResponse.json({ received: true });
if (event.type === 'checkout.session.completed') {
const session = event.data.object as Stripe.Checkout.Session;
await db.user.update({
where: { id: session.metadata?.userId },
data: { subscriptionStatus: 'active', stripeCustomerId: session.customer as string }
});
}
await db.processedEvent.create({ data: { id: event.id, processedAt: new Date() } });
return NextResponse.json({ received: true });
}
2. HTTP Security Headers (next.config.js)
module.exports = {
async headers() {
return [{
source: '/:path*',
headers: [
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'Referrer-Policy', value: 'origin-when-cross-origin' },
{ key: 'Strict-Transport-Security', value: 'max-age=31536000; includeSubDomains; preload' }
]
}];
}
};
Next steps
- Run
python scripts/audit_preflight.py .to verify all checks pass. - Trigger a test event via Stripe CLI (
stripe trigger checkout.session.completed) to verify the webhook. - Deploy to production and submit your launch!
Connects securely to your tools. The creator never sees your data.
About this skill
Launch Your SaaS With 100% Confidence — Zero Exploits, Leaks, or Billing Disasters
Launching a SaaS MVP on Product Hunt, Hacker News, or Twitter is exhilarating—until an unverified Stripe webhook lets users fake payments, leaked client-side environment variables expose your database credentials, or a lack of rate limiting results in a $10,000 serverless bill spike.
SaaS Go-Live Production Hardener & Pre-Flight Auditor turns your AI coding agent into a senior security engineer and DevSecOps auditor that stress-tests your entire application before public traffic arrives.
What This Skill Covers Across 6 Production Domains:
- Security & Secrets: Detects client-exposed API secrets (
NEXT_PUBLIC_), verifies.gitignoreguards, and enforces HTTP security headers (CSP, HSTS). - Billing & Stripe Robustness: Audits webhook signature validation, ensures idempotency on retries, and fixes missing dunning/cancellation flows.
- Authentication & Rate Limiting: Audits auth endpoints for brute-force protection (Upstash Redis) and server-side RBAC validation.
- Database & Infrastructure: Protects serverless connection poolers (Supabase / PgBouncer) and ensures statement timeouts.
- SEO & Social Visibility: Validates
sitemap.xml,robots.txt, and OpenGraph preview tags so your launch link looks stunning on social media. - Observability: Verifies Sentry / PostHog crash reporting and health check endpoints.
Included Automated CLI Tool
Includes scripts/audit_preflight.py, a ready-to-run scanner that calculates a quantitative Launch Readiness Score (0-100) and outputs exact code patches for every detected issue.
Requires Python for the audit script. Best suited for Next.js, Remix, and Node.js ecosystems. Large monoliths may require manual path steering.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 13 days ago
- Software
Python 3.9+
- Optional
- Terminal / Shell
Zero telemetry or third-party connections. Runs 100% locally on your machine to audit your code before you deploy.
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.