Works with the AI Agents you already use

    SaaS Go-Live Production Hardener & Pre-Flight Auditor

    by Tushar

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    SaaS Go-Live Production Hardener & Pre-Flight Auditor

    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 DomainPre-Audit StatusPost-Audit StatusFix 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 Score45 / 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

    1. Run python scripts/audit_preflight.py . to verify all checks pass.
    2. Trigger a test event via Stripe CLI (stripe trigger checkout.session.completed) to verify the webhook.
    3. 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:

    1. Security & Secrets: Detects client-exposed API secrets (NEXT_PUBLIC_), verifies .gitignore guards, and enforces HTTP security headers (CSP, HSTS).
    2. Billing & Stripe Robustness: Audits webhook signature validation, ensures idempotency on retries, and fixes missing dunning/cancellation flows.
    3. Authentication & Rate Limiting: Audits auth endpoints for brute-force protection (Upstash Redis) and server-side RBAC validation.
    4. Database & Infrastructure: Protects serverless connection poolers (Supabase / PgBouncer) and ensures statement timeouts.
    5. SEO & Social Visibility: Validates sitemap.xml, robots.txt, and OpenGraph preview tags so your launch link looks stunning on social media.
    6. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed13 days ago

    What's inside

    Frequently Asked Questions

    The audit produces a comprehensive scorecard across six domains—including Security, Payments, and SEO—highlighting specific vulnerabilities like leaked API keys or unverified webhooks along with remediation blueprints.

    Yes, the skill includes specialized remediation recipes for popular frameworks like Next.js, Remix, and Express to help you quickly fix identified vulnerabilities.

    While optimized for Next.js and Node.js ecosystems, the audit's core security and payment logic applies to most modern full-stack web applications, though its "blueprints" are specific to the listed frameworks.

    You will need a Python environment to execute the internal scanner script, and you must point the tool at your repository's root directory for full analysis.

    This skill is specifically tuned to catch environment-specific leaks and serverless-specific flaws, such as Stripe raw-body verification errors, which generic AI prompts often overlook.

    The purchase includes the 50-point automated scanner script, the six-domain scorecard generator, and a library of remediation blueprints for Stripe, infrastructure, and auth hardening.

    No! The entire audit runs locally within your AI agent workspace. No source code or environment variables are ever transmitted anywhere.

    Yes. Because this skill gives your AI agent the exact remediation recipes and code blueprints, you can simply ask the agent "Fix all issues detected by the audit" and it will apply the necessary code changes.

    While Stripe is the primary focus, the principles and verification patterns also cover LemonSqueezy, Paddle, and standard webhook architectures

    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.