agentleFS
23blocks-OS23blocks-OS/agentic-seo/SKILL.md

agentic-seo

Skill2 starsChanged 58 days agoMITView on GitHub

Audit, implement, and optimize SEO for any website following Google's AI optimization guide. Covers meta tags, Open Graph, Twitter Cards, JSON-LD structured data, canonical URLs, llms.txt, sitemap, and AI-discoverability.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. agencia-conversion/agentic-seo-skills★ 51same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    If the project has a CLAUDE.md with SEO patterns already defined, read it and extract these values automatically instead of asking.

    line 28
  2. Very specific:

    Use these values as {SITE_NAME}, {DOMAIN}, {TWITTER_HANDLE}, {SOCIAL_IMAGE_PATH}, {BUILD_OUTPUT}, {SITEMAP_PATH} throughout all …

    line 30
  3. Distinctive:

    Don't create special hidden content for Google AI (that's cloaking)

    line 69
  4. Distinctive:

    Don't stuff keywords unnaturally

    line 70
  5. Distinctive:

    Don't duplicate content across pages

    line 71
  6. Distinctive:

    Every routable page component must implement these patterns.

    line 76
  7. Distinctive:

    Must include all of:

    line 114
  8. Very specific:

    When no sub-command is given, default to audit on the target path.

    line 171
  9. Very specific:

    Browser-only guard on JSON-LD: Never guard structured data with browser checks (e.g., isPlatformBrowser in Angular) -- it must render …

    line 175
  10. Distinctive:

    Missing cleanup: Always remove JSON-LD scripts on component destroy to prevent duplication during SPA navigation

    line 176
  11. Very specific:

    Hardcoded dates: Use the current date for dateModified in schemas

    line 177
  12. Distinctive:

    Generic descriptions: Every page needs a unique, specific meta description

    line 178
  13. Distinctive:

    Missing sitemap entry: Every new page must be added to the sitemap

    line 179
  14. Distinctive:

    Missing prerender config: Every new page must be configured for prerendering (e.g., routes.txt in Angular SSG)

    line 180

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Agentic SEO

Repeatable workflow for auditing and implementing SEO on any web page. Covers Google's AI optimization guide, structured data, and modern SEO best practices.

First-Time Setup: Gather Site Configuration

Before running any sub-command for the first time in a session, ask the user for their website details if not already known. Store these as working context:

SettingAsk ForExample
Site Name"What is your site/company name?"Acme Corp
Domain"What is your website domain?"https://acme.com
Twitter Handle"What is your Twitter/X handle?" (optional)@acme_corp
Social Image Path"Where are your social sharing images stored?"/assets/social/
Social Links"Any social profile URLs?" (optional)Twitter, GitHub, LinkedIn URLs
Framework"What framework is your site built with?"Angular, React, Next.js, etc.
Build Output Path"Where does your built/prerendered HTML output to?"dist/apps/web/browser/
Sitemap Path"Where is your sitemap.xml?"public/sitemap.xml

If the project has a CLAUDE.md with SEO patterns already defined, read it and extract these values automatically instead of asking.

Use these values as {SITE_NAME}, {DOMAIN}, {TWITTER_HANDLE}, {SOCIAL_IMAGE_PATH}, {BUILD_OUTPUT}, {SITEMAP_PATH} throughout all sub-commands.

When to use this skill

Trigger this skill when:

  • A new page is created and needs SEO implementation
  • An SEO audit is requested on an existing page
  • Structured data (JSON-LD) needs to be added or updated
  • llms.txt or llms-full.txt needs maintenance
  • A quick checklist verification is needed before deploying
  • A page is missing meta tags, OG tags, canonical URL, or sitemap entry

Google AI Optimization Principles

Key rules from Google's official guide for AI-era SEO:

Crawlability

  • No robots.txt blocks on important content
  • Proper canonical URLs on every page
  • Pages must return correct HTTP status codes (200, 301, 404)
  • Prerendered pages must contain full content in the HTML source

Content Quality

  • Unique, descriptive <title> and <meta description> per page
  • Semantic HTML: proper h1-h6 hierarchy, one h1 per page
  • Internal linking between related pages
  • Content must be useful to humans first, machines second

