agentleFS
gidila91gidila91/claude-skills/skills/lovable-seo-aeo/SKILL.md

lovable-seo-aeo

Skill0 starsChanged 3 months agoMITView on GitHub

Specialized rules, prompt engineering templates, and technical standards for executing SEO (Search Engine Optimization) and AEO (Answer Engine Optimization) inside Lovable.dev applications (TanStack Start, SSR, Supabase). Trigger this skill whenever the user mentions SEO, AEO, answer engine optimization, schema markup, metadata, robots.txt, llms.txt, dynamic sitemaps, or Google/AI search optimization in Lovable.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every page and dynamic route (blog posts, courses, landing pages) MUST include:

    line 20
  2. Very specific:

    All JSON-LD markup must be validated, injection-safe standard <script type="application/ld+json">.

    line 34
  3. Very specific:

    Ensure the following files are properly generated in the /public directory:

    line 37
  4. Very specific:

    robots.txt: Must allow general user-agents and explicitly permit AI crawlers:

    line 38
  5. Distinctive:

    When migrating from legacy CMS systems (e.g., WordPress):

    line 48
  6. Very specific:

    If route structures change, configure middleware or route handlers in TanStack Start to issue permanent 301 redirects from old URLs to new …

    line 51
  7. Distinctive:

    When generating prompts for the user to execute inside Lovable:

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lovable SEO & AEO Optimization Skill

This skill ensures that applications built or migrated in Lovable.dev adhere to strict SEO and Answer Engine Optimization (AEO) best practices so that traditional engines (Google, Bing) and AI crawlers (ChatGPT, Perplexity, Claude) properly index, understand, and cite the application.

Tech Stack Expectations

  • Framework: TanStack Start (Server-Side Rendering enabled for clean HTML output)
  • Database/CMS: Supabase (PostgreSQL for dynamic metadata storage)
  • Framework Utility: <Head> components / meta helpers for dynamic routing

Core SEO & AEO Implementation Protocols

1. Dynamic Route Metadata & Open Graph

Every page and dynamic route (blog posts, courses, landing pages) MUST include:

  • Unique, keyword-targeted <title> and <meta name="description">.
  • Canonical URLs (<link rel="canonical" href="...">) to prevent duplicate content flags.
  • Complete Open Graph (og:title, og:description, og:image, og:url) and Twitter Card tags.
  • For dynamic paths, metadata must be pulled dynamically from Supabase database fields during SSR rendering.

2. Structured Data / Schema Markup (The AEO Engine)

AI engines rely heavily on semantic HTML and JSON-LD markup to extract factual context.

  • Global Schema: Inject Organization and WebSite JSON-LD on root/homepage components.
  • Entity Schemas: Implement specific schemas based on content type:
    • BlogPosting / Article for blogs/news.
    • Course or EducationalOccupationalProgram for courses/trainings.
    • Service / Product for offerings and landing pages.
    • FAQPage for Q&A sections (critically important for AI citations).
  • All JSON-LD markup must be validated, injection-safe standard <script type="application/ld+json">.

3. Public Assets for Search & AI Crawlers

Ensure the following files are properly generated in the /public directory:

  • robots.txt: Must allow general user-agents and explicitly permit AI crawlers:
    • GPTBot (OpenAI)
    • ClaudeBot (Anthropic)
    • PerplexityBot (Perplexity)
    • Applebot-Extended
    • Reference the exact location of sitemap.xml.
  • sitemap.xml: Server-generated XML sitemap looping over static routes and active database records (blogs, courses). Ensure zero trailing whitespace or invalid formatting.
  • llms.txt & llms-full.txt: Markdown context summary located at root specifically designed for LLM consumption, outlining site ownership, services, topics, and primary links.

4. Migration & 301 URL Redirects

When migrating from legacy CMS systems (e.g., WordPress):

  • Audit legacy URL paths.
  • Match existing routes 1:1 wherever possible.
  • If route structures change, configure middleware or route handlers in TanStack Start to issue permanent 301 redirects from old URLs to new endpoints.

Lovable Prompt Generation Format

When generating prompts for the user to execute inside Lovable:

  1. Explicit Placement: Specify exact file targets (e.g., src/routes/__root.tsx, public/robots.txt, public/llms.txt).
  2. SSR Focus: Remind Lovable to render head metadata server-side rather than relying on purely client-side React hooks (react-helmet).
  3. Validation Steps: Instruct Lovable to verify that no duplicate tags exist and that XML formatting is strict.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.