lovable-cleanup
Remove every trace of Lovable scaffolding and ship the project as your own.
Made with antigravity-awesome-skills · author: whoisabhishekadhikari
Overview
Lovable (lovable.dev) bootstraps Vite + React + shadcn/ui projects with its own tagger
dependency, branding, placeholder assets, and generated markdown docs baked in. Most
developers export from Lovable and want a clean, ownable codebase before shipping or
open-sourcing. This skill covers all 14 areas where Lovable leaves fingerprints.
When to Use This Skill
- User says "clean up my Lovable project" or "remove Lovable branding"
- User says "de-Lovable", "I exported from Lovable", or "audit for Lovable leftovers"
- Project contains
lovable-tagger in package.json
- Project contains
CLEANUP_SUMMARY.md, DEPLOYMENT_GUIDE.md, or DEVELOPMENT_SUMMARY.md
index.html still has a generic <title> or Lovable favicon
- User wants to audit a Vite/React project for scaffolding leftovers before shipping
Core Concepts
What Lovable injects
Lovable adds three categories of scaffolding that must be removed:
- Dependency —
lovable-tagger dev dep + componentTagger() call in vite.config.ts.
This is the only runtime hook; removing it is always safe.
- Branding artifacts —
favicon.ico/png, og-image.png, logo.png, generic <title>,
and a Lovable project URL in README.md.
- Generated docs —
CLEANUP_SUMMARY.md, DEPLOYMENT_GUIDE.md, DEVELOPMENT_SUMMARY.md,
LOGO_UPDATE.md in the project root.
Why the execution order matters
Removing deps before editing source files avoids lockfile conflicts. Cleaning docs last
means the README reflects the already-cleaned project.
Unused dep footprint
Lovable pre-installs the full shadcn/ui component set (29 components) and all Radix UI
primitives (30 packages). Most projects use 5–10. The unused ones are safe to remove but
@radix-ui/react-slot must be kept — it is an indirect dep used internally by many
shadcn components via the asChild prop.
Recommended Execution Order
- Dependencies (Areas 2 & 7) — clear the package graph first
- Build config (Area 3) — remove the tagger from Vite
- Entry points (Areas 4 & 6) — clear runtime references
- Assets (Area 5) — swap brand files (defer if assets not ready yet)
- Docs & README (Areas 1 & 10) — clean last so README reflects the cleaned project
- Environment & Git (Areas 9 & 12) — security sweep
- SEO / deploy (Area 11) — usually a no-op; confirm and move on
- Unused deps (Area 13) — safe to defer until after ship if on a deadline
Step-by-Step Guide
Area 1 · README.md
- Line 1: Replace
# Welcome to your Lovable project with the real project title
- Line 5: Remove
https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID
- Lines 11–19: Delete the "Use Lovable" instructions block
- Lines 65–73: Delete the "Deploy via Lovable / custom domain docs" block
✅ After stripping, read the README end-to-end. Offer to write a replacement intro
paragraph if large sections were removed.
Area 2 · package.json
- Remove
"lovable-tagger" from devDependencies
- Rename
"name" from "vite_react_shadcn_ts" to the real project name (kebab-case)
- Scan the
scripts block for "lovable" or "lovable:*" entries and remove them
grep -n "lovable" package.json
Area 3 · vite.config.ts
- Remove
import { componentTagger } from "lovable-tagger"
- Remove
mode === 'development' && componentTagger() from the plugins array
- Remove
.filter(Boolean) if it was only present to handle the conditional tagger
grep -n "lovable\|componentTagger\|filter(Boolean)" vite.config.ts
Area 4 · index.html
- Replace the generic
<title> with the real product name
- Remove any
<!-- Generated by Lovable --> comments or Lovable meta tags
- Replace the Lovable favicon reference if present
grep -in "lovable\|generator" index.html
Area 5 · public/ assets
Replace these files (keep filenames, swap content):
| File |
Action |
favicon.ico |
Replace with real icon |
favicon.png |
Replace with real icon |
og-image.png / logo.png |
Replace with real brand assets |
placeholder.svg |
Usually unused — safe to delete |
✅ Flag which files are actually referenced in <head> vs dead weight so the user
knows what to prioritise.
Area 6 · Source files
src/main.tsx — scan for Lovable HOCs, wrappers, or comments
src/App.tsx — same
- Auto-generated components — look for
// generated by Lovable headers
g
1---2name: lovable-cleanup3description: Audits and strips Lovable scaffolding from Vite + React projects — removes lovable-tagger, swaps placeholder assets, prunes unused Radix deps, and cleans generated docs so the codebase ships as your4category: Development & Code Tools5source: antigravity6tags: [react, node, markdown, api, claude, ai, agent, image, security, supabase]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/lovable-cleanup8metadata:9 source: https://skillmd.com/skills/sickn33/lovable-cleanup10---111213# lovable-cleanup1415> Remove every trace of Lovable scaffolding and ship the project as your own.16> Made with [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills) · author: **whoisabhishekadhikari**1718---1920## Overview2122Lovable (lovable.dev) bootstraps Vite + React + shadcn/ui projects with its own tagger23dependency, branding, placeholder assets, and generated markdown docs baked in. Most24developers export from Lovable and want a clean, ownable codebase before shipping or25open-sourcing. This skill covers all 14 areas where Lovable leaves fingerprints.2627---2829## When to Use This Skill3031- User says "clean up my Lovable project" or "remove Lovable branding"32- User says "de-Lovable", "I exported from Lovable", or "audit for Lovable leftovers"33- Project contains `lovable-tagger` in `package.json`34- Project contains `CLEANUP_SUMMARY.md`, `DEPLOYMENT_GUIDE.md`, or `DEVELOPMENT_SUMMARY.md`35- `index.html` still has a generic `<title>` or Lovable favicon36- User wants to audit a Vite/React project for scaffolding leftovers before shipping3738---3940## Core Concepts4142### What Lovable injects4344Lovable adds three categories of scaffolding that must be removed:45461. **Dependency** — `lovable-tagger` dev dep + `componentTagger()` call in `vite.config.ts`.47 This is the only runtime hook; removing it is always safe.482. **Branding artifacts** — `favicon.ico/png`, `og-image.png`, `logo.png`, generic `<title>`,49 and a Lovable project URL in `README.md`.503. **Generated docs** — `CLEANUP_SUMMARY.md`, `DEPLOYMENT_GUIDE.md`, `DEVELOPMENT_SUMMARY.md`,51 `LOGO_UPDATE.md` in the project root.5253### Why the execution order matters5455Removing deps before editing source files avoids lockfile conflicts. Cleaning docs last56means the README reflects the already-cleaned project.5758### Unused dep footprint5960Lovable pre-installs the full shadcn/ui component set (~29 components) and all Radix UI61primitives (~30 packages). Most projects use 5–10. The unused ones are safe to remove but62`@radix-ui/react-slot` must be kept — it is an indirect dep used internally by many63shadcn components via the `asChild` prop.6465---6667## Recommended Execution Order68691. Dependencies (Areas 2 & 7) — clear the package graph first702. Build config (Area 3) — remove the tagger from Vite713. Entry points (Areas 4 & 6) — clear runtime references724. Assets (Area 5) — swap brand files (defer if assets not ready yet)735. Docs & README (Areas 1 & 10) — clean last so README reflects the cleaned project746. Environment & Git (Areas 9 & 12) — security sweep757. SEO / deploy (Area 11) — usually a no-op; confirm and move on768. Unused deps (Area 13) — safe to defer until after ship if on a deadline7778---7980## Step-by-Step Guide8182### Area 1 · README.md8384- Line 1: Replace `# Welcome to your Lovable project` with the real project title85- Line 5: Remove `https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID`86- Lines 11–19: Delete the "Use Lovable" instructions block87- Lines 65–73: Delete the "Deploy via Lovable / custom domain docs" block8889✅ After stripping, read the README end-to-end. Offer to write a replacement intro90paragraph if large sections were removed.9192---9394### Area 2 · package.json9596- Remove `"lovable-tagger"` from `devDependencies`97- Rename `"name"` from `"vite_react_shadcn_ts"` to the real project name (kebab-case)98- Scan the `scripts` block for `"lovable"` or `"lovable:*"` entries and remove them99100<!-- security-allowlist: grep for scanning package.json content, read-only, no network -->101```bash102grep -n "lovable" package.json103```104105---106107### Area 3 · vite.config.ts108109- Remove `import { componentTagger } from "lovable-tagger"`110- Remove `mode === 'development' && componentTagger()` from the plugins array111- Remove `.filter(Boolean)` if it was only present to handle the conditional tagger112113<!-- security-allowlist: grep for scanning vite config, read-only -->114```bash115grep -n "lovable\|componentTagger\|filter(Boolean)" vite.config.ts116```117118---119120### Area 4 · index.html121122- Replace the generic `<title>` with the real product name123- Remove any `<!-- Generated by Lovable -->` comments or Lovable meta tags124- Replace the Lovable favicon reference if present125126<!-- security-allowlist: grep for scanning HTML file, read-only -->127```bash128grep -in "lovable\|generator" index.html129```130131---132133### Area 5 · public/ assets134135Replace these files (keep filenames, swap content):136137| File | Action |138|---|---|139| `favicon.ico` | Replace with real icon |140| `favicon.png` | Replace with real icon |141| `og-image.png` / `logo.png` | Replace with real brand assets |142| `placeholder.svg` | Usually unused — safe to delete |143144✅ Flag which files are actually referenced in `<head>` vs dead weight so the user145knows what to prioritise.146147---148149### Area 6 · Source files150151- `src/main.tsx` — scan for Lovable HOCs, wrappers, or comments152- `src/App.tsx` — same153- Auto-generated components — look for `// generated by Lovable` headers154155<!-- security-allowlist: grep over source files, read-only, no network -->156```bash157g