/anglesite:seo [page /about | schema | sitemap | og-images]from anglesite
Audits and fixes site SEO including page titles, meta descriptions, Open Graph tags, Schema.org structured data, sitemaps, robots.txt, and AI search visibility. Runs automatically before every deploy.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit and fix the site's SEO — page titles, meta descriptions, Open Graph tags, Schema.org structured data, sitemap, robots.txt, and AI search visibility. This is also called automatically as a non-blocking step before every deploy.
Read EXPLAIN_STEPS from .site-config. If true or not set, explain before every tool call that will trigger a permission prompt.
auditPage, auditSite, validateSitemap, auditRobotsTxt, generateRobotsTxt, generateLlmsTxt, auditChunkability, formatSeoReport, inferPageSchemaType, generatePageJsonLd, detectFaqSections, the AGENTIC_CRAWLER_BOTS constant, and the AgenticCrawlersPolicy typeParse the argument to determine what the owner is asking for. Every branch starts with Steps 1 and 2 (the audit always runs against the whole built site); the argument only narrows what you present and fix afterwards:
| Argument | After Steps 1–2 |
|---|---|
| (none) | Full site audit (default) — continue with Steps 3–6 |
page /slug | In Step 3 present only the findings for that page; in Step 4 fix only that page; skip Step 5; then Step 6 |
schema | In Step 3 present only the "no structured data" findings; in Step 4 do only "Missing Schema.org"; skip Step 5; then Step 6 |
sitemap | In Step 3 present only the sitemap and robots.txt findings; in Step 4 do only "Missing sitemap entries" and "robots.txt issues"; skip Step 5; then Step 6 |
og-images | In Step 3 present only the og:image and Twitter Card findings. If pages are missing a share image, read and follow ${CLAUDE_PLUGIN_ROOT}/skills/og-images/SKILL.md to generate them; then Step 6 |
Build the site first. All audits run against the built output.
npm run build
If the build fails, fix it before proceeding.
Run the audit script, which walks dist/ and applies every audit function from scripts/seo.ts:
npm run ai-seo
The script writes the formatted report to reports/seo-report.md (the reports/ directory is gitignored — regenerated on demand, never committed), prints a one-line summary to stderr, and exits 0 unless there are critical issues. Pages with <meta name="robots" content="noindex"> are skipped. Pass --warn-only to always exit 0 (used during the predeploy non-blocking call) or --json to get the machine-readable form on stdout.
The audit covers:
Per-page audit — For each HTML file, call auditPage(html, url) to check:
Cross-page audit — Collect all page titles and descriptions, call auditSite(pages) to check:
Schema.org audit — For each page, check if <script type="application/ld+json"> exists. Flag pages with no structured data.
Sitemap validation — Read dist/sitemap-index.xml (or dist/sitemap-0.xml), call validateSitemap(xml, builtPages, siteUrl) to check:
<lastmod> dates are presentrobots.txt audit — Read dist/robots.txt and AGENTIC_CRAWLERS from .site-config (default allow), then call auditRobotsTxt(content, siteUrl, agenticCrawlers) to check:
AGENTIC_CRAWLERS — under allow, warn if any agentic crawler is blocked; under block, warn if any centralized agentic crawler is not disallowed (the policy and the file have drifted apart)allow)dist/llms.txt exists when AGENTIC_CRAWLERS=block — if so, flag the inconsistency and offer to delete it (publishing an AI-readable index contradicts the owner's stance)LLM chunkability — For content-heavy pages, call auditChunkability(html, url) to flag sections with >225 words of unbroken prose.
Read reports/seo-report.md — the audit script already ranked the findings by severity. Present them to the owner in plain English:
For each Critical or Warning issue, offer to fix it:
Read the page content and generate appropriate SEO fields based on the actual content. Write them to the fields the template actually renders — there is no separate seo: block. For content entries (posts and other collections), edit the top-level frontmatter:
title: "Residential Plumbing Services in Springfield — Joe's Plumbing"
description: "Licensed residential plumber serving Springfield, IL. Drain cleaning, water heater repair, and emergency plumbing. Call (555) 123-4567."
image: "/images/og/services.png"
For .astro pages, update the title, description, and image props passed to <BaseLayout>.
Read BUSINESS_TYPE from .site-config. Pick the Schema type from the kind of page: blog post → BlogPosting, article → Article, FAQ → FAQPage, event → Event, product → Product, about → AboutPage, contact → ContactPage, anything else → WebPage. Write the JSON-LD object by hand — @context: "https://schema.org", @type, name (the page title), url, and description — and pass it via the jsonLd prop on <BaseLayout>. (scripts/seo.ts holds the same mapping and shapes if you need a reference; it is a library, not a command.)
For interactive experiment pages (canvas-based, WebGL, generative art), use CreativeWork or VisualArtwork Schema with interactivityType: "active", encodingFormat: "text/html", and artMedium matching the library used (e.g., "JavaScript", "WebGL", "p5.js"). For the lab/experiments index page, use CollectionPage with hasPart linking to individual experiments.
For pages with FAQ patterns (<details>/<summary> or <dt>/<dd> pairs), collect each question and answer from the page and generate FAQPage Schema with one Question / acceptedAnswer entry per pair in mainEntity.
For blog posts, generate BlogPosting with datePublished, author, and image from frontmatter.
Verify @astrojs/sitemap is in astro.config.ts integrations. If pages are excluded, check for noindex in the page or explicit exclusion in the sitemap config.
Read AGENTIC_CRAWLERS and SITE_DOMAIN from .site-config (policy defaults to allow) and edit public/robots.txt (the template ships one) so it matches the policy. Keep the existing User-agent: * / Allow: / / Disallow: /keystatic/ block, and:
Sitemap — if SITE_DOMAIN is set and there is no Sitemap: line, add Sitemap: https://SITE_DOMAIN/sitemap-index.xml at the end. If the domain isn't known yet, leave it — /anglesite:deploy adds it.
allow — no individual AI crawler rules; remove any Disallow: / block aimed at an agentic crawler. Cloudflare's bot dashboard controls AI access at the CDN level.
block — before the catch-all block, add one block per agentic crawler so robots.txt reflects the owner's stance even if Cloudflare's settings are bypassed:
User-agent: GPTBot
Disallow: /
Repeat for every name in the AGENTIC_CRAWLER_BOTS array in scripts/seo.ts (read the file for the current list).
The audit (npm run ai-seo) and /anglesite:check compare robots.txt against that same AGENTIC_CRAWLER_BOTS list, so add any new agentic crawler there.
This step only runs when the owner allows agentic crawlers. Read AGENTIC_CRAWLERS from .site-config first:
AGENTIC_CRAWLERS=block — skip this entire step. Don't generate llms.txt. If public/llms.txt already exists, delete it so it doesn't get republished:
rm public/llms.txt
Then confirm robots.txt blocks the centralized crawlers (fix it as described under "robots.txt issues" in Step 4 if needed).
AGENTIC_CRAWLERS=allow (default when unset) — proceed with the steps below.
When agentic crawlers are allowed:
public/llms.txt as a short markdown index of the site: a # SITE_NAME heading, a > blockquote with the one-line site description, a Website: https://SITE_DOMAIN line, then a ## Pages section with one - [Page title](https://SITE_DOMAIN/path/): page description bullet per public page (skip noindex pages and /keystatic). Take the titles and descriptions from the built pages. If SITE_DOMAIN isn't set yet, wait until the site has a domain.FAQPage Schema.org markup and are high-signal for AI search.AGENTIC_CRAWLERS is the single source of truth across three surfaces:
| Surface | AGENTIC_CRAWLERS=allow (default) | AGENTIC_CRAWLERS=block |
|---|---|---|
| Deploy gate (a14y) | runs as a deploy gate | skipped (informational only in /anglesite:check) |
llms.txt | written | not written; existing file is removed |
robots.txt | no Disallow for centralized agentic crawlers | each entry in AGENTIC_CRAWLER_BOTS gets its own Disallow: / |
When new agentic crawlers need to be tracked, add them to AGENTIC_CRAWLER_BOTS in scripts/seo.ts — the audits read from that array.
After any changes, rebuild and re-run the audit:
npm run build
npm run ai-seo
Confirm all Critical issues are resolved. Present the updated report.
scripts/pre-deploy-check.ts invokes runAudit from scripts/seo-audit.ts as a non-blocking step on every deploy. It writes reports/seo-report.md and surfaces a one-line summary in the predeploy warnings:
WARN: line pointing at reports/seo-report.md. The deploy is not blocked — /anglesite:deploy reads the report and walks the owner through fixes.--skip-seo to npm run predeploy (or /anglesite:deploy --skip-seo) to skip the audit entirely.After fixes, update:
docs/architecture.md if Schema.org or structured data changed.site-config if any SEO-related config was addedWhat SKILL.md sets; muted values are Claude Code's defaults
Use when the owner wants to show up better in Google or AI search, asks about SEO, page titles, descriptions, structured data, or sitemaps.
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job