Lovable App Rescue — Security skill for Claude Code
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.

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 startandsupabase db pushwork. - 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()`
Related Skills
Hardstop Audit Log
Show recent entries from the Hardstop audit log, including blocked and allowed commands.
Web Testing
Test web apps with Playwright, Vitest and k6: E2E, unit, integration, load, security, visual and a11y.
API Security Review
OWASP API Security Top 10 (2023) review of REST, GraphQL, or gRPC APIs. Finds broken object-level auth, excess
Supalock Fix
Generate safe, idempotent Postgres migrations, minimal-diff application code patches, and pgTAP/SQL + curl ver
Logic Fix All
Autonomous audit-and-fix — after consent, scan the target, fix every logic issue found (all severities), verif
Costfence Lite
Free lightweight security & API cost guardrails (.cursorrules & CLAUDE.md) for Cursor, Claude Code, Bolt & Lov
Related Agents
AI Code Fixer
Fixes issues found by ai-code-checker. Removes duplicate logic, dead code and unused imports, moves hardcoded
Moriarty
The adversary who attacks a finished deliverable to find its holes before anyone else does - a Sherlock dossie
Backlog
Use when work needs to be filed, found, claimed or closed in dirk's backlog — writing a cairn item, checking w