/xuanran-seo-blog-writer:website-audit <url> [--max-pages N] [--output dir]from xuanran-seo-blog-writer
Runs a full website SEO audit: crawls up to 500 pages, detects business type, deploys parallel specialist agents, and generates an SEO Health Score (0-100) with an enterprise HTML report.
Ships in xuanran-seo-blog-writer. 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.
Standalone website auditing tool. URL in → crawl → analyze → report out. No dependency on the blog-writer pipeline, project system, or article creation flow.
/website-audit https://example.com
/website-audit https://example.com --max-pages 100
python -c "from scripts._core.ssrf_guard import validate_url, SSRFError; import sys
try:
validate_url('$URL', allow_http=True); print('OK')
except SSRFError as e:
print(f'BLOCKED: {e}'); sys.exit(1)"
⚠️ validate_url() signals success by RETURNING a truthy ValidatedURL and failure by RAISING SSRFError. The old snippet here did err = validate_url(...); print(err or 'OK'), which prints the success object and can never print OK — and that inverted reading got copied into verify_backlinks.py, where it marked every valid backlink "blocked" and silently disabled link verification entirely. Never treat the return value as an error indicator.
2. Create output directory: ./Website Audit/seo-audit-{domain}-{YYYY-MM-DD}/
⚠️ The Website Audit/ parent already exists and holds every prior audit — write there, NOT in the repo root. This was violated on 2026-08-06 (audit-client.example) and cost a 149 MB directory move plus an artifact URL rescue. Create the full path before crawling, not after.
3. Show cost estimate to user (based on detected page count):
python -m scripts.audit.crawl_site "$URL" --max-pages 500 --concurrent 5 --delay 1.0 --output ./"Website Audit"/seo-audit-{domain}-{date}/crawl-results.json
Configuration:
python -m scripts.audit.business_type_detector ./"Website Audit"/seo-audit-{domain}-{date}/homepage.html --url "$URL" --json > ./"Website Audit"/seo-audit-{domain}-{date}/business-type.json
Business types: SaaS | E-commerce | Local (brick-and-mortar/SAB/hybrid) | Publisher | Agency | Other
Always spawn (8 agents):
| Agent | Responsibility | Key Scripts |
|---|---|---|
audit-technical | Crawlability, indexability, security, URL structure, JS rendering | crawl_site, fetch_page, parse_html |
audit-content | E-E-A-T scoring (80 items), readability, thin content, YMYL detection | core_eeat_scorer |
audit-schema | JSON-LD detection, validation, deprecated type veto (T09) | schema_validator |
audit-sitemap | XML sitemap structure, coverage gaps, quality gates | fetch_page |
audit-performance | LCP, INP, CLS via PageSpeed Insights + CrUX field data | pagespeed_check |
audit-visual | Desktop + mobile screenshots, above-fold analysis, responsive check | capture_screenshot, render_probe |
audit-geo | AI crawler access, llms.txt, citability (134-167w optimal), brand signals | fetch_page |
audit-sxo | SERP backwards analysis, page-type mismatch detection, persona scoring | fetch_page, parse_html |
Conditionally spawn (7 agents):
| Agent | Condition | Responsibility |
|---|---|---|
audit-local | business_type ∈ {local_*} | GBP signals, NAP consistency, reviews, local schema |
audit-maps | local detected AND geoapify/dataforseo key available | Geo-grid, competitor radius |
audit-google | Google API key configured | CrUX field data, GSC indexation, GA4 traffic |
audit-backlinks | Always (CC free); enriched if Moz/Bing keys | DA/PA, referring domains, toxic links |
audit-cluster | /blog detected OR pillar signals | Semantic clustering, cannibalization |
audit-drift | Previous baseline exists for this domain | 17-rule drift comparison |
audit-ecommerce | business_type == "ecommerce" | Product schema, marketplace intel |
Each agent writes results to: ./"Website Audit"/seo-audit-{domain}-{date}/modules/{name}.json
Never rate a "does not render / shows zero / is blank / is missing" finding above medium from a single screenshot. On 2026-08-06 two such findings shipped as critical on audit-client.example and both were wrong — a headless capture had caught a slow fadeInUp animation before it started, and that frame was read as the final state.
Measured on that page: headless, 10s wait, 6 runs → 5 never started; headed, 10s wait, 3 runs → all animated, 1 still mid-flight. So the failure mode is a single capture landing mid-animation, not "headless is broken" — sampling over time is the fix, and the real browser is the tie-breaker.
python -m scripts.audit.render_probe "$URL" --selector "[data-to-value]" --selector ".hero h1" --check
It reports three columns that must never be collapsed into one claim:
| Column | Audience | If content is missing here |
|---|---|---|
static (no JS) | text-extracting crawlers, AI fetchers, link previews | real finding — rate for machine readability |
headless samples | some render services, screenshot bots | corroborating signal |
headed samples | human visitors — the ground truth | only this justifies a UX/visual severity |
--check exits non-zero when headless and headed disagree, i.e. when any headless-derived finding would be unsafe to publish. A static_unavailable result (403/WAF/network) is reported as unavailable, never as empty — a transport failure is not a content verdict.
python -m scripts.audit.audit_scorer ./"Website Audit"/seo-audit-{domain}-{date}/modules/ --json > ./"Website Audit"/seo-audit-{domain}-{date}/scores.json
Scoring Weights:
| Category | Weight | Contributing Modules |
|---|---|---|
| Technical SEO | 22% | technical, sitemap, backlinks (authority) |
| Content Quality | 23% | content, cluster (bonus) |
| On-Page SEO | 20% | sxo, visual (partial), local (bonus) |
| Schema / Structured Data | 10% | schema, ecommerce (if present) |
| Performance (CWV) | 10% | performance, google (field data) |
| AI Search Readiness | 10% | geo |
| Images | 5% | visual (image portion) |
python -m scripts.audit.validate_audit_report ./"Website Audit"/seo-audit-{domain}-{date}/ --json
Pre-delivery checks: all core modules reported, no empty sections, score math correct.
python -m scripts.audit.report_generator ./"Website Audit"/seo-audit-{domain}-{date}/ --output ./"Website Audit"/seo-audit-{domain}-{date}/FULL-AUDIT-REPORT.md
python -m scripts.audit.report_html ./"Website Audit"/seo-audit-{domain}-{date}/ --output ./"Website Audit"/seo-audit-{domain}-{date}/FULL-AUDIT-REPORT.html
Generate ACTION-PLAN.md from findings sorted by severity.
Audit reports are Loamwright SEO (沃匠 SEO) lead-generation assets, not neutral technical documents. Loamwright is the operator's OWN agency. Every HTML report ships with its branding.
Read the brand facts — never write them from memory:
python -c "import json;d=json.load(open('projects/loamwright/business-context.json',encoding='utf-8'));print(json.dumps({k:d[k] for k in ['brand_name_full','site_url','company','article_signature']},ensure_ascii=False,indent=1))"
grep -oE '\-\-xr-[a-z-]+:\s*#[0-9a-fA-F]{3,8}' projects/loamwright/brand/article-css.css
Required elements (the 2026-08-06 audit-client.example report is the reference implementation — copy its structure):
https://loamwrightseo.com/contact-us/#138670, accent #12B76A, link #0B5143. The brand's own #B45309 / #B42318 double as the warn/critical severity colors; don't invent a second palette.Two constraints: the Artifact CSP blocks font CDNs and CJK fonts can't be inlined, so use system font stacks (PingFang SC / Microsoft YaHei) — that is the correct call, not a compromise. And first-person IS on-brand for Loamwright (founder-led), but never fabricate client results or experiences that didn't happen.
./"Website Audit"/seo-audit-{domain}-{date}/
crawl-results.json # Crawled pages manifest
business-type.json # Detected industry + conditional agents
modules/ # Per-agent analysis results (JSON)
scores.json # Aggregated 7-category health score
FULL-AUDIT-REPORT.md # Comprehensive findings (Markdown)
FULL-AUDIT-REPORT.html # Interactive report (self-contained HTML)
ACTION-PLAN.md # Prioritized recommendations
screenshots/ # Desktop + mobile captures
Each section includes:
| Scenario | Action |
|---|---|
| URL unreachable (DNS/connection) | Report error clearly; do not guess content |
| robots.txt blocks crawling | Analyze accessible pages; note limitation in report |
| Rate limiting (429) | Back off; report partial results |
| Timeout on large sites | Cap at limit; report findings for crawled pages |
| Subagent timeout/failure | Skip that module; note in report; redistribute weight |
| No Google API key | Skip audit-google; use lab-only CWV data from PSI |
| No backlink APIs | Use Common Crawl only (always available, free) |
references/audit/eeat-framework.md — E-E-A-T scoring rubricreferences/audit/cwv-thresholds.md — Core Web Vitals thresholdsreferences/audit/quality-gates.md — Content minimums per page typereferences/audit/schema-types.md — Recommended schema + deprecation statusreferences/audit/local-seo-signals.md — Local ranking factorsreferences/audit/backlink-quality.md — Toxic link patterns + anchor benchmarksreferences/audit/scoring-weights.md — Full scoring methodologyreferences/audit/business-types.md — Detection signal matrix~/.xuanran-seo/config.yamlWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xuanranl/loamwright-seo-skill --plugin xuanran-seo-blog-writer75 skills in this plugin
/ai-overview-recovery4-phase recovery when Google AI Overview drops an article. Measure damage → diagnose skip reason → rewrite → T+7/14/28 monitor. Triggered by drift-detector AIO loss alert OR /aio-recovery command./ai-visibility-trackerActive probe of ChatGPT/PPLX/Claude/Gemini to check if our article is cited. Compares to projects/{slug}/geo-baseline.json. Triggered by /ai-visibility command or daily/weekly schedule./batch-articleRun /article end-to-end for a list of keywords. Each keyword goes through the FULL pipeline (research → plan → build → optimize → publish → monitor baseline). Use for agency-scale operations — drop 10-500 keywords, get 10-500 published articles. Resumable across sessions.Other plugins' skills for the same job