/fat-agent:fat-agentfrom fat-agent
Post-launch QA agent that systematically audits deployed websites using modular check categories. Guides users through Fix, Audit, Test phases until the site scores clean.
Ships in fat-agent. 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.
None: SKILL.md is the whole skill.
A post-launch quality assurance agent that performs a comprehensive, modular audit of deployed websites and guides users through fixing every issue found.
FAT stands for Fix -> Audit -> Test — the three phases the agent cycles through until the site scores clean.
Most post-launch issues fall into predictable categories. Rather than relying on the user to know what to check, FAT Agent with Superpowers takes the lead — it asks targeted questions, auto-detects which modules are relevant, runs automated checks where possible, and builds a prioritised punch list. Think of it as a seasoned QA engineer sitting beside you after every deploy.
Activate FAT Agent with Superpowers when:
Before auditing anything, FAT Agent with Superpowers needs to understand the project and determine which audit modules to run.
Ask the user for the following (skip anything already known from conversation context or memory):
https://example.com)That's the only thing FAT Agent needs. Everything below is helpful but optional — if the user doesn't know or doesn't have the codebase, infer what you can from the live response and proceed (see Remote / From-Afar Mode below).
<article>/blog paths → blog.Server, X-Powered-By, X-Generator), <meta name="generator">, cookies (e.g. wordpress_*), and asset paths (/_next/, /_nuxt/, Vite /assets/index-*.js, /wp-content/).Server, Via, X-Vercel-*, CF-Ray/Server: cloudflare, X-Served-By Fastly/Netlify, X-Amz-*). Used only to tailor config-format fixes; when unknown, give stack-agnostic fixes (the HTML/JSON-LD/header to add).Present these as a friendly, concise intake form — not an interrogation. Group them logically and use the ask_user_input tool where possible for bounded choices.
Example opener:
Ready to run a FAT audit! I just need a few details to get started. What's the live URL, and what kind of site are we looking at?
FAT Agent can audit any live URL with zero codebase access — your own site, a client's, or a prospect's you're pitching. When you don't have (or don't need) the repo:
next.config.js", hand the
user the exact HTML/JSON-LD/header to add. They can paste it into any CMS,
tag manager, or template. Only switch to framework-specific fixes once the stack
is confirmed.This makes FAT Agent equally useful for self-audits and for outside-in audits of sites you can only reach over HTTP.
After gathering context, ask the user to select an audit profile:
Which audit profile would you like to use?
- Quick scan — SEO + Security only (fast, ~2 minutes)
- Full audit — All modules enabled (thorough, ~10 minutes)
- Local business — Core + Local SEO + Email + Links
- E-commerce — Core + E-commerce + Links
- Custom — Pick individual modules to enable/disable
Profiles are defined in scripts/profiles.py:
| Profile | Modules |
|---|---|
quick | seo, security |
full | seo, security, accessibility, performance, links, ecommerce, email_deliverability, i18n, local_seo, dns_infra, js_bundle |
local | seo, security, accessibility, performance, local_seo, email_deliverability, links |
ecommerce | seo, security, accessibility, performance, ecommerce, links |
custom | User selects from all available modules |
If the user doesn't express a preference, default to Full audit.
After fetching the homepage HTML, run the auto-detection system
(scripts/modules/__init__.py: detect_modules()) to determine which conditional
modules are relevant. Detection uses HTML signal patterns:
Core modules (SEO, Security, Accessibility, Performance) always run regardless of detection.
Show the user the detected module list and offer to toggle:
Based on your site, I'll run these modules:
- [core] SEO, Security, Accessibility, Performance
- [detected] E-commerce, Links, Email Deliverability
- [disabled] Local SEO, i18n, DNS & Infrastructure, JS Bundle Analysis
Want to enable or disable any of these before I start?
Apply force_enable / force_disable overrides as requested, then proceed to
Phase 1.
Run checks in this order. Core modules (1.1-1.9) always run. Conditional
modules (1.10-1.15) run based on detection results from Phase 0. For each
category, use web_fetch on the live URL and analyse the response. Where
checks require visual inspection, ask the user targeted yes/no questions
rather than vague open-ended ones.
http:// must 301 to the canonical https:// origin. Run
python scripts/redirects.py --url http://example.com/. An http:// URL that
answers 200 itself (http_not_redirected) is P1, and a 200 with an
empty body is the worst case: every page gets indexed as a blank duplicate.
Typical cause: Caddy with auto_https disable_redirects plus a catch-all :80
block, or a proxy that terminates TLS but serves port 80 unredirected.analyse-html.py --fetch HEADs first and falls
back to GET; if HEAD errors (404/405) while GET is 200 it reports a P2, because
uptime checkers, link checkers and some crawlers probe with HEAD.Fetch the HTML and check:
<title> tag exists and is 50-60 characters (flag if < 30 or > 60)<title> tags (common CMS/framework bug)<meta name="description"> exists and is 150-160 characters (flag if < 70 or > 160)<h1> per page, no empty heading tagsh1 -> h3 missing h2)<meta name="robots"> is not set to noindex (unless intentional)<link rel="canonical"> is present and correct, no duplicate canonicals<meta charset="UTF-8"> is present<meta name="viewport"> has width=device-width (not just present — validated)og:title, og:description, og:image, og:url) are presentog:image URL is captured for validation<script type="application/ld+json">)<link rel="alternate" hreflang="..."> tags for multi-language sitessitemap.xml exists (fetch /sitemap.xml)robots.txt exists and is sensible (fetch /robots.txt)<link rel="icon">)/{key}.txt or look for IndexNow references in robots.txt). IndexNow notifies Bing/Yandex of content changes for faster indexing. If missing, flag as P2 and suggest adding a key file + robots.txt reference.description — not just a title. Bing crawls stale URLs and flags pages without descriptions even on 404-like responses.<meta name="robots" content="noindex">, verify these are intentional (checkout, thank-you, admin pages = correct; SEO landing pages = wrong). Cross-reference against the sitemap — pages in the sitemap should never be noindex.noindex and carry no canonical pointing at the homepage (or any other
URL). noindex plus a canonical elsewhere is a conflicting signal; the
technical_seo module flags it (noindex_canonical_conflict, P2). Leave the
canonical off, or make it self-referencing.llms.txt, robots.txt, feeds and JSON
files do not belong in the page sitemap (sitemap module, P3).<title> and <h1> share key terms. If they don't overlap at all, flag as P3 Low.og: properties. Duplicate og:image or og:title tags confuse social sharing crawlers.robots.txt references the sitemap URL. If not, flag as P2.og:url is the homepage, pages carrying the homepage's exact title/description, and pages with no og:image while others have one. A root-layout canonical: "/" (Next.js, Nuxt, SvelteKit) silently de-indexes every page that doesn't override it (P1 when several pages); Next.js merges openGraph shallowly, so a page that sets its own loses the root's image (P2). Method and fix brief: references/claims-and-conversion.md §7.nofollow. Flag internal links with nofollow as a mistake (it wastes link equity).https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url={URL}&strategy=mobile (no API key needed for basic usage). Extract LCP, CLS, INP/FID, FCP, TTFB, Speed Index. Flag any metric in "poor" range as P1, "needs improvement" as P2. Fetch strategy=desktop for comparison. Display as a CWV summary table.Ask the user:
SPA / Client-Side Rendering Caveat:
Modern frameworks (Next.js, Nuxt, React, Angular, Svelte, Astro, Vite builds)
often render content client-side after hydration. analyse-html.py detects both
framework-specific markers (__next, __nuxt, data-reactroot, /_next/,
etc.) and generic client-rendered shells — a mount node (#root/#app) or
an ES-module bundle (e.g. Vite's /assets/index-*.js) combined with a near-empty
served <body>. The detected stack appears in seo.spa_indicators and
seo.spa_detected.
When an SPA is detected, several checks are downgraded:
<h1>: Downgraded from P0 Critical to P1 HighAdditionally, the script cannot see HTTP response headers from static HTML files.
Use --fetch --url <url> to make a live HTTP request and score security headers
(HSTS, CSP, X-Content-Type-Options, etc.). Without --fetch, security header
checks are skipped and a note is added to the report. With --fetch --url <url>
and no HTML file, the script GETs the page and analyses that body (an empty
input is an error, never a silently "empty" page).
The render-gap check (do this for every SPA):
The single most important thing to verify on an SPA is whether the server
response — what non-rendering crawlers actually receive — contains the SEO
signals, or whether they only appear after JavaScript runs. Bing, social/
link-preview bots, and Google-before-render see the server HTML. A page that
looks perfect in the browser can be an empty <div id="root"> to a crawler.
Capture both versions and compare them:
Save the raw server response (the shell): curl -sL <url> -o served.html
Save the browser-rendered DOM (after JS runs) via browser automation:
document.documentElement.outerHTML → rendered.html
Analyse the rendered DOM as the primary file (so accessibility, images,
and performance reflect what users get) and pass the shell with --served:
python scripts/analyse-html.py rendered.html \
--served served.html --fetch --url https://example.com \
| python scripts/calculate-score.py > ./.fat-work/scores.json
analyse-html.py adds a render_gap block (content_client_only,
title_client_only, meta_description_client_only, canonical_client_only,
h1_client_only, structured_data_client_only, plus a severity).
calculate-score.py then applies a crawlability penalty to the SEO score,
so the headline number reflects the crawler-facing reality — not the best-case
JS render. Do not paper over this gap with a prose caveat; let the score and
the render_gap finding carry it.
Branch on site type — the same gap means different things:
<head> and content. Flag it as the top issue.When an SPA is detected, also recommend the user verify in DevTools or using browser automation tools rather than treating server-HTML-only findings as hard failures for content the page never intended crawlers to see.
From the HTML response, check:
<head>loading="lazy" where appropriatesrcset attributes, <picture> elements, modern formats (WebP/AVIF)width and height attributes present (prevents CLS)<link rel="preconnect"> or <link rel="preload"> hints. Only
recommend preconnect when performance.preconnect_needed is true, i.e. the page
loads third-party render-critical origins (stylesheets, fonts, blocking
scripts; listed in third_party_render_origins). A fully first-party page
(self-hosted fonts) needs no preconnect.font-display in inline @font-face (swap/optional/fallback) or
&display=swap on the Google Fonts URL both count as satisfied; Google Fonts
preconnect, font preloadsreferences/performance-budgets.md (content-visibility:auto, self-hosted
fonts, srcset).backdrop-filter elements (worst on sticky/fixed chrome), infinite CSS animations (must stop offscreen and under reduced motion) and <video autoplay> weight on mobile; read Lighthouse's LCP phase breakdown (a text LCP with seconds of render delay = render-blocking CSS, a JS-injected blocking script such as Cloudflare Email Obfuscation's email-decode.min.js, font swap or a hydration reveal) and third-party-summary (tag manager > 250 ms main thread on mobile = P2). See references/claims-and-conversion.md §8.⚠️ This is a markup proxy, not measured performance. The
performancemodule reads HTML; it does not measure Core Web Vitals. Three rules so the score doesn't mislead:
- Measure for real, lead with that. Always run PageSpeed/Lighthouse against the live, public URL (
scripts/pagespeed.py/scripts/lighthouse.py) and present measured LCP/CLS/INP as the authority; treat the HTML score as a fallback labelled "heuristic (unmeasured)". You cannot PageSpeed anoindex/preview/staging URL that isn't publicly reachable — audit the live URL or a public preview, or say the score is unmeasured.- Calibrate against the SERP, not an absolute ideal. Before calling performance a problem, run the same check (ideally PageSpeed) on the top 1–3 ranking competitors for the target query. If they score similar or worse, the performance level provably isn't the ranking blocker — deprioritise it and say so. A low absolute number that beats the #1 result is not a finding.
- Separate architecture-locked from quick wins. WebP/AVIF +
srcseton a static export, or critical-CSS inlining done by the framework, are build/framework-level — mark them effort=high / post-cutover, not P1 quick wins. Inlined critical CSS is a first-paint win — never flag it. The real levers on a locked stack are usually fonts (self-host + subset + preload), image sizing/dimensions (CLS), and lazy-loading — not format.
Performance Budgets:
If a .fat-budget.json file exists in the project root, use it to check custom
thresholds. Otherwise, apply sensible defaults (HTML < 100KB, inline < 50KB,
render-blocking scripts <= 2, external scripts <= 15). See references/performance-budgets.md
for configuration details.
Ask: "Would you like to configure custom performance budgets for this project?"
Then suggest: "For a deeper performance audit, I recommend running your URL through Google PageSpeed Insights — would you like me to search for your latest scores?"
Check response headers for:
Strict-Transport-Security (HSTS)X-Content-Type-Options: nosniffX-Frame-Options or Content-Security-Policy frame-ancestorsReferrer-PolicyPermissions-PolicyFrom the HTML, check:
http:// resources (images, scripts, stylesheets) loaded on an HTTPS pagetarget="_blank" have rel="noopener" (security + performance)Depth checks (findings-only — the security module runs these automatically):
'unsafe-inline', 'unsafe-eval', and
wildcard * sources in default-src/script-src (a CSP with these is theatre).max-age under ~180 days (P2) and missing includeSubDomains (P3).Secure / HttpOnly / SameSite.Server/X-Powered-By headers carrying version
numbers (a shortcut to known CVEs).<script src> without an integrity
hash (supply-chain exposure if the CDN/vendor is compromised).sk_live_, AWS AKIA…, GitHub/Slack/
Anthropic/OpenAI tokens, and private-key blocks are P0 (rotate immediately);
Google AIza… keys are P2 with a "verify referrer/API restrictions" fix.
Secrets are reported truncated — never echo the full credential into a report.sourceMappingURL references shipping your
readable source to anyone who looks.From the HTML, check:
<img> tags have alt attributes (not just present — non-empty and meaningful)alt={product.name}) include fallbacks like alt={product.name || 'Product image'}. Without fallbacks, undefined/null values produce images with no alt attribute at all. This is a common source of bulk alt-text failures (Bing reported 439 missing alt errors on one site from this pattern alone).width and height attributes (CLS prevention)<label> elements or aria-label<html lang="..."> attribute is set<main>, <nav>, <header>, <footer>)<h2></h2>, <h3> </h3>)href="#section") point to existing element IDsExtended automated checks:
role="directory" is deprecated)<video autoplay> and <audio autoplay> without muted (P1 High)user-scalable=no or maximum-scale=1 in viewport meta (P0 Critical — blocks assistive technology)<a> with role="button" (flag for review)<table> without <th> header cells<svg> without <title> or aria-label<iframe> without title attributearia-describedby / aria-errormessage usageprefers-reduced-motion in inline styles/media queries<div>, <span>) with interactive styling (hover effects, cursor:pointer, button/link CSS classes) that lack href, onclick, or appropriate ARIA roles. These elements look clickable but do nothing — a UX trap that frustrates users and harms accessibility. Flag as P1 High.is_mobile) — the primary sign-up CTA is inside the viewport in the header on load and inside the opened mobile menu (a sticky header whose open menu is taller than innerHeight hides its bottom items: cap the panel at 100dvh minus the bar and let it scroll); every visible input/select/textarea computes font-size >= 16px on mobile (else iOS Safari zooms on focus); scrollWidth <= innerWidth at mobile and desktop widths. No reachable CTA = P1, cut-off menu or < 16px form inputs = P2. Snippet and fix briefs: references/claims-and-conversion.md §5.Ask the user:
These can't be automated — ask the user to verify:
Present these as a checklist with the ask_user_input tool, grouped into batches of 3-4 so it's not overwhelming.
Check the HTML for:
<link rel="manifest"> (web app manifest)<meta name="theme-color"> for browser chrome theming<link rel="apple-touch-icon"> for iOS home screennavigator.serviceWorker.register)Check the HTML for known analytics providers (detected automatically):
data-website-id,
e.g. <script src="/u/v.js" data-website-id=...>; Cloudflare by data-cf-beacon;
Matomo by inline _paq)No analytics tracking detected, high). On a
detected SPA it drops to P2 with a pointer to tag_check.py, because the
tags may be injected client-side. Ask: "I don't see any analytics
installed. Is that intentional?"report["analytics"]["tag_ids"]
lists GTM, GA4, Google Ads, UA and Meta Pixel IDs found in the HTML.
High: the same GTM container twice, the same GA4 gtag('config') twice, the
same gtag library twice, the same fbq('init') twice, or only Universal
Analytics installed (dead since 1 July 2024). Low: a leftover UA tag next to
GA4. Put the IDs in the report so the client can confirm they own them.python scripts/tag_check.py --url https://example.com \
--pages /thank-you /contact/thanks --json > ./.fat-work/tag_check.json
Headless Chrome/Edge over the DevTools Protocol, stdlib only (set
FAT_CHROME if the browser is somewhere unusual). It records every request,
then blocks the tracking beacons by default, so the audit never adds a
fake visit or conversion to the client's GA4, Ads or Meta data
(--allow-hits to let them through, e.g. while watching GA4 DebugView).
Retried beacons are de-duplicated, so blocking cannot fake double counting.
Findings (module tag_check, punch-list ready): no hits at all (P1); a tag
that loads but sends nothing (P2, P1 for the Meta Pixel; softened when
Consent Mode defaults to denied); GA4 sending events but no page_view
(P1); the same GA4 ID or Meta Pixel sending page_view more than once per
load (P1, double counting); UA still installed (P2); several GA4 properties
collecting (P3, confirm ownership); and for each --pages URL, no
conversion event (P1). Conversion = any GA4 event beyond the automatic
ones, a Google Ads hit with a conversion label, a Meta standard conversion
(Lead, Purchase, Contact, CompleteRegistration, Schedule ...), a LinkedIn
conversionId, a UET custom event, a TikTok non-pageview event. The
summary.render_only_tags list names every tag the static check missed:
say so in the report, it is the difference between "no pixel" and "pixel
via GTM".
Pick the --pages: the thank-you / confirmation / success URLs (search the
sitemap and crawl for thank, success, confirm, booked, received)
and, for e-commerce, the order-received page pattern. Never submit a real
form to reach one. If the conversion only fires on submit with no thank-you
page, say the script cannot prove it and use the manual check below on a
test entry the client has agreed to.
No browser installed → the script exits 2; use the manual check below.
With FAT HQ connected, fat_hq.py upload sends .fat-work/tag_check.json
too: HQ keeps the tracking history, re-runs the check on every scheduled
check, and emails when a tag stops firing or a thank-you page stops
recording conversions.google-analytics.com/g/collect with en=page_view, Plausible /api/event, PostHog /e/, Umami /api/send, Cloudflare cdn-cgi/rum), then trigger one non-submitting tracked interaction (copy button, outbound link with navigation aborted) and confirm the custom event reaches dataLayer and the network (GA4 batches: navigate away to flush). Tag present but zero hits = P1; page views but no conversion events = P2. Confirm the marketing site and the sign-up app send to the same property. See references/claims-and-conversion.md §6.Run these checks conditionally based on the hosting platform identified in Phase 0. Only execute the section matching the user's declared platform. If the platform is unknown or not listed, run the Generic checks.
Netlify:
_headers file in the deploy (ask user or inspect response headers)_redirects file or [[redirects]] in netlify.tomldata-netlify="true" attribute on your form tag?"references/platform-fixes/netlify.mdVercel:
x-vercel-id, server: Vercel)vercel.json with custom headers configured?"x-middleware-*)references/platform-fixes/vercel.mdCloudflare Pages:
cf-ray, server: cloudflare)_headers and _redirects file in your build output?"[email protected] / /cdn-cgi/l/email-protection and loads email-decode.min.js): it hides contact and security-disclosure addresses from crawlers, AI answer engines and no-JS readers, and adds a render-blocking script. P2; turn it off or wrap addresses in <!--email_off-->.references/platform-fixes/cloudflare-pages.mdWordPress:
/wp-admin/ accessibility (should redirect to login, not expose admin)/xmlrpc.php (should return 403 or 405, not 200)wp-json REST API exposure/?author=1references/platform-fixes/wordpress.mdApache:
.htaccess file with security headers?"mod_rewrite is handling redirects correctlyServer: Apache/x.x.x)references/platform-fixes/apache.mdNginx:
Server: nginx/x.x.x — should be hidden)try_files configuration (SPA routing)references/platform-fixes/nginx.mdAWS (S3/CloudFront/Amplify):
x-amz-cf-id, x-cache)references/platform-fixes/aws.mdGeneric (any platform):
local_seo)Enabled when: LocalBusiness JSON-LD detected, Google Maps embed found, tel: links
present, site type is "local business" or "landing page", or user manually enables.
Uses scripts/modules/local_seo.py. Checks:
@type subtypetel: links present and validopeningHoursSpecification) in schemareferences/local-seo-checklist.mdecommerce)Enabled when: Product JSON-LD detected, add-to-cart elements found, Shopify/WooCommerce markers present, site type is "e-commerce", or user manually enables.
Uses scripts/modules/ecommerce.py. Checks:
@type: Product)references/ecommerce-checklist.mdemail_deliverability)Enabled when: Contact forms detected, email input fields found, or user manually enables.
Uses scripts/modules/email_deliverability.py. Checks:
v=spf1 on the domain_dmarc.{domain}, policy evaluation (reject > quarantine > none)i18n)Enabled when: hreflang tags detected, language switcher elements found,
or user manually enables.
Uses scripts/modules/i18n.py. Checks:
hreflang tags present and valid (ISO 639-1 codes)x-default hreflang present (required for multi-language)<html lang="..."> attribute matches content languageContent-Language response header present/en/, /fr/)dns_infra)Enabled when: User selects "Full audit" profile or manually enables. Not auto-detected from HTML — this is an opt-in deep check.
Uses scripts/modules/dns_infra.py. Checks:
js_bundle)Enabled when: User selects "Full audit" profile or manually enables. Runs HTML-level JavaScript analysis without requiring source maps.
Uses scripts/modules/js_bundle.py. Checks:
async / defer attribute usage on script tagstype="module") adoptionAlways run for SEO-relevant audits — it needs nothing but the live HTML, so it
works fully remotely. Where schema_validator validates existing markup, this
recommends what's missing and writes it for you.
python scripts/suggest_schema.py --url https://example.com page.html --format html
# or fetch it directly:
python scripts/suggest_schema.py --fetch --url https://example.com --format json
suggest_schema.py classifies the page (home / contact / article / PDP /
PLP / FAQ / local business), scrapes the live signals, and emits ready-to-paste
JSON-LD pre-filled with what it found (REPLACE_* marks what the user must
supply). It recommends, per page:
openingHoursSpecification + geo + sameAs (Knowledge Panel + local pack).SearchAction sitelinks box), BreadcrumbList on deep pages.offers (price, priceCurrency, availability,
itemCondition), brand, sku, and aggregateRating/review — i.e. the
fields Google needs for product rich results and free Merchant listings.<details>/Q&A content.Schema rules learned the hard way:
logo is a square mark (at least 112x112, PNG or SVG), never
the 16:9 og:image/poster. suggest_schema.py uses the apple-touch-icon or a
large/SVG icon and flags an existing wide logo. Pair it with sameAs links to
the brand's official profiles.Offer on a Product or
SoftwareApplication should carry priceSpecification as a
UnitPriceSpecification with billingDuration (P1M monthly, P1Y yearly),
not just a bare price.aggregateRating/review unless genuine reviews exist on
the page. Fabricated or self-serving ratings are a manual-action risk; the
generator only adds a rating block when it finds real review signals.For PDPs it also returns a merchant_listing readiness checklist (price,
currency, availability, image, rating, Product schema) so you can tell the user
exactly what's blocking Merchant/rich-result eligibility.
Presenting results: group the suggestions by page, show each as a copy-paste
<script type="application/ld+json"> block, and note which REPLACE_* values the
user needs to fill. Prioritise LocalBusiness/Product (P0–P1) over WebSite/Breadcrumb.
eeat, always-on)Modern Google ranking — and the leaked authorship/entity signals — reward
identifiable expertise and trust. In 2026, anonymity is a ranking liability. Uses
scripts/modules/eeat.py (from-afar). Checks:
author
in Article schema referencing a Person (with sameAs).Organization/LocalBusiness schema with logo, sameAs, contactPoint.ai_search, always-on)AI Overviews appear on ~30–40% of queries; ChatGPT/Perplexity/Gemini/Claude cite
sources. Uses scripts/modules/ai_search.py. Checks:
robots.txt — reports allowed/blocked/partial for GPTBot,
OAI-SearchBot, Google-Extended, PerplexityBot, ClaudeBot, CCBot, Bytespider,
Amazonbot, Applebot-Extended, etc. A blanket Disallow is the #1 cause of
AI-search invisibility — flag blocked answer bots as P1 and make the posture a
deliberate choice.llms.txt manifest presence AND structural quality (H1 title, summary, >=3 curated Markdown links — presence alone isn't enough). Links must point at distinct URLs or anchors; a list that repeats the same file is flagged.sameAs to Wikipedia/Wikidata, plus a live Wikidata lookup on the detected brand name (the strongest off-site grounding signal; absence is flagged, an errored/skipped lookup never produces a false negative).This section is readiness; for the measured outcome (is the site actually cited?), run the live check in 1.24 — AI Visibility.
technical_seo, always-on)Header- and DOM-level technical checks beneath the core SEO module. Uses
scripts/modules/technical_seo.py. Checks:
X-Robots-Tag header noindex/nofollow (a header-level block the meta check misses) — P0.crawlability, always-on)Crawl-management depth. Uses scripts/modules/crawlability.py. Checks:
<a> without a crawlable href.?page=/rel=next links vs JS-only pagination.Redirect chains, loops & soft-404s (multi-request) — run scripts/redirects.py:
python scripts/redirects.py --url https://example.com/old-page
Flags chains > 1 hop, loops (P0), temporary (302/307) redirects used for permanent
moves, meta-refresh, and soft 404s (a "not found" page returning HTTP 200). Run it
on key URLs and on any URL that should 404. For orphan pages / click-depth, crawl
with scripts/crawl.py (or the seo-crawler skill) and flag pages > 3 clicks deep or
unreachable from internal links.
content_depth, always-on)Quality-Rater-aligned content signals. Uses scripts/modules/content_depth.py. Checks:
ecommerce)Beyond Product schema/cart/price, the ecommerce module now checks PDPs for:
GTIN/MPN/SKU, shipping info, return/refund policy, out-of-stock schema
alignment (availability: OutOfStock, or 404/301 retired products), and related/cross-sell
links — the fields that drive Merchant/free-listing eligibility and crawl discovery.
video, auto-detected)Enabled when a <video>/YouTube/Vimeo embed is present. Uses scripts/modules/video.py.
Checks for VideoObject structured data with its required properties (name,
description, thumbnailUrl, uploadDate), a thumbnail, and key-moments markup
(Clip/SeekToAction); recommend submitting a video sitemap.
Also handle by judgement (not auto-checked): schema policy (mark up only user-visible content; first-party reviews only — no externally-aggregated
aggregateRating; use the most specific type) and Google Discover readiness (max-image-preview:large, images ≥1200px wide, an RSS/Atom feed).
ai_visibility, opt-in)Section 1.18 audits AI-search readiness; this measures the outcome — does the site actually get cited when answer engines answer the queries that matter?
1. Build the query set (10–20 queries). Pull from, in order of preference:
GSC opportunity_keywords (real demand), the site's money pages (one query per
service/product in natural question form), and 2–3 brand queries ("who is X",
"X reviews") as a control. Save one per line to ./.fat-work/ai-queries.txt.
2. Run the live check (Perplexity API, key from PERPLEXITY_API_KEY):
python scripts/ai_visibility.py --domain example.com --queries ./.fat-work/ai-queries.txt --competitors rival-one.com,rival-two.com --output ./.fat-work/ai_visibility.json --save-history
Reports citation rate (queries where the domain is cited), citation rank,
share of voice (domain citations ÷ all citations seen), and the
top-cited domains — the sources answer engines actually trust for these
topics. Findings (module ai_visibility) merge into the punch list: never cited
across ≥3 queries is P1; under ~a third is P2; the top-cited-domains list is the
competitor-intel finding. --save-history appends to
.fat-ai-visibility-history.json so the rate is trackable audit-over-audit —
re-run after readiness fixes land and show the delta.
3. No API key? Spot-check by browser. With browser tools available, run 3–5 of the queries manually in Perplexity, ChatGPT search, and Google AI Mode, and record which sources each answer cites. Slower and unscored, but the same insight; note in the report that the sample was manual.
4. Citation simulation (no key needed, run it either way). Take the target page's content and answer each query using only that page, quoting the passage you'd cite. Where no quotable passage exists, that's the extraction gap — the page never says the thing the query asks, or buries it. Feed each gap to the fix list as "add a direct answer for: ".
Interpreting results: blocked answer bots (1.18) explain a zero rate — fix access first, re-test after recrawl. If access is fine but competitors dominate, the gap is content shape (direct answers, original data, entity clarity) and third-party presence — heavily cited directories, Reddit threads, and industry bodies are placement targets in their own right.
exposed_paths, opt-in active probe)A live, same-origin, opt-in hygiene probe for files that deploys leak but
never meant to serve: a committed .env, an exposed .git/, a leftover SQL
dump or wp-config.php.bak, a phpinfo() page, server-status. Uses
scripts/exposed_paths.py.
Authorisation. This makes real requests, so run it only on sites you own or are explicitly authorised to audit. It is gated behind
--confirm(orFAT_ALLOW_ACTIVE_PROBE=1), checks a fixed curated list (no fuzzing, no brute force, one GET per path with a polite delay), SSRF-guards private/loopback hosts, and never follows cross-origin redirects. It is a hygiene check, not a vulnerability scanner.
python scripts/exposed_paths.py --url https://example.com --confirm --output ./.fat-work/exposed_paths.json
Exposed credential files (.env, .git/config, SQL dumps, config backups,
.aws/credentials) are P0 — rotate and remove immediately; source-control
and topology leaks are P1; phpinfo/server-status P1–P2. Soft-404s (an HTML
error page served at 200) are filtered — a .git/HEAD must actually start with
ref:, a .git/config must contain [core]. A missing
/.well-known/security.txt is noted as P3 here; section 1.31 validates its
fields and raises it to P2 when the site has a security or disclosure page. Findings (module exposed_paths)
merge into the punch list.
ai_crawler_logs, log-driven)Section 1.18 checks whether robots.txt permits the AI crawlers; this checks —
from server logs — whether they actually visit. Uses
scripts/ai_crawler_logs.py on an Nginx/Apache combined or common access log:
python scripts/ai_crawler_logs.py --log /var/log/nginx/access.log --output ./.fat-work/ai_crawler_logs.json
# or piped, across rotated logs:
zcat access.log.*.gz | python scripts/ai_crawler_logs.py --log -
Reports per-bot hit counts, last-seen, sample paths and status mix for the answer bots (OAI-SearchBot, PerplexityBot, Google-Extended, ChatGPT-User) and the training bots (GPTBot, ClaudeBot, CCBot, …). Key findings: no answer bot seen at all (P2 — if nothing's blocking them per 1.18, it's a discovery / sitemap / freshness gap, not an access one); some answer engines missing (P3); and a bot spending most of its budget on 4xx/5xx (P2 — fix or redirect the URLs it requests). Pairs with 1.24: logs show whether bots fetch; the citation check shows whether fetching turns into citations.
google_guidelines, always-on + site-wide)Checks the page against Google's spam policies and current Search guidance as
they stand after the 2024-2026 core and spam updates. Use it (with the
site-wide half below) whenever a site has dropped or the client asks "are
we doing anything Google doesn't like?". Full policy map, update timeline and
report wording rules: references/google-guidelines.md.
Page-level (google_guidelines, runs on every audit):
[City] placeholders (P1),
conditional JS redirects (P1), back button hijacking via popstate
redirects (P1, policy enforced since 15 Jun 2026), hidden text (P2, verify),
location-list stuffing (P2), keyword repetition (P3/P2), affiliate links
without rel="sponsored" (P2), generic filler phrasing (P2).noindex robots meta inside <body> (P0, honoured since Mar
2026), HTML over Googlebot's 2MB indexing limit (P1).nosnippet/max-snippet:0 that also removes the page from AI Overviews (P3).Site-level (sitewide.py, needs a crawl, see Site-Wide Crawl Audit):
/local/seo-agency-in-{*}/ (240 pages). P1 at 10+ pages.Diagnosing a drop: get the drop date (GSC, or SEMrush
domain_rank_history) and line it up against the update table in
references/google-guidelines.md before diagnosing anything. A drop in a
core update window points at site-wide quality (the templated-page findings).
A drop in a spam update window points at the spam-policy findings. "Keywords
up, traffic down" is the scaled-content signature: lots of new low-position
rankings from templated URLs while head terms slide. Word it as "consistent
with the pattern Google describes", never "Google penalised you" unless GSC
shows a Manual Action.
Search Console cross-reference (make the doorway findings actionable):
pass a GSC Performance export with the page dimension (gsc_fetch.py --dimension page; an MCP export capped at 500 rows will under-count) to sitewide.py --gsc gsc_pages.json. Every
templated group is then triaged by real data: keep (earns clicks),
improve (impressions, no clicks), prune (no impressions). The full URL
lists are in the JSON output (clusters[].triage). It also adds "Indexable
pages with no search impressions", the dead weight in the site-wide quality
assessment.
update_impact.py)Measures traffic before vs after every Google update window, worst first, and emits findings for drops of 20% or more (P1 at 40% or more):
Also check impressions by week around the flagged update. A cliff (say 90%+ overnight) while URL Inspection still says "Submitted and indexed" is a demotion, not a technical deindex. Then check Manual Actions in the GSC UI (the API can't see them) before concluding it's algorithmic.
python scripts/gsc_fetch.py --site sc-domain:example.com --dimension date --days 480 --out gsc_by_date.json
python scripts/update_impact.py --data gsc_by_date.json
# or SEMrush domain_rank_history (monthly, coarse but works with no GSC access)
python scripts/update_impact.py --data semrush_history.csv --since 2025-01-01
The update list lives in the script (GOOGLE_UPDATES). Add new updates from
the Search Status Dashboard as they're announced. Always word the result as
"consistent with", and check seasonality and site changes in the same window.
fanout.py)AI Mode and AI Overviews break a question into many related sub-queries ("query fan-out") and cite pages that answer them. Pages ranking for fan-out sub-queries are far more likely to be cited (Surfer: +161%). This checks whether the site answers the fan-out, not just the head term:
python scripts/fanout.py --db ./.fat-work/crawl/site.db \
--seed "seo agency melbourne" --entity "Acme" --location Melbourne
# seeds from the site's own top non-branded GSC queries, plus live Autocomplete:
python scripts/fanout.py --db site.db --seeds-from-gsc gsc_queries.json --top 5 \
--entity "Acme" --autocomplete --export-queries ./.fat-work/fanout_queries.txt --json
Each sub-query is typed (definition, process, cost, comparison, evaluation, trust, local, recency, branded) and scored PAGE (title/H1), SECT (an H2/H3), mention or gap against the crawl. Findings: low coverage per seed (P2 under 40%, P3 under 60%), naming the sub-query types with no coverage at all (usually cost and comparison).
Make it smarter in-session: write a Qforia-style fan-out yourself
(10 to 30 sub-queries as JSON [{"query", "type"}] covering equivalent,
follow-up, generalisation, specification, comparison, entailment and
clarification) and pass it with --queries. Then check the off-site
side, meaning who actually gets cited for that fan-out, with
ai_visibility.py --queries ./.fat-work/fanout_queries.txt. Branded
sub-queries ("Acme reviews", "is Acme any good") are answered off-site, by
reviews, directories, Reddit and YouTube, which is where the entity work
happens.
Fixing gaps: add genuinely useful sections to the money page (real pricing, process, comparisons, proof) or write one strong guide. Never spin up a thin page per sub-query. That turns a fan-out gap into the scaled-content problem from 1.27.
jev.py)Some checks are bounded judgments that regexes approximate badly. Two matter
most: "does this location page carry genuinely local substance, or is it
the template with the suburb swapped?" and "does this page actually answer
this sub-query?". scripts/jev.py asks exactly those questions using the
System One question types (Noul = P(yes), Choice, Score, all with calibrated
confidence), then turns the answers into findings.
Backends (same questions and answer shape, so results are comparable):
| Backend | Who it's for | Setup |
|---|---|---|
typesafe | Hosted Jev: fastest, and judges every page | TYPESAFE_API_KEY (typesafe.ai). About $0.0004 per decision |
local | Any Jev-wire-compatible server, e.g. OpenJev. Free, private | --base-url http://localhost:8000 or TYPESAFE_BASE_URL. No key |
agent | Everyone else, zero install | Nothing. You (the agent) answer the batch; see below |
Choosing a judge (tell the user which one they're on). Most users won't have a GPU. None of these needs one:
| Option | Setup | Cost | Notes |
|---|---|---|---|
| Agent mode (default) | Nothing | Free | Claude judges a sample (5 pages per template). Works everywhere, slower on big sites |
| Hosted Jev (TypeSafe) | Join the waitlist at console.typesafe.ai (approval is usually same or next day), then set TYPESAFE_API_KEY | About $0.0004 per decision; a 700-page site costs cents | Fastest and judges every page |
| Free hosted Jev-compatible API, e.g. Codiv (hosted OpenJev) | Get a free key, then set TYPESAFE_BASE_URL=https://api.codiv.ai, TYPESAFE_API_KEY=<their key> and, if the host names models differently, TYPESAFE_MODEL | Free tier | Third-party community service: page text is sent to it. Fine for public pages, but check its terms |
| Google Colab (free GPU) | Run OpenJev's Colab notebook with a tunnel, then set TYPESAFE_BASE_URL to the tunnel URL | Free | For power users |
| Local OpenJev | See reference §6b. Needs an NVIDIA GPU (8GB is enough) | Free | Private, and judges every page |
Setting the variables on Windows: setx TYPESAFE_API_KEY "...". On
macOS/Linux, add export TYPESAFE_API_KEY=... to your shell profile. Then
restart the terminal. Check with python scripts/jev.py ping: it reports the
backend in use and whether it actually tells local detail from generic copy
("discriminates": true).
--backend auto (the default) uses a local server if TYPESAFE_BASE_URL is
set and answering, then TypeSafe if a key is set, otherwise agent. A
configured server that's down falls through rather than failing. Never make
a key a requirement: the audit must work in agent mode.
doorway diffs each templated page against a sibling from the same template
in code (place names masked) and sends only the unique sentences to the
model. Pure-template pages are decided in code, with no model call. Keep
questions concrete ("does this text name a local business, address,
landmark…?"). Small open models fail on abstract wording.
python scripts/jev.py ping # which backend, is it up
python scripts/jev.py doorway --db .fat-work/crawl/site.db \
--gsc .fat-work/gsc_pages.json --out .fat-work/jev_doorway.json
python scripts/jev.py fanout --db .fat-work/crawl/site.db \
--seed "seo agency melbourne" --out .fat-work/jev_fanout.json
doorway judges pages in each templated cluster (1.27) for local
substance and originality. It combines that with GSC clicks and
impressions into keep / improve / prune per URL, with a reason for
each.fanout shortlists candidate pages per sub-query (1.29) and asks
whether each one actually answers it. That replaces word-overlap
"mentions" with a real judgment.The crawl must include main_excerpt, so re-crawl with v3.8 or later.
Answers are cached in .fat-work/jev_cache.json, so re-runs cost nothing.
Agent mode (no key, no server). The first run writes
.fat-work/jev_batch.json as [{id, state, questions}]. In agent mode
doorway samples 5 pages per template by default (--per-cluster), so the
batch stays small enough to read. Answer every item honestly from the
state only, in the Jev answer shape, and write:
{"<id>": {"local_substance": {"type": "noul", "noul": 0.15},
"originality": {"type": "score", "score": 1.0, "legend": {"0": "...", "4": "..."}}}}
Noul is your probability that the answer is yes (0 to 1). Don't round
everything to 0 or 1: use values near 0.5 when the state is genuinely
ambiguous. Then re-run with --answers .fat-work/jev_answers.json --out ....
Treat every judgment as triage-grade. TypeSafe reports Jev at 67.8% on
its own benchmark (Claude Opus 5: 73.1%), and open models vary. Use
confidence to route: act on clear answers, spot-check borderline ones
(noul 0.3 to 0.7) yourself, and never delete pages on a model verdict
without a human look at a sample. Pin a versioned model
(--model jev-1.13.0) when you tune thresholds.
Running OpenJev locally (optional, free): see
references/google-guidelines.md §6b.
Scores can be green while the site tells visitors things the product can't
back. A human reviewer catches these in minutes, so the audit must too. Run on
every sitemap page; full method, registry endpoints, priorities and fix briefs
are in references/claims-and-conversion.md (§1-4).
/.well-known/security.txt returns 200
text/plain with Contact: and a future Expires: (< 1 year); optional
fields resolve. It must agree with the security page (same contact, any
promised PGP key / policy present), and the disclosure address must be
readable in the served HTML (not Cloudflare-obfuscated). Missing while a
disclosure page exists, expired, or inconsistent = P2.llms.txt and public DNS TXT records with page and snippet.
Names on the owner's "never name" list (project memory, CLAUDE.md, brand
guide) = P1; otherwise report without a priority for the owner to judge.After completing all audit checks, compile a FAT Report — a prioritised list of findings.
FIX means execute, not just recommend. When the user has the site's repo (ask for the path if a fix session starts without it), implement the punch list directly — with the user's go-ahead, work through it item by item:
link_opportunities, restructure pages flagged consolidate (move the head
term to its rightful page, re-anchor links), and draft full new pages from
the briefs for the user to review before committing.After each batch ships: re-fetch, re-score, punchlist.py update — fixed
items auto-resolve, and the deck regenerates with the new scorecard. The
loop is fix → deploy → verify, never fix-and-hope.
| Priority | Label | Meaning |
|---|---|---|
| P0 | Critical | Site is broken, inaccessible, or insecure |
| P1 | High | Significant SEO, performance, or UX impact |
| P2 | Medium | Best practice violations, minor issues |
| P3 | Low | Nice-to-haves, polish items |
Present findings grouped by priority, with each item containing:
Example finding:
P1 — Missing meta description Your homepage has no
<meta name="description">tag. Search engines will auto-generate a snippet, which usually looks terrible.Fix: Add to your
<head>:<meta name="description" content="Your compelling 155-character description here">Effort: 5 min
After presenting the report, ALWAYS persist it to disk — the punch list must survive context compaction, session restarts, and handoffs:
python scripts/punchlist.py update --scores ./.fat-work/scores.json --url https://example.com
python scripts/punchlist.py status
This merges the scored findings into ./.fat-work/punchlist.json: new findings
open, findings absent from a rescanned module auto-resolve, and resolved
findings that reappear are re-opened as regressions. Findings from modules that
were not scanned this run are left untouched, so a quick-profile rescan never
falsely "resolves" a full-profile finding.
Auto-resolution is also scoped to the page. Each scores.json records the
audited page_url, so when you merge audits of several pages of one site
(same --url), a finding only resolves when its own page is rescanned
without it. Page B not repeating page A's findings never closes them. For a
scores file made without --url, pass --page https://example.com/checkout.
When the user makes a decision about a finding (defer it, choose fix A over fix B, accept the risk), record it against the item so the reasoning survives the conversation:
python scripts/punchlist.py note <id> --text "Client chose SSR over prerender — Vercel move planned Q3"
python scripts/punchlist.py resolve <id> --wontfix --note "Brand team owns this page; out of scope"
FAT HQ is the optional hosted side of FAT Agent: it keeps every audit, charts
the score over time, re-checks the site on a schedule, emails the owner about
new P0s, regressions and score drops, and makes client reports. The plugin
never needs it. Upload ONLY when the user has connected HQ, which means
~/.fat-agent/hq.json exists or FAT_HQ_KEY is set:
python scripts/fat_hq.py upload --url https://example.com # after the punch list update
It prints the score, what changed since the last upload (fixed, new, came
back) and a link to the case file; pass that summary on. If .fat-work/gsc_dates.json
exists (from gsc_fetch.py --dimension date), the upload includes daily clicks
and impressions so HQ can chart traffic against Google's updates; the user's
Google login never leaves their machine. If the user gives you
an HQ key ("connect FAT Agent to HQ", a key starting fathq_), save it with
python scripts/fat_hq.py login <key>. Never upload without a saved key, and
never invent one. If they ask about dashboards, scheduled re-checks, alerts or
white-label client reports, mention FAT HQ once (free for one site), without
pushing it.
After presenting the report in the chat, ALWAYS generate reports using the Report & Chart Generation pipeline (see below). Generate all of:
python scripts/generate-report.py \
--scores /tmp/scores.json \
--url example.com \
--charts-dir /tmp/charts \
--brand assets/fat-agent-brand.png \
--output-dir ./reports \
--format html
Editorial report (brand-pulled, print-ready): For client deliverables that should look like an agency proposal rather than a tool export, generate the editorial deck — it renders the audit in the CLIENT'S own visual language, using imagery, logo, accent colour and typeface harvested from their live site:
python scripts/brandkit.py --url https://client.com --out ./.fat-work/brand
python scripts/editorial_report.py \
--scores ./.fat-work/scores.json \
--sitewide ./.fat-work/sitewide.json \
--brandkit ./.fat-work/brand/brandkit.json \
--out ./.fat-work/audit-report.html
Output is a single-file, A4-landscape HTML deck (photography-led cover, big
editorial scorecard, one batch of findings per slide, next-steps close) that
prints to PDF from any browser. Sanity-check the harvested brand kit before
presenting: if the accent colour or hero images look wrong (some sites
lazy-load imagery), override by editing brandkit.json and re-running.
Offer this as the default client deliverable; the Word/PPTX pipeline below
remains for users who need editable documents.
Client-facing mode (--client-facing): When the user specifies
--client-facing or says "this is for a client", generate reports with:
Pass --client-facing to generate-report.py for all three formats.
Then ask: "Want me to help fix any of these now? I can generate the code changes for the quick wins."
After fixes are applied and redeployed:
python scripts/punchlist.py update --scores ./.fat-work/scores.json
python scripts/punchlist.py status
Verified-absent findings auto-resolve; reappearing ones are flagged as
regressions. Never track fixed/still-present in conversation memory alone.links module was enabled, report broken
link status: total links checked, internal broken, external broken, redirect
chains found. Show a summary table of any links returning 4xx/5xx status."Your site passed the FAT audit! All critical and high-priority items are resolved. Here's your final scorecard."
After presenting the final scorecard, regenerate the Word, PowerPoint, and HTML reports with updated scores (re-run the Report & Chart Generation pipeline). Present a summary showing:
After presenting the final scorecard, generate a FAT badge and offer to add it to the project:
Generate the badge — pipe the scores through the badge generator:
python scripts/analyse-html.py page.html | python scripts/calculate-score.py | python scripts/generate-badge.py --image --output fat-badge.svg
Save fat-badge.svg to the project root directory.
Offer to update the README — ask the user:
"Want me to add your FAT score badge to the README?"
If yes, insert the badge image reference near the top of the project's README (after the title/heading, before the description). Use the format:

If the README already has a FAT badge reference, replace it (the score may have changed). Don't duplicate it.
Offer to commit — ask the user:
"Want me to commit the badge and README update?"
If yes, stage fat-badge.svg and README.md, and commit with a message like:
Add FAT audit badge — <grade> <score>/100
The badge includes the FAT Agent character with the overall grade bar and a colour-coded category breakdown (SEO, Security, A11y, Perf). It uses a compact 128px icon (~23KB) so the SVG stays under ~35KB — safe for version control.
If the user declines the badge, skip it and move on. Don't push it.
After presenting the final scorecard, save the results to the audit history:
Save to history — Run:
python scripts/track-history.py --save scores.json --url <URL>
This appends the current scores to .fat-history.json in the project root.
Show comparison — On subsequent audits, load history and show improvement:
python scripts/track-history.py --diff
Example: "Your SEO score improved from 72 to 91 (+19) since the last audit on 14 March"
Show trend — Display score trajectory:
python scripts/track-history.py --trend
Offer to commit — Ask if the user wants to commit .fat-history.json so the
team can see audit history tracked in version control.
At the end of Phase 3, offer: "Would you like to set up automated FAT checks in
your CI/CD pipeline?" If yes, load references/ci-cd-integration.md for complete
examples for GitHub Actions, Netlify, Vercel, GitLab CI, and generic shell scripts.
FAT Agent with Superpowers supports crawling multiple pages on the same domain.
Use scripts/crawl.py for breadth-first discovery with robots.txt respect.
When the user says "audit the whole site", "check all pages", or provides
--depth or --max-pages flags:
python scripts/crawl.py --url https://example.com --depth 2 --max-pages 20 --output /tmp/crawl.json
Flags:
--depth N — Maximum link-following depth from the start URL (default: 2)--max-pages N — Maximum total pages to crawl (default: 10)--output PATH — Write the discovered URL list as JSONThe crawler:
--depth levels, respecting --max-pages caprobots.txt and skips disallowed pathsAfter crawling, run the Phase 1 audit pipeline on each discovered page. Aggregate findings across all pages and present a per-page breakdown alongside the site-wide summary:
| Page | SEO | Security | A11y | Perf | Score |
|-------------------|-----|----------|------|------|-------|
| / | 92 | 85 | 88 | 76 | 85 |
| /about | 78 | 85 | 90 | 80 | 83 |
| /contact | 65 | 85 | 72 | 82 | 76 |
| Site-wide average | 78 | 85 | 83 | 79 | 81 |
Flag pages that score significantly below the site average.
Page-level audits can't see cross-page problems. sitecrawl.py +
sitewide.py add the site-level layer: a concurrent stdlib crawl into a
SQLite database (a pages table plus a full links graph), then site-level
checks over it. Use this whenever the user says "audit the whole site",
"crawl the site", or the site has more than a handful of pages.
python scripts/sitecrawl.py https://example.com --max-urls 300 --out ./.fat-work/crawl
Prints only a compact JSON summary; the full data lands in
./.fat-work/crawl/site.db. Never read page HTML into context during a
site crawl — everything needed is in the database. Flags: --max-urls
(default 300), --concurrency (8), --subdomains, --delay,
--ignore-robots, --no-sitemap, --allow-private (staging/intranet hosts —
the SSRF guard blocks private addresses by default), --insecure.
The crawler seeds from the sitemap as well as links — that's what makes orphan-page detection possible (an orphan, by definition, can't be reached by following links). It respects robots.txt, strips tracking parameters, records every internal/external link with anchor text, and backs off automatically if the site starts returning 403/429.
robots.txt is fetched with the crawl's own --user-agent and read per RFC
9309: any 4xx (including a bot filter's 403) means "no restrictions", only a
5xx or an unreachable server means "disallow all". Cloudflare's injected
/cdn-cgi/ endpoints (e.g. Email Obfuscation's /cdn-cgi/l/email-protection,
which 404s for bots) are not crawled or reported as broken links. If most
pages canonicalise to a different host, sitewide.py says so in one finding
instead of just reporting "0 indexable".
python scripts/sitewide.py --db ./.fat-work/crawl/site.db # human summary
python scripts/sitewide.py --db ./.fat-work/crawl/site.db --json > ./.fat-work/sitewide.json
python scripts/punchlist.py update --scores ./.fat-work/sitewide.json
Checks that only exist at site level: internal links to broken pages (P0),
5xx errors (P0), broken 4xx pages, fetch errors, duplicate titles /
meta descriptions / page content across URLs, orphan pages, thin
content at scale, slow responses, internal links resolving through redirects,
and sitemap hygiene — sitemap entries that redirect or 404. Plus the
Google guideline patterns from 1.27: templated near-duplicate (doorway)
clusters, scaled-content share, trailing-slash duplicates, stuffed titles,
possible site reputation abuse sections, retired rich-result markup, and
missing titles/H1s/meta descriptions. (Crawl DBs from before v3.7.0 have no
fingerprints: re-crawl to get the doorway checks.) Findings are
standard FAT findings (module sitewide) — they merge into the punch list,
auto-resolve on a clean re-crawl, and belong at the top of the report
alongside the page-level results.
Diagnose by origin — sitemap seeds vs page links. A URL can enter the
crawl two ways (a link on a page, or the sitemap), and the fix is completely
different depending on which. The in_sitemap column separates them:
-- are the 301s/404s the PAGES' fault or the SITEMAP's fault?
SELECT in_sitemap, status, COUNT(*) FROM pages
WHERE status >= 300 GROUP BY in_sitemap, status;
-- redirects that no internal link points at = sitemap-only problem
SELECT COUNT(*) FROM pages p WHERE p.status BETWEEN 300 AND 399
AND NOT EXISTS (SELECT 1 FROM links l WHERE l.type='internal' AND l.target=p.url);
Real-world case: after fixing every page link on a site, a re-crawl still showed ~1,200 × 301 — all of them sitemap seeds. The sitemap generator emitted every URL without the trailing slash the host 301s to. Two rules from that incident:
trailingSlash sites, verify the sitemap's <loc> values end with /.public/sitemap.xml, a build script, and a framework
route). In Next.js, an app/sitemap.ts metadata route silently
shadows public/sitemap.xml — fixing the script that writes the public
file changes nothing. Fetch the LIVE /sitemap.xml (and every Sitemap:
URL in robots.txt) and compare against what each generator emits.The sitewide.py redirect findings flag the systemic case automatically:
when most redirects are URL → URL + '/', the finding says to fix the
generator once rather than treating N URLs as N issues.
Answer follow-up questions with capped SQL against the DB, not by re-fetching pages:
python scripts/sitewide.py --db ./.fat-work/crawl/site.db \
--query "SELECT url,title_len FROM pages WHERE title_len>60 ORDER BY title_len DESC"
SELECT-only, 50-row cap. Useful columns on pages: status, redirect_to,
depth, response_ms, size_bytes, title/title_len, meta_desc/meta_desc_len,
h1/h1_count, canonical/canonical_self, word_count, content_hash,
images/images_no_alt, internal_links/external_links, indexable/index_reason,
in_sitemap, error. links has source/target/anchor/rel/type.
For JavaScript-rendered sites, the crawl sees server HTML only (which is what
non-rendering crawlers see — that's a feature for SEO truth). Use
render_js.py / the render-gap check on key pages to cover the rendered view.
The crawl's link graph enables a finding most tools fake: content pages that earn attention but never pass it on. Run it on every site with a blog or guide section:
python scripts/link_opportunities.py --db ./.fat-work/crawl/site.db \
[--gsc ./.fat-work/gsc.json] --json > ./.fat-work/links.json
python scripts/punchlist.py update --scores ./.fat-work/links.json
Graph mode alone finds content pages with zero internal links to any money
page (services/products/pricing/booking, override with --money-pattern /
--content-pattern). With a GSC export, gaps are ranked by real impressions,
top queries are shown, and each page gets a suggested money-page target
matched from its actual queries. Frame these to the user as revenue routing:
"this guide earns N impressions and sends none of that authority to a page
that sells".
For agencies or developers managing multiple sites, FAT Agent with Superpowers
supports portfolio-wide auditing via scripts/bulk_audit.py.
When the user says "audit all my sites", "portfolio audit", or provides
--sites:
python scripts/bulk_audit.py --sites sites.json --output-dir ./results --profile full
Input format (sites.json):
[
{"url": "https://example.com", "name": "Example Site"},
{"url": "https://another.com", "name": "Another Site"}
]
Flags:
--sites PATH — Path to the JSON file listing sites to audit--output-dir PATH — Directory for per-site result JSON files--profile NAME — Audit profile to apply to all sites (default: full)Output:
--output-dirportfolio_summary.json — Aggregated scores for all sitesPresent results as a portfolio dashboard:
| Site | SEO | Security | A11y | Perf | Overall | Grade |
|---------------|-----|----------|------|------|---------|-------|
| Example Site | 92 | 100 | 88 | 76 | 89 | A |
| Another Site | 65 | 85 | 72 | 80 | 76 | C |
Highlight the weakest site and the weakest category across the portfolio.
For automated quality enforcement, FAT Agent with Superpowers includes
scripts/ci_gate.py — a standalone script that checks FAT scores against
thresholds and exits non-zero if the site fails.
# Run the audit pipeline
python scripts/analyse-html.py --url "$SITE_URL" page.html | \
python scripts/calculate-score.py > scores.json
# Gate: fail if overall score < 70 or any P0 findings exist
python scripts/ci_gate.py --scores scores.json --threshold 70 --fail-on P0
Flags:
--scores PATH — Path to the scored JSON from calculate-score.py--threshold N — Minimum overall score to pass (default: 60)--fail-on P0 — Fail the build if any P0 Critical findings exist--fail-on P1 — Fail the build if any P1 High findings existExit codes:
0 — Passed all checks1 — Score below threshold or priority findings detectedSee references/ci-cd-integration.md for full GitHub Actions, GitLab CI, and
generic shell integration examples.
When the Lighthouse CLI is available on the system, FAT Agent with Superpowers can run a full Lighthouse audit to complement its HTML-level analysis.
python scripts/lighthouse.py --url https://example.com --output /tmp/lighthouse_report.json
What it provides:
Integration with the audit pipeline:
lighthouse CLI is on PATH (scripts/lighthouse.py: check_lighthouse_available()).
When it isn't but npx is, lighthouse.py runs npx -y lighthouse automatically.Lighthouse results appear in the report as a dedicated "Lighthouse Scores" section with the familiar red/orange/green score cards.
Trigger: User says "compare my site with [competitor URL]" or "competitive analysis"
When triggered:
analyse-html.py + calculate-score.py on each| Category | Your Site | Competitor | Delta |
|---------------|-----------|------------|-------|
| SEO | 85 | 92 | -7 |
| Security | 100 | 65 | +35 |
| Accessibility | 90 | 78 | +12 |
| Performance | 72 | 88 | -16 |
| Overall | 87 | 81 | +6 |
Note: The competitive comparison uses the same automated HTML analysis. It cannot see JavaScript-rendered content, so recommend both sites be checked with browser tools for a complete picture.
./.fat-work/punchlist.json, not conversation memorypython scripts/punchlist.py status and
show the result — don't answer from memoryFAT is designed so context compaction doesn't matter: the conversation is
disposable, the files are not. All audit state lives on disk (scores.json,
punchlist.json, .fat-history.json, crawl/report artifacts) and every check
is a deterministic script — anything compacted away is either persisted or
re-computable in one command.
When resuming an audit (a new session, or after compaction in a long one):
./.fat-work/punchlist.json — open items, decisions, and notes.fat-history.json (if present) — score trend across auditspython scripts/punchlist.py status and confirm with the user where
the audit is up to before doing anything elseOptional — recover prior-session reasoning with ctx: if the ctx
CLI is installed (check with ctx --version; it is a separate open-source tool,
never required), search the local agent-session history for the earlier audit
conversations the punch list can't capture — why a fix was chosen, what was
already attempted, what the client pushed back on:
ctx search "<domain> audit"
ctx show session <id>
Cite the ctx session/event id when retrieved history changes your answer. If ctx is not installed, skip this silently — the punch list and history files carry the essential state on their own.
Offering to install ctx (once, with consent — never automatically): when ctx is absent AND session continuity would genuinely help (resuming an audit from a previous session, or a long multi-session engagement), you may offer it one time:
./.fat-work/.ctx-declined exists,
the user has already said no. Do not offer again; never mention it.curl -fsSL https://ctx.rs/install | sh # macOS / Linux
irm https://ctx.rs/install.ps1 | iex # Windows
mkdir -p ./.fat-work && touch ./.fat-work/.ctx-declined
Never install ctx (or anything else) without the user's explicit yes in the current conversation, and never bundle or vendor its binary — distribution belongs to the ctx project's own installer.
For extended check details, see:
references/security-headers.md — Full security header recommendationsreferences/seo-checklist.md — Extended SEO audit criteriareferences/accessibility-guide.md — WCAG 2.1 quick referencereferences/local-seo-checklist.md — Local SEO audit criteriareferences/ecommerce-checklist.md — E-commerce audit criteriareferences/performance-budgets.md — Performance budget configuration guidereferences/ci-cd-integration.md — CI/CD integration examples (GitHub Actions, Netlify, Vercel, etc.)references/semrush-integration.md — Optional SEMrush enrichment (API key setup + field reference)references/google-guidelines.md — Google update timeline (2024-2026), spam policies → FAT checks, retired rich results, drop diagnosis and report wordingreferences/claims-and-conversion.md — Public claims vs reality (compliance, SDK/plugin registries, code snippets), security.txt (RFC 9116) consistency, sub-processor completeness, vendor-naming inventory, mobile conversion at 390px, analytics firing, site-wide metadata inheritance, paint costskills/fat-design/SKILL.md and /fat-design: the six-lens design-taste audit
(product design, copywriting, typography, craft, interaction, animation). Run it
when the user asks whether a screen looks generated, cheap or unfinished, or
after any site build; its P0/P1 findings join this punch list under module
design. References: references/design/lenses.md, briefs.md,
ai-features.md, report-template.md.scripts/analyse-html.py — HTML analysis helper (extracts meta tags, headers, scripts)scripts/calculate-score.py — Scoring calculator (SEO, Security, Accessibility, FAT Score)scripts/generate-badge.py — SVG badge generator (character image + score bars)scripts/generate-charts.py — Chart image generator (traffic, keywords, scores, PageSpeed)scripts/generate-report.py — Word + PowerPoint + HTML report generator (branded, with charts)scripts/fat_hq.py — Optional FAT HQ uploads (login / upload / status); only used when the user has connected HQscripts/track-history.py — Historical audit tracker (read/write .fat-history.json)scripts/punchlist.py — Persistent punch list (read/write ./.fat-work/punchlist.json; update/status/resolve/note — survives context compaction)scripts/crawl.py — Multi-page BFS crawler with robots.txt supportscripts/sitecrawl.py — Site-wide concurrent crawler → SQLite (pages + links graph, sitemap seeding, SSRF guard, adaptive throttling)scripts/sitewide.py — Site-level audit over the crawl DB (broken internal links, duplicate titles/content, orphans, sitemap hygiene, doorway/scaled-content clusters, Google guideline patterns; --gsc for keep/improve/prune triage) + capped SQL drill-downscripts/jev.py — Model judgments (doorway local-substance triage, fan-out answer check) via hosted Jev, any Jev-compatible local server (OpenJev), or keyless agent modescripts/gsc_fetch.py — Full Search Console export to disk (paginated, no row cap, reuses a saved OAuth login); --list-sitesscripts/update_impact.py — Traffic before/after every Google core/spam update window (GSC by date or SEMrush history), worst firstscripts/fanout.py — AI search query fan-out coverage per seed (templates + Autocomplete + agent-written), exports the set for ai_visibility.pyscripts/link_opportunities.py — Content→money-page internal-link gaps from the real link graph (+ GSC ranking & target suggestions)scripts/brandkit.py — Harvest the client site's logo, imagery, palette & fonts → brandkit.jsonscripts/editorial_report.py — Brand-pulled A4 editorial audit deck (single-file HTML, print-to-PDF; --roadmap adds the content-roadmap slide)scripts/content_engine.py — The Content Engine: GSC queries → topic clusters → defend/optimise/rework/consolidate/create/refresh roadmap with brief skeletonsscripts/ga4.py — GA4 behaviour layer: engagement gaps + money pages converting nothing (reads UI CSV export as-is)scripts/tag_check.py — rendered tag check in headless Chrome/Edge: what tracking actually fires, render-only (GTM-injected) tags, double counting, GA4 with no page_view, dead UA, conversions on thank-you pages; blocks beacons by default so client data stays cleanscripts/bulk_audit.py — Portfolio-wide bulk site auditorscripts/ci_gate.py — CI/CD quality gate (threshold + priority checks)scripts/lighthouse.py — Lighthouse CLI integration wrapperscripts/pagespeed.py — PageSpeed Insights API wrapper (Core Web Vitals)scripts/exposed_paths.py — Opt-in (--confirm), same-origin, SSRF-guarded probe for exposed sensitive paths (.env, .git, SQL dumps, backups, phpinfo) → P0 findingsscripts/ai_crawler_logs.py — AI-crawler hit analysis from access logs (which answer/training bots actually visit, last-seen, error-heavy crawlers)scripts/ai_visibility.py — Live AEO/GEO citation check via the Perplexity API (key from PERPLEXITY_API_KEY) → citation rate, share of voice, top-cited competitor domains, punch-list findingsscripts/semrush.py — Optional SEMrush API enrichment → semrush.json (key from SEMRUSH_API_KEY)scripts/suggest_schema.py — From-afar schema advisor → paste-ready JSON-LD (Organization/LocalBusiness, Product/PDP, ItemList/PLP, Article, FAQPage, Breadcrumb) + Merchant-listing readinessscripts/gsc.py — Google Search Console behavioural analysis (NavBoost proxy) → striking-distance, low-CTR, branded share, opportunity_keywordsscripts/redirects.py — Redirect-chain / loop / 302-vs-301 / soft-404 analyser (multi-hop)scripts/gsc_health.py — GSC health analysis (Index Coverage, Manual Actions, Security Issues, Enhancements)scripts/profiles.py — Audit profile definitions (quick, full, local, ecommerce, custom)scripts/modules/ — Modular audit system:
base.py — AuditModule abstract base class__init__.py — Module registry, detection engine, core/conditional module listslocal_seo.py — Local SEO checksecommerce.py — E-commerce checksemail_deliverability.py — SPF/DKIM/DMARC checksi18n.py — Internationalisation checksdns_infra.py — DNS & infrastructure checksjs_bundle.py — JavaScript bundle analysislinks.py — Link quality and broken link detectioneeat.py — E-E-A-T & Trust (authorship, trust pages, entity, transparency) — always-onai_search.py — AI Search / GEO (AI-crawler posture, llms.txt presence + quality, extraction, entity + live Wikidata lookup) — always-ontechnical_seo.py — Technical depth (X-Robots-Tag, canonical host, interstitials, images) — always-oncontent_depth.py — Content quality (YMYL, ad density, originality, freshness, review quality) — always-oncrawlability.py — Crawl/indexation (robots-blocks-CSS/JS, JS-only nav, faceted URLs, pagination) — always-onvideo.py — Video SEO (VideoObject + required props, thumbnail, key moments) — auto-detectedLoad the relevant file based on the hosting platform from Phase 0:
references/platform-fixes/netlify.md — Netlify config (_headers, netlify.toml, Forms)references/platform-fixes/vercel.md — Vercel config (vercel.json, middleware)references/platform-fixes/cloudflare-pages.md — Cloudflare Pages (_headers, Workers)references/platform-fixes/apache.md — Apache config (.htaccess, mod_rewrite)references/platform-fixes/nginx.md — Nginx config (server blocks, add_header)references/platform-fixes/wordpress.md — WordPress config (wp-config.php, plugins)references/platform-fixes/aws.md — AWS config (CloudFront, S3, Amplify)references/platform-fixes/shopify.md — Shopify (robots.txt.liquid, URL redirects, theme.liquid, collection/filter canonicals)references/platform-fixes/wix.md — Wix (SEO settings, Velo SEO API, Custom Code, URL Redirect Manager)references/platform-fixes/squarespace.md — Squarespace (Code Injection, URL Mappings, page SEO, HSTS toggle)references/platform-fixes/webflow.md — Webflow (page/CMS template SEO, 301 redirects, robots.txt, custom code)references/platform-fixes/bigcommerce.md — BigCommerce (Stencil templates, 301 redirects, faceted search, Script Manager)Load the relevant file based on the tech stack from Phase 0:
references/framework-fixes/nextjs.md — Next.js (App Router + Pages Router)references/framework-fixes/astro.md — Astro (islands, content collections)references/framework-fixes/sveltekit.md — SvelteKit (load functions, adapters)references/framework-fixes/nuxt.md — Nuxt 3 (useHead, useSeoMeta)references/framework-fixes/gatsby.md — Gatsby (Head API, gatsby-plugin-image)references/framework-fixes/wordpress.md — WordPress themes (functions.php, hooks)references/framework-fixes/static-html.md — Static HTML/CSS/JS (no framework)IMPORTANT: After completing Phase 2 (FIX report), ALWAYS generate Word, PowerPoint, and HTML reports. Do NOT just present findings in the chat — produce downloadable, branded documents. This is a core deliverable of every FAT audit.
The FAT Agent brand image is bundled at assets/fat-agent-brand.png. Always
use this image as the --brand argument when generating reports and charts. It
appears on:
Resolve the path relative to the plugin directory. For example:
import os
PLUGIN_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BRAND_IMAGE = os.path.join(PLUGIN_DIR, 'assets', 'fat-agent-brand.png')
After Phase 2 findings are compiled:
Install dependencies (if not already available):
pip install matplotlib python-docx python-pptx Pillow
Save the scored JSON to a temp file:
python scripts/analyse-html.py --headers headers.json page.html | \
python scripts/calculate-score.py > /tmp/scores.json
Generate charts from the scored data (and optional SEMrush data):
python scripts/generate-charts.py \
--scores /tmp/scores.json \
--semrush /tmp/semrush.json \
--output-dir /tmp/charts \
--font "Plus Jakarta Sans"
Generate reports with branding and embedded charts:
python scripts/generate-report.py \
--scores /tmp/scores.json \
--semrush /tmp/semrush.json \
--url example.com \
--charts-dir /tmp/charts \
--brand assets/fat-agent-brand.png \
--output-dir ./reports \
--font "Plus Jakarta Sans"
For client-facing reports, add --client-facing:
python scripts/generate-report.py \
--scores /tmp/scores.json \
--url example.com \
--charts-dir /tmp/charts \
--brand assets/fat-agent-brand.png \
--output-dir ./reports \
--client-facing
Tell the user where the reports are saved and offer to open them.
| Chart | File | Data Source |
|---|---|---|
| FAT score bars + issues donut | chart_fat_scores.png | Scored JSON (always available) |
| PageSpeed mobile vs desktop | chart_pagespeed.png | Scored JSON + PageSpeed data |
| Organic traffic over time | chart_traffic_trend.png | SEMrush data (if provided) |
| Keywords trend + SERP distribution | chart_keywords_trend.png | SEMrush data (if provided) |
| Top keywords by volume | chart_top_keywords.png | SEMrush data (if provided) |
| Domain metrics dashboard | chart_overview.png | SEMrush data (if provided) |
Charts that require SEMrush data are automatically skipped if no --semrush
file is provided. The chart_fat_scores.png chart is always generated.
The 2024 leak confirmed click signals (NavBoost) are among Google's strongest ranking inputs — invisible to a URL-only audit, but visible in Search Console. When the user grants access, fold GSC in:
scripts/gsc_fetch.py: it calls the Search Console API
directly, pages through 25,000-row batches and writes to disk. GSC MCP
servers usually cap results (often 500 rows), which silently truncates
page-level triage. It reuses an OAuth login an MCP server already saved
(~/.gsc-mcp/oauth-token.json + GSC_OAUTH_SECRETS_FILE) or takes
--access-token:
python scripts/gsc_fetch.py --list-sites # properties you can read
python scripts/gsc_fetch.py --site sc-domain:example.com --dimension page --days 90 --out .fat-work/gsc_pages.json
python scripts/gsc_fetch.py --site sc-domain:example.com --dimension date --days 480 --out .fat-work/gsc_dates.json
python scripts/gsc_fetch.py --site sc-domain:example.com --dimension query --dimension page --days 90 --out .fat-work/gsc.json
Use the GSC MCP tools for quick in-chat questions. All loaders accept the
API {"keys":[...]} shape, plain rows, and MCP-wrapped
{"_meta", "data": {"rows"}} exports.
A property that won't load? Domain properties are sc-domain:example.com;
the https:// URL-prefix form fails unless that exact prefix is verified.scripts/gsc.py:python scripts/gsc.py --data gsc.json --brand "acme" --output /tmp/gsc.json
Present the behavioural wins, which most audits never surface:
ctr vs benchmark_ctr).Ship the fix, not just the finding. For each striking-distance and low-CTR keyword, DRAFT the paste-ready change yourself — don't stop at reporting the keyword:
<title> (≤60 chars, keyword near the front, on brand)The audit layers find what's broken; the Content Engine finds what's missing — content is what moves the SEO dial.
Getting the data — easiest path first, never make the user reshape anything:
gsc.json rows
of {query, page, clicks, impressions, position}. The user does nothing.content_engine.py --gsc export.zip reads the zip directly, or a bare
Queries.csv. UI exports lack query→page pairs; the engine infers them
from the crawl DB automatically (matches are marked inferred).Then run:
python scripts/content_engine.py --gsc ./.fat-work/gsc.json \
--db ./.fat-work/crawl/site.db --brand "<brand>" \
--roadmap ./.fat-work/roadmap.json --json > ./.fat-work/content.json
python scripts/punchlist.py update --scores ./.fat-work/content.json
It clusters real queries into topics (hub-and-spoke, brand terms excluded),
maps each cluster against the site's actual pages, and classifies every
cluster: defend (top-10 — protect), optimise (striking distance),
rework (covered but ranking nowhere), consolidate (cannibalised —
multiple pages splitting one topic), create (real demand, no page — new
content brief), refresh (pass --previous with an earlier GSC export to
catch decayed clusters). Every create/rework/refresh gets a brief skeleton:
working title, target queries, suggested H2s from the cluster's own
long-tails, and a money-page link target.
Your job after the script runs: turn the top brief skeletons into full content briefs — audience, angle, outline with the suggested H2s, internal links in AND out (use the crawl link graph), and what would make this page the best answer on the internet for its head query. The script supplies evidence; you supply the editorial thinking. Lead the client conversation with the roadmap, not the defect list.
Deliverables are rendered HTML, never raw markdown. Users and clients
consume decks, not .md files. Write your briefs as briefs.json — a list of
{title, priority, demand, why, outline: [h2s], links: [urls]} — and render
them into the branded deck:
python scripts/editorial_report.py --scores ... --brandkit ... \
--roadmap ./.fat-work/roadmap.json --briefs ./.fat-work/briefs.json \
--out ./.fat-work/audit-report.html
Each brief becomes its own editorial slide (title, demand line, rationale, numbered outline, link targets) in the client's brand. Markdown files are for repos; the deck is for humans.
Pass --roadmap output to editorial_report.py --roadmap and the deck gains
a "Content roadmap — where the growth is" slide placed BEFORE the
findings: growth first, defects second.
GSC says what ranks; GA4 says whether it works. Same zero-reshaping data
ladder: (1) a connected analytics MCP → pull a landing-page report yourself
(page, sessions, engagement rate, key events) and save as JSON rows; (2) no
MCP → the user exports the GA4 Landing page report as CSV and drops it in
unmodified (# preamble, percentage rates and Grand total rows are handled);
(3) API only on request.
python scripts/ga4.py --data ./.fat-work/ga4.csv --json > ./.fat-work/ga4.json
python scripts/punchlist.py update --scores ./.fat-work/ga4.json
Two findings rankings can't show: engagement gaps (real traffic, <35% engagement — a content/UX problem, not a ranking problem) and money pages converting nothing (sessions but zero key events — broken tracking or broken persuasion). Pair with the Content Engine when presenting: a cluster that ranks AND gets traffic but doesn't engage needs better content, not better SEO.
A "money page converting nothing" is the cue to run tag_check.py with that
page's thank-you URL in --pages (section 1.8b): it tells broken tracking
apart from broken persuasion in one run, and its findings go to the same
punch list:
python scripts/tag_check.py --url https://example.com --pages /thank-you --json > ./.fat-work/tag_check.json
python scripts/punchlist.py update --scores ./.fat-work/tag_check.json
gsc.py also emits opportunity_keywords in the report schema, so GSC wins feed
straight into the deck's SEO Priority Opportunities slide. If no GSC access is
available, skip — the rest of the audit is unaffected.
Beyond Performance, pull the health reports and run scripts/gsc_health.py —
these surface penalties and indexation problems invisible from the page:
coverageState), and
Enhancements (rich-result errors per type). Assemble into one JSON:{ "manual_actions": [...], "security_issues": [...],
"url_inspections": [{"url": "...", "coverageState": "Crawled - currently not indexed"}],
"enhancements": {"Products": {"errors": 3}} }
python scripts/gsc_health.py --data gsc_health.json
It returns prioritised findings — Manual Actions and Security Issues are P0 — plus index-coverage reasons (Discovered/Crawled-not-indexed, blocked, soft-404, duplicate-canonical) grouped with fix hints, and rich-result error counts. Fold these into the FAT report at the top of the punch list.
SEMrush enrichment is optional and off by default. When real SEMrush data is available, fold it into the SEO findings and generate the domain-intelligence charts. Try these sources in order and use the first that works:
1. SEMrush API key (preferred — no browser needed).
If the user has a SEMrush API key configured in their environment, the
semrush.py script pulls authority, organic keywords/traffic, the historical
trend, and top keyword positions, and writes a semrush.json in the exact shape
the chart/report scripts consume:
python scripts/semrush.py --domain example.com --database au --output /tmp/semrush.json
The key is read from the SEMRUSH_API_KEY environment variable (or --api-key).
Never ask the user to paste their key into the chat and never hardcode it —
it must come from their own environment. If SEMRUSH_API_KEY is not set, the
script emits {"available": false} and exits cleanly; just skip SEMrush charts.
Database codes: au, us, uk, etc. — match the site's primary market.
2. SEMrush MCP server.
If a SEMrush MCP server is connected (its tools appear as available), use those
tools to gather the same fields, then write them to semrush.json in the format
documented in the generate-charts.py docstring.
3. Browser automation (fallback).
If browser tools are available but no key/MCP is, collect data by navigating to
semrush.com/analytics/overview/?q={domain}&searchType=domain, switching to the
target country, and reading authority score, organic traffic, keywords, referring
domains, backlinks, and the organic positions table. Save as semrush.json.
4. None available. Skip SEMrush charts — the report still includes the FAT score chart and all audit findings tables.
See references/semrush-integration.md for the full setup and field reference.
A report full of metrics is not actionable. Whenever SEMrush organic data is
collected, compute and add these fields to the SEMrush JSON so the docx and
pptx render the insight automatically (see the generate-report.py schema):
opportunity_keywords — non-branded, winnable (position ~4–30), high-value
keywords, ranked by volume × CPC × position-proximity. Each item:
{"keyword","volume","cpc","position","url","priority"}. This is the
front-foot "what to work on" board. Flag the user's stated priority pages.cannibalization — keywords ranking on more than one URL (the pages
compete and split signals). Each item: {"keyword","volume","urls":[...]}.action_plan — a phased, prioritised list of next steps. Either a list of
strings, or a list of {"phase","items":[...]} objects. Tie each action to a
finding (e.g. "commercial term X ranks via a blog post → strengthen the money
page and internal-link to it"). Also accepted via scores["recommendations"]
or a separate --actions actions.json file.Also surface the branded vs non-branded traffic split and the position distribution (top3 / 4-10 / 11-20 / 21-50 / 51-100) — a heavily branded profile with money terms stuck on page 2-3 is the most common local-SEO finding.
Word report (.docx) includes:
PowerPoint (.pptx) includes:
opportunity_keywords is providedcannibalization is providedrecommendations
is provided (auto-overflows across multiple slides)The SEMrush insight slides and the action plan are what make the deck actionable. Always populate
opportunity_keywords,cannibalizationandaction_plan(see SEMrush Data Collection → Turn the data into INSIGHT) when SEMrush data is available — otherwise the deck is "just numbers".
HTML dashboard (.html) includes:
Use Plus Jakarta Sans as the default font. Pass --font "Plus Jakarta Sans"
to both generate-charts.py and generate-report.py. If the font is not
installed on the system, the scripts fall back to Calibri, then system sans-serif.
# 1. Fetch the page and save headers
curl -sI https://example.com > /tmp/headers.txt
curl -sL https://example.com -o /tmp/page.html
# 2. Analyse and score
python scripts/analyse-html.py --headers /tmp/headers.json /tmp/page.html | \
python scripts/calculate-score.py > /tmp/scores.json
# 3. (Optional) Run Lighthouse for deeper performance data
python scripts/lighthouse.py --url https://example.com --output /tmp/lighthouse_report.json
# 4. Generate charts (with optional SEMrush data)
python scripts/generate-charts.py \
--scores /tmp/scores.json \
--semrush /tmp/semrush.json \
--output-dir /tmp/charts
# 5. Generate branded reports (all formats)
python scripts/generate-report.py \
--scores /tmp/scores.json \
--semrush /tmp/semrush.json \
--url example.com \
--charts-dir /tmp/charts \
--brand assets/fat-agent-brand.png \
--output-dir ./reports
# 6. Generate badge (for README)
cat /tmp/scores.json | python scripts/generate-badge.py --image --output fat-badge.svg
# 7. (Optional) Multi-page crawl
python scripts/crawl.py --url https://example.com --depth 2 --max-pages 20 --output /tmp/crawl.json
# 8. (Optional) CI gate check
python scripts/ci_gate.py --scores /tmp/scores.json --threshold 70 --fail-on P0
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub spruikco/fat-agent-skill --plugin fat-agentOther plugins' skills for the same job