agentleFS
statusdonestatusdone/claude-skills/skills/site-audit/SKILL.md

site-audit

Skill0 starsChanged 4 months agoMITView on GitHub

Repeatable full-sweep audit of a LIVE website — desktop + true-mobile visual review, Lighthouse (a11y/SEO/best-practices), Core Web Vitals (lab LCP/CLS via performance trace + real-user field LCP/INP/CLS via PageSpeed Insights/CrUX), and gotcha-aware triage that confirms every finding against the live DOM before it counts as real. Use whenever the user wants to audit, scan, or review a live site or page for visual craft, accessibility, SEO, performance, Core Web Vitals (LCP/INP/CLS), or regressions — phrases like "audit my site", "scan this website", "check example.com", "is my site clean", "do a visual pass", "run lighthouse", "core web vitals", "page speed", "did anything regress", "is my site agent-ready", "agent readiness", "AEO", "llms.txt", "AI crawler policy". Works on any URL; loads a per-site gotcha PROFILE when one exists under references/. This skill owns the FULL-SITE sweep — visual + a11y + SEO + Core Web Vitals + agent-readiness (AEO) together; for pure single-page performance *debugging* ("why is THIS page's LCP slow", deep trace analysis) the dedicated perf skills are the better fit. NOT for auditing theme/template source FILES (that's a separate code audit) — this drives a real browser against the live URL.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. ai798-Lab/UPUP★ 0same name
    2. jbobbink/seo-gsc-wizard★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a dated artifacts folder up front: <work-dir>/_<site>-audit-<YYYY-MM-DD>/{desktop,mobile,lighthouse}/.

    line 63
  2. Distinctive:

    Use one shared browser and capture serially — parallel agents fight over the single browser, so this phase is inherently sequential.

    line 64
  3. Distinctive:

    Read the screenshots and judge craft: hierarchy, rhythm, spacing, restraint.

    line 76
  4. Very specific:

    Run lighthouse_audit device:"mobile", mode:"navigation" per distinct template, saving each report to lighthouse/.

    line 96
  5. Distinctive:

    On-page SEO ownership (division of labor): if the site is hosted on a CMS with its own content-aware SEO tooling (e.g.

    line 101
  6. Very specific:

    Run python3 scripts/agent_ready.py "<url>" (--json to machine-parse.

    line 142
  7. Distinctive:

    Apply the site profile's known false-positives: Don't re-litigate confirmed non-issues.

    line 177
  8. Distinctive:

    Cross-check the backlog: If an item is already tracked, don't re-file — note its status (and if your audit shows it's resolved, recommend …

    line 183
  9. Very specific:

    When you discover a new recurring false-positive or quirk for a site, append it to that site's profile (or create one from …

    line 214
  10. Very specific:

    When run unattended (cron/remote) the browser MCP may be absent.

    line 220

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

site-audit — live-website full-sweep audit

The one idea that makes this skill worth more than a raw Lighthouse run

A Lighthouse score and a pile of axe violations are leads, not conclusions. Automated crawls report what they see rendered at one instant and pattern-match against generic best practice — they can't tell an intentional design decision from a defect, and they go stale the moment code ships. Left unfiltered, a single audit produces dozens of "findings," most of them false.

So the deliverable of this skill is not "here's the Lighthouse output." It's a triaged list where every item has been confirmed against the live DOM, classified (code vs content vs won't-fix), and checked against the project's existing backlog so nothing gets re-reported. On a mature site a 12-flag Lighthouse run routinely collapses to 1–2 real defects. The triage IS the value. Treat the automated tools as idea-generators and yourself as the editor.

Inputs

  • URL(s) — one page or a set. Default to the site's distinct template types rather than every page (e.g. home + one of each layout family + blog), since pages sharing a template share bugs. Auditing 5 distinct templates beats auditing 12 near-identical pages.
  • Site profile (optional but powerful) — a per-site file of known false-positives and quirks under references/. If one exists for this site, READ IT FIRST; it will save you from re-deriving (and re-filing) known non-issues. For a new site, start from references/generic-profile.md and write a profile as you learn.
  • Backlog (optional) — if the project tracks issues (an issue tracker, a project board, a TODO file), get its location so triage can cross-check existing/known items before filing anything new.

Tools

This skill drives a real browser via the chrome-devtools MCP (navigate_page, emulate, take_screenshot, take_snapshot, evaluate_script, lighthouse_audit, click, plus performance_start_trace / performance_stop_trace / performance_analyze_insight for the lab Core Web Vitals pass). Confirm those tools are available before starting; if not, you can still do the headless structural subset with curl — and importantly, Core Web Vitals via PageSpeed Insights is a pure curl call that needs no browser (see "Headless / scheduled mode"). Reusable browser probe snippets live in references/probes.md; the full CWV capture recipe (PSI curl + parse, lab-trace steps, thresholds, field-vs-lab) lives in references/core-web-vitals.md — paste from those rather than rewriting each run. The Agent-Readiness (AEO) pass (Phase 3.5) is its own pure-curl lane — recipe + rubric in references/agent-readiness.md, batch runner scripts/agent_ready.py — and like the PSI pull it needs no browser, so it runs fully headless.

The method

Create a dated artifacts folder up front: <work-dir>/_<site>-audit-<YYYY-MM-DD>/{desktop,mobile,lighthouse}/. Use one shared browser and capture serially — parallel agents fight over the single browser, so this phase is inherently sequential.

Phase 1 — Desktop visual pass

  1. emulate a deterministic desktop viewport (1440x900x1; add colorScheme:"dark" for dark sites).
  2. For each page: navigate_page → run the force-reveal + structural-facts probe (probes.md §1). Force-reveal matters because many sites hide below-fold content with scroll animations (opacity:0 until an IntersectionObserver fires); without revealing, both your screenshots and any contrast read are wrong. The probe also returns title/meta/canonical/H1s/H2s/JSON-LD types/ image-alt counts in one shot — most SEO and heading-outline checks are answered here, cheaply.
  3. take_screenshot (viewport, NOT fullPage — fixed/animated backgrounds double-stitch fullPage into a confusing artifact) of the hero + the 1–3 key sections. Save to desktop/.
  4. Read the screenshots and judge craft: hierarchy, rhythm, spacing, restraint. The numbers can't see "this looks cheap." Anchor that judgment to a real bar by invoking the frontend-design:frontend-design skill if available — use its standards for distinctive, production-grade design (and its read on generic-AI tells) as the rubric for craft findings. If the user later greenlights visual fixes, it's also the tool that implements them — but this audit itself stays read-only; never change code without a separate go-ahead.

Phase 2 — True-mobile pass

  1. emulate 390x844x3,mobile,touch. Use emulate, never resize_page — macOS enforces a ~500px minimum window width, so resizing to 390 silently gives you innerWidth 500 (a fake phone).
  2. For each page: navigate, force-reveal, then run the mobile layout-safety probe (probes.md §3): horizontal-scroll check, elements overflowing the viewport, and tap targets under ~40px. Capture hero + forms (forms are the likeliest mobile breakage). Save to mobile/.
  3. Exercise interactive chrome: open the nav/hamburger and any submenu accordions via the real click tool on the actual control (find its uid with take_snapshot; a JS .click() can hit the wrong element and navigate instead of toggling).

Phase 3 — Lighthouse + Core Web Vitals pass

3a — Lighthouse (a11y/SEO/best-practices).

  1. Run lighthouse_audit device:"mobile", mode:"navigation" per distinct template, saving each report to lighthouse/. Archive each report immediately (mv report.json <page>.json) — the tool reuses the same filename and the next run overwrites it.
  2. Note: this tool's lighthouse_audit covers a11y/SEO/best-practices (+ a CLS reading under "agentic browsing"); it EXCLUDES full perf — perf/CWV is covered by 3b/3c below, not here.
    • On-page SEO ownership (division of labor): if the site is hosted on a CMS with its own content-aware SEO tooling (e.g. HubSpot's in-portal SEO Recommendations), treat the Lighthouse SEO category as a regression tripwire only (catches a stray noindex, a broken canonical from a global partial) and DEFER the on-page SEO worklist (titles/meta/headers/internal- linking/duplicate content) to that content-aware tool — it's richer and fixes in-editor. On a site with no such tooling, the Lighthouse SEO pass IS a real signal — keep it.
  3. Parse failures from the JSON (a small Python snippet beats eyeballing the HTML). Categorize every failure before believing it — see triage.

3b — Core Web Vitals via performance trace (lab + inline field — the primary CWV pass when the browser is up). Mobile-throttle (emulate 390x844x3,mobile,touch, cpuThrottlingRate:4, networkConditions:"Slow 4G"), navigate, then performance_start_trace (reload:true, autoStop:true, save to lighthouse/<page>-trace.json). The result returns BOTH lab (LCP, CLS

  • LCP breakdown) AND — when CrUX has the page — field (LCP, INP, CLS p75, the numbers Google ranks on), so one call often fills the whole table including the field INP that lab can't measure. Then performance_analyze_insight on the 1–2 that matter (LCPBreakdown, RenderBlocking, ImageDelivery, LayoutShifts) for the fix. Reset throttling after. Don't pre-assume small sites lack field data — check the trace (even a single-location practice site can have page-level CrUX).

3c — Core Web Vitals, FIELD via PageSpeed Insights (headless path + fallback). When the trace shows NO field block (page below CrUX threshold), or when running browser-free (cron/remote), run the bundled script: python3 scripts/psi_cwv.py "<url>" mobile. It pulls CrUX field LCP/INP/CLS/FCP/TTFB (page → origin fallback) plus PSI's lab Lighthouse perf score, with per-metric verdicts; on error it exits 2 so you fall back to the trace. Keyless hits a shared quota that's often exhausted → set a free $PAGESPEED_API_KEY for reliable pulls. Save output to lighthouse/<page>-psi-mobile.txt. INP is field-only — if you only have lab, cite TBT as the proxy, never as INP. Details + the key-setup and thresholds live in references/core-web-vitals.md.

Phase 3.5 — Agent-Readiness (AEO) pass

Can an AI agent discover, read, trust, and act on this site? This lane scores the site against Cloudflare's Agent Readiness standard set (Agents Week 2026; public scanner isitagentready.com). It's headless HTTP via Python urllib (no browser), so it runs in full even headless. Recipe + rubric: references/agent-readiness.md.

"AEO" is two layers — this skill owns only ONE. This pass measures agent-readiness infrastructure: can bots discover/read/trust/act (Content-Signals, llms.txt, well-known, bot-policy). It does not measure brand reputation in AI answers — do ChatGPT/Perplexity/ Gemini cite you, and favorably — that's a separate content/marketing concern (e.g. a HubSpot AEO Grader routine), not this skill. The door (ours) vs. the room (theirs). Keep the words straight or the two scores get conflated.

  1. Run python3 scripts/agent_ready.py "<url>" (--json to machine-parse; --sections a,b,c for per-directory llms.txt). It normalizes the canonical host (follows www→apex) then scores:
    • TIER 1 (scored — gaps are real findings): Discoverability (robots.txt, sitemap, Link header), Content (llms.txt + quality gate, Markdown negotiation), Bot Access Control (Content-Signals, AI-bot rules, Web Bot Auth) — reported as a score out of 8.
    • TIER 2 (presence reported, NOT a defect on a marketing site): Capabilities (MCP Server Card, API Catalog, Agent Skills, OAuth discovery) + Commerce. For a product/app these are a real roadmap lane; for a marketing site they're informational — the profile says which.
    • Scope note (don't conflate scores): Cloudflare's official score also counts Capabilities; this skill keeps it report-only by design (an absent MCP/API surface isn't a marketing-site defect), so our Tier-1 X/8 is stricter-scoped than — and won't equal — Cloudflare's score or the isitagentready.com number.
  2. Triage is lighter than the visual passes (mostly deterministic file/header existence), with two judgment points: exists ≠ good (the llms.txt quality gate — a present-but-stub llms.txt is still a finding; finer prose quality routes to the content owner) and platform-bound fails (some hosts can't do Accept: text/markdown content-negotiation or a Web-Bot-Auth key directory → classify won't-fix / platform-bound, report transparently, don't file an unclosable ticket).
  3. The AI-crawler policy (Content-Signals + AI-bot rules) is a BRAND decision, not a silent fix — do we let AI train on this content, or only cite it? Surface it as a question (a common default for a thought-leadership brand: search=yes, ai-input=yes, ai-train=no). To PROVE a proposed robots.txt before it ships, re-run with --robots ./proposed-robots.txt for the projected score.
  4. Optional external sweep: the isitagentready.com MCP scan_site tool covers the full emerging-standards set — use it ONLY interactively and ONLY on public marketing URLs. Hard rule: never send an authenticated / personal / customer-data URL to an external scanner (the profile should carry scanner: never for any such host).
  5. Find → fix: a confirmed Tier-1 gap routes to its owner from the profile — the CMS/theme engineer for a hosted marketing site (note: on some CMSes robots.txt is a portal setting edited in the UI, not a theme-repo file), the app team for a product surface. The audit only OFFERS; never pushes.

Phase 4 — Triage (the part that matters)

For EVERY candidate finding, before it earns a place in the report:

  • Confirm it on the live page. Re-read the live DOM / curl the live HTML. Is it real, or a render-timing artifact? Is it code or stored content? Is it already fixed?
  • Apply the site profile's known false-positives. Don't re-litigate confirmed non-issues.
  • For contrast failures specifically: compute the revealed contrast yourself (probes.md §2). Automated contrast checks fold scroll-reveal opacity into the color and report muddy in-between values that fail at ~1.6–2.6 — but the same text passes AA once revealed. And composite alpha backgrounds: a card with a 2%-tint background (rgba(...,0.02)) is effectively the dark body showing through; a naive walker reports a bogus near-1.0 "X-on-X" fail. Get the real ratio.
  • Cross-check the backlog. If an item is already tracked, don't re-file — note its status (and if your audit shows it's resolved, recommend closing it). If a tracked card's symptoms are now stale, flag the reconciliation.
  • Classify: real-code-defect / content-or-portal (route to the owner) / won't-fix (third-party-bound, e.g. embed cookies) / false-positive (drop).

Phase 5 — Report + (optional) file

Lead with the conclusion: overall health, then the confirmed findings by severity with code-vs-content routing, then the explicitly-triaged-out non-issues (so the reader trusts the filtering). Save a FINDINGS.md to the artifacts folder. Surface the single most visual defect as an attached screenshot. Then OFFER to file confirmed items into the backlog — don't auto-file a pile of cards, and never change code without a separate go-ahead.

Report structure

# <site> — full-sweep audit (<date>)
## Bottom line            ← health verdict + count of real defects, one paragraph
## Lighthouse scorecard   ← table: page × (a11y / best-practices / SEO)
## Core Web Vitals (mobile) ← table: metric × (field CrUX p75 / lab / verdict); label field source
                              or "insufficient field data — lab only". See references/core-web-vitals.md.
## Agent-Readiness (AEO)   ← Tier-1 score (X/8) + per-category pass/fail; Tier-2 presence (report-only).
                              Flag the AI-crawler policy as a brand decision. See references/agent-readiness.md.
## Confirmed real — net-new   ← each: evidence, code-vs-content, fix, severity
## Minor / craft          ← taste-level, owner's call
## Reconciliations        ← existing backlog cards this audit bears on
## Verified non-issues    ← what was triaged OUT and why (builds trust in the filter)

Capturing what you learn

When you discover a new recurring false-positive or quirk for a site, append it to that site's profile (or create one from generic-profile.md). The profile is how this skill gets sharper each run instead of re-deriving the same gotchas. That compounding is the whole point.

Headless / scheduled mode

When run unattended (cron/remote) the browser MCP may be absent. Degrade gracefully: do the curl-based structural subset (title/meta/canonical/H1 presence/JSON-LD/broken-link checks), run Lighthouse if available, DIFF against the previous run's FINDINGS.md, and surface ONLY new, real, triaged items. Core Web Vitals survive headless: the PageSpeed Insights field pull (Phase 3c) is a pure curl and needs no browser — so even on cron you can still report real-user LCP/INP/CLS (and PSI's lab perf as backstop), and diff them against the prior run. Agent-Readiness (Phase 3.5) also fully survives headless — agent_ready.py is pure-urllib, so cron can score Tier-1 and diff it run-over-run (never send a URL to the external scanner unattended). Only the lab trace (3b) and the visual passes need the browser. If the full visual pass needs a browser the environment lacks, say so and nudge the user to run this interactively rather than silently skipping it. Never report "all clear" for checks you couldn't actually run — name what was skipped.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.