# Lovable + Supabase kit: install

You are an AI coding agent. The person who sent you here wants to install this kit. Follow the steps below in order. Talk to them in their language.

## What this kit is

- Two skills, plain markdown files. No hooks, no scripts, no MCP servers, no telemetry.
- madsalt.tech counts how many times these files are downloaded, as daily totals with nothing about you.
- `setup`: asks about the app once, then drafts safe project rules for you to follow in later sessions.
- `supabase-check`: reads the code and migrations and reports Supabase security problems. It never changes data.

Nothing is written before the person says yes. Writes are limited to: the optional clone of their app repository (Step 1), the two skill files (Step 2), and the `CLAUDE.md` or `AGENTS.md` project rules that `setup` proposes later, each only after its own yes.

## Step 1. Find the app code

Look for the app in the current folder: a `package.json`, a `supabase/` folder, a `src/` folder.

If the code is not on disk, the owner connects Lovable to GitHub once, in the Lovable web UI:

1. Open the project in Lovable, then Settings, then GitHub (the connector).
2. Connect the GitHub account and create the repository.
3. Paste the repository URL here.

After the URL arrives, ask for a yes to clone it, then clone the repository yourself into the current folder. The person types no git commands. If the clone fails, show the error and ask for the URL again.

## Step 2. Show what will be written

Show this table and wait for an explicit yes. Do not write anything before it (the clone in Step 1 has its own yes).

| Skill            | Claude                                   | Codex                                    |
| ---------------- | ---------------------------------------- | ---------------------------------------- |
| `setup`          | `.claude/skills/setup/SKILL.md`          | `.agents/skills/setup/SKILL.md`          |
| `supabase-check` | `.claude/skills/supabase-check/SKILL.md` | `.agents/skills/supabase-check/SKILL.md` |

Use the Claude column when you are Claude, the Codex column when you are Codex. If a file already exists at one of these paths, show the difference and ask before replacing it; never overwrite it silently. These two files are all this install writes itself. Later, `setup` may propose a `CLAUDE.md` or `AGENTS.md` and writes it only after its own yes.

## Step 3. Fetch the skills

After the yes, fetch each skill from the same base URL as this file. This file is at `https://madsalt.tech/kits/lovable-supabase/install.md`, so the base is `https://madsalt.tech/kits/lovable-supabase/`:

- `https://madsalt.tech/kits/lovable-supabase/skills/setup/SKILL.md`
- `https://madsalt.tech/kits/lovable-supabase/skills/supabase-check/SKILL.md`

If any fetch fails, stop. Say which one failed. Write nothing, not even the ones that worked.

## Step 4. Run `setup`

Write both files to the paths from Step 2, then run the `setup` skill now.

The source and license are at `https://madsalt.tech/kits/lovable-supabase/LICENSE` (MIT). A zip for Claude plugin installs is at `https://madsalt.tech/kits/lovable-supabase.zip`.

---

More complex idea? Free consultation: write to me at https://madsalt.tech/#contact.
