/ship-ready-skills:launch-security-checkfrom ship-ready-skills
Quick pre-launch security check for Next.js + Supabase + Stripe apps. Finds public tables without row level security, service-role or secret keys reaching client code (NEXT_PUBLIC_ variables, 'use client' files), and Stripe webhook handlers without constructEvent signature verification. Use when the user asks for a launch, ship or go-live security check, or a quick security pass on a Supabase/Stripe app.
Ships in ship-ready-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only review. Don't edit files unless the user asks for the fixes afterwards. Every grep hit is a lead: open the file and confirm it before you report it.
Only tables in the public schema (or another schema you expose through the Data API) count. Ignore private., auth. and other schemas. Search across lines (multiline), case-insensitive, because SQL statements can wrap.
supabase/migrations/ for create\s+table\s+(if\s+not\s+exists\s+)?(public\.)?"?([a-z_0-9]+)"? and list the public table names. Skip names qualified with another schema.alter\s+table\s+(only\s+)?(public\.)?"?([a-z_0-9]+)"?\s+enable\s+row\s+level\s+security.disable\s+row\s+level\s+security: any hit on a public table is a finding.
Fix: alter table public.<t> enable row level security; plus policies for the access the app needs. For the full RLS and grants review (R1–R6), use supabase-rls-review.*.md) for NEXT_PUBLIC_[A-Z0-9_]*(SERVICE_ROLE|SECRET). NEXT_PUBLIC_ values are bundled into the browser, so any hit is a finding.^\s*['"]use client['"]), then read the top of each one and confirm the directive is the first statement. Comments may come before it. In those files, grep for service_role|SERVICE_ROLE_KEY|supabase/admin|createAdminClient|supabaseAdmin|STRIPE_SECRET_KEY. Any hit is a finding.
Fix: use the service-role key and the Stripe secret key only in server code (route handlers, server actions, server-only modules), and never with a NEXT_PUBLIC_ prefix. Rotate any key that was exposed.**/*webhook*/**/route.{ts,js,mjs} (this covers both app/ and src/app/) and **/pages/api/**/*webhook*.{ts,js}. Keep the Stripe handlers: the files that match stripe-signature|constructEvent|stripe\.webhooks|event\.type|checkout\.session\.completed.constructEvent(Async)?\( is a finding. Read it: it trusts an unsigned request body.
Fix (App Router): const body = await request.text(), then stripe.webhooks.constructEvent(body, signature, process.env.STRIPE_WEBHOOK_SECRET), and return 400 on failure. Fix (Pages Router): export const config = { api: { bodyParser: false } }, read the raw body into a Buffer, and pass it to constructEvent. For idempotency and the raw body (S2, S3, S6, S7), use stripe-webhook-review.One summary line (files read, findings by severity), then a table of severity, check (L1–L3), file:line, what you saw and the fix, then anything you couldn't verify (for example, tables or policies created in the Supabase dashboard, or keys set only in hosting env vars). A clean result is not proof the app is secure.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/stripe-webhook-reviewReview Next.js Stripe webhook route handlers for missing signature verification, JSON parsed before verification, missing or non-status-aware idempotency on event.id (pending/completed), unsafe reprocessing of pending events, and billing periods read from items.data[0]. Use when the user asks to review a Stripe webhook, idempotency, duplicate events, or payments before launch./supabase-grants-checkCheck Supabase migrations for the security side of the 30 Oct 2026 Data API grants change (Supabase's changelog schedules it) - GRANT ALL or write grants to anon, grants on tables with RLS off, policies whose role has no grant (42501), grants with no policy, SECURITY DEFINER functions anon can execute, default privileges that still auto-grant, and the local auto_expose_new_tables setting. Use when the user asks about Supabase grants, a 42501 permission-denied error, the 30 October change, or whether a GRANT fix is safe./supabase-rls-reviewReview Supabase SQL migrations for row level security gaps and missing or blanket Data API grants (tables without RLS, using (true) write policies, anon write policies, security definer functions without search_path, public tables with no explicit GRANT (Supabase's changelog schedules a grants change for 30 Oct 2026), blanket grants to anon/authenticated). Use when the user asks to review RLS, Supabase policies, grants, a 42501 error, or database security before launch.npx claudepluginhub edtrackai/ship-ready-skills --plugin ship-ready-skills