Pre Launch

    by Shawn Lee Yen Zheng

    1

    Senior security engineer skill that audits, fixes, and tests 30+ vulnerabilities in your app before launch.

    Free

    Security scanned

    Works with the AI Agents you already use

    Pre Launch

    Example session with this skill installed

    I'm launching my Next.js app on Vercel tomorrow. I think I might have committed my OpenAI key once and I haven't set up any RLS on Supabase yet. Can you do a pre-launch security pass?

    • Read your context and instructions
    • Compiled the pre launch

    I have completed the Phase 0 audit and the Priority Eight security checks. I found an exposed sk-proj-... key in your Git history and three Supabase tables without RLS policies.

    Security Audit Results

    CheckStatusAction Taken
    02 Hide API keysFIXEDMoved OpenAI client calls to /api/generate server route.
    03 Secure DatabaseFIXEDApplied RLS policies to profiles, orders, and settings.
    24 Scan Git HistoryALERTFound leaked OPENAI_API_KEY in commit a1b2c3d.
    25 Rotate KeysMANUALMarked old OpenAI key for immediate revocation.
    11 Env VariablesPASSValidated .env.example matches server requirements.
    19 PaymentsFIXEDAdded Stripe webhook signature verification.

    Security Fixes (Code)

    // supabase/migrations/20231027_secure_tables.sql
    ALTER TABLE public.profiles ENABLE ROW LEVEL SECURITY;
    CREATE POLICY "Users can only update own profile" 
    ON public.profiles FOR UPDATE 
    USING (auth.uid() = id);
    
    // app/api/generate/route.ts
    // Moved logic from client to server to protect sk_ key
    export async function POST(req: Request) {
      const session = await getServerSession();
      if (!session) return new Response("Unauthorized", { status: 401 });
      // OpenAI call now happens here...
    }
    

    Next steps

    1. Revoke Secrets: Go to the OpenAI dashboard and delete the key starting with sk-pr... immediately.
    2. Review Manual Actions: Open SECURITY_REPORT.md to see the click-by-click steps for configuring Vercel environment protection.
    3. Run Tests: Execute npm test security/ to verify the new RLS policies against the test suite I created.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Speed-running an app to launch often leaves the most dangerous doors wide open. This skill acts as a senior application security engineer to harden your web or mobile app, ensuring it is safe for real users before you hit deploy.

    What it does

    • Secrets detection identifies and purges leaked API keys, .env files, and credentials from your code and Git history.
    • Database hardening configures Row-Level Security (RLS) for Supabase/Firebase and prevents IDOR or unauthorized data access.
    • Auth enforcement secures server-side routes, admin panels, and session cookies to prevent privilege escalation.
    • Payment & logic protection validates server-side pricing and webhook flows to stop users from tampering with transactions.
    • Automated security testing writes and runs "try to break it" tests to prove every fix actually works.

    How it works

    1. Map & Scan runs scan_code.py and scan_secrets.py to index your stack, entry points, and existing vulnerabilities.
    2. Prioritize addresses "Red Flags" like committed secrets or open admin routes before moving to lower-severity items.
    3. Fix & Test applies code changes for 30+ security checks and generates automated test suites to verify them.
    4. Report produces a SECURITY_REPORT.md and SECURITY_MAP.md detailing every check, fix, and manual action required.

    Frameworks & tools

    Works with any web or mobile stack including React, Next.js, Node.js, Python, Supabase, and Firebase. Uses specialized scripts for secret entropy detection and Git history purging.

    Why this beats prompting it yourself

    Generic security prompts often suggest "best practices" without actually touching your code or testing the results. This skill performs deep multi-phase audits, writes the actual fixes, and generates proof-of-security tests that remain in your repo.

    Use cases

    • Auditing a "vibe-coded" app from Lovable, Bolt, or Cursor before first deployment.
    • Purging a secret key accidentally committed to public Git history.
    • Locking down a Supabase backend where RLS policies were never enabled.
    • Hardening an API against rate-limiting abuse and mass assignment attacks.

    Known limitations

    Cannot perform manual actions in external dashboards like Stripe, AWS, or Vercel. Destructive Git history rewrites require explicit user approval.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Accounts
    OpenAIEvilYourapp
    Software
    PythonNode.jsknipdepcheckGit

    Permissions

    Terminal / Shell
    Browser
    Network Access
    Read Files
    Write Files
    Environment Variables

    Allowed Hosts

    domain
    evil.example
    app
    api.openai.com
    yourapp.com
    {u.netloc}
    (
    Listed5 days ago

    What's inside

    Creator

    Shawn Lee Yen Zheng

    Shawn Lee Yen Zheng

    Frequently Asked Questions

    This skill performs a multi-phase audit including secrets detection, database hardening (like Supabase RLS), and auth enforcement. It doesn't just find bugs; it writes the actual code fixes and generates 'proof-of-security' tests to verify them.

    The skill is framework-agnostic and works with any modern web or mobile stack, including Next.js, Node.js, Python, and backend-as-a-service platforms like Supabase and Firebase.

    You will receive the 'Pre Launch' agent skill package, the `scan_code.py` and `scan_secrets.py` security scripts, and templates for automated security reporting.

    Yes, the skill specializes in hardening apps generated by AI tools like Lovable, Bolt, or Cursor, ensuring that 'vibe-coded' logic is backed by production-grade security.

    While the skill can identify and fix code-level vulnerabilities, it cannot perform manual configurations inside external dashboards like the AWS Console, Stripe, or Vercel.

    No, the skill operates on your local or cloud environment. For sensitive actions like rewriting Git history to purge secrets, it will always prompt for your explicit approval before proceeding.

    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.

    Free