Structured Data

  • JSON-LD in <head>, rendered server-side during SSR/SSG
  • At least 2 schema types per page (e.g., SoftwareApplication + BreadcrumbList)
  • CRITICAL for SSR frameworks: JSON-LD must NOT be wrapped in browser-only guards (e.g., isPlatformBrowser in Angular)

Technical

  • Fast load times (prerendered static HTML)
  • Mobile-friendly responsive design
  • Valid HTML, no broken links

What NOT to Do

  • Don't create special hidden content for Google AI (that's cloaking)
  • Don't stuff keywords unnaturally
  • Don't duplicate content across pages
  • llms.txt is for non-Google agents; Google uses standard crawling

SEO Implementation Pattern (Angular Example)

Every routable page component must implement these patterns. Adapt for your framework.

Required Imports (Angular)

import { Component, OnInit, OnDestroy, Inject, PLATFORM_ID } from '@angular/core';
import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
import { Title, Meta } from '@angular/platform-browser';

Required Constructor Dependencies

constructor(
  private titleService: Title,
  private metaService: Meta,
  @Inject(DOCUMENT) private document: Document,
  @Inject(PLATFORM_ID) private platformId: Object
) {}

Lifecycle Hooks

private jsonLdScript: HTMLScriptElement | null = null;

ngOnInit() {
  this.setMetaTags();
  this.addStructuredData();
}

ngOnDestroy() {
  this.removeStructuredData();
}

setMetaTags() Pattern

Must include all of:

  1. Title (50-60 chars, includes primary keyword)
  2. Meta description (150-160 chars, includes CTA)
  3. Keywords, robots, author
  4. Canonical URL via updateCanonicalLink()
  5. 8+ Open Graph tags
  6. 6+ Twitter Card tags

updateCanonicalLink() Helper

private updateCanonicalLink(url: string) {
  const existingLink = this.document.querySelector('link[rel="canonical"]');
  if (existingLink) {
    existingLink.setAttribute('href', url);
  } else {
    const link = this.document.createElement('link');
    link.setAttribute('rel', 'canonical');
    link.setAttribute('href', url);
    this.document.head.appendChild(link);
  }
}

addStructuredData() -- NO Browser-Only Guard

private addStructuredData() {
  const schemas = [ /* ... schema objects ... */ ];
  this.jsonLdScript = this.document.createElement('script');
  this.jsonLdScript.type = 'application/ld+json';
  this.jsonLdScript.text = JSON.stringify(schemas);
  this.document.head.appendChild(this.jsonLdScript);
}

removeStructuredData()

private removeStructuredData() {
  if (this.jsonLdScript && this.jsonLdScript.parentNode) {
    this.jsonLdScript.parentNode.removeChild(this.jsonLdScript);
  }
}

Sub-Commands

CommandDescriptionReference
audit [path]Full SEO audit of a page -- produces pass/fail tablereference/audit.md
implement [path]Implement SEO on a new page from scratchreference/implement.md
structured-data [path]Add or update JSON-LD structured datareference/structured-data.md
llms-txtMaintain llms.txt and llms-full.txt filesreference/llms-txt.md
checklist [path]Quick 15-item verification against prerendered HTMLreference/checklist.md
audit-build [dir]Audit every page of a built site, optionally diffed against the live build; framework-agnosticreference/audit-build.md

When no sub-command is given, default to audit on the target path. Use audit-build when a change touches many pages (a rebuild, a migration, a redesign) or when you need to know what it does to pages that already rank.

Anti-Patterns

  • Browser-only guard on JSON-LD: Never guard structured data with browser checks (e.g., isPlatformBrowser in Angular) -- it must render during SSR/SSG
  • Missing cleanup: Always remove JSON-LD scripts on component destroy to prevent duplication during SPA navigation
  • Hardcoded dates: Use the current date for dateModified in schemas
  • Generic descriptions: Every page needs a unique, specific meta description
  • Missing sitemap entry: Every new page must be added to the sitemap
  • Missing prerender config: Every new page must be configured for prerendering (e.g., routes.txt in Angular SSG)

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.