ParishSynthMind

Lovable App Rescue — Security skill for Claude Code

Security community

A Lovable-generated React + Supabase app taken to production standard: security holes found and closed (5/9 to 9/9 attacks blocked), Claude triage via a Supabase Edge Function, pgTAP/Vitest/Deno tests.

How to install Lovable App Rescue

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ParishSynthMind/lovable-app-rescue and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lovable App Rescue does

A Lovable-generated React + Supabase app taken to production standard: security holes found and closed (5/9 to 9/9 attacks blocked), Claude triage via a Supabase Edge Function, pgTAP/Vitest/Deno tests and CI.

Alternatives in Security

  • Claude Bootstrap — Opinionated project initialization with security-first guardrails, spec-driven atomic todos, LLM testing patte 536 ★
  • Agentseal — Security toolkit for AI agents 344 ★
  • Roast Repo — Deliver a brutally honest, technically sharp roast of the current repository 186 ★

README

Lovable App Rescue: from AI-generated prototype to an app you can run, trust and extend

A real app generated by **Lovable** from one prompt, then taken through the work a client pays for when their AI-built app has to become a real product: get the code out, make it run outside the builder, find and close the security holes, add a Claude-powered feature, and put tests and CI around all of it. Every step is its own commit, so you can read the before and after.

![Staff dashboard sorted by Claude's priority](media/dashboard-ai-priority.png)

What it proves (plain English)

  • I can take over an app built in Lovable (or Base44, Bolt, Replit) and work in its real code, a TanStack Start + React + Supabase project, not a toy.
  • I check what the builder got wrong, with evidence. Nine attacks run as real users over the real API: Lovable's version blocked 5 of 9, the rescued version blocks 9 of 9 (docs/attack-check-before.txt, docs/attack-check-after.txt).
  • The database runs anywhere, not only inside the builder's cloud. The schema moved into Supabase migrations, so supabase start and supabase db push work.
  • AI added safely. Claude triage runs server-side in a Supabase Edge Function. The API key never reaches the browser, only staff can trigger it, and client text cannot steer it.
  • Tests a client can rerun. 17 audit-tool tests, 8 app tests, 14 Edge Function tests, 24 database tests and the 9-attack API check, all in GitHub Actions with no secrets.

The app

"Studio Desk", a client request portal for a small web agency. Lovable built it from the prompt in [`docs/lovable-prompt.md`](docs/lovable-prompt.md) on the free plan, in about two minutes. Clients sign up, send requests (bug, change or question) and track their status. Staff see every request, change statuses and keep internal notes clients never see.

To Lovable's credit, the export already had Row Level Security on every table, roles in a separate table, and a `has_role()`