/ai-seo:seo-faq [build|update|gaps|validate] [page path] [markup=yes|no] [--dry-run]from ai-seo
Builds, updates, or validates visible FAQ sections with FAQPage/QAPage JSON-LD. Drafts answers from page content or user input, checks existing markup against visible text, 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 build FAQ sections that answer engines can lift cleanly (the AEO lens): one real question per item, an answer that opens with the answer, visible on the page in the initial HTML, with FAQPage (or QAPage) JSON-LD generated from the same data so the two never drift apart. You also validate FAQ markup that already exists.
The JSON-LD rules are in references/json-ld.md. Read its core rules and its FAQPage and QAPage section before writing or validating markup.
file:line) or from text the user supplies. Never invent prices, policies, timelines, figures or guarantees.<details>/<summary> or a toggle that hides with hidden or CSS; never render the answer only after a click. Google reads collapsed content, but Microsoft warns "AI systems may not render hidden content", so leave the most important questions open by default (<details open>) or answer them in the body text.<details>/<summary>, or a <button> with aria-expanded and aria-controls pointing at the answer.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.
| Argument | Answers | Values |
|---|---|---|
build, update, gaps or validate | Question 1, FAQ mode | Build a new FAQ, update an existing one, fill gaps from the question map, or validate FAQ markup across the site |
A page path, such as app/pricing/page.tsx | Question 2, Page | A file in the repository |
markup=yes or markup=no | Question 3, Markup | Add FAQPage (or QAPage) JSON-LD, or the visible FAQ only |
--dry-run | Print the would-be files and write nothing |
Ask only for what the arguments leave out. If no one can answer (an unattended run), use Validate mode unless a mode was given, and treat any other mode as --dry-run, since every drafted answer needs your review.
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 Schema.org FAQPage / QAPage properties and the framework's head API. Without it, say so in the summary.
Use the AskUserQuestion tool, or ask in plain text if it isn't available. Skip any question the arguments answered.
/seo-questions)package.json dependencies (next, nuxt, @tanstack/start / @tanstack/react-start, astro, @sveltejs/kit, @remix-run/* / react-router), falling back to config files; otherwise vanilla HTML. Detect the docs folder (an existing docs/, documentation/ or .docs/, or docs/) for the question map and validation results.faq, faqs, accordion, questions; content collection entries or frontmatter with faq/faqs fields; CMS schemas with FAQ blocks; existing FAQPage or QAPage JSON-LD.Collect candidates, each tagged with its source:
<docs-dir>/seo-audit/question-map-latest.md, or <docs-dir>/aeo-audit/question-map-latest.md from the ai-aeo plugin. If both exist, use the one with the newer Date line.Print the candidates as a numbered list with sources, then ask: "Keep all" / "Let me pick" (the user replies with numbers through the free-text option) / "Start over with my own list".
For each kept question:
file:line) under the draft.NEEDS ANSWER and ask the user for it. Don't guess.Q3. Can I change plans mid-cycle?
Draft (38 words): Yes. You can upgrade or downgrade at any time from Settings → Billing, and the price difference is prorated to the day. ...
Source: content/help/billing.md:22
(a) accept (e) edit (s) skip
export const faqs = [
{ question: 'Can I change plans mid-cycle?', answer: 'Yes. You can upgrade or downgrade at any time...' },
] as const
<details>/<summary> or the existing accessible accordion. Answers stay in the HTML, and the first few (or the most important) items are open by default.<script type="application/ld+json">.--dry-run, print and stop.Check every page with FAQ or QAPage markup:
QAPage has mainEntity → Question with name, answerCount, and acceptedAnswer or suggestedAnswer.@context: "https://schema.org", absolute URLs.Print the validation results in the terminal. Ask whether to save them as <docs-dir>/seo-audit/faq-validation-YYYY-MM-DD-HHMMSS.md; an unattended run doesn't save them.
Next.js (App Router):
// app/pricing/faq.tsx (server component)
import { faqs } from './faq-data'
export function PricingFaq() {
const ld = {
'@context': 'https://schema.org',
'@type': 'FAQPage',
mainEntity: faqs.map(f => ({
'@type': 'Question',
name: f.question,
acceptedAnswer: { '@type': 'Answer', text: f.answer },
})),
}
return (
<section aria-labelledby="faq-heading">
<h2 id="faq-heading">Frequently asked questions</h2>
{faqs.map((f, i) => (
<details key={f.question} open={i < 3}>
<summary>{f.question}</summary>
<p>{f.answer}</p>
</details>
))}
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(ld).replace(/</g, '\\u003c') }} />
</section>
)
}
Nuxt:
<script setup lang="ts">
import { faqs } from '~/data/pricing-faq'
useHead({
script: [{
type: 'application/ld+json',
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'FAQPage',
mainEntity: faqs.map(f => ({ '@type': 'Question', name: f.question, acceptedAnswer: { '@type': 'Answer', text: f.answer } })),
}),
}],
})
</script>
<template>
<section aria-labelledby="faq-heading">
<h2 id="faq-heading">Frequently asked questions</h2>
<details v-for="(f, i) in faqs" :key="f.question" :open="i < 3">
<summary>{{ f.question }}</summary>
<p>{{ f.answer }}</p>
</details>
</section>
</template>
Astro: keep the FAQ in the page's content collection frontmatter (faqs:), render <details> items in the layout, and emit JSON-LD with <script type="application/ld+json" set:html={JSON.stringify(ld)} />.
SvelteKit: a +page.ts (or +page.server.ts) load returns faqs; render {#each} with <details>; JSON-LD in <svelte:head> with {@html} on a serialized string.
TanStack Start: data from the route loader; JSON-LD via route head scripts; <details> items in the component.
Remix / React Router: loader returns faqs; render server-side; JSON-LD in the route component or via meta.
Vanilla HTML: <details> items and a JSON-LD <script> written from the same source list (or a small build script if the FAQ repeats in several places).
Escape < as < when serializing JSON-LD into a script tag (as in the Next.js example) so answer text can't close the tag early. Apply the same escaping in the Nuxt, Astro and SvelteKit versions unless the framework's head API already escapes it.
SEO FAQ Complete
================
Mode: <Build | Update | Fill gaps | Validate>
Framework: <framework>
Knowledge: <Context7 MCP | Training Data fallback>
Page: <path or "site-wide validation">
Questions: <n> added, <n> updated, <n> removed
Answers: <n> from site content, <n> from you, <n> still NEEDS ANSWER
Data file: <path>
Markup: <FAQPage | QAPage | none (visible FAQ only)>, matches visible text: <yes | issues | n/a>
Validation:
Pages with FAQ markup: <n>
Hidden or mismatched items: <n>
Repeated across pages: <n>
Wrong type (FAQ vs QA): <n>
Note: Google stopped showing FAQ rich results in May 2026. The visible FAQ is what readers and engines use.
Next: run /seo-audit aeo to re-score, or /seo-questions to find more gaps.
In --dry-run, say "DRY RUN — no files modified" and print the would-be files.
json-ld.md--dry-run wrote nothingWhat SKILL.md sets; muted values are Claude Code's defaults
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-fixApply fixes from the newest /seo-audit report, for whichever lenses it covers. SEO: removes deprecated tags and adds missing meta. AEO: answer-first rewrites, real lists and tables, answers kept in the HTML, snippet-control changes after you confirm intent. GEO: robots.txt rules for each AI bot group after asking, Organization and Person JSON-LD with sameAs links you supply, dateModified, sources and topic hubs. Shows a diff for each change and supports --dry-run.Other plugins' skills for the same job