/kosh:aeo <url> [local|development|staging|production]from kosh
Evaluates how AI tools discover, parse, and cite a website. Runs browser-based QA tests for Answer Engine Optimization (AEO) across ChatGPT, Perplexity, Claude, and Google AI Overviews.
Ships in kosh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Parse $ARGUMENTS into a URL and an optional environment type before doing anything else:
http:// or https://). If no URL is found, ask the user to provide one before proceeding. Do not begin testing without a valid URL.local, development, staging, or production. If not provided, infer it from the URL when possible (e.g., .test/.local domains and localhost suggest local; staging.* subdomains suggest staging, and so does a host's temporary address, like Pressable's *.mystagingwebsite.com or WordPress.com's *.wpcomstaging.com, since a site there usually hasn't launched yet). Default to production if unclear.kosh's own files are in the folder two levels above this skill's folder: the one that holds skills/. Below, <kosh> stands for that folder's absolute path. Run every command from the folder you started in, since that's where kosh-reports/ goes.
Navigate to the extracted URL and conduct an Answer Engine Optimization (AEO) / AI Mode QA test, evaluating how the site will be discovered, parsed, understood, and cited by AI tools like ChatGPT, Perplexity, Claude, and Google AI Overviews. Follow the full procedure below, using the determined environment type to guide how findings are reported.
You are an AEO-focused Quality Engineer using the Playwright MCP to perform live browser inspection of how a website will be discovered, parsed, understood, and cited by AI tools like ChatGPT, Perplexity, Claude, and Google AI Overviews.
You are not a QA engineer looking for visual bugs or a potential client judging design. You are asking one question: will this site be found, understood, and cited by AI-powered tools?
This rubric is site-type-aware. The same 49 signals apply to any site — agencies, ecommerce stores, media publications, SaaS products, educational institutions, local businesses, nonprofits, community sites — but the evidence for each signal differs by type. Phase 0 detects the site type and propagates that classification into Phases 1–3.
aeoRubricVersion: 1.0
Include this exact value in the aeoRubricVersion field of every report you generate. Do not modify it.
browser_navigate and browser_evaluate to inspect DOM, schema, and meta tags on each pagebrowser_navigate to fetch robots.txt, sitemap.xml, llms.txt, and llms-full.txt as separate top-level requestspass / partial / fail / na. Do not skip signals or leave status blankfail or partialeffort field on every issue object. Valid values: low, medium, high, unknown. Do not omit itkosh-reports/data/qa-report-aeo.json<title>, og:site_name, or the WordPress site title in the headerIf you cannot perform these actions, explicitly state that the Playwright MCP is not available and cannot proceed.
The rubric in this skill is the standard. Eight criteria, 49 signals, each evaluated to one of pass / partial / fail / na. The rubric is site-type-aware — Phase 0 detects type, and several signals evaluate against type-specific evidence.
Every signal in this skill is assigned one of four status values. There are no numerical scores or thresholds — the report communicates state through the status of each signal plus the issues list, not a "X/100" rollup.
| Status | Meaning |
|---|---|
pass | Signal meets the highest tier of its evaluation criteria. The thing the rubric is checking for is present and well-formed. |
partial | Signal meets a middle tier — present but incomplete, sparse, or correct in one dimension and not another. |
fail | Signal meets the bottom tier — absent, broken, fundamentally wrong, or contradicting the goal. |
na | Signal does not apply to this site. Used sparingly — see per-signal N/A guidance. Record rationale in notes. |
Each signal's section in Section 1, 2, or 3 defines exactly what evidence maps to each status. The <kosh>/skills/aeo/references/evaluation-rubric.md reference file is the quick-lookup index.
After Phase 4 evaluation, every signal at status fail or partial produces:
issues (see "Issue severity guide" in Phase 5)actionablePrompts with a paste-ready Claude promptThe top-level summary block carries the counts: { totalSignals: 49, pass, partial, fail, na }. The full rubric and signal definitions live in:
<kosh>/skills/aeo/references/evaluation-rubric.md — per-criterion signal list with pass/partial/fail tier definitions<kosh>/skills/aeo/references/signal-keys.md — canonical signal keys for the JSON report<kosh>/skills/aeo/references/faq-detection.md — the canonical koshFaqProbe() and the single definition of every FAQ determination (relevance, schema tier, cross-page aggregation, status mapping). Four signals depend on it; never inline or re-derive its logic in this file<kosh>/skills/aeo/references/wp-seo-capabilities.md — what WordPress core and Jetpack emit natively per signal; drives native-first fix recommendations and carries the lastVerified date for the staleness checkUnderlying frameworks the rubric draws on:
The site may be running in a non-production environment (local, development, or staging). The environment may be specified explicitly by the user or inferred from the URL.
If you detect signs of a non-production environment that wasn't explicitly specified, note it in technicalNotes and apply the guidance above.
robots.txt, sitemap.xml, llms.txt, and llms-full.txt as separate top-level navigationsbrowser_evaluate for schema / meta / heading inspection on the homepagekosh-reports/screenshots/homepage-aeo-desktop.pngvisitedPages arrayIf you skip any of these steps, the test is incomplete and will not be accepted.
Some WordPress sites are gated and not publicly reachable: the browser loads a coming-soon launchpad, a password prompt, or a private-site notice instead of the real site. Others have moved, and the URL redirects to another host. Testing either produces an empty or misleading report. After the first navigation to the homepage, before any other step, run this check with browser_evaluate, passing the URL you were asked to test:
() => __kosh.gate("<the URL you were asked to test>")
It returns { gate, redirectedTo }. If __kosh is not defined, the browser was started without kosh's init script (<kosh>/collectors/kosh.js): stop and tell the user.
If both are null, proceed with testing normally. From then on kosh's browser stays on that host: a page on another host, whether you open it or a link or redirect leads there, and a request your own code sends to another host fail with net::ERR_BLOCKED_BY_CLIENT. That is kosh keeping the run on the site under test, not a fault in the site, so it isn't a finding on its own; don't look for another way to reach that page.
If gate is set (coming-soon, password-protected or private), do NOT generate a report. Stop and tell the user which gate was detected, then offer the bypass:
PushNotification so the user is alerted even if they've stepped away (e.g. kosh: site is gated (private) — log in in the open browser, then say continue). Tell the user the site is gated and that the browser is left open. Ask them to authenticate in that window — log in to WordPress.com (coming-soon / private) or enter the site password (password-protected) — then reply to continue. When they continue, re-run the check above and only proceed once both fields are null. If gate is still set, report that authentication didn't clear the gate and stop.Private sites require access, not just a login: if the WordPress.com account hasn't been granted access to that specific site, the gate persists after login. That's a site-permission issue, not a kosh issue.
If redirectedTo is set, do NOT generate a report either: the site now lives on another host, and a report would measure a site other than the one requested. Stop and tell the user the URL redirects to redirectedTo, so they can re-run the test against it. If redirectedTo is a login or access page rather than a site (single sign-on, an access wall), treat it as a gate instead: offer the bypass above, and proceed once the check returns both fields null.
kosh-reports/data/qa-report-aeo.json matching <kosh>/schemas/qa-report-aeo-schema.jsonThe rubric evaluates 49 signals that apply to any website, but several signals — whoWhatWho, primaryFocusSpecificity, primaryOfferingDetail, namedSpecificEntities, namedSubjectAreas, recentFeaturedWork — are assessed against type-specific evidence, and schema signals (primaryEntitySchema, relevantSchemasApplied) are assessed against content relevance detected in Section 0.4 rather than the siteType label. Detect the type and the schema-relevance map once at the start so every downstream phase has them.
browser_navigate to the homepage, then browser_evaluate:
// JSON-LD types
const jsonLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]));
// Flatten array `@type` values (e.g. Yoast's `@type: ['Person','Organization']`)
// so the resulting Set contains strings, not nested arrays — matches Phase 0.4.
const jsonLdTypes = new Set(jsonLd.map(s => s['@type']).filter(Boolean).flat());
// Microdata types (treat as equivalent format-of-the-same-truth)
const microdataTypes = new Set(
Array.from(document.querySelectorAll('[itemscope][itemtype]'))
.map(el => {
const t = el.getAttribute('itemtype') || '';
const m = t.match(/schema\.org\/(\w+)/);
return m ? m[1] : null;
})
.filter(Boolean)
);
// RDFa types (rare but real — typeof attribute under vocab="http://schema.org/")
const rdfaTypes = new Set(
Array.from(document.querySelectorAll('[typeof]'))
.filter(el => {
// Only count if a vocab/prefix indicates schema.org
const vocab = el.closest('[vocab]');
const prefix = el.closest('[prefix]');
return (vocab && /schema\.org/.test(vocab.getAttribute('vocab'))) ||
(prefix && /schema(:|=)\s*http:\/\/schema\.org/.test(prefix.getAttribute('prefix')));
})
.flatMap(el => (el.getAttribute('typeof') || '').split(/\s+/))
.filter(Boolean)
);
// Union of all three formats — the rest of the decision tree should work off this set
const schemaTypes = [...new Set([...jsonLdTypes, ...microdataTypes, ...rdfaTypes])];
// Per-format counts for the technicalNotes payload
const schemaFormats = {
jsonLd: jsonLdTypes.size,
microdata: microdataTypes.size,
rdfa: rdfaTypes.size
};
const hasShopMarkers = !!document.querySelector('[class*="cart"], [class*="checkout"], [class*="product"], [data-product-id], [id*="add-to-cart"]');
const hasCourseLinks = Array.from(document.querySelectorAll('a[href]')).some(a => /\/course|\/curriculum|\/enroll|\/program/.test(a.href));
const hasBlogPattern = !!document.querySelector('article, [class*="post-"], [class*="article"]') && Array.from(document.querySelectorAll('a[href]')).filter(a => /\/(blog|news|articles|posts)\//.test(a.href)).length >= 3;
const hasSaasMarkers = Array.from(document.querySelectorAll('a, button')).some(el => /sign up|start free|try free|get started|book a demo|request demo|pricing/i.test(el.innerText.trim())) && !!document.querySelector('a[href*="/pricing"], a[href*="/login"], a[href*="/signup"], a[href*="/sign-up"]');
const hasNonprofitMarkers = Array.from(document.querySelectorAll('a, button')).some(el => /donate|give now|join us|become a member/i.test(el.innerText.trim()));
const hasLocalBusinessMarkers = !!document.querySelector('[class*="address"], [class*="hours"], [itemtype*="LocalBusiness"], [itemtype*="Restaurant"]') ||
/open\s+(mon|tue|wed|thu|fri|sat|sun)|book\s+(a|an)\s+(table|appointment)|reservations/i.test(document.body.innerText);
return {
schemaTypes, // union across JSON-LD + microdata + RDFa
schemaFormats, // per-format counts for technicalNotes
hasShopMarkers,
hasCourseLinks,
hasBlogPattern,
hasSaasMarkers,
hasNonprofitMarkers,
hasLocalBusinessMarkers,
generator: (document.querySelector('meta[name="generator"]') || {}).getAttribute && document.querySelector('meta[name="generator"]').getAttribute('content')
};
The decision tree below treats schemaTypes as a format-agnostic union — sites using microdata or RDFa are detected the same as JSON-LD sites for typing purposes. The per-format breakdown in schemaFormats is preserved for technicalNotes and the jsonLdFormat evaluation in Section 1.3.
Walk this tree top to bottom and stop at the first match. Record siteType, siteTypeConfidence, and a one-sentence siteTypeRationale.
ecommerce — schema includes Product, Offer, or Store; OR hasShopMarkers AND ≥3 visible product cards. high confidence.localBusiness — schema includes LocalBusiness, Restaurant, Dentist, MedicalBusiness, etc.; OR hasLocalBusinessMarkers AND a visible address/phone. high confidence.education — schema includes Course, EducationalOrganization, or School; OR hasCourseLinks AND tuition / enroll / curriculum copy. high confidence.mediaBlog — schema includes Article, BlogPosting, NewsArticle, Newspaper, or Blog; OR hasBlogPattern AND a top-level /blog, /news, /posts, /articles route. high confidence when schema present, medium when pattern-only.nonprofit — schema includes NGO or EducationalOrganization with nonprofit indicators; OR hasNonprofitMarkers AND ".org" / ".charity" TLD or copy explicitly using "nonprofit", "charity", "501(c)(3)". high confidence.saas — schema includes SoftwareApplication; OR hasSaasMarkers AND a pricing page link AND a login/signup link. high confidence when schema present, medium when pattern-only.agency — schema includes ProfessionalService, multiple Service entries, or Organization with serviceType populated; OR copy explicitly references "agency", "consultancy", "studio" AND a portfolio / case study route exists. high confidence when schema present, medium when copy-only.community — forum, wiki, fan site, user-generated content patterns; visible login required for content, user profiles, discussion threads. medium confidence at best.other — none of the above match cleanly. low confidence — flag in rationale.If two categories tie (e.g. a SaaS company with a heavy blog), pick the one matching the most-prominent homepage content area and note the secondary type in siteTypeRationale. Most homepages weight one type primarily.
The site type changes what evidence counts for these content-quality signals — the evaluation criteria and the underlying question stay constant. Schema-related signals are NOT in this list; schema evaluation is content-driven via Section 0.4, not siteType-driven.
| Signal | Site-type-specific evidence |
|---|---|
whoWhatWho | "Who is the business / what services / who do they serve" (agency) vs "Who publishes / what topics / what audience" (mediaBlog) vs "Who makes the product / what does it do / for whom" (saas/ecommerce) etc. |
primaryFocusSpecificity | Service offering (agency) / product category (ecommerce) / editorial topic (mediaBlog) / software category (saas) / program area (education/nonprofit) |
primaryOfferingDetail | Service detail (agency) / product detail (ecommerce) / content vertical detail (mediaBlog) / feature/use-case detail (saas) |
namedSpecificEntities | Platforms & tech (agency/saas) / brands (ecommerce) / publishers, sources, cited researchers (mediaBlog) / accreditations, frameworks (education/nonprofit) |
namedSubjectAreas | Industries served (agency) / product categories (ecommerce) / topic verticals (mediaBlog) / fields of study (education) / program areas (nonprofit) |
recentFeaturedWork | Recent portfolio or case studies (agency) / new products or collections (ecommerce) / recent articles (mediaBlog) / changelog/releases (saas) / recent courses/cohorts (education) / recent campaigns/programs (nonprofit) |
All other signals are evaluated the same regardless of site type. Schema signals (primaryEntitySchema, relevantSchemasApplied, and the existing faqSchema / faqSchemaApplied / reviewSchema / organizationSchema) are evaluated against the content present on the site, not against the siteType label. A nonprofit that runs an annual conference needs both NGO/Organization schema AND Event schema — Section 0.4 detects both.
Schema evaluation is content-driven, not siteType-driven. The same site can need multiple schemas: a nonprofit that runs events needs Event schema, a media blog with tutorials needs HowTo schema, an agency homepage profiling a single founder needs Person schema.
For each schema type below, observe whether the site's content actually warrants it, and record a relevance level: high (clearly applicable, the content pattern is prominent), medium (some applicable content but secondary to the dominant type), low (one-off mention or weak pattern), or absent (no content the schema would describe).
// Run on the homepage. Most relevance scans are pattern-based; ambiguous cases
// (e.g. "is this primarily editorial or primarily conference site") use
// content judgment in Phase 3 — record an initial relevance here and revisit.
const text = document.body.innerText;
const lower = text.toLowerCase();
// Person — bylined posts, named single-person bio, homepage profile pattern
const hasNamedHeroBio = !!document.querySelector('[class*="hero"], [class*="bio"], [class*="about"]') &&
/\bi'?m\s+[A-Z][a-z]+|\bmy\s+name\s+is\s+[A-Z][a-z]+/.test(text);
const hasBylines = /\bby\s+[A-Z][a-z]+\s+[A-Z][a-z]+/.test(text);
const personRelevance = hasNamedHeroBio ? 'high' : hasBylines ? 'medium' : 'absent';
// Article / BlogPosting — listing of 3+ dated posts, article-like content
const hasBlogListing = Array.from(document.querySelectorAll('a[href]'))
.filter(a => /\/(blog|news|articles|posts)\//.test(a.href)).length >= 3;
const hasArticleElement = !!document.querySelector('article, [class*="article"], [class*="post-"]');
const articleRelevance = hasBlogListing ? 'high' : hasArticleElement ? 'medium' : 'absent';
// Organization — always relevant; the question is whether it's populated correctly
const organizationRelevance = 'high';
// LocalBusiness — visible address, hours, booking copy
const hasAddress = !!document.querySelector('[class*="address"], address, [itemprop="address"]') ||
/\b\d{1,5}\s+[A-Z][a-z]+\s+(street|st|avenue|ave|road|rd|boulevard|blvd|drive|dr)\b/i.test(text);
const hasHours = /\bopen\s+(mon|tue|wed|thu|fri|sat|sun)|hours:\s|monday\s+\d/i.test(lower);
const hasBooking = /\bbook\s+(a|an)\s+(table|appointment|reservation)|reserve\s+now|reservations/.test(lower);
const localRelevance = (hasAddress && hasHours) ? 'high' : (hasAddress || hasBooking) ? 'medium' : 'absent';
// Event — dated event listings with venue/registration
const hasEventDatePattern = /\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]*\s+\d{1,2},?\s+20\d{2}\s*(at|·|—|-)\s*\d/i.test(text);
const hasEventCopy = /\bregister\s+now|tickets|conference|symposium|summit|webinar|workshop\s+on\s+/.test(lower);
const hasMultipleEvents = (text.match(/\bregister|tickets|join\s+us\s+on/gi) || []).length >= 2;
const eventRelevance = (hasEventDatePattern && hasMultipleEvents) ? 'high' : hasEventCopy ? 'medium' : 'absent';
// FAQ — relevance comes from the canonical FAQ probe, the single source of truth for
// every FAQ determination in this skill (see <kosh>/skills/aeo/references/faq-detection.md). Inject
// koshFaqProbe alongside this scan and read its faqRelevance: 'high' for a genuine FAQ
// marker (container / "frequently asked" heading / 2+ <details> accordion), 'medium' for
// a de facto FAQ (3+ question-framed headings EACH followed by answer text), 'absent'
// otherwise — so a lone CTA like "Questions?" never manufactures a phantom FAQ.
// Do NOT re-derive any of that logic here: this file previously carried four separate
// copies of it, and every fix round left one behind.
const faqRelevance = koshFaqProbe().faqRelevance;
// HowTo — numbered step sequence with a stated goal
const hasOrderedSteps = !!document.querySelector('ol li + li + li') ||
/\bstep\s+1\b[\s\S]{0,500}\bstep\s+2\b/i.test(text);
const hasHowToFraming = /\bhow\s+to\s+[a-z]/i.test(text) || /\btutorial|guide:|step-by-step/i.test(lower);
const howToRelevance = (hasOrderedSteps && hasHowToFraming) ? 'high' : hasOrderedSteps ? 'medium' : 'absent';
// Product — cart/checkout markers, product cards
const hasShop = !!document.querySelector('[class*="cart"], [class*="checkout"], [data-product-id], [id*="add-to-cart"]');
const hasProductCards = document.querySelectorAll('[class*="product"]').length >= 3;
const productRelevance = (hasShop && hasProductCards) ? 'high' : hasShop ? 'medium' : 'absent';
// Course — curriculum / syllabus / enrollment
const hasCourseLinks = Array.from(document.querySelectorAll('a[href]'))
.some(a => /\/course|\/curriculum|\/enroll|\/program|\/syllabus/.test(a.href));
const hasCourseCopy = /\btuition|enroll(ment)?|syllabus|curriculum|prerequisites|cohort/i.test(text);
const courseRelevance = (hasCourseLinks && hasCourseCopy) ? 'high' : hasCourseCopy ? 'medium' : 'absent';
// Recipe — ingredients + instructions pattern
const hasIngredients = /\bingredients[:\s]/i.test(text) && /\b(cup|tablespoon|teaspoon|gram|ounce|oz|tbsp|tsp)s?\b/i.test(text);
const hasCookingSteps = /\b(preheat|simmer|sauté|saute|whisk|fold in|bake at)\b/i.test(text);
const recipeRelevance = (hasIngredients && hasCookingSteps) ? 'high' : hasIngredients ? 'medium' : 'absent';
// Review / AggregateRating — review content visible
const hasReviewCopy = /\b\d+(\.\d+)?\s*(out of|\/)\s*5\b|\bcustomer reviews|\b\d+\s+reviews\b/i.test(text);
const reviewRelevance = hasReviewCopy ? 'high' : 'absent';
return {
applicableSchemas: {
Person: personRelevance,
Article: articleRelevance,
Organization: organizationRelevance,
LocalBusiness: localRelevance,
Event: eventRelevance,
FAQPage: faqRelevance,
HowTo: howToRelevance,
Product: productRelevance,
Course: courseRelevance,
Recipe: recipeRelevance,
Review: reviewRelevance
}
};
For ambiguous sites — for example, an editorial publication that also runs an annual conference where the conference content is prominent on the homepage — use a brief Phase 3 content read to confirm or adjust the relevance level. The pattern detection above is intentionally conservative: high only fires when the pattern is unambiguous.
Persist the result as technicalNotes.applicableSchemas. It drives two signals downstream:
primaryEntitySchema (Section 1.3) — the dominant schema type for this site is the one with the most prominent relevance signal. Evaluate against its presence and completeness.relevantSchemasApplied (Section 1.3) — coverage ratio across every schema with relevance high or medium.Note:
Organizationis alwayshigh, but it's evaluated under its own standalone signal (organizationSchema) — not double-counted inprimaryEntitySchemaorrelevantSchemasApplied. Similarly,FAQPageandReviewhave their own standalone signals and aren't double-counted.
FAQ detection is defined once, in
<kosh>/skills/aeo/references/faq-detection.md. That file holds the canonicalkoshFaqProbe()— visible-FAQ evidence and FAQ-schema tier in a single per-page call — plus the cross-page aggregation rules, thefaqSchema/faqSchemaAppliedstatus mapping, and the per-branchnotes/remedy strings. Inject and run it on every page where FAQ evidence is collected (homepage in Section 1.3, a dedicated/faqpage per Section 1.4 and the Phase 2 optional visit, and the Section 2.1 functional page), then aggregate the strongest observation on each axis independently:faqRelevance(high>medium>absent) andfaqSchemaTier(valid>weak>none).Both axes must travel together, which is why the probe returns them from one call. Raising relevance from an inner page without probing that page's schema is what produced reports where
faqSectionPresent: partial("there's an unmarked FAQ") sat next tofaqSchema: na("this site has no FAQ") for the same site. And because the probe is defined in exactly one place, the three sections that consume it can no longer drift apart — the failure mode that repeatedly reopened falsecriticalfindings when each copy was patched separately.
FAQPageis deliberately excluded fromrelevantSchemasAppliedviaSTANDALONE_SIGNALS, so that coverage ratio is not a consumer of these values.
browser_resize if neededbrowser_take_screenshot with filename: "kosh-reports/screenshots/homepage-aeo-desktop.png" (full page). Pass a path relative to the project, kosh-reports/screenshots/..., as filename, not an absolute one; a bare filename saves to the project root, so do NOT pass a bare name and move the file afterward.browser_navigate to [baseURL]/robots.txt. Capture the body text. Then browser_navigate back to the homepage.
The 2026 consensus posture is block training scrapers, allow live-retrieval bots. Evaluate against the live-retrieval allowlist; treat training blocks as neutral (intentional, not a failure).
Live-retrieval bots — should be ALLOWED:
OAI-SearchBot — OpenAI ChatGPT search retrievalChatGPT-User — OpenAI ChatGPT user-initiated browsingClaude-User — Anthropic Claude user-initiated retrievalClaude-SearchBot — Anthropic Claude search retrievalPerplexityBot — Perplexity retrieval and citationYouBot — You.com retrievalGooglebot — Google Search and AI Overviews crawlerTraining scrapers — blocking is acceptable (and increasingly common):
GPTBot — OpenAI training scraperClaudeBot — Anthropic training scraper (the current name; anthropic-ai and Claude-Web are deprecated and should not be checked)Google-Extended — Google's training opt-out tokenCCBot — Common CrawlMeta-ExternalAgent, FacebookBot — Meta trainingEvaluation:
pass — All live-retrieval bots above are allowed (or no explicit Disallow blocks them under User-agent: * or named user-agents). Training scrapers may be allowed or blocked — no penalty either way.partial — One live-retrieval bot is blocked (e.g. a stale rule blocks PerplexityBot) but the rest are fine.fail — Multiple live-retrieval bots blocked, OR a blanket Disallow: / under User-agent: * blocks everything, OR robots.txt is absent, OR present but severely misconfigured (broken syntax, redirects).Do NOT penalize blocking
GPTBot,ClaudeBot,Google-Extended,CCBot. These are training scrapers, not retrieval bots, and blocking them does not affect citation visibility. If the site blocks training but allows retrieval, record this innotesas"Training scrapers blocked, retrieval bots allowed — modern 2026 posture."Environment note: on
local/development, treat any robots.txt config as neutral — recordpasswith a note about the environment. Onstaging, a blanket Disallow is expected and not a finding — recordpass.
const robotsMeta = document.querySelector('meta[name="robots"]');
const content = robotsMeta ? robotsMeta.getAttribute('content').toLowerCase() : '';
return {
metaRobots: content || null,
hasNoindex: content.includes('noindex'),
hasNofollow: content.includes('nofollow')
};
Evaluation:
pass — No noindex on the homepage.fail — A noindex meta tag is present on the homepage.Environment note: on
localordevelopment, noindex is correct and not a finding. Record status aspasswith a note about the environment intechnicalNotes. Onstaging, noindex is expected — recordpassbut flag as a reminder if the staging URL was provided for AEO review.
const isHTTPS = window.location.protocol === 'https:';
const mixedContent = Array.from(document.querySelectorAll('img[src^="http:"], script[src^="http:"], link[href^="http:"]'));
return {
https: isHTTPS,
mixedContentCount: mixedContent.length,
examples: mixedContent.slice(0,3).map(el => el.src || el.href)
};
Evaluation:
pass — HTTPS active and no mixed content.partial — HTTPS but mixed content (HTTP-served images, scripts, or stylesheets) present.fail — HTTP only.browser_navigate to [baseURL]/sitemap.xml. If 404, check robots.txt for a Sitemap: directive and navigate there if it's on the site's own host. A Sitemap: on another host is recorded, not opened: its page is text nobody has vetted. (Yoast and RankMath typically emit /sitemap_index.xml; follow the first child sitemap on the same host.) Capture the first ~3000 characters.
Parse for valid XML, presence of <lastmod> entries, and whether any are within the last 90 days.
Evaluation:
pass — Sitemap present with recent lastmod entries (within 90 days).partial — Sitemap present but without <lastmod> entries, OR all dates stale (over 1 year old).fail — Sitemap absent.Check whether the H1 and substantial body copy are in the homepage's static HTML, which is what a crawler that doesn't run JavaScript reads. browser_navigate to the homepage ([baseURL]/), then call () => __kosh.staticHtml(location.href) with browser_evaluate. Passing the address the browser landed on, after any redirect, keeps the fetch on the page's own origin, since the browser blocks one to another origin. It fetches that page's HTML again and parses it without running any of it, and returns the url it read, the response status, h1Present, h1Text and bodyTextLength. The live page in the browser has already run its JavaScript, so don't read the H1 or body text from it for this check. If it returns an error saying the page isn't HTML, the browser wasn't on the homepage: navigate there and call it again. Any other error (the fetch failed, or the server answered with an error status) means the HTML couldn't be read: rate the signal na and put the error and the url in its notes.
Evaluation:
pass — H1 and 500+ chars of body copy visible without JS.partial — Some content visible but significantly degraded.fail — Page is blank or nearly empty without JS.WordPress note: standard themes render server-side and pass this check easily. Headless WordPress with a Next.js frontend may fail; record the framework in
technicalNotes.cmsDetected.
AI engines explicitly use <link rel="canonical"> to dedupe pages and pick the source-of-truth URL when synthesizing answers. Missing or wrong canonical tags cause the AI to weight signals across duplicate URLs, dropping citation weight on the page you actually want cited.
Check the homepage, then sample at least 2 inner pages from Phase 2:
const canonical = document.querySelector('link[rel="canonical"]');
const canonicalHref = canonical ? canonical.getAttribute('href') : null;
return {
present: !!canonical,
href: canonicalHref,
selfReferential: canonicalHref && new URL(canonicalHref).pathname === window.location.pathname
};
Evaluation:
pass — Homepage has <link rel="canonical"> AND at least 2 inner pages have self-referential canonical tags (the canonical points to the page itself, not somewhere else).partial — Homepage canonical present but inner pages missing canonical, OR canonical present everywhere but points to the wrong URL on some pages (common Yoast/RankMath misconfiguration).fail — No canonical tag on the homepage.WordPress note: Yoast and RankMath emit self-referential canonicals automatically — most WordPress sites pass this signal. SPAs and headless implementations frequently miss it; flag in
effortRationale.
const scripts = Array.from(document.querySelectorAll('script[type="application/ld+json"]'));
const schemas = scripts.map(s => {
try {
const parsed = JSON.parse(s.innerText);
return { type: parsed['@type'] || (parsed['@graph'] ? '@graph' : 'unknown'), keys: Object.keys(parsed) };
} catch(e) {
return { type: 'invalid', error: e.message };
}
});
return { count: scripts.length, schemas };
Record which schema types are present. Invalid (unparseable) JSON-LD counts as absent.
Check JSON-LD for @type: "Organization" or @type: "LocalBusiness". If present, verify: name, url, logo, description, sameAs. Also check microdata:
const microdataOrg = document.querySelector('[itemscope][itemtype*="schema.org/Organization"], [itemscope][itemtype*="schema.org/LocalBusiness"]');
return { microdataOrg: !!microdataOrg };
Evaluation:
pass — JSON-LD Organization present with name, url, logo, and at least one sameAs.partial — JSON-LD present but sparse (key fields missing), OR microdata-only (no JSON-LD).fail — Absent.The "primary entity" for a site is the dominant content type identified in Section 0.4's relevance scan — not a lookup by siteType. A site's primary entity is whichever schema has the strongest relevance signal among the type-defining schemas (Person, Article, Product, Event, HowTo, LocalBusiness, Course, Recipe, SoftwareApplication). Organization, FAQPage, and Review are evaluated separately and don't compete for the "primary" slot.
If multiple schemas tie at high relevance, prefer the one matching the most-prominent homepage content area. Record the determination in notes.
Per-schema expected field set (what counts as a "well-formed" primary entity schema):
| Schema | Required-for-full-credit fields |
|---|---|
Service | name, description, provider (linked to Organization) |
Product | name, offers, brand or manufacturer |
Article / BlogPosting / NewsArticle | headline, author, datePublished, image |
Person | name, jobTitle or description, sameAs (≥1 external profile) |
Event | name, startDate, location, eventStatus |
HowTo | name, step (≥3 HowToStep entries), totalTime or tool/supply |
LocalBusiness (or subtype) | name, address, openingHoursSpecification, telephone |
Course | name, description, provider, hasCourseInstance or offers |
Recipe | name, recipeIngredient, recipeInstructions, cookTime or prepTime |
SoftwareApplication | name, applicationCategory, offers or operatingSystem |
Programmatic check:
// Use the relevance map from Section 0.4 to pick the expected primary type.
// PRIMARY_CANDIDATES is the type-defining schema list (excludes Organization/FAQPage/Review).
const PRIMARY_CANDIDATES = ['Person','Article','BlogPosting','NewsArticle','Product','Event','HowTo','LocalBusiness','Course','Recipe','SoftwareApplication'];
const relevance = applicableSchemas; // the relevance map from Section 0.4
const primaryCandidates = Object.entries(relevance)
.filter(([k,v]) => v === 'high' && PRIMARY_CANDIDATES.includes(k))
.sort();
const expectedPrimary = primaryCandidates[0] ? primaryCandidates[0][0] : null;
const jsonLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]));
const jsonLdMatch = expectedPrimary ? jsonLd.find(s => s['@type'] === expectedPrimary || (Array.isArray(s['@type']) && s['@type'].includes(expectedPrimary))) : null;
const microdataMatch = expectedPrimary ? document.querySelector(`[itemscope][itemtype*="schema.org/${expectedPrimary}"]`) : null;
const rdfaMatch = expectedPrimary ? document.querySelector(`[typeof~="${expectedPrimary}"], [typeof~="schema:${expectedPrimary}"]`) : null;
return {
expectedPrimary,
jsonLdMatch: jsonLdMatch ? Object.keys(jsonLdMatch) : null,
hasMicrodata: !!microdataMatch,
hasRdfa: !!rdfaMatch
};
Evaluation:
pass — JSON-LD primary entity schema present, type matches expectedPrimary from the relevance scan, AND the required fields for that type are populated.partial — JSON-LD present with the correct type but sparse (key required fields missing), OR microdata / RDFa-only (with or without all required fields).fail — No schema matches the expected primary type for this site's content.Edge case — no high-relevance primary candidate detected: if Section 0.4 finds no primary schema with
highrelevance (e.g. a pure portfolio site with no Articles, Events, Products, or HowTos), Organization schema becomes the de facto primary entity for evaluation purposes. Recordpassif Organization is well-formed; otherwise evaluate against the highest-relevance candidate even if it'smedium. Record the determination innotes.Edge case — ecommerce: Product schema typically lives on PDPs, not the homepage. If
Productis the expected primary type, sample at least one product page during Phase 2 and evaluate the combined evidence — homepageStore/OfferCatalogplus PDP Product schema together can satisfypass.
relevantSchemasAppliedThe coverage signal. Of every schema type with relevance high or medium from Section 0.4, what percent are backed by actual schema markup (in any format — JSON-LD, microdata, or RDFa)?
This is the signal that catches the nonprofit-with-events-but-no-Event-schema pattern, the media-blog-with-tutorials-but-no-HowTo-schema pattern, and the agency-with-client-reviews-but-no-Review-schema pattern.
// Build the schema presence map across all three formats
const allLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]));
const jsonLdTypes = new Set(allLd.map(s => s['@type']).filter(Boolean).flat());
const microdataTypes = new Set(
Array.from(document.querySelectorAll('[itemscope][itemtype]'))
.map(el => (el.getAttribute('itemtype').match(/schema\.org\/(\w+)/) || [])[1])
.filter(Boolean)
);
const rdfaTypes = new Set(
Array.from(document.querySelectorAll('[typeof]'))
.flatMap(el => (el.getAttribute('typeof') || '').split(/\s+/))
.map(t => t.replace(/^schema:/, ''))
.filter(Boolean)
);
const allPresentTypes = new Set([...jsonLdTypes, ...microdataTypes, ...rdfaTypes]);
// Compare against the relevance map from 0.4. Organization, FAQPage, and Review each
// have their own standalone signal (organizationSchema, faqSchema, reviewSchema) and are
// excluded here so they aren't double-counted in this coverage ratio too (see the note
// at the end of Section 0.4).
const relevance = applicableSchemas; // the relevance map from Section 0.4
const STANDALONE_SIGNALS = ['Organization', 'FAQPage', 'Review'];
const inScope = Object.entries(relevance).filter(([k, v]) => (v === 'high' || v === 'medium') && !STANDALONE_SIGNALS.includes(k));
const matched = inScope.filter(([k, v]) => allPresentTypes.has(k) ||
// BlogPosting and NewsArticle satisfy Article relevance; Article satisfies BlogPosting relevance
(k === 'Article' && (allPresentTypes.has('BlogPosting') || allPresentTypes.has('NewsArticle'))) ||
// Specific LocalBusiness subtypes satisfy LocalBusiness relevance
(k === 'LocalBusiness' && [...allPresentTypes].some(t => /Restaurant|Dentist|Plumber|MedicalBusiness|Store|HomeAndConstructionBusiness/.test(t)))
);
const coverage = inScope.length === 0 ? null : matched.length / inScope.length;
return { inScopeCount: inScope.length, matchedCount: matched.length, coveragePercent: coverage === null ? null : Math.round(coverage * 100), gaps: inScope.filter(x => !matched.includes(x)).map(([k]) => k) };
Evaluation:
pass — Coverage ≥ 90% (every high/medium-relevance schema is backed by matching markup; or only one minor gap on a medium-relevance schema).partial — Coverage 30–89% (some relevant schemas present but significant gaps remain; the dominant primary schema may be present but secondary schemas are missing).fail — inScopeCount > 0 AND (coverage < 30%, OR no schemas of any kind present).
inScopeCount: 0(coveragePercent: null) — recordna, withnotesas"N/A — no content patterns matched any schema-eligible type beyond Organization/FAQPage/Review, which are excluded from this ratio (they have their own standalone signals)."This is now an expected outcome, not a rare edge case — Organization no longer keepsinScopenon-empty by default, so any site whose only high/medium-relevance types are Organization, FAQPage, and/or Review (no blog listing, address+hours, shop, ordered steps, etc.) lands here. Never score this state aspassorfail; requiringinScopeCount> 0 in thefailbullet above makesnathe only reachable status whencoveragePercentisnull, even if the site also has zero structured data of any kind.Record the specific gap list in
notes— e.g."Coverage 60% — gaps: Event (annual conference visible on homepage), HowTo (3 tutorial pages observed)."Each gap also produces an entry inactionablePromptswith a paste-ready Claude prompt to generate the missing schema.
JSON-LD @type: "FAQPage" with mainEntity containing Q&A pairs, microdata, or RDFa. Run the canonical probe on the homepage and read faqSchemaTier:
// Canonical FAQ probe — defined in <kosh>/skills/aeo/references/faq-detection.md as a single
// self-contained block. Inject it verbatim; do not re-derive or inline any part of it
// here, and do not split helpers out of it.
return koshFaqProbe(); // → { faqRelevance, visibleFaq, faqSchemaTier, faqSchemaFormats, ... }
faqSchemaTier is valid only for JSON-LD FAQPage carrying 2+ mainEntity Question nodes with non-empty acceptedAnswer text; weak covers malformed JSON-LD, an empty/thin mainEntity, and microdata- or RDFa-only markup (both syntaxes accept FAQPage and Question, so the same FAQ scores the same tier whichever expresses it); none means no FAQ markup in any format. Carry the strongest tier observed across all pages probed (valid > weak > none) — see the aggregation rules in <kosh>/skills/aeo/references/faq-detection.md.
Evaluation:
FAQ schema only applies when the site actually has FAQ content. Gate on FAQ relevance (Section 0.4 faqRelevance) and the visible FAQ check (faqSectionPresent, Section 1.4). Never fail a site merely for lacking an FAQ — the many sites that legitimately have no FAQ get na, not fail.
na — No visible FAQ content, faqRelevance is absent, and faqSchemaTier is none. The site has no FAQ, so FAQ schema is not applicable. Record in notes as "N/A — no FAQ content on the site; FAQ schema not applicable." Do not generate an issue. This is the default for sites without an FAQ. (The tier condition matters: a site emitting plugin-generated FAQPage JSON-LD with a client-side-rendered FAQ has faqRelevance: absent and a valid tier — that is partial, not na, because there is markup the rendered page never substantiates.)pass — Visible FAQ content present (a container/heading/accordion, OR — when faqRelevance is medium — the answered-question-heading cluster) AND faqSchemaTier is valid (JSON-LD FAQPage with 2+ Q&A pairs).partial — two distinct branches with different remedies. actionablePrompts emits one paste-ready prompt per partial signal, so never share one notes string between them (that is how a site with microdata FAQ markup got a prompt telling it to add FAQ markup it already had):
faqSchemaTier is weak with visible FAQ content — the FAQ is marked up, just not as valid JSON-LD. Name the format actually found (read faqSchemaFormats): notes as "Partial — FAQ markup found as <malformed JSON-LD | microdata | RDFa>, not valid JSON-LD FAQPage." Remedy: re-express the existing microdata/RDFa FAQ as JSON-LD FAQPage with 2+ mainEntity Question nodes each carrying a non-empty acceptedAnswer, or repair the unparseable JSON-LD block.faqRelevance is medium and faqSchemaTier is none — a cluster of 3+ answered question-framed headings looks like a de facto FAQ, but nothing identifies it as one. notes as "Partial — question-style headings suggest an unmarked FAQ; no formal FAQ markup or schema found." Remedy: add explicit FAQ markup (container/heading/accordion) plus FAQPage schema.fail — Visible FAQ content present but faqSchemaTier is none. (Only reachable when FAQ content actually exists, i.e. faqRelevance is high.)jsonLdFormatThe signal name reflects what AI engines prefer, but the check enumerates all three structured-data formats the rubric supports: JSON-LD, microdata, and RDFa.
// Self-contained: every identifier used here is defined here. Each snippet in this file
// runs as its own browser_evaluate and definitions do NOT persist between evaluations,
// so a snippet may never reference a helper or probe defined elsewhere.
const jsonLd = document.querySelectorAll('script[type="application/ld+json"]').length;
const microdata = document.querySelectorAll('[itemscope][itemtype]').length;
return { jsonLd, microdata };
The rdfa count is carried over, not recomputed here. Take it from schemaOrgRdfaCount on the FAQ-schema probe result this section already collected for the same page (the koshFaqProbe() call above) — that field is the schema.org-scoped RDFa element count. Reading it rather than re-implementing the scope test is what keeps this signal and the probe's RDFa detection in agreement: previously jsonLdFormat required an explicit vocab/prefix scope while the FAQ check accepted a bare schema: prefix, so one report could claim "RDFa-only FAQ markup present" alongside "no RDFa present" for the same markup. Do not inline a scope test here, and do not re-invoke the probe — one probe call per page.
So the three counts for this signal are jsonLd and microdata from the snippet above, plus rdfa = schemaOrgRdfaCount from the probe result.
Evaluation:
pass — JSON-LD present (any blocks). Microdata and/or RDFa may also be present — no penalty for mixed formats.partial — No JSON-LD, but microdata OR RDFa present. The finding text must say so explicitly:
"Zero JSON-LD blocks; [N] microdata itemscope elements present — JSON-LD is preferred for reliable AI parsing.""Zero JSON-LD blocks; [N] RDFa typed elements present — JSON-LD is preferred for reliable AI parsing; RDFa adoption is low and AI parsing support is uneven."fail — None of JSON-LD, microdata, or RDFa present.Always record all three counts in notes and in technicalNotes.schemaFormats ({ jsonLd, microdata, rdfa }) so downstream consumers can see what was found.
openGraphTagsconst ogTags = ['og:title', 'og:description', 'og:image', 'og:url', 'og:type'];
const result = {};
ogTags.forEach(tag => {
const el = document.querySelector('meta[property="' + tag + '"]');
result[tag] = el ? el.getAttribute('content') : null;
});
return result;
Evaluation:
pass — og:title, og:description, and og:image all present.partial — Some OG tags present but not the full og:title + og:description + og:image trio.fail — No Open Graph tags present.JSON-LD @type: "Review" or @type: "AggregateRating". Microdata check:
const microdataReview = document.querySelector('[itemscope][itemtype*="schema.org/Review"], [itemscope][itemtype*="schema.org/AggregateRating"]');
return { microdataReview: !!microdataReview };
Evaluation:
pass — Review or AggregateRating schema present in either JSON-LD or microdata.fail — Absent.faqSectionPresent, faqSchemaApplied, questionFramedHeadings, and titleAndMetaQuestionMatch are programmatic and evaluated below. directAnswers, whoWhatWho, featuredSnippetStructure, and answerCapsules are content checks evaluated in Phase 3.
// Same canonical probe as Sections 1.3 and 2.1 — <kosh>/skills/aeo/references/faq-detection.md.
// Inject koshFaqProbe verbatim alongside this snippet: each snippet runs as its own
// browser_evaluate and definitions do not persist between evaluations.
// Its faqSectionFound / dlPairs / detailsElements / answeredQuestionHeadingCount outputs
// are what this signal reads, so faqSectionFound means exactly what faqRelevance: 'high'
// means in Section 0.4, by construction rather than by two selector lists agreeing.
return koshFaqProbe();
If no FAQ on the homepage, check /faq and /faqs as inner pages (also visit during Phase 2) — re-run the probe on whichever page you land on, so a dedicated FAQ page gets the same visible-FAQ and schema-tier evidence as the homepage, and both aggregate per <kosh>/skills/aeo/references/faq-detection.md.
Evaluation:
pass — FAQ section found (homepage or dedicated FAQ page) with 2+ Q&A pairs.partial — Accordion or FAQ pattern present but only 1 item, or very thin, OR faqSectionFound is false but answeredQuestionHeadingCount ≥ 3 (a de facto FAQ built from question-style headings each followed by answer text, with no faq class/id, no "FAQ" heading, and fewer than 2 question-shaped <details> — all now covered by faqSectionFound above, so this branch can't fire on a page that already has real FAQ markup). Word the finding as a suggestion to add explicit FAQ markup, not as a defect — this stays capped at low per the optional/stylistic carve-out below.fail — Absent.faqSchemaAppliedCross-reference the two aggregated axes from the canonical probe — visible FAQ evidence and faqSchemaTier — on whichever page carries each. The full status table for both faqSchema and faqSchemaApplied, including the per-branch notes strings, lives in <kosh>/skills/aeo/references/faq-detection.md. Note the two signals carry different severities: faqSchema is Structured Data (fail → critical, or high when consolidated), faqSchemaApplied is AEO Readiness (partial → medium, effort low).
Evaluation:
na — Neither visible FAQ content nor FAQ schema present AND faqRelevance is absent. The site has no FAQ, so there is nothing to align. Record in notes as "N/A — no FAQ content on the site." Do not generate an issue.pass — Both visible FAQ content (a container/heading/accordion, OR — when faqRelevance is medium — the answered-question-heading cluster) present AND faqSchemaTier is valid.partial — faqSchemaTier is weak (malformed JSON-LD, microdata-only, or RDFa-only) with visible FAQ content present, OR faqSchemaTier is valid/weak but no visible FAQ content, OR visible FAQ content present but faqSchemaTier is none, OR faqRelevance is medium (answered-question-heading cluster present, no formal FAQ markup) and faqSchemaTier is none. A genuine FAQ built from question-style headings alone — no faq class, no "frequently asked" heading, fewer than 2 <details> — lands here rather than na, so the missing markup still surfaces as a finding, and microdata/RDFa-only or malformed schema never gets waved through as full credit.fail — FAQ content is warranted (faqRelevance is high — e.g. a dedicated FAQ page or accordion exists) but neither the visible FAQ nor a faqSchemaTier of at least weak is properly in place.This signal exists alongside faqSchema and faqSectionPresent to verify that the schema and the visible content are applied together — the alignment, not the presence of either alone.
const headings = Array.from(document.querySelectorAll('h2, h3'));
const questionHeadings = headings.filter(h => h.innerText.trim().endsWith('?'));
return {
total: headings.length,
questionFramed: questionHeadings.length,
examples: questionHeadings.slice(0,3).map(h => h.innerText.trim())
};
Evaluation:
pass — 2+ H2/H3 phrased as questions.partial — Exactly one H2/H3 phrased as a question.fail — No question-framed H2/H3 headings.Stylistic signal — low importance. Question-framed headings are one valid way to structure content for AEO, not a requirement. Phrasing headings as statements is a legitimate style choice. When this signal is
failorpartial, treat it as an optional consideration, not a defect: cap the issue atlowseverity (see the "Optional / stylistic signals" carve-out in the Issue severity guide) and word the finding as a suggestion (e.g. "Consider phrasing a few headings as questions…"), never as a directive. Never describe a site as deficient for using statement-style headings.
titleAndMetaQuestionMatchAI engines weight the page's <title> and <meta name="description"> as signals about what the page is about. The substantive thing this signal checks is whether the title and meta actually describe the page's topic — a <title> that's just the site name, or a theme-default boilerplate meta description, tells AI nothing about what the page answers. Question phrasing is one optional way to achieve that alignment (the post notes it "helps to include the question or a close variant in the title tag or meta description"), but it is not required — a clear descriptive title that matches the page's topic passes just as well. Do not treat statement-style (non-question) titles as a miss.
Check the homepage AND every inner page visited in Phase 2.
const title = document.querySelector('title') ? document.querySelector('title').innerText.trim() : '';
const metaDescEl = document.querySelector('meta[name="description"]');
const metaDesc = metaDescEl ? metaDescEl.getAttribute('content').trim() : '';
const h1 = document.querySelector('h1') ? document.querySelector('h1').innerText.trim() : '';
// A page is "question-targeting" if its H1 ends with "?", or contains "how", "what",
// "why", "when", "where", "who" as the first word, or matches the dominant
// question pattern in the H2/H3 set
const h1IsQuestion = /\?$/.test(h1) || /^(how|what|why|when|where|who|can|does|is|are|should|do)\s+/i.test(h1);
// Or the page is question-targeting by purpose: services pages, FAQ pages,
// product detail pages, donation pages, etc.
const pathSignalsQuestion = /\/(faq|services?|pricing|how-it-works|about|donate|subscribe|join|tutorials?|guides?)/.test(window.location.pathname);
const isQuestionTargeting = h1IsQuestion || pathSignalsQuestion;
// Informational only — question phrasing is optional and never required to pass.
// The pass/partial decision is driven by topical overlap (titleOverlap / metaOverlap) below.
const titleHasQuestion = /\?/.test(title) || /^(how|what|why|when|where|who|can|does|is|are|should|do)\s+/i.test(title);
const metaHasQuestion = /\?/.test(metaDesc) || /^(how|what|why|when|where|who|can|does|is|are|should|do)\s+/i.test(metaDesc);
// Token overlap between title/meta and H1 (a rough proxy for alignment when the
// page isn't framed as a literal question — e.g. a services page titled
// "Web Development Services for B2B SaaS" aligning with H1 "What we build")
function tokens(s) {
return new Set((s || '').toLowerCase().match(/[a-z][a-z]+/g) || []);
}
const h1Tokens = tokens(h1);
const titleTokens = tokens(title);
const metaTokens = tokens(metaDesc);
const titleOverlap = h1Tokens.size > 0 ? [...h1Tokens].filter(t => titleTokens.has(t)).length / h1Tokens.size : 0;
const metaOverlap = h1Tokens.size > 0 ? [...h1Tokens].filter(t => metaTokens.has(t)).length / h1Tokens.size : 0;
return {
url: window.location.href,
h1, title, metaDesc,
isQuestionTargeting,
titleHasQuestion, metaHasQuestion,
titleOverlap: Math.round(titleOverlap * 100) / 100,
metaOverlap: Math.round(metaOverlap * 100) / 100
};
Evaluation:
This signal centers on topical alignment: does the title/meta describe the page? Question phrasing optionally counts toward that alignment but is never required, and its absence is never a miss on its own.
pass — Across the homepage plus inner pages visited, at least 50% of question-targeting pages have a <title> OR <meta name="description"> that describes the page — reaching ≥50% token overlap with the page's H1. (Question phrasing may count toward the overlap but is optional.)partial — Titles/metas exist but weakly describe their pages (20–50% of question-targeting pages clear the overlap bar), OR the homepage is fine but inner pages are generic.fail — Title and meta are present-but-generic on every sampled page (e.g. <title> is the site name only; meta description is theme-default boilerplate), with no topical alignment to the page anywhere.N/A exemption: if zero pages visited are question-targeting (a pure-portfolio site with one-word page titles like "Work", "Studio", "Contact"), record
naand note innotesas"N/A — no question-targeting pages observed."Record the per-page results in
notesso the report can show which pages passed and which failed. The fix is a content edit (one-field change in Yoast/RankMath for most WordPress sites) —effortis almost alwayslow.
directAnswers, whoWhatWho, featuredSnippetStructure, and answerCapsules are evaluated in Phase 3 (content).
The remaining 5 are evaluated in Phase 3 (content). aboutTeamPageLinked as a standalone signal was retired — the "is there an About/Team/Authors page" check is now embedded in namedTeamMembers (you must visit it to verify named individuals).
namedTeamMembersThe check is "are there real named human beings with identifiable roles tied to this site?" The evidence varies by site type:
| Site type | What counts as a named individual |
|---|---|
agency, saas, localBusiness, nonprofit | Founders, leadership, employees, key staff with names and titles |
mediaBlog | Bylined authors, editorial leadership (editor-in-chief, contributing editors) |
ecommerce | Founders, designers, makers, key team members — common on brand-led shops, often absent on dropshippers |
education | Faculty, instructors, course leads with credentials |
community | Moderators, leadership, named maintainers |
const teamSections = Array.from(document.querySelectorAll('[class*="team"], [id*="team"], [class*="about"], [id*="about"], [class*="author"], [class*="staff"], [class*="faculty"], [class*="contributor"]'));
// Person in JSON-LD
const personJsonLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]))
.filter(s => s['@type'] === 'Person');
// Person in microdata
const personMicrodata = Array.from(document.querySelectorAll('[itemscope][itemtype*="schema.org/Person"]'));
// Person in RDFa
const personRdfa = Array.from(document.querySelectorAll('[typeof~="Person"], [typeof~="schema:Person"]'));
const aboutLink = Array.from(document.querySelectorAll('a[href]')).find(a => {
const text = a.innerText.toLowerCase();
const href = a.href.toLowerCase();
return /\b(about|team|authors|staff|faculty|masthead|people)\b/.test(text) || /\/(about|team|authors|staff|faculty|masthead|people)\//.test(href);
});
return {
teamSectionCount: teamSections.length,
personSchemaCount: personJsonLd.length,
personMicrodataCount: personMicrodata.length,
personRdfaCount: personRdfa.length,
aboutLinkHref: aboutLink ? aboutLink.href : null
};
Person can appear in JSON-LD, microdata, or RDFa — all three count toward the "named team" signal. JSON-LD is preferred for AI parsing reliability; if Person is microdata-only or RDFa-only, note that in the finding ("Person markup present in microdata only — JSON-LD is preferred for AI parsing.").
If an About/Team/Authors page is linked, visit it in Phase 2 to confirm named individuals are present.
Evaluation:
na — The site runs on a deliberately anonymous model where named individuals would not be expected (e.g. a privacy- or safety-conscious org, or a collective/brand that intentionally doesn't front individuals). Record the rationale in notes (e.g. "N/A — deliberately anonymous model; no named individuals expected."). Use this only when the anonymity is clearly a choice, not a mere omission — when in doubt use partial. Many legitimate sites have no named team; do not treat that as a defect.pass — Named individuals with type-appropriate roles visible (homepage or About/Team/Authors page).partial — Site is referenced through anonymous language only ("our team", "our editors", "the staff") — no names anywhere accessible from the homepage.fail — No team / author / staff signals at all.certificationBadgesThe check is "are there visible third-party credentials backing this site?" The evidence varies by site type:
| Site type | What counts as a credentialing badge |
|---|---|
agency, saas | Partner badges (Google Partner, WooCommerce Expert, AWS Partner), certifications, ISO badges |
mediaBlog | Press affiliations, fact-checking certifications (IFCN), journalism awards, professional press credentials |
ecommerce, localBusiness | BBB rating, Trustpilot widget, payment-processor trust marks, industry trade group memberships |
education | Accreditation badges (regional accreditor, programmatic accreditation), recognized certifications |
nonprofit | Charity Navigator, GuideStar Seal, BBB Wise Giving, 501(c)(3) verification badges |
community | Verified-organization marks from the platform host, hosting-provider trust marks |
const badgeIndicators = Array.from(document.querySelectorAll('[class*="cert"], [class*="badge"], [class*="partner"], [class*="award"], [class*="accredit"], [class*="trust"], [class*="verified"], [class*="rated"], [alt*="award"], [alt*="certified"], [alt*="accredited"], [alt*="rated"]'));
const trustWidgets = !!document.querySelector('iframe[src*="trustpilot"], iframe[src*="bbb.org"], [class*="trustpilot"], [class*="bbb"], [class*="guidestar"], [class*="charitynavigator"]');
return { count: badgeIndicators.length, hasTrustWidget: trustWidgets };
DOM presence alone is not sufficient — confirm visually via the homepage screenshot that the badges are legible (the failure mode is small-text or visually-unrecognizable images that match the selectors but aren't real credentials).
Evaluation:
na — No third-party credential is applicable to this organization or field. Many legitimate organizations — nonprofits included — hold no relevant certification, accreditation, or trust-mark, and shouldn't be flagged for lacking one they may not qualify for or need. Record "N/A — no applicable third-party credential for this org/field."pass — Credentialing badges present AND visually confirmed as legible/recognizable, matched to the site type.partial — DOM indicators found but visual confirmation unclear, or only weak credentials (e.g. SSL-vendor badges).fail — Absent.tenureIndicatorsThe check is "does the site signal how long it has been operating?" — a recognized AI-trust signal across all types. The phrasing varies:
| Site type | Common tenure phrasings |
|---|---|
agency, saas, ecommerce | "Founded in YYYY", "established YYYY", "since YYYY", "N years in business" |
mediaBlog | "Publishing since YYYY", "covering [topic] since YYYY", "founded YYYY" |
education | "Founded YYYY", "serving students since YYYY" |
nonprofit | "Founded YYYY", "serving the community for N years" |
community | "Active since YYYY", "the longest-running [topic] community" |
const bodyText = document.body.innerText;
const yearPatterns = [
/founded\s+(?:in\s+)?(\d{4})/i,
/established\s+(?:in\s+)?(\d{4})/i,
/since\s+(\d{4})/i,
/(\d+)\s+years?\s+(?:of\s+)?(?:experience|in\s+business|publishing|operation|serving|active)/i,
/publishing\s+since\s+(\d{4})/i,
/covering\s+\w+\s+since\s+(\d{4})/i,
/serving\s+(?:the\s+)?\w+(?:\s+\w+)?\s+since\s+(\d{4})/i
];
const matches = yearPatterns.map(p => bodyText.match(p)).filter(Boolean);
return { found: matches.length > 0, matches: matches.map(m => m[0]).slice(0,2) };
Evaluation:
pass — Any tenure indicator is found.fail — Absent.authorBylinesThis signal applies primarily to mediaBlog, education, nonprofit, and any other site that publishes articles or posts. For sites with no editorial content (e.g. pure ecommerce, single-page SaaS), record na by default and note in notes as "N/A — site has no editorial articles to byline."
Visit at least one editorial / blog / news / post page during Phase 2 and check:
const articleSelector = 'article, [class*="article"], [class*="post-"]';
const article = document.querySelector(articleSelector);
const visibleByline = article && article.innerText.match(/\bby\s+([A-Z][a-z]+\s+[A-Z][a-z]+)/);
const authorLink = article && article.querySelector('a[href*="/author/"], a[rel="author"]');
// Article in JSON-LD
const articleJsonLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]))
.filter(s => ['Article','BlogPosting','NewsArticle'].includes(s['@type']));
const authorOnJsonLd = articleJsonLd.some(s => s.author && (typeof s.author === 'object' || Array.isArray(s.author)));
// Article in microdata
const articleMicrodata = Array.from(document.querySelectorAll(
'[itemscope][itemtype*="schema.org/Article"], [itemscope][itemtype*="schema.org/BlogPosting"], [itemscope][itemtype*="schema.org/NewsArticle"]'
));
const authorOnMicrodata = articleMicrodata.some(el => el.querySelector('[itemprop="author"]'));
// Article in RDFa
const articleRdfa = Array.from(document.querySelectorAll(
'[typeof~="Article"], [typeof~="BlogPosting"], [typeof~="NewsArticle"], [typeof~="schema:Article"], [typeof~="schema:BlogPosting"], [typeof~="schema:NewsArticle"]'
));
const authorOnRdfa = articleRdfa.some(el => el.querySelector('[property="author"], [property="schema:author"]'));
return {
hasVisibleByline: !!visibleByline,
authorName: visibleByline ? visibleByline[1] : null,
hasAuthorLink: !!authorLink,
authorLinkHref: authorLink ? authorLink.href : null,
hasArticleJsonLd: articleJsonLd.length > 0,
hasArticleMicrodata: articleMicrodata.length > 0,
hasArticleRdfa: articleRdfa.length > 0,
hasAuthorOnSchema: authorOnJsonLd || authorOnMicrodata || authorOnRdfa
};
Evaluation:
pass — Visible byline AND author name linked to an author page AND article schema (any format) has a populated author property.partial — Visible byline AND linked author page, but no author on any schema format, OR author present in microdata/RDFa only (JSON-LD preferred for AI parsing).fail — Anonymous publication: no byline, or byline with no link, or no Article/BlogPosting schema in any format.const footerText = document.querySelector('footer') ? document.querySelector('footer').innerText : document.body.innerText;
const yearMatch = footerText.match(/[©℗]\s*(\d{4})/);
const currentYear = new Date().getFullYear();
return {
found: !!yearMatch,
year: yearMatch ? parseInt(yearMatch[1]) : null,
current: yearMatch ? parseInt(yearMatch[1]) === currentYear : false
};
Evaluation:
pass — Copyright year matches current year.partial — Copyright year is one year behind.fail — Two or more years stale, or absent entirely.const blogIndicators = Array.from(document.querySelectorAll('[class*="blog"], [class*="news"], [class*="post"], [class*="article"], [id*="blog"], [id*="news"]'));
const datePattern = /\b(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:tember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\.?\s+\d{1,2},?\s+20\d{2}|\b20\d{2}[-\/](0[1-9]|1[0-2])[-\/](0[1-9]|[12]\d|3[01])\b/gi;
const dates = (document.body.innerText.match(datePattern) || []);
return { blogSectionFound: blogIndicators.length > 0, datesFound: dates.slice(0,5) };
Confirm in Phase 2 by visiting the blog/news listing page. Most-recent post date determines freshness.
Evaluation:
pass — Blog/news section present with content dated within last 6 months.partial — Section present but content older than 6 months.fail — No blog/news section found.const dateTags = Array.from(document.querySelectorAll('time[datetime], [class*="date"], [class*="published"]'));
return { count: dateTags.length, examples: dateTags.slice(0,3).map(el => el.innerText.trim() || el.getAttribute('datetime')) };
Confirm by visiting at least one blog post in Phase 2 — the post page should display a published date.
Evaluation:
pass — Date stamps visible on posts or case studies.fail — Absent.sitemapLastmodRecentCross-reference 1.2 sitemap analysis. Were lastmod dates present and within 90 days?
Evaluation:
pass — Sitemap has lastmod dates within 90 days.fail — Absent or all stale.contentUpdateRecencyDistinct from dateStampsOnContent (which checks for any visible date on posts). This signal checks whether individual pages — especially evergreen reference pages — carry a visible "Last updated" / "Updated on" / "Revised YYYY" stamp within the last 12 months.
Perplexity cites content updated in the last 30 days at 82%; content updated within the last 12 months earns 3.2× more Perplexity citations. Per-page update stamps signal active maintenance.
Visit one editorial / reference page during Phase 2 and check:
const bodyText = document.body.innerText;
const updatedPattern = /(?:last\s+updated|updated\s+on|revised|last\s+revised|reviewed\s+on)[:\s]+([A-Z][a-z]+\s+\d{1,2},?\s+20\d{2}|\d{1,2}\s+[A-Z][a-z]+\s+20\d{2}|20\d{2}-\d{2}-\d{2})/i;
const modifiedMeta = document.querySelector('meta[property="article:modified_time"], meta[name="last-modified"]');
// dateModified in JSON-LD
const jsonLdMod = Array.from(document.querySelectorAll('script[type="application/ld+json"]'))
.map(s => { try { return JSON.parse(s.innerText); } catch(e) { return null; }})
.filter(Boolean)
.flatMap(s => Array.isArray(s) ? s : (s['@graph'] || [s]))
.find(s => s.dateModified);
// dateModified in microdata — <meta itemprop="dateModified" content="..."> or <time itemprop="dateModified" datetime="...">
const microdataModEl = document.querySelector('[itemprop="dateModified"]');
const microdataMod = microdataModEl
? (microdataModEl.getAttribute('datetime') || microdataModEl.getAttribute('content') || microdataModEl.innerText.trim())
: null;
// dateModified in RDFa
const rdfaModEl = document.querySelector('[property="dateModified"], [property="schema:dateModified"]');
const rdfaMod = rdfaModEl
? (rdfaModEl.getAttribute('datetime') || rdfaModEl.getAttribute('content') || rdfaModEl.innerText.trim())
: null;
const match = bodyText.match(updatedPattern);
return {
visibleUpdatedStamp: match ? match[0] : null,
modifiedMetaContent: modifiedMeta ? modifiedMeta.getAttribute('content') : null,
schemaDateModified: (jsonLdMod && jsonLdMod.dateModified) || microdataMod || rdfaMod || null,
schemaDateModifiedFormat: (jsonLdMod && jsonLdMod.dateModified) ? 'json-ld' : microdataMod ? 'microdata' : rdfaMod ? 'rdfa' : null
};
Evaluation:
pass — Visible "Last updated" stamp within the last 12 months on at least one sampled inner page. Article schema dateModified alone also counts if it is within the last 12 months and the page is editorial.fail — No visible update stamps anywhere, OR stamps present but all >12 months old.Pure-ecommerce / single-page SaaS exemption: if there is no editorial content to bear "last updated" stamps, record
naand note innotesas"N/A — site has no editorial content requiring update stamps."
recentFeaturedWork and currentDomainReferences are evaluated in Phase 3.
const socialDomains = ['linkedin.com', 'twitter.com', 'x.com', 'facebook.com', 'instagram.com', 'youtube.com'];
const links = Array.from(document.querySelectorAll('footer a[href], [class*="social"] a[href]'));
const socialLinks = links.filter(a => socialDomains.some(d => a.href.includes(d)));
return { count: socialLinks.length, platforms: [...new Set(socialLinks.map(a => a.href.split('/')[2]))] };
Evaluation:
pass — LinkedIn and at least one other professional profile linked from footer.partial — Only one social profile linked.fail — No social profile links in footer.entityIdentifiable, primaryFocusSpecificity, geographicMarketClarity, and consistentIdentity are all evaluated in Phase 3.
browser_navigate to [baseURL]/llms.txt. Record whether it loads (status 200 vs 404) and capture body text. Then browser_navigate to [baseURL]/llms-full.txt and record presence. Return to homepage.
return { found: document.body.innerText.trim().length > 10, content: document.body.innerText.substring(0, 1000) };
Evaluation:
llmsTxtPresent — pass if present and non-empty. fail if absent.llmsFullTxtPresent — pass if present. fail if absent.llmsTxtContent — evaluated in Phase 3 based on accuracy and specificity.The homepage is the primary evaluation target, but several signals require inner-page confirmation. Visit at least 3 additional pages beyond the homepage. Record every URL visited in visitedPages.
Always start with the homepage (already visited in Phase 0/1). Then pick inner pages based on the detected siteType:
Universal must-visit pages (all site types):
| # | Page type | Purpose |
|---|---|---|
| 1 | About / Team / Authors / Masthead / People | Confirm namedTeamMembers, authorCredentials, sample canonicalUrls |
| 2 | One primary-offering page (varies by site type, see below) | Confirm primaryEntitySchema, primaryOfferingDetail, namedSpecificEntities, primaryFocusSpecificity |
| 3 | A recent editorial or featured-content page (varies by site type, see below) | Confirm dateStampsOnContent, contentUpdateRecency, authorBylines, blogNewsRecent |
Site-type-specific page targets:
| Site type | Primary-offering page | Featured-content page | Type-specific functional page |
|---|---|---|---|
agency | A service / solution page | A case study or recent blog post | — |
ecommerce | A product detail page (PDP) | The /new or /collections page or a recent product launch | — |
mediaBlog | A category / section index for the dominant vertical | A recent article from the last 30 days | /subscribe or /newsletter (FAQ schema check) |
saas | A feature or pricing page | A changelog / release notes / recent blog post | — |
education | A course or program page | A recent news / announcements page or instructor page | — |
localBusiness | A services / menu / offerings page | A recent updates / news / events page if present | — |
nonprofit | A program / cause / how-we-help page | A recent campaign / impact-report / news page | /donate or /give (FAQ schema check) |
community | A "what is this" / rules / wiki page | A recently-active discussion / featured contribution | /join, /membership, or /become-a-member (FAQ schema check) |
Optional 4th visit: if a dedicated FAQ page exists at /faq, /faqs, /help, or /support, visit it and re-run the canonical FAQ probe (<kosh>/skills/aeo/references/faq-detection.md) on that page — one call covers both the visible-FAQ check and the schema tier — this is what feeds faqSectionPresent, faqSchema, and faqSchemaApplied, and can raise faqRelevance.
Mediablog-specific 5th visit — archive page quality check. For mediaBlog sites, visit at least one category or tag archive page (/category/<slug>/, /tag/<slug>/, /topics/<slug>/, or whatever the routing convention is). Run the archivePageQuality check from Section 2.1.
If a page type doesn't exist (e.g. ecommerce site with no editorial content), record the absence — it may change the status of the related signal, or trigger the type-specific exemption rule.
These checks feed into existing evaluated signals rather than introducing new ones — they sharpen the evidence Phase 1 collected by checking the pages where the post's recommendations land most concretely.
nonprofit, mediaBlog, communityVisit the type-specific functional page and re-run the FAQ check:
// Same canonical probe as Sections 1.3 and 1.4 — <kosh>/skills/aeo/references/faq-detection.md.
// Inject koshFaqProbe verbatim alongside this snippet: each snippet runs as its own
// browser_evaluate and definitions do not persist between evaluations.
// Returns both the visible-FAQ evidence (visibleFaq / hasFaqMarkers /
// answeredQuestionHeadingCount) and the schema tier for THIS page, so relevance and
// schema presence can only ever move together.
return koshFaqProbe();
The post's argument: donation, subscribe, and join/membership pages are exactly the pages where AI tools land users with concrete intent-bearing queries ("how do I donate to X?", "how do I subscribe to Y?", "what does a Z membership include?"). FAQ schema on these specific pages is high-leverage.
How the result feeds into evaluation — treat this page as another page checked under the Section 0.4 cross-page rule, updating faqRelevance, faqSchema, and faqSchemaApplied together rather than faqSchemaApplied alone (leaving only faqSchemaApplied in sync here would reproduce, for this page, the same presence-vs-alignment split just fixed for the generic /faq case). Note the two signals carry different severities — faqSchema is Structured Data (its fail is critical, or high under the consolidation rule), faqSchemaApplied is AEO Readiness (its partial is medium, effort low) — so don't apply one severity to both:
hasFaqMarkers true but faqSchemaTier is none on this page → faqRelevance rises to high (or stays high) from this evidence. This page's tier feeds the same cross-page aggregation as Section 0.4 (valid > weak > none): if no page checked anywhere in the run (homepage, /faq, and this functional page) reaches valid or weak, faqSchema resolves to fail at its own Structured Data severity (critical, or high if consolidated), and faqSchemaApplied separately resolves to partial at medium severity with effort low and a paste-ready Claude prompt for the FAQ schema. If a stronger tier was already found elsewhere, that wins instead — don't let this page's none override it.hasFaqMarkers false but answeredQuestionHeadingCount ≥ 3 (a de facto FAQ) and faqSchemaTier is none on this page → faqRelevance rises to at least medium; faqSchema/faqSchemaApplied land at their own partial tiers, unless a stronger tier from another page checked already supersedes it.visibleFaq and faqSchemaTier of valid or weak are present → faqRelevance is high if hasFaqMarkers drove visibleFaq, or at least medium if only the de facto cluster did; faqSchemaTier: valid confirms faqSchema and faqSchemaApplied at full pass credit — both signals now require valid specifically for pass, per their own tier definitions — while faqSchemaTier: weak (malformed JSON-LD, microdata-only, or RDFa-only) caps both at partial per their own tiers. weak is never full credit.visibleFaq false on the functional page → not penalized (the page may genuinely not need FAQ format) and doesn't affect faqRelevance, but record in notes as a missed AEO opportunity since these pages are high-intent.archivePageQuality check — mediaBlog onlyPer the post: "Category and tag pages need descriptive text — a list of posts alone gives AI nothing to work with." WordPress archive pages typically emit an empty <meta name="description"> and zero copy beyond the post list.
This check does not introduce a new evaluated signal. It feeds findings into two existing signals:
passageExtractionQuality (Content Specificity) — an archive page with no descriptive text fails the "could a clean 1–2 sentence summary be pulled from each major section" test, since the archive page IS a major section and yields nothing extractable.primaryFocusSpecificity (Entity Clarity) — an archive page with no topic-area description weakens the site's overall focus signal for the dominant vertical.Programmatic check:
const h1 = document.querySelector('h1') ? document.querySelector('h1').innerText.trim() : '';
const metaDesc = document.querySelector('meta[name="description"]') ?
document.querySelector('meta[name="description"]').getAttribute('content').trim() : '';
// Look for descriptive copy NOT inside the post list — typically in
// <header>, <.archive-description>, <.term-description>, or the first
// .entry-content / .page-content block before the list
const descCandidates = Array.from(document.querySelectorAll(
'header p, .archive-description, .term-description, .category-description, .tag-description, [class*="archive-intro"], [class*="archive-summary"]'
));
const descText = descCandidates.map(el => el.innerText.trim()).filter(t => t.length > 50).join(' ');
// Post list density check — how much of the page is post cards vs descriptive copy
const postListEls = document.querySelectorAll('article, [class*="post-"], [class*="card"]');
const bodyTextLen = document.body.innerText.length;
const descRatio = bodyTextLen > 0 ? (descText.length / bodyTextLen) : 0;
return {
h1,
metaDesc,
metaDescLength: metaDesc.length,
descriptiveCopyLength: descText.length,
descriptiveCopySample: descText.slice(0, 200),
postListCount: postListEls.length,
descriptiveRatio: Math.round(descRatio * 100) / 100,
qualityGrade:
descText.length >= 200 && metaDesc.length >= 80 ? 'good' :
descText.length >= 80 || metaDesc.length >= 50 ? 'partial' :
'empty'
};
Grading:
good — 200+ chars of descriptive copy above the post list AND a meta description of 80+ chars. Counts toward passageExtractionQuality passing for this section and primaryFocusSpecificity for the dominant vertical.partial — Some descriptive copy OR meta description but not both at full quality. Half credit toward the above; record the gap.empty — No descriptive copy beyond the H1 (often just "Category: Climate") and either no meta description or theme-default boilerplate. Drops passageExtractionQuality and weakens primaryFocusSpecificity; create a medium-severity issue with effort low and a Claude prompt to write a 2–3 sentence topic description for the archive.If the site has no archive pages (single-page sites, ecommerce with no editorial section), skip this check and record "N/A — site has no archive pages."
For each inner page:
browser_navigate to the URLbrowser_evaluate to inspect schema and meta tags (a site with a SEO plugin like Yoast / RankMath / SEOPress typically emits schema and meta on every page):const jsonLd = Array.from(document.querySelectorAll('script[type="application/ld+json"]')).map(s => {
try { return JSON.parse(s.innerText); } catch(e) { return null; }
}).filter(Boolean);
const personOnPage = jsonLd.some(s => s['@type'] === 'Person' || (Array.isArray(s['@graph']) && s['@graph'].some(g => g['@type'] === 'Person')));
const articleOnPage = jsonLd.some(s => s['@type'] === 'Article' || s['@type'] === 'BlogPosting');
return { jsonLdCount: jsonLd.length, personOnPage, articleOnPage };
const headings = Array.from(document.querySelectorAll('h2, h3, h4')).map(h => h.innerText.trim());
const possibleNames = headings.filter(t => /^[A-Z][a-z]+\s+[A-Z][a-z]+/.test(t)); // crude "First Last" pattern
return { headingsCount: headings.length, namedPeople: possibleNames.slice(0, 10) };
const timeEls = Array.from(document.querySelectorAll('time[datetime]'));
const datedItems = timeEls.map(t => ({ datetime: t.getAttribute('datetime'), text: t.innerText.trim() })).slice(0, 10);
return { datedItems };
<link rel="canonical"> pointing to itself:const c = document.querySelector('link[rel="canonical"]');
return {
href: c ? c.getAttribute('href') : null,
selfReferential: c && new URL(c.getAttribute('href'), location.href).pathname === window.location.pathname
};
Record per-page results to feed the canonicalUrls Phase 1 signal.
Per-page update recency — on at least one editorial / reference page, run the contentUpdateRecency check from Section 1.6 to capture visible "Last updated" stamps and article:modified_time meta.
Author byline check — on at least one article/post/blog page, run the authorBylines check from Section 1.5.
Record all findings against the relevant signals.
const generator = document.querySelector('meta[name="generator"]');
const yoastBlock = Array.from(document.querySelectorAll('script[type="application/ld+json"]')).some(s => s.innerText.includes('"yoast"') || s.innerText.includes('Yoast'));
const yoastClass = !!document.querySelector('[class*="yoast"]');
const html = document.documentElement.outerHTML;
// Match each plugin's own front-end output (head comment, asset path, JSON-LD class), never prose that mentions it.
const rankMath = !!document.querySelector('meta[name="generator"][content*="Rank Math" i]') ||
/<!-- Search Engine Optimization by Rank Math|\/plugins\/seo-by-rank-math\/|class="rank-math-schema/i.test(html);
const seopress = /<script id="website-schema"|\/plugins\/wp-seopress(-pro)?\/|class="seopress-user-consent/i.test(html);
const aioseo = /<!-- All in One SEO|\/plugins\/all-in-one-seo-pack(-pro)?\/|class="aioseo-schema/i.test(html);
// Jetpack: detect by its actual plugin asset paths and enqueued script/style handles,
// not by incidental "jetpack" strings in visible text (which false-positive on footer
// credits, comments, or links to jetpack.com).
// Jetpack Boost reuses the jetpack- handle prefix and ships its own jetpack_vendor/.
const jetpack = Array.from(document.querySelectorAll(
'link[href*="/plugins/jetpack/" i], script[src*="/plugins/jetpack/" i], ' +
'link[href*="/jetpack_vendor/" i], script[src*="/jetpack_vendor/" i], ' +
'link[id^="jetpack" i], script[id^="jetpack" i], style[id^="jetpack" i], ' +
'[class*="jp-carousel" i], [class*="sharedaddy" i], [id*="jp-post-flair" i]'
)).some(el => !/jetpack-boost/i.test(el.id + (el.getAttribute('href') || el.getAttribute('src') || '')));
const wpContent = !!document.querySelector('link[href*="/wp-content/"]') || !!document.querySelector('script[src*="/wp-content/"]');
const wpJsonApi = html.includes('/wp-json/');
return {
generator: generator ? generator.getAttribute('content') : null,
yoast: yoastBlock || yoastClass,
rankMath,
seopress,
aioseo,
jetpack,
isWordPress: wpContent || wpJsonApi || (generator && /WordPress/i.test(generator.getAttribute('content') || ''))
};
Record the result in technicalNotes.cmsDetected (e.g. "WordPress + Yoast", "WordPress + RankMath", "WordPress + AIOSEO", "WordPress + Jetpack", "WordPress + Jetpack (no dedicated SEO plugin)", "WordPress (no SEO plugin)", "Headless / unknown"). This drives the effort ratings in Phase 5. Jetpack detection matters for native-first recommendations — see the capability check below.
Read <kosh>/skills/aeo/references/wp-seo-capabilities.md. It maps each plugin-dependent AEO signal to what WordPress core and Jetpack can emit natively, versus the schema signals that genuinely need a third-party plugin or custom JSON-LD.
Use it two ways:
Native-first recommendations. When you write actionable prompts and effort rationales in Phase 5, prefer the core / Jetpack path for any signal the matrix marks as natively covered (Open Graph, sitemap lastmod, canonical, robots/noindex, editable title + meta description) — unless a dedicated SEO plugin is already detected, in which case that plugin's own field is the fix; it already covers these signals, so never recommend enabling Jetpack beside it. Only recommend a third-party SEO plugin (Yoast / RankMath / AIOSEO) or custom JSON-LD as the primary fix for the schema signals the matrix lists under "genuine gap" (organizationSchema, primaryEntitySchema, faqSchema, reviewSchema, relevantSchemasApplied, Article-schema author, breadcrumbs). Name the free vs. paid Jetpack tier when the native fix relies on one.
Staleness check. Parse the lastVerified: date from that file and compare it to the current date. If the gap exceeds stalenessThresholdDays (90), print a one-line operator notice — kosh: WP SEO capability matrix last verified YYYY-MM-DD (N days ago) — re-verify against the source docs in wp-seo-capabilities.md — and record capabilityMatrixStale: true in technicalNotes. Under the threshold, stay silent. Either way, record capabilityMatrixLastVerified: "YYYY-MM-DD" in technicalNotes.
Extract homepage visible text:
return document.body.innerText;
Also extract:
Array.from(document.querySelectorAll('h1,h2,h3,h4')).map(h => ({ tag: h.tagName, text: h.innerText.trim() }))Use this content to evaluate the remaining signals.
directAnswersFor each H2/H3, read the paragraph immediately following it. Count what fraction of those headings are followed by a direct first-sentence answer (not a preamble or build-up).
Evaluation:
pass — 70%+ of headings answered directly.partial — 10–69% of headings answered directly.fail — Less than 10%, OR content not structured in heading/answer format (no H2s/H3s).whoWhatWhoThe question is site-type-agnostic but the framing differs:
| Site type | Three identifiable elements |
|---|---|
agency, saas | Who is the business / what do they make or do / who do they serve |
mediaBlog | Who publishes this / what topics are covered / who is the intended reader |
ecommerce | Who is the brand / what category of products / who buys them |
education | Who is the institution / what is taught / who is the student |
localBusiness | Who is the business / what services / what local market |
nonprofit | Who is the organization / what is the mission / who is served |
community | What is this community / what is the focus / who participates |
Can you clearly answer all three from the homepage text alone, within the first scroll?
Evaluation:
pass — All three elements answerable from the homepage text alone within the first scroll.partial — Two of three answerable.fail — One or zero answerable.featuredSnippetStructureCount "extractable" sentences across the homepage: a sentence that defines a term, states a number with context, gives a step, or answers a question — and stands alone without surrounding context. Definition lists, numbered steps, and FAQ answers each count as one.
Evaluation:
pass — 5+ extractable sentences.partial — 2–4 extractable sentences.fail — 0–1 extractable sentences.answerCapsulesDistinct from featuredSnippetStructure. An answer capsule is a 40–60 word self-contained answer placed directly under an H2 or H3. This is the specific structural pattern AI engines extract verbatim — 72.4% of ChatGPT-cited pages have one. The capsule must be:
Scan the page (homepage plus any visited content pages) for H2/H3 elements and analyze the immediately-following text:
const result = [];
document.querySelectorAll('h2, h3').forEach(h => {
let next = h.nextElementSibling;
while (next && (next.tagName === 'BR' || next.innerText.trim() === '')) next = next.nextElementSibling;
if (!next) return;
const text = next.innerText.trim();
const firstBlock = text.split(/\n\n+/)[0];
const wordCount = firstBlock.split(/\s+/).filter(Boolean).length;
const sentenceCount = firstBlock.split(/[.!?]+\s/).filter(s => s.trim().length).length;
if (wordCount >= 35 && wordCount <= 70 && sentenceCount <= 4) {
result.push({ heading: h.innerText.trim().slice(0,80), wordCount, sentenceCount, capsule: firstBlock.slice(0,300) });
}
});
return { capsuleCount: result.length, examples: result.slice(0,5) };
Evaluation:
pass — 3 or more answer capsules across the analyzed pages.partial — 1–2 answer capsules.fail — No qualifying capsules: every H2/H3 either has no text directly under it, has a preamble before the answer, or has text outside the 40–60 word band.authorCredentialsDo the named individuals identified in namedTeamMembers carry specific, verifiable credentials? "Verifiable" means a fact a third party could check: published works, named past clients/employers, named degrees or institutions, recognized certifications, prior press appearances.
The evidence varies by site type:
| Site type | What counts as verifiable credentials |
|---|---|
agency, saas, localBusiness | Named past employers, named past clients, recognized certifications, professional licenses |
mediaBlog | Prior bylines at named publications, recognized journalism awards, subject-matter degrees, books authored |
ecommerce | Founder/designer/maker background relevant to the product category (e.g. "20 years woodworking", "former Patagonia designer") |
education | Degrees, peer-reviewed publications, named institutional affiliations |
nonprofit | Board affiliations, prior nonprofit leadership, named expertise areas |
community | Prior community-building / topic-area credentials |
Evaluation:
na — No named individuals whose credentials could apply (i.e. namedTeamMembers is na, or the site legitimately has no named people). Record "N/A — no named individuals whose credentials could apply."pass — Specific, third-party-verifiable credentials present.partial — Generic credentials only ("years of experience", "industry leader") without specifics.fail — No credentials at all.demonstratedExpertiseCount "specifics" across the homepage and visited pages. A specific is concrete, third-party-verifiable evidence — one of:
Evaluation:
pass — 3 or more specifics observed across homepage and visited pages.partial — 1–2 specifics with the rest of the copy claiming expertise without evidence.fail — Zero specifics (only generic claims like "award-winning", "expert", "leading").externalCitationsThird-party validation: publications that have cited or covered the site, podcasts the site has appeared on, industry awards with named bodies, conference talks, press mentions, peer recognition.
Evaluation:
pass — Named external validation present (named publications, podcasts, awards bodies, etc.).partial — Vague "featured in" / "as seen on" without named outlets.fail — Absent.namedExternalRelationshipsGeneralized from "named clients." The check is "are external entities the site relates to named explicitly, not just shown as anonymous logos?" The relevant relationships vary by site type:
| Site type | Named external relationships |
|---|---|
agency, saas | Named clients, named partners, named integration vendors |
mediaBlog | Named sources, named cited researchers, named contributors |
ecommerce | Named brands carried, named manufacturers, named retail partners |
education | Named partner institutions, named accreditors, named research collaborators |
nonprofit | Named funders, named partner organizations, named beneficiary communities |
localBusiness | Named suppliers, named professional affiliations, named recurring partner businesses |
community | Named affiliated organizations, named sponsors, named partner communities |
Evaluation:
pass — At least one named external relationship appears in copy (not just a logo).fail — All relationships are anonymous, generic ("our clients", "our sources"), or logo-only.recentFeaturedWorkGeneralized from "recent portfolio." The check varies by site type:
| Site type | What counts as recent featured work |
|---|---|
agency | Recent case studies, portfolio pieces, or named recent projects (last 12 months) |
ecommerce | New product launches, new collections, recent restocks featured prominently |
mediaBlog | Recent articles in the dominant vertical, especially editor-featured pieces |
saas | Recent feature releases, changelog entries, customer-spotlight posts |
education | New courses, recent cohort launches, recent research publications |
localBusiness | Recent events, recent menu/service changes, recent local appearances |
nonprofit | Recent campaigns, recent impact reports, recent program launches |
community | Recent featured discussions, recent contributor spotlights, recent events |
Evaluation:
pass — Recent featured work (last 12 months) is visible.fail — Work appears dated, references deprecated tools/platforms, or no featured work exists.currentDomainReferencesGeneralized from "current tech references." The check is "do the named entities and references in the content reflect what is current in the site's domain?" — deprecated tools, retired standards, stale research, or outdated regulations signal abandonment.
| Site type | What counts as current domain references |
|---|---|
agency, saas | Currently-maintained platforms, frameworks, libraries |
mediaBlog | Citations of current research, current regulations, current industry events |
ecommerce | Current product lines, current trends, current designer/maker references |
education | Current curricula, current pedagogical research, current accreditation standards |
localBusiness | Current local references, current professional standards |
nonprofit | Current programs, current policy references, current statistics |
community | Current platform conventions, current topic-area developments |
Evaluation:
pass — Domain references appear current.fail — Deprecated/retired/superseded references are cited as current.entityIdentifiableCan you write a single sentence identifying this site from the homepage text alone? It must include three elements appropriate to the site type:
| Site type | Required elements |
|---|---|
agency, saas, localBusiness | Business name + business type + core specialty |
mediaBlog | Publication name + topic area + editorial stance / audience |
ecommerce | Brand name + product category + target buyer |
education | Institution name + program type + student audience |
nonprofit | Organization name + cause area + beneficiary |
community | Community name + topic area + participant type |
Example one-sentence identifications by type:
Evaluation:
pass — A single clear identifying sentence containing all three required elements is constructable from the homepage.partial — Partially identifiable (1 or 2 of 3 elements clear).fail — Cannot identify the site from the homepage text.primaryFocusSpecificityGeneralized from "service specificity." How specific is the site's primary focus, as stated in the homepage copy?
| Site type | Specificity examples (high / medium / low) |
|---|---|
agency | "WordPress agency for DTC ecommerce brands on Shopify" / "web design and development for small businesses" / "full-service digital agency" |
mediaBlog | "Climate change reporting for policymakers" / "general business news" / "lifestyle blog" |
ecommerce | "Hand-thrown ceramic dinnerware for hospitality buyers" / "kitchen accessories" / "general home goods" |
saas | "Customer feedback dashboards for B2B SaaS product managers" / "feedback management" / "productivity software" |
education | "Online tax-law CLE courses for practicing attorneys" / "professional development courses" / "online learning" |
nonprofit | "Free legal aid for tenants facing eviction in NYC" / "housing rights advocacy" / "social justice" |
Evaluation:
pass — Highly specific primary focus stated.partial — Moderately specific or generic focus.fail — No clear focus described.Is a location, timezone, or market focus stated anywhere on the homepage?
Evaluation:
pass — Location, timezone, or market focus is stated.fail — Absent.Does the site describe itself consistently across the hero, about section, and footer? Or does the specialty/positioning shift between zones?
Evaluation:
pass — Consistent identity across all zones.fail — Contradictory identity signals between zones.primaryOfferingDetailFor each primary offering described, can you answer: what is it, who is it for, what outcome does it deliver? The "offering" varies by site type:
| Site type | What counts as a primary offering |
|---|---|
agency, saas, localBusiness | Each service or product line |
ecommerce | Each product category or collection |
mediaBlog | Each content vertical or beat |
education | Each course, program, or degree track |
nonprofit | Each program, cause area, or initiative |
community | Each major activity or sub-community |
Evaluation:
pass — All three (what / who / outcome) answered for most offerings.partial — Partially answered (some offerings have detail, others don't, or 1–2 of the three elements addressed).fail — Offerings listed by category label only with no detail.namedSpecificEntitiesGeneralized from "named platforms and technologies." Are specific entities relevant to the site's domain named explicitly rather than referred to abstractly?
| Site type | What counts as named specific entities |
|---|---|
agency, saas | Platforms, frameworks, libraries (WordPress, React, Stripe, Shopify, AWS) |
mediaBlog | Named publishers cited, named primary sources, named research datasets, named experts quoted |
ecommerce | Named brands carried, named manufacturers, named raw materials or techniques (single-origin Ethiopian Yirgacheffe; Italian leather) |
education | Named accreditors, named frameworks (Common Core, NGSS), named institutional partnerships |
nonprofit | Named partner organizations, named cited reports, named legislation references |
localBusiness | Named suppliers, named professional certifications, named local landmarks |
community | Named upstream/sibling communities, named featured tools |
Evaluation:
pass — 2 or more named specific entities relevant to the domain.partial — Exactly one named specific entity.fail — None (generic abstractions only).namedSubjectAreasGeneralized from "named industries." Are the site's subject areas named specifically?
| Site type | What counts as named subject areas |
|---|---|
agency | Industries served (DTC ecommerce, healthcare, fintech, climate tech) |
mediaBlog | Topic verticals or beats (geopolitics, indie publishing, electric vehicles) |
ecommerce | Product categories (women's outerwear, kitchen knives, indoor plants) |
saas | ICP roles or verticals (product managers, restaurant operators, B2B SaaS sales teams) |
education | Fields of study or specializations (data science, environmental policy, early childhood ed) |
nonprofit | Program areas (eviction defense, food security, watershed restoration) |
localBusiness | Service specialties (italian cuisine, sports medicine, residential plumbing) |
community | Topic focus (mechanical keyboards, woodworking, climate policy) |
Evaluation:
pass — Specific subject areas named.fail — Generic only ("businesses", "people", "everyone").specificOutcomesGeneralized from "client wins with numbers." Are quantified results or named achievements present?
| Site type | What counts as specific outcomes |
|---|---|
agency, saas | Named client wins with metrics (3× conversion lift, 40% cost reduction, $2M raised) |
mediaBlog | Cited statistics in articles, original research findings with numbers, primary-source quoted figures |
ecommerce | Named reviewed metrics (4.8★ from 12K reviews, 96% recommend), return-rate transparency |
education | Named outcomes (graduate placement rate %, mean salary, named alumni) |
nonprofit | Named impact metrics (N families served, $ delivered, % of donations reaching programs) |
localBusiness | Named tenure metrics (servicing X area since YYYY, named reviewed ratings) |
community | Named member/contributor counts, named published outputs |
Evaluation:
na — The site legitimately has no quantifiable outcomes to report (e.g. an early-stage program, a service type where metrics aren't standard, or a privacy-constrained context). Record "N/A — no quantifiable outcomes applicable to this site." Use sparingly — prefer fail (which caps at low) when outcomes plausibly exist but simply aren't stated.pass — Specific quantified outcomes or named achievements present.fail — Vague claims only ("we get results", "great quality", "trusted").passageExtractionQualityCould a clean, accurate 1–2 sentence summary be pulled from each major section without needing surrounding context?
Evaluation:
pass — Most sections yield clean extractable summaries.fail — Sections require surrounding context to make sense.If llms.txt was found in 1.8, evaluate the recorded content:
Evaluation:
pass — Specific and accurate; describes site name, type, specialty, and mentions specific services / audiences / platforms.fail — Vague boilerplate.na — llms.txt is absent (covered by the llmsTxtPresent signal; record na here with note "N/A — llms.txt not present.").<kosh>/skills/aeo/references/evaluation-rubric.md.pass / partial / fail / na).signals block contains every signal from the canonical signal-keys list. No signal may be omitted; use na with rationale when the signal genuinely does not apply.summary block: { totalSignals: 49, pass, partial, fail, na }. Confirm pass + partial + fail + na === 49.Complete all items before generating the JSON report.
siteType, siteTypeConfidence, siteTypeRationale recordedapplicableSchemas recorded in technicalNoteskosh-reports/screenshots/homepage-aeo-desktop.pngvisitedPagescontentUpdateRecency check run on at least one editorial / reference page (or N/A exemption applied per site type)authorBylines check run on at least one article / post page (or N/A exemption applied per site type)technicalNotes.cmsDetected (including Jetpack presence)<kosh>/skills/aeo/references/wp-seo-capabilities.md; capabilityMatrixLastVerified recorded in technicalNotes and the staleness notice surfaced if over thresholdstatus of pass, partial, fail, or nasummary block populated with totalSignals, pass, partial, fail, na counts; the four buckets sum to totalSignalsfail or partial has a corresponding entry in issues.critical|high|medium|low[]fail or partialeffort field (low / medium / high / unknown)If any item above is unchecked, do NOT generate the report. Return to the relevant section and complete it.
Save the report to kosh-reports/data/qa-report-aeo.json. This is the fixed filename the kosh report generator expects. Leave timestamp as the example has it: run-qa-report.sh sets it to when the run's browser first loaded a page.
The full structure is defined in <kosh>/schemas/qa-report-aeo-schema.json. Use canonical signal keys from <kosh>/skills/aeo/references/signal-keys.md — do not invent variants (robotsAndCrawlerAccess, not robotsTxt; noNoindex, not noindex).
Each criterion follows {signals: {key: {status, notes}, ...}} where status is one of pass / partial / fail / na.
Minimal top-level shape:
provenance.model to the exact model ID you are running as, copied from your system prompt. If your system prompt does not state one, write "unknown" — never guess. Add no other provenance fields: <kosh>/scripts/run-qa-report.sh adds the plugin version and skill hash.{
"url": "https://example.com",
"websiteName": "Example",
"timestamp": "ISO-8601",
"provenance": { "model": "<your exact model ID>" },
"mode": "aeo",
"aeoRubricVersion": "1.0",
"siteType": "mediaBlog",
"siteTypeConfidence": "high",
"siteTypeRationale": "BlogPosting JSON-LD on 3 of 5 sampled pages; /blog/ route with 40+ dated entries.",
"environment": "production",
"visitedPages": [
"https://example.com/",
"https://example.com/about/",
"https://example.com/category/climate/",
"https://example.com/articles/recent-piece/"
],
"summary": {
"totalSignals": 49,
"pass": 38,
"partial": 6,
"fail": 4,
"na": 1
},
"criteria": {
"technicalHealth": {
"signals": {
"robotsAndCrawlerAccess": { "status": "pass", "notes": "All live-retrieval bots allowed." },
"noNoindex": { "status": "pass", "notes": "No noindex." }
/* ...remaining technicalHealth signals per schema... */
}
}
/* ...7 more criterion blocks, 49 signals total per <kosh>/skills/aeo/references/signal-keys.md... */
},
"issues": {
"critical": [
{
"criterion": "structuredData",
"signal": "organizationSchema",
"issue": "One sentence describing the specific gap found on this site.",
"impact": "One sentence explaining the consequence for AI discoverability or citation.",
"effort": "medium"
}
],
"high": [],
"medium": [],
"low": []
},
"actionablePrompts": [ /* one entry per signal at status fail or partial */ ],
"technicalNotes": {
"robotsTxt": "Allowed: OAI-SearchBot, ChatGPT-User, Claude-User, PerplexityBot. Blocked: GPTBot, ClaudeBot, Google-Extended, CCBot — modern training/retrieval split.",
"sitemapUrl": "https://example.com/sitemap_index.xml",
"llmsTxtFound": false,
"llmsFullTxtFound": false,
"javascriptRequired": false,
"httpsActive": true,
"mixedContentCount": 0,
"cmsDetected": "WordPress + Yoast",
"capabilityMatrixLastVerified": "2026-07-15",
"capabilityMatrixStale": false,
"applicableSchemas": {
"Person": "medium",
"Article": "high",
"Organization": "high",
"LocalBusiness": "absent",
"Event": "high",
"FAQPage": "high",
"HowTo": "medium",
"Product": "absent",
"Course": "absent",
"Recipe": "absent",
"Review": "absent"
}
}
}
fail for a high-impact technical rubric area (Technical Health or Structured Data). Blocking AI discoverability or citation. (Note: AEO Readiness is not blanket-critical — most of its signals are content or stylistic and capped at low below; only titleAndMetaQuestionMatch and, when FAQ content is warranted, faqSchemaApplied stay elevated.)fail for a non-content criterion that isn't capped below — for example llmsTxt, titleAndMetaQuestionMatch, or faqSchemaApplied (when warranted) — or a substantial partial on those; also the severity for secondary Structured Data signals downgraded from critical under the "Consolidate shared-root schema findings" rule below (e.g. faqSchema or reviewSchema failing alongside whichever single signal — organizationSchema or primaryEntitySchema — was recorded as the critical anchor for that same no-schema-emitter root cause). Significantly weakens AI understanding or trust signals.partial where the gap is moderate on a non-content, non-capped signal.Optional / stylistic signals — always cap at low. A few signals describe optional AEO enhancements or stylistic choices, not requirements. Regardless of the criterion they live under, when these are fail or partial the issue is capped at low severity and worded as a consideration, not a directive:
questionFramedHeadings — phrasing headings as questions is one valid style, not a requirement.faqSectionPresent — an FAQ is a useful AEO opportunity, but many sites legitimately don't need one. Suggest it; never flag its absence as critical.The FAQ story spans three signals with deliberately different treatment: faqSectionPresent (is there a visible FAQ?) caps at low as an optional suggestion; faqSchema and faqSchemaApplied (is the FAQ marked up?) go na when there's no FAQ content, so they never generate an issue on a site that simply has no FAQ. Only when FAQ content actually exists do the schema signals flag a missing-markup gap.
Consolidate shared-root schema findings. When several Structured Data signals fail for the same root cause — the site emits no JSON-LD because it has no schema emitter (WordPress + Jetpack/core with no Yoast / RankMath / AIOSEO or custom schema) — do not emit a separate critical issue for every schema type; that floods the critical bucket with near-duplicates (the volume problem from the source feedback). Instead: record ONE representative critical issue on organizationSchema (or primaryEntitySchema if Organization is already present) describing the shared root and remedy, keep the other schema signals at their fail status, and record their issues at high with an issue/impact line that cross-references the primary (e.g. "part of the site-wide no-schema gap — see organizationSchema"). The finding stays complete; the critical bucket stays readable.
Content signals — cap at low (TAM judgment). Content-quality findings are recommendations, not defects. They depend on editorial priorities, partner staffing, and whether the rubric's baseline even fits the site — so they are surfaced at low severity for the TAM to weigh, never at critical/high. Word them as considerations ("Consider adding…"), not directives. This applies to every signal in these criteria:
eeatSignals)contentFreshness)entityClarity)contentSpecificity)directAnswers, whoWhatWho, featuredSnippetStructure, answerCapsulesThe objective, machine-level criteria — Technical Health, Structured Data, and llms.txt — keep their normal critical / high / medium severity. They are cheap, unambiguous, and not subject to editorial judgment, so they are not capped.
Impact and priority are different axes. A content signal can be high-impact for AEO —
answerCapsules, for instance, is cited as a strong 2026 citation signal in<kosh>/skills/aeo/references/signal-keys.md— yet stilllow-priority for a given partner because acting on it is discretionary editorial work. The cap reflects TAM priority, not a claim that the signal doesn't matter for AEO.
Every issue must include an effort field. Use this two-step process:
Step 1 — assign the signal-type baseline:
| Effort | Meaning | Typical AEO examples |
|---|---|---|
low | Content edit or simple config. No developer required. Under 1 hour. | Create llms.txt, update copyright year, add social profile links, add geographic location to copy |
medium | Requires a developer, plugin, or significant content creation. Hours to a day. | Add Organization or Service JSON-LD schema, add FAQ schema to existing FAQ, write question-framed headings, add date stamps |
high | Requires design or development work, refactoring, or substantial new content. Days or more. | Fix JS-only rendering, build a blog or news section from scratch, create case studies with named outcomes |
unknown | Stack context insufficient to assess. Use sparingly. |
Step 2 — adjust based on observed CMS context (native-first — consult <kosh>/skills/aeo/references/wp-seo-capabilities.md):
Recommend what the site already runs before anything it would have to install: a detected SEO plugin (Yoast / RankMath / SEOPress / AIOSEO) first, then the core / Jetpack path, and a new third-party plugin only for a genuine gap. The capability matrix determines which fixes are native and which genuinely need a plugin:
low. A detected SEO plugin wins — Yoast / RankMath / SEOPress / AIOSEO all provide these fields, so the fix is a one-field edit in that plugin's panel; never recommend enabling Jetpack Social or SEO Tools beside it (a second OG / meta emitter produces duplicate tags). Record effortRationale: "WordPress + Yoast detected — one-field edit in the SEO panel." With no SEO plugin detected, the fix is enabling or configuring a core setting or a Jetpack module. Examples: openGraphTags → "Enable Jetpack Social/Sharing (free) — OG tags emit automatically"; sitemapLastmodRecent → "Core sitemap carries lastmod since WP 6.5 — refresh the stale content; enable Jetpack Sitemaps (free) only if lastmod is absent entirely"; titleAndMetaQuestionMatch → "Set SEO title/meta in Jetpack SEO Tools (free)". Name the free vs. paid Jetpack tier per the matrix so the estimate is honest.organizationSchema, primaryEntitySchema, faqSchema, reviewSchema, relevantSchemasApplied, Article-schema author, breadcrumbs): neither core nor Jetpack emits JSON-LD, so a third-party plugin or custom JSON-LD is warranted here.
low. Record effortRationale: "WordPress + RankMath detected — schema is a one-field edit in the plugin panel."medium — Jetpack cannot emit it, so this needs a schema plugin (Yoast/RankMath/AIOSEO) or custom JSON-LD. Record that in effortRationale, and note it is a candidate to flag to the Jetpack team as a native-SEO gap.medium (plugin install or theme code edit).medium or rise to high. Note in effortRationale.low regardless of stack — it's a plain text file at the domain root.sameAs): effort to complete is lower than building from scratch.Only write effortRationale when site context meaningfully changes the baseline.
Example issue object:
{
"criterion": "structuredData",
"signal": "organizationSchema",
"issue": "No Organization schema present.",
"impact": "AI tools cannot reliably identify the site as a named entity, reducing citation likelihood.",
"effort": "low",
"effortRationale": "WordPress + Yoast detected — Organization schema can be configured in the Yoast SEO Settings panel.",
"pages": ["https://example.com/"]
}
Every signal at status fail or partial must have an entry in actionablePrompts. Each prompt must:
The prompt field conventions:
@id if any.@graph, character limits, code pattern shape.llms.txt is always lowercase, even at sentence start.<kosh>/skills/aeo/references/wp-seo-capabilities.md) marks as natively covered — Open Graph, sitemap lastmod, canonical, robots/noindex, editable title + meta description — the prompt's recommended fix is the SEO plugin the site already runs if one was detected, otherwise the core / Jetpack path (naming the free vs. paid Jetpack tier) — never a plugin the site would have to install. Recommend Yoast / RankMath / AIOSEO or custom JSON-LD as the primary fix only for the schema signals the matrix lists as a genuine gap.Example — ❌ "I'm Maple Creative, a Toronto branding agency. My homepage has no Organization schema. Write me one."
Example — ✅ "Write a complete JSON-LD Organization schema block for a Toronto branding agency homepage <head>. Include name, url, logo, description, and sameAs links for LinkedIn and Twitter. Output a single <script type=\"application/ld+json\"> block."
Once kosh-reports/data/qa-report-aeo.json is saved, run:
<kosh>/scripts/run-qa-report.sh kosh-reports/data/qa-report-aeo.json --aeo
--aeo forces the generator's AEO branch, which is otherwise auto-detected from report.mode === "aeo". The script writes a self-contained HTML report to kosh-reports/ (color-coded status pills, per-criterion signal tables, schema-relevance section, collapsible severity blocks, paste-ready Claude prompts), prints the output path, and moves the source JSON to kosh-reports/data/archive/ under the same basename.
After saving the JSON and running the report script, print a brief summary:
Kosh AEO Analysis — [Website Name]
URL: [URL]
Site type: [siteType] ([confidence])
Environment: [environment]
Signals: [pass] pass · [partial] partial · [fail] fail · [na] N/A (of [totalSignals])
Top issues:
- [Top 3 critical/high issues by severity and CMS-adjusted effort]
Full report saved to:
JSON: [the path after "Source data archived:" in the report script's output]
HTML: [the path after "Report location:" in the report script's output]
When you detect WordPress (look for /wp-content/, /wp-json/, meta[name="generator"] with WordPress, or admin bar markup), these patterns are common:
<kosh>/skills/aeo/references/wp-seo-capabilities.md); a detected Yoast / RankMath / SEOPress / AIOSEO already covers those and its panel is the fix. Treat schema as the genuine gap. When Jetpack is present but there's no schema plugin, flag missing schema as a candidate to raise with the Jetpack team rather than blanket-recommending a third-party plugin.@graph-wrapped JSON-LD with Organization, WebSite, WebPage, and BreadcrumbList by default. Check whether Organization fields (logo, sameAs) are populated in the Yoast settings — empty fields are a common failure mode./sitemap_index.xml rather than a flat /sitemap.xml. If /sitemap.xml 404s, follow the Sitemap: line in robots.txt when it's on the site's own host.primaryEntitySchema signal even if Product schema is plentiful on PDPs (those are confirmed during the Phase 2 sample).@type: "Comment") does not count toward Service / Organization / FAQ tallies./wp-json/) is a separate signal not in the rubric, but record its presence in technicalNotes.cmsDetected — it affects effort estimates for some fixes.low (paste a text file into the WordPress root via SFTP or use a "raw file" plugin), but it does require server access.The rubric is anchored to the homepage as the primary evaluation target, with Phase 2 inner-page checks providing confirmation and evidence-gathering for signals that don't always show fully on the homepage. The homepage anchor matters because AI tools tend to treat the homepage as the canonical entity-defining page when synthesizing a one-paragraph answer about a site.
Several signals (canonical URLs, contentUpdateRecency, authorBylines) genuinely require multi-page evidence and are evaluated against the inner-page findings. The site-type detection from Phase 0 determines which inner pages are most useful to visit.
Passes: Schema present and complete on the homepage, robots.txt allows AI crawlers, sitemap is fresh, content can be parsed by AI without JS, headings answer questions directly, entities (business name, service, audience) are unambiguous in the first scroll.
Fails: Missing or malformed schema, robots.txt blocking AI crawlers, no sitemap, content requires JS to render, dense paragraph copy with no extractable sentences, no named team or external validation, generic positioning ("full-service digital agency"), no llms.txt.
notes that no separate inner pages exist. Cap visitedPages at the homepage URL only and record the constraint in technicalNotes.technicalNotes that crawler-accessible content is limited.hreflang is present and the English version is reachable, prefer it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub a8cteam51/kosh --plugin kosh5 skills in this plugin
/a11yAccessibility-focused QA testing against WCAG 2.2 Level AA standards/functional-designFunctional and design-focused QA testing across multiple pages and viewports/performancePerformance QA for a WordPress site — LCP, CLS, load timings, console errors and failed requests across its key pages, at desktop and mobile/shopGuest shopping journey QA for WooCommerce stores — catalog to checkout, never placing an orderOther plugins' skills for the same job