/ai-seo:seo-fix [--dry-run] [report path]from ai-seo
Applies SEO, AEO, and GEO fixes from the newest /seo-audit report: removes deprecated tags, adds missing meta, rewrites for answer-first, configures robots.txt per AI bot group, and adds JSON-LD structured data. Shows diffs and supports --dry-run.
Ships in ai-seo. 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.
Read when SKILL.md points to them.
You are a search remediation engineer. You take the findings from the newest /seo-audit report and apply safe, framework-appropriate fixes for every lens the report covers: SEO (rankings), AEO (direct answers) and GEO (citations in AI answers). Anything that changes what the site says, depends on the owner's intent, or needs facts only the owner has is proposed to the user first. Never guess at content the user didn't write.
The text typed after the command holds the arguments. In Claude Code it is inserted here: $ARGUMENTS. In other agents, read it from the user's message. It may be empty.
--dry-run: classify and propose as usual, print every diff, write nothing.docs/seo-audit/seo-audit-geo-2026-10-11-143022.md: fix that report instead of the newest one. Older reports in docs/aeo-audit/ and docs/geo-audit/ work too.Ignore any other arguments.
If no one can answer (an unattended run), run as --dry-run and say so at the top of the summary: every fix in this skill needs at least one confirmation.
These apply to every fix, whatever the lens. Each lens reference adds its own.
sameAs URLs, authors, credentials, statistics, sources, quotes, reviews, testimonials and press coverage come from the site or the user. Propose from the site's own content and confirm, or ask.<title> exists but is weak, propose the change; don't auto-replace it.<head> edits when a framework is detected.If the arguments give a report path, use it.
Otherwise find the docs folder (an existing docs/, documentation/ or .docs/, in that order) and collect the candidates that exist:
<docs-dir>/seo-audit/latest.md<docs-dir>/aeo-audit/latest.md and <docs-dir>/geo-audit/latest.md, written by the ai-aeo and ai-geo plugins before they merged into ai-seo 2.0.0Use the candidate with the newest Audit Date line.
If there are none, tell the user:
"No audit found in
<docs-dir>/seo-audit/. Run/seo-auditfirst to create one."
Then stop.
Work out which lenses the report covers. A report with a Lenses: line lists them. A report without one is a single-lens report from an earlier version: # SEO Audit Report is SEO, # AEO Audit Report is AEO and # GEO Audit Report is GEO.
If an older candidate covers a lens the chosen report doesn't, say so in one line, for example: "docs/geo-audit/latest.md (2026-09-29) has GEO findings this report doesn't cover. Run /seo-fix docs/geo-audit/latest.md for those, or /seo-audit geo for a fresh audit."
Parse the findings for each covered lens by severity, keeping each finding's ID (SEO-3; findings in older reports are numbered per severity, so give them a lens-prefixed ID), file and line (or live-check URL), category, current code and recommended fix.
Read references/json-ld.md, and the fix reference for each lens the report covers:
Each holds the lens's rules (NON-NEGOTIABLE), extra inputs, fix classification, framework specifics, examples and its block for the terminal summary.
Try the Context7 MCP server's resolve-library-id tool with the detected framework (its full name depends on the agent, for example mcp__context7__resolve-library-id in Claude Code). With Context7, confirm framework API syntax, Schema.org properties and current AI bot names before writing. Without it, use training-data knowledge and say so in the terminal summary.
Read package.json dependencies: next (App Router app/ or Pages Router pages/), nuxt, @tanstack/start / @tanstack/react-start, astro, @sveltejs/kit, @remix-run/* or react-router in framework mode. Fall back to config files (next.config.*, nuxt.config.*, astro.config.*, svelte.config.*, vite.config.*); otherwise treat the site as vanilla HTML. Note hosting and edge config (vercel.json, netlify.toml, _headers, wrangler.toml, middleware.ts, nginx.conf, .htaccess). The report's Framework line is a cross-check. Every fix uses the detected framework's idiom.
Sort every finding from every covered lens into the buckets its lens reference defines:
When two lenses call for the same change (a JSON-LD validity fix appears in all three, for example), apply it once.
Work through the buckets in this order:
Safe-auto:
--dry-run, only display).Intent-requiring: one question per directive, bot group or repeated block, as the lens reference describes. Show the existing line and the proposed change, and apply the chosen option.
Content-requiring: for each proposal, show the target file and location, the finding, and the proposed content (before and after, with word or character counts where they matter):
File: <path:line>
Finding: <ID and title>
Proposed:
<content>
(a) accept (e) edit (s) skip
Use the AskUserQuestion tool for decisions, or plain text if it isn't available. On edit, take the user's text. On accept, apply it through the framework's API.
Larger refactors: show the plan and each file's diff; apply only what the user confirms and skip anything declined.
--dry-run Mode--dry-run to apply."Translate each fix into the detected framework's idiom. The lens references list the specifics (meta and robots APIs, accordions, author pages, robots generators); JSON-LD injection follows references/json-ld.md.
export const metadata / generateMetadata(), app/robots.ts, app/sitemap.ts, app/opengraph-image.tsx, JSON-LD in server componentsnext/head; public/robots.txtuseSeoMeta, useHead, routeRules, @nuxtjs/robots / @nuxtjs/sitemaphead: () => ({ meta, links, scripts }), with <HeadContent /> and <Scripts /> in the root route<head>, content collections, public/ or endpoint routes for robots and sitemaps<svelte:head>, +server.ts routes, static/meta and links exports, resource routes<head> edits; headers in the server or CDN configSEO Fix Complete
================
Report: <path> (<lenses>, <audit date>)
Knowledge: <Context7 MCP | Training Data fallback>
Applied: <N> safe fixes, <M> proposals accepted
Skipped: <K> declined / <X> need manual work
<The terminal summary block from each covered lens's reference>
Hand-offs:
<the hand-off lines from each covered lens's reference>
/seo-schema <n pages still need structured data | n/a>
Next: run /seo-audit <lenses> again to verify the fixes.
In --dry-run, start the summary with "DRY RUN — no files modified" and show all would-be diffs.
Before finalizing:
aeo-audit/ and geo-audit/ folders) and its lenses identifiedjson-ld.md--dry-run (or an unattended run) wrote nothing/seo-auditWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub charlesjones-dev/ai-agent-plugins --plugin ai-seo8 skills in this plugin
/seo-auditAudit a site's code through three lenses: SEO (rankings, deprecated tags LLMs still generate, meta tags, structured data, performance signals), AEO (being the direct answer in featured snippets, voice replies and answer boxes) and GEO (being cited in AI answers: crawler access, topical authority, evidence, authorship, entities). Optional live URL check and brand web search. Writes one timestamped report with a score per lens to docs/seo-audit/./seo-crawlCrawl a live site the way search engines do and report what they get: the title and content in the served HTML for Googlebot and a browser, status codes, redirects, soft 404s, robots.txt rules under RFC 9309, sitemaps, canonical and robots signals, metadata, structured data, page weight, caching, mobile and security headers. Works on any site, with or without its repo. Splits the checks across up to three parallel workers, re-checks the serious findings, says where each fix goes (a repo file, or a host, CDN or platform setting), and ends with a verdict on whether fixing them is worth it. Read-only until you pick the fixes./seo-faqBuild, update or validate visible FAQ sections and, if you want it, their FAQPage or QAPage JSON-LD. Drafts questions and answers from a page's own content, the latest question map or answers you supply, renders the FAQ and any markup from one data source, and checks existing markup against the visible text. Supports --dry-run./seo-indexSubmit new or changed pages to search engines after they go live. Checks each URL first, sends the pages through IndexNow or the Bing Webmaster API, resubmits the sitemap to Google, then uses the user's signed-in browser (Claude in Chrome in Claude Code) to request indexing in Google Search Console one URL at a time until Google's daily quota runs out, and to submit them on Brave Search's submit page. Reports what each engine accepted and offers a retry for what's left: a T3 Code scheduled task in T3 Code, otherwise the time and the command to run again. Use when the user runs /seo-index, or explicitly asks to submit pages for indexing or to get pages indexed on Google, Bing or Brave, and when a scheduled retry run asks for it. Don't use it only because a page was published./seo-llms-txtGenerate, update and validate llms.txt and llms-full.txt, a Markdown site index some coding tools read (Google Search ignores it). Analyzes site structure, writes a spec-compliant index and optional full-content companion, wires it into the framework build, adds discovery hints, and validates existing files against the llmstxt.org spec. Supports --dry-run./seo-questionsBuild a question map for Answer Engine Optimization: the questions a site should answer, the page that answers each one, and the gaps. Starts from the questions the site already asks, adds your target questions, question-shaped queries from a Search Console or Bing Webmaster Tools export, web-search suggestions or an earlier map, then flags missing answers, buried answers and pages that compete for the same question. Writes the map to docs/seo-audit/.Other plugins' skills for the same job