lovable-seo-geo
Installation
SKILL.md
Lovable SEO & AI-Search (GEO) Guide (rankcli)
Lovable apps ship as client-side Vite + React SPAs. Follow these exact rules to make a Lovable app rank in Google and get cited by ChatGPT, Claude, Gemini, and Perplexity.
1. Audit the live or preview URL first
npx -y @rankcli/cli audit --url https://your-lovable-app.com --max-pages 5 -o llm
2. Fix the 5 highest-impact Lovable SEO/GEO traps
- Remove duplicate head tags from
index.html: Lovable's defaultindex.htmlincludes hardcoded<meta name="description">,og:*, andtwitter:*tags. Becausereact-helmet-asyncappends rather than removes static tags, inner routes end up with duplicates. Keepindex.htmlshell-clean and render per-route<title>, description, canonical, and Open Graph tags inside a single<SEO />component. - Prerender public marketing routes: Non-JS AI crawlers (
OAI-SearchBot,Claude-SearchBot,PerplexityBot) see an empty<div id="root"></div>on pure SPAs. Prerender public marketing URLs to static HTML at build time while keeping/dashboardand/authon the SPA shell. - Explicitly allow AI search crawlers in
public/robots.txt: AddAllow: /forOAI-SearchBot,Claude-SearchBot, andPerplexityBotplusSitemap: https://yourdomain.com/sitemap.xml. - Add
public/llms.txtandpublic/sitemap.xml: Summarize your product, category, pricing, and canonical links cleanly for answer engines. - Never invent unverified facts: Do not hallucinate ratings, phone numbers, street addresses, or
/og-image.pngpaths that do not exist inpublic/.