# seo-scan

Adopt this skill: https://proskills.md/skills/other/aindong-narwhal-skills-seo-scan

Page: https://proskills.md/skills/other/aindong-narwhal-skills-seo-scan
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/seo-scan/SKILL.md
size: 31888
sha: 007182ce26d3c90cd19a14877c5c50ed53dc69e2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/SKILL.md

````text
---
name: seo-scan
description: >-
  Audit a web page or site for SEO and GEO/LLMO (AI-search) readiness. Use when
  the user wants to scan, audit, or improve a URL's search visibility — technical
  SEO, on-page content and E-E-A-T, schema.org/JSON-LD structured data, or how
  well a page can be cited by AI answer engines (ChatGPT, Claude, Perplexity,
  Google AI Overviews). Also use to generate valid JSON-LD or check AI-crawler
  access. Triggers: "SEO audit", "check my meta tags", "why isn't this ranking",
  "make this page AI-search friendly", "GEO", "LLMO", "structured data", "llms.txt".
license: MIT
---

# SEO & GEO/LLMO Scan

A local-first toolkit that audits a page or site for classic SEO **and** GEO/LLMO
(Generative Engine Optimization — being cited by AI answer engines). It fetches
the real page, runs four auditors, and returns a prioritized, fix-first report.
No accounts or API keys are required.

## When to use this skill

- Auditing a page or whole site for search visibility.
- Diagnosing why a page underperforms (thin content, missing meta, no schema).
- Preparing content to be **cited by AI answers**, not just to rank in blue links.
- Generating correct schema.org JSON-LD.
- Checking whether AI crawlers (GPTBot, ClaudeBot, PerplexityBot…) can access a site.

## Setup

Scripts run on a bare Python 3.8+ install. For higher-fidelity parsing and JS
rendering, optionally install the extras (the tools auto-detect them):

```
pip install -r skills/seo-scan/requirements.txt
python -m playwright install chromium   # only needed for --render
```

## How to run

All scripts live in `scripts/`. Run them and read the report back to the user in
your own words — lead with the highest-severity fixes.

**Comprehensive site audit** (the flagship `audit` action — combines a homepage
audit + site crawl + sitemap validation into one report):
```
python scripts/audit.py https://example.com
```

**Audit one page** (Markdown report to stdout):
```
python scripts/scan.py https://example.com/page
```

Useful flags:
- `--render` — render JavaScript with Playwright and compare paired served/
  rendered snapshots: selected-text equality, whitespace-token deltas, headings
  and metadata presence/block counts. `js_dependence.text_comparison` records
  scope; legacy `js_only_pct` is a positive net count delta, not JS-only content.
  Equal counts can hide replacement text. Review differences manually before
  SSR/metadata edits; do not infer JS causation, crawler access or citation impact.
  Missing legacy receipts do not certify content parity or server rendering.
- `--format json|html|pdf` — machine-readable JSON, a self-contained styled HTML
  report, or PDF (needs WeasyPrint; falls back to HTML). Use `-o <file>` to save.
  `html`/`pdf` also work on `audit.py` for a shareable, stakeholder-ready report.
- `--only technical,geo` — run a subset: `technical`, `content`, `schema`, `geo`.
  Unknown names and empty comma-separated entries fail before fetching (CLI exit
  2); MCP follows the same rule. Omitted/empty selection runs all four.
- Image checks run by default on single-page scans (a few HEADs + one ~64 KB
  ranged GET): heavy images (>200 KB), legacy formats worth AVIF/WebP, missing
  width/height (CLS), and og:image validation (reachable? real dimensions?).
  Skip with `--no-image-checks`; crawls skip them automatically.
- The schema auditor conditionally applies a merchant bar to evidenced product
  pages: Product/Offer completeness, ProductGroup variants, expired prices, and
  explicit visible-vs-schema price/currency/availability/SKU/brand consistency.
  Ordinary pages and editorial Product reviews are not treated as stores.
- `--fail-under N` — exit non-zero if the score is below `N` (CI quality gate;
  `crawl_site.py` gates on the average score).

**Compare against competitors** (local-first — your page first, then 1-3
competitor pages; same auditors run on each, then a gap analysis):
```
python scripts/compare.py https://you.com/page https://rival.com/page
```
Reports a scoreboard, a side-by-side fact table, **"Gaps to close"** (what they
have that you don't: schema types, meta strategy, question headings,
social packaging) and **"Where you lead"**. Honesty rule: it compares
the recorded HTML snapshots (served or rendered, as labelled) — never claim a
gap explains rankings. Text length is a neutral whitespace-token observation,
not a depth gap/lead or writing target. Legacy `words` values without a recorded
basis stay unverified. No rank/keyword data is used or implied.
Statistic/citation-pattern counts are likewise observations, not verified sources
or evidence-density gaps. `evidence_cues` explains the basis and unchecked source
validity; legacy `stats_cites` alone does not supply a measurement basis.
Question-heading differences are optional contextual reviews using exact
`question_cues` counts, not the preserved rounded `question_ratio`. The one-in-five
heuristic does not establish real queries or engine matching; keep useful
descriptive headings and use questions only when helpful. Missing counts/basis
and no eligible headings are not interpreted as a measured low fraction.
`schema_search_features` carries a dated Google retirement snapshot; it is not
schema.org validation or live eligibility. Retired Google appearances do not
require deleting accurate semantic markup. Unlisted types are not certified
eligible, and missing legacy snapshot provenance stays unverified.
`schema_extraction` records supported-extractor errors/warning-detail counts.
Known problems or missing receipts cannot certify schema absence. Keep observed
types visible, inspect existing markup before adding/duplicating a candidate,
and do not claim schema/overall score gains from unverified extraction. A
`no_known_problem` receipt is not full conformance/eligibility or exhaustive coverage.
`date_cues` records bounded metadata/selected-text candidates, not validated
publication/update dates or freshness. Modified-only metadata counts; blank values
and bare years alone do not. Review real page purpose and known dates when useful;
never invent dates, relabel event dates or cosmetically refresh them to clear a
finding. Compared candidates do not impose a date quota. See the
[date-cue boundaries](references/content-eeat.md#date-cues-not-freshness-verification).

**Build a data-driven content brief** (what to *write*, grounded in real data —
no keyword APIs, no invented volumes):
```
python scripts/brief.py https://you.com/page https://rival.com/page
python scripts/brief.py https://you.com/page https://rival.com/page --gsc  # explicit Search Console opt-in
python scripts/brief.py --topic "widget calibration" https://rival.com/guide
python scripts/brief.py --topic "widget calibration" https://rival.com/guide --gsc-site https://you.com  # explicit topic-query opt-in
```
By default, uses supplied pages without querying account services. Topic
`--gsc-site` (Python/MCP `gsc_site`) explicitly opts into your site's recorded queries
before deriving question and schema-review candidates; review relevance and
visible content before implementing suggestions.
Brief `gsc.capped` preserves the collector's row-limit flag (null if unknown).
A cap in either query window can limit observations; no matching retrieved
queries does not prove absent demand. An uncapped response is not proof of
exhaustive Search Console coverage.
Topic `gsc.topic_query_selection` records input/matching/retained/omitted row
counts for the first-15 lexical filter; rows are not unique-query counts.
Input rows are analyzed striking-distance rows, not all raw API rows.
This selection limit is separate from `gsc.capped`. Missing, malformed or
contradictory receipts do not establish that no matching rows were omitted.
Internal count consistency does not verify upstream query completeness.
Explicit `--gsc` (Python/MCP `use_gsc=True`) adds the page's own **striking-distance GSC queries** (positions 8–20 —
demand it nearly satisfies; needs GSC credentials, same setup as `gsc.py`),
the **competitor gap analysis**, **compared-heading review candidates** (a lexical
H2/H3 term filter, not verified missing semantic coverage), **question-shaped candidates**
(compared headings + your recorded question-shaped queries, distinguished by
`source_kind`; legacy missing kinds stay unverified), schema suggestions,
and a question-heading structure heuristic on non-hubs.
Review candidates for actual relevance and coverage; neither compared headings
nor a structure flag require rewriting headings or forcing a first-sentence answer.
Keep deliberate user/editorial format choices separate from measured cues.
The legacy `missing_subtopics` field keeps review candidates, not absence verdicts.
`subtopic_review` and per-candidate `term_match` record the ASCII/English prefix-term
basis and exact counts/cutoff. Synonyms can be missed and unrelated words can match;
compared headings do not prove section content. Topic mode has no own-page matches.
Missing/malformed legacy receipts stay unrecorded; inspect relevance and existing
coverage before recommending sections, without overriding explicit editorial choices.
`text_length` contains neutral length observations, including hubs; do not infer
a word target or missing coverage from length alone. Keep explicit user/editorial
length constraints separate from measured observations. Citation/statistic cues
do not establish factual support or a source quota; review real claims and
sources without inventing numbers/citations to satisfy counts.
`target_words`/`your_words` and `evidence_target`/`your_evidence` are no longer
generated. `--topic` mode
plans a page that doesn't exist yet from
competitor pages only (add `--gsc-site <your-site>` to fold in real adjacent
queries). Without GSC credentials it produces a clearly labeled
**structure-only** brief — target queries are omitted, never invented.
Schema candidates carry `google_search_appearance` notes from that same dated
snapshot. Keep semantic generators available, but add only actual visible
content for the intended consumer; a competitor's type or a question candidate
does not establish validity, eligibility or ranking/citation gains.
`/narwhal brief` layers an editorial synthesis (outline, metadata drafts) on
top of this data.

**Audit a whole site** (discovers URLs via sitemap or internal links, rolls up
the issues that recur most — the highest-leverage fixes):
```
python scripts/crawl_site.py https://example.com --max-pages 25
```
The crawler is polite by default: it **honors robots.txt** (skips disallowed URLs;
reported in the summary), fetches site-level signals once, and scans pages in
parallel. Tune with `--concurrency N` (default 4), `--delay SECONDS` (minimum
spacing of parallel page-scan starts; sequential post-scan pause), and
`--ignore-robots` to override. Delay must be finite and nonnegative; it does not
pace discovery, site resources or optional probes. Crawl/audit page and worker
limits must be positive integers (including config defaults); invalid limits
fail before fetching with CLI exit 2. Link and sitemap file/sample caps require
nonnegative integers; zero retains scoped optional-check skips, not an all-network
off switch. Consumed config defaults follow the same preflight. MCP retains its
page/worker clamps. Sitemap probes sample distinct exact URL strings at evenly
spaced positions in parsed-file order (endpoints when selecting at least two;
one selects the first). JSON/Markdown record the policy. This bounded sample is
not random or representative; changed selection is not evidence of a site change. `--fail-under N` gates on the
average score. Add `--check-links` to check outbound links (internal + external)
for 4xx/5xx/dead — reported grouped by source page (`--max-links N` caps how many;
rate-limited/bot-blocked codes like 429/403 are treated as gated, not broken).
**Hreflang reciprocity** is validated automatically when the site uses
hreflang: missing return tags reported as exact A → B pairs, missing
self-references, invalid codes, x-default presence; up to 5 same-host
alternates are probed so return tags are verifiable, and anything outside
the sample is labeled unverified — never broken.
**Site-structure analysis** is always included: click depth from the start
URL, pages unreachable within the sample, zero-inbound pages (weak link
equity), most-linked pages, and sitemap **orphan candidates** — all
sample-aware (the report states the crawl size next to every claim).
**Near-duplicate content detection** runs by default (SimHash fingerprints;
clusters pages ≥`--dup-threshold` % similar and flags clusters lacking a
consistent canonical; disable with `--no-dupes`).

**Generate schema.org JSON-LD:**
```
python scripts/generate_schema.py Article --field headline="…" --field author="…"
python scripts/generate_schema.py --list      # supported types
```

**Validate a site's XML sitemap(s)** (discovers from robots.txt/common paths or
takes a sitemap URL; recurses indexes, validates `loc`/`lastmod`, samples URLs for
404s, handles gzip):
```
python scripts/validate_sitemap.py https://example.com --sample 20
```

**Generate a starter `llms.txt`** (seeds from the homepage + discovered pages,
grouped into sections; a curation starting point, not a finished file):
```
python scripts/generate_llms.py https://example.com -o llms.txt
```

**Track health over time / catch regressions** (no database — diff two saved JSON
reports). Save a scan as JSON now, re-scan later, and compare:
```
python scripts/scan.py https://example.com --format json -o before.json
# ...later...
python scripts/scan.py https://example.com --format json -o after.json
python scripts/diff_scan.py before.json after.json
```
The diff reports the score delta and which findings are **new**, **resolved**,
**worsened**, or **improved** (dynamic titles like "Thin content (210 words)" are
matched across runs). Add `--fail-on-regression` for a CI gate: it exits non-zero
if the score dropped, a new critical/high finding appeared, or an existing
finding escalated to critical/high (even with an offsetting score improvement).
Known incomparable coverage also fails the gate. Add `--require-comparable`
to reject unknown legacy coverage with exit 2; planner commands use both flags.
An explicitly invalid root-page `scan_scope` is incomparable, with no score/fix
claims and regression-gate exit 2. Absent legacy scope keeps its unknown status.
Comparability covers recorded checks only, not unrecorded settings or a whole site. Different complete recorded
audit crawl URL samples (including multiplicities) withhold verdicts and exit 2;
order does not matter. An explicitly malformed crawl page list also withholds
score deltas and fix claims. Absent legacy lists remain unverified.
Works on `audit` JSON too (overall score + homepage findings). Separate
`crawl_rule_changes` compares native recurring rules only with matching recorded
coverage and nonempty exact crawl samples. New critical/high rules and severity
escalations trigger the regression gate even without a score drop. Removed rules
mean no longer observed in that sample, not per-page fixes or complete site
coverage. Missing, legacy or unsupported rollups remain explicitly unverified.
For audits, `--require-comparable` also requires a verified crawl-rule comparison;
missing/unsupported rollups or absent/empty crawl samples exit 2. Ordinary viewing
and the non-strict regression flag retain legacy behavior with a warning.
An explicit `pages_scanned` must be an integer matching the recorded page list.
Malformed counts, count/list contradictions, or a count without a page list
withhold overall score/fix claims as well as crawl-rule claims; regression gates
exit 2. Missing counts are not filled in or treated as independent evidence of
sample completeness. Inspect the reasons and re-scan with matching settings;
do not edit saved JSON to manufacture a passing comparison.
Fresh crawl/audit page rows retain recorded `scan_scope`. Incomplete/invalid
scopes, contradictory duplicate-page settings, changed scopes or scope recorded
on only one side make audit diffs incomparable. When both reports lack legacy
page scopes, that coverage remains unverified rather than inferred. Capture a
fresh matching baseline before edits when crossing this recording change; do
not backfill old JSON to manufacture comparability.

**Map findings to source before editing** (read-only, no changes applied):
```
python scripts/plan.py before.json --repo .
python scripts/plan.py before.json --repo . --format json -o plan.json
```
The versioned plan detects plain HTML, Next.js, Astro, Nuxt, Hugo, or Jekyll;
links stable finding IDs to likely owning files; groups shared-template fixes;
and separates safe candidates, review-required work, external/manual work, and
changes that require post-deploy verification. Treat file matches as evidence-
backed candidates, not permission to edit blindly; inspect warnings and conflicts.
Fresh crawl/audit JSON includes up to five sorted, distinct URL-label witnesses
per recurring rule observation, with truncation/omission receipts. They use the
recorded final URL when present and otherwise the requested label, not proof of
response destinations, successful access or the full affected-page set. Counts
and scores are unchanged. Labels over 4,096 characters and shared credential-like
markers are omitted from these samples, not truncated into new URLs. For recurring page-local actions, plans use supported
same-origin witnesses to locate inventoried route sources instead of a healthy
homepage fallback. Unsupported/legacy unlocated rollups require manual source
confirmation or a fresh audit; shared-framework head candidates remain heuristic.
Viewport automation eligibility is blocked by `unlocated_page_witness` when any
recorded page label has no inventoried source candidate, even if others do.
An explicitly malformed `scan_scope` blocks automation with
`known_incomplete_source_evidence`; it is not treated as absent legacy metadata.
Missing legacy scope still does not certify ownership, completeness or permission
to edit. Known source candidates remain available for review.
Next.js page candidates include observed default-extension sources and Pages
Router directory indexes under `app/`, `pages/`, or `src/`. Dynamic routes,
rewrites and custom page extensions still need manual ownership confirmation.
Next.js robots/sitemap candidates include observed JavaScript and static app
metadata files alongside TypeScript/public owners. Inspect the actual source
before edits and verify the generated resource after deploy.
Astro candidates include observed `.astro`, `.md`, `.mdx` and `.html` root,
direct and directory-index pages in `src/pages/`. Confirm MDX integration,
dynamic routes and content-collection ownership manually before editing.
Nuxt candidates include observed `app/pages/` routes alongside legacy `pages/`,
including root and directory-index Vue files. Confirm custom source directories,
layers, route overrides and actual page ownership manually.
Hugo candidates include observed home/section `_index.md` branch bundles under
`content/`. Confirm custom content roots, multilingual layouts, URL overrides
and permalinks before choosing an owner.
Owner previews label inventory status and disclose candidates beyond the first
three; the complete list remains in plan JSON. Uninventoried paths are not proven
missing, and inventoried files are not proven active source owners.
Owner and related-action path previews use literal code spans, including names
with backticks or Markdown punctuation; original path strings remain in JSON.
Markdown evidence previews are literal, capped at 600 characters and not
reverified; full action evidence remains in JSON. Synthesized sitemap failure
actions retain the first five reported status/URL witnesses and their total.
Consult the original report for remaining witnesses and verify before editing.
Sitemap sample reporting/planning uses the shared crawl HTTP classification;
unsupported statuses or malformed/error fields remain unverified even when raw
compatibility problem rows retain them. JSON includes selected-target response
counts beside the raw observations.
Audit crawl link failures and uncertain/capped/unknown coverage produce separate
manual actions with bounded target/source witnesses. They assign no source owner
or automatic link edit; verify HEAD/GET behavior and anchor intent first. New
`crawl.links.unverified` records preserve checked uncertain targets and referrers
for that follow-up. Crawl Markdown shows up to 20 rows with bounded URL previews;
JSON retains all checked records. Legacy missing identities are not inferred.

**Real Core Web Vitals** (opt-in external service, like Search Console).
Ordinary audits do not enable these services merely because credentials exist.
PageSpeed lab calls are external even without a key. Never fabricate field metrics — for the *real*
LCP/INP/CLS (what Chrome users experience), query the CrUX API:
```
python scripts/crux.py https://example.com/page      # needs a CrUX API key
python scripts/crux.py https://example.com --origin --form-factor phone
```
The key is resolved from `--crux-key`, the `CRUX_API_KEY` env var, or a `.env` file
(auto-loaded) — so once the user has set it, just run the script. If it reports the
key is missing, relay the three ways to provide one and the free-key link
(`https://developer.chrome.com/docs/crux/api`); **do not** invent numbers. Low-traffic
URLs return "no data" — suggest `--origin`. Get a key: enable the *Chrome UX Report
API* in Google Cloud Console and create an API key (free, 150 queries/min).

When CrUX has **no data** (most pages are below its traffic floor), use lab data —
a PageSpeed Insights (Lighthouse) synthetic test that works for any URL:
```
python scripts/crux.py https://example.com/page --lab                 # mobile
python scripts/crux.py https://example.com/page --lab --strategy desktop
```
It returns a performance score + LCP, TBT (lab proxy for INP), CLS, FCP, SI, TTI.
**Always label lab data as synthetic/estimate, not real-user field data.** The PSI
key is optional (keyless quota is shared/often exhausted); set `PAGESPEED_API_KEY`
or reuse the CrUX key with the PageSpeed Insights API also enabled.

**Real Search Console query data** (opt-in; OAuth — GSC has no API-key path).
Turns "what's broken" into "what to fix *first*" using the user's own queries:
```
python scripts/gsc.py https://example.com            # needs GSC credentials
python scripts/gsc.py https://example.com --days 28 --format json
```
Reports striking-distance queries (positions 8–20 with impressions), CTR
laggards (top-10 rankings whose CTR is far below the expected-for-position
curve — title/meta rewrite candidates; the curve is a labeled heuristic used
only for ranking), decaying pages (clicks down ≥25% vs the prior window), and
keyword cannibalization (several pages splitting one query — cross-check the
crawler's near-duplicate clusters). Credentials resolve from env/`.env`:
`GSC_ACCESS_TOKEN` (e.g. `gcloud auth print-access-token`, expires ~1h) or the
durable `GSC_CLIENT_ID`/`GSC_CLIENT_SECRET`/`GSC_REFRESH_TOKEN` trio. If
missing, relay the one-time setup: create a **Desktop** OAuth client (enable
the Search Console API), put the ID/secret in `.env`, run
`python scripts/gsc.py --auth --write-env`. Add `--gsc` to `audit.py` to fold
the same data into the audit report/JSON (degrades to a note without
credentials). These are real numbers for the user's verified property — never
fabricate or extrapolate them.

**Turn a Markdown report into a branded HTML/PDF** (e.g. after synthesizing an
audit — write it to a `.md`, then render):
```
python scripts/render_report.py report.md -o report.html      # branded HTML
python scripts/render_report.py report.md --format pdf -o report.pdf   # needs WeasyPrint
```
The output is self-contained (inline CSS + logo), with the Narwhal header/footer —
same look as the scan/audit reports. Scan/audit/render require regular output
files and return exit 2 for expected delivery failures. Other CLI text artifact
saves use the same regular-file/UTF-8 checks and preserve analysis gate codes; PDF engine bytes are
staged first. Final writes remain non-atomic. Choose an output file distinct from
the source; direct/link aliases are rejected for HTML, PDF and actual fallback
HTML writes. PDF bytes are staged first; separate final writes remain non-atomic.
Avoid redirecting stdout over the input (the shell truncates before Narwhal runs).

## What each auditor covers

| Auditor | Focus |
|---|---|
| `technical` | title/meta, headings, canonical, robots directives, viewport, hreflang, images, links, HTTP hygiene, robots.txt, sitemap |
| `content` | scoped text-length/readability cues, attribution/date candidates, Open Graph/Twitter cards |
| `schema` | JSON-LD detection, required/recommended property validation, deprecated rich-result types |
| `geo` | contextual question-heading, synthetic sentence-group, statistic/citation and intro cues; `llms.txt`, role-aware **AI-crawler policies** |

Deep-dive guidance (heuristics, thresholds, and the *why* behind each check) lives
in `references/` — read the relevant file when the user asks for detail or wants to
go beyond the automated checks:

- `references/technical-seo.md`
- `references/content-eeat.md`
- `references/schema.md`
- `references/geo-llmo.md`

## Interpreting output

Each report has a **0–100 health score** and findings bucketed by severity
(`critical → high → medium → low`, plus passing checks). Scores are directional,
not absolute — always explain the *specific* fixes, not just the number. When a
finding is a heuristic (readability, citability, entity clarity), say so; these
flag pages worth a human look rather than issuing verdicts.
Known structured-data extraction uncertainty also prevents page/audit diff
improvement/resolution verdicts; the CI gate exits 2, including uncertain crawl
contributions. Fix/verify extraction before treating missing findings as fixes.
Page scans with known extraction gaps withhold generic/Article/site-entity/Product
absence advice while retaining checks on observed nodes. Plans make extraction
verification manual-only, not markup-generation work; actual syntax/property
repairs remain reviewable. Even without known errors, non-observation is only a
conditional review: preserve valid formats/entities and do not promise eligibility.
JSON decoder syntax errors remain repair candidates. JSON-LD decoder limits,
numeric/Unicode handling or node-processing failures are verification-only, not
proof of invalid source or engine rejection. `jsonld_error_stages` records actual
runtime counts; missing legacy stages stay unclassified. Verify before rewriting
data, and do not increase global parser/body limits just to clear a note.
`meta.readability` exposes historical ASCII-token, punctuation-fragment and
vowel-group inputs with English-oriented Flesch/FK formula estimates, not actual
comprehension, school grade or engine citability. Non-English declarations,
non-ASCII letters/marks, hub hints and unusable inputs leave interpretation
unassessed. Keep useful concise/specialist text and necessary precision; simplify
only where useful for the actual audience, not to meet a universal score/word quota.
Current/legacy plans use the same conditional review. Known changes in recorded
`readability_reviewed` scope make page/audit/crawl diffs incomparable, not fixes;
missing legacy scope stays unknown. See `references/content-eeat.md#readability`.
`meta.lexical_focus` records top-eight ASCII-term frequency and exact title/first-H1
overlap, not dominant topics or semantic coverage. Cutoffs/ties, synonyms,
inflections and extraction can hide matches; incidental overlap is not relevance.
Review actual page purpose/wording and edit only confirmed misleading labels or
missing useful content, without keyword stuffing or forced overlap. Legacy IDs
remain; missing receipts do not supply measured scope. See
`references/content-eeat.md#topical-focus` for witnesses, limits and compatibility.

## Deep audit (multi-agent)

For a comprehensive audit, `/narwhal audit <site>` runs the deterministic
`audit.py` baseline and then fans out ~10 specialist subagents in parallel (in the
plugin's `agents/` dir) — technical, content, schema, geo, performance, links,
duplication, sitemap, sxo, local, and conditional e-commerce — each using these scripts as tools and adding
reasoning + exact fixes, synthesized into one prioritized report. The individual
scripts above remain the fast, deterministic path.

## Fix loop (audit → edit → prove it)

When the site's **source code is in the current workspace**, don't stop at the
report — close the loop (`/narwhal fix <url>` in Claude Code):

1. Save a baseline: `python scripts/scan.py <url> --format json -o before.json`
   (or reuse a fresh audit JSON).
2. Run `python scripts/plan.py before.json --repo . --format json -o plan.json`.
   Review its likely owners, safety classes, conflicts, and coverage. Capture a page scan of each
   affected local preview route as `page-before.json` when available; use distinct
   snapshot names for multiple pages. Then apply minimal, framework-idiomatic edits. Use
   `generate_schema.py` for JSON-LD and `generate_llms.py` for llms.txt rather
   than hand-writing them.
3. Re-scan the same local route (`--allow-private` for localhost) with matching
   options as `page-after.json`, then run
   `python scripts/diff_scan.py page-before.json page-after.json --require-comparable --fail-on-regression`.
   Keep this page comparison separate from an audit baseline. Follow the plan's
   original-baseline verification commands after deployment: scan → scan or
   audit → audit, restoring the original invocation settings and limits.

Honesty rules: a localhost re-scan only verifies **page-level** fixes — label
site-level signals (robots.txt, sitemap, HTTPS, canonical host, llms.txt) as
*verify after deploy*; if there's no local preview, report "applied, pending
deploy" with the re-scan commands. Without a pre-edit page baseline, a later
preview is a current-state check, not measured improvement. Do not discount a
regression or override a withheld/incomparable verdict to claim successful
verification. Report scoped finding changes alongside failed or unverified
overall checks. Audit
homepage findings and crawl-rule aggregate changes have separate scopes; a
disappeared sampled rule does not prove each page was repaired. If the source is
**not** in the workspace,
make no edits — give a per-finding fix plan instead. Findings unreachable from
the repo (CDN/redirect config, real CWV) go in a "needs manual action" list.

## Configuration

An optional `narwhal.toml` at the project root (auto-discovered) tunes scoring
weights, check thresholds, CLI defaults, and ignore rules. Precedence is
**CLI flag > narwhal.toml > default**. Use `--config PATH` or `--no-config` to
override. If the user has one, respect it; to suppress a finding they consider
acceptable, add it to `[ignore]` rather than hard-coding around it. Full docs:
`docs/CONFIG.md`.

## Guardrails

- **SSRF-safe:** hosts resolving to private/loopback IPs are blocked. Only pass
  `--allow-private` when the user is intentionally scanning a local/staging site.
- **Local-only by default:** no external services are called. API integrations
  (PageSpeed, CrUX, SERP data) are intentionally out of the default path.
- Don't fabricate metrics the tools don't measure (e.g. exact Core Web Vitals
  field data needs a real device/CrUX; the scan only flags likely LCP hygiene
  issues). Report what was measured and what would need an external source.
````

## File: skills/seo-scan/scripts/__init__.py
size: 285
sha: b8ef30f747358e0ffdbfd596b6de8877b84eb3d8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/__init__.py

```text
"""Narwhal SEO & GEO/LLMO scanner.

When installed as a package (via uvx/pip) these modules are importable as
``narwhal.*``; when run from a cloned repo or the Claude Code plugin, each script
also runs standalone (e.g. ``python scan.py <url>``).
"""

from ._version import __version__
```

## File: skills/seo-scan/scripts/__main__.py
size: 146
sha: a72422b871e53cad2ab9004808791152b593a149
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/__main__.py

```text
"""Enable ``python -m narwhal …`` for the installed package."""

from .cli import main

if __name__ == "__main__":
    raise SystemExit(main())
```

## File: skills/seo-scan/scripts/_version.py
size: 108
sha: 5a4c2598cbcaa57f1f1bc28e9cac2bbb201a9441
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/_version.py

```text
"""Canonical release version for packaging, CLI, reports, and plugin manifests."""

__version__ = "1.30.19"
```

## File: skills/seo-scan/scripts/audit.py
size: 17255
sha: 0667dc39a1a6579e8cd7f1c0cdada8b72b092d51
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/audit.py

```text
#!/usr/bin/env python3
"""Comprehensive site audit — one report combining:

  1. A full single-page audit of the entry URL (all four auditors)
  2. A site-wide crawl (weakest pages, recurring issues, broken links, duplicates)
  3. XML sitemap validation

This is the flagship ``narwhal audit <site>`` deliverable: a stakeholder-ready
overview that a single-page scan can't give on its own.

Usage:
    python audit.py https://example.com
    python audit.py https://example.com --max-pages 30 --format json -o audit.json
"""

from __future__ import annotations

import argparse
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from lib import config as configlib  # noqa: E402
from lib.cli_errors import url_errors  # noqa: E402
from lib.budgets import nonnegative_integer  # noqa: E402
from lib import report as report_lib  # noqa: E402
from lib import canonical, links, hreflang  # noqa: E402
from lib.report import below_threshold, deliver  # noqa: E402
import scan as scanner  # noqa: E402
import crawl_site  # noqa: E402
import validate_sitemap  # noqa: E402

def _demote(md: str) -> str:
    """Drop a sub-report's top H1 and push every other heading down one level."""
    out, seen_h1 = [], False
    for line in md.splitlines():
        if line.startswith("# ") and not seen_h1:
            seen_h1 = True
            continue
        out.append("#" + line if line.startswith("#") else line)
    return "\n".join(out).strip()

def run(site: str, *, max_pages=15, concurrency=4, timeout=20, allow_private=False,
        obey_robots=True, render=False, max_links=100, max_sitemaps=12,
        config=None, vitals=False, strategy="mobile", gsc=False) -> dict:
    """Run the three sub-audits. The link and sitemap caps default lower than the
    standalone tools' — an audit is an overview, so it favors speed over an
    exhaustive link/sitemap sweep (the dedicated commands go deeper)."""
    crawl_site.validate_budgets(max_pages=max_pages, concurrency=concurrency)
    nonnegative_integer(max_links, 'max_links')
    nonnegative_integer(max_sitemaps, 'max_sitemaps')
    config = config or configlib.Config()
    sample = config.default("sample")
    nonnegative_integer(sample, 'sample')
    config, _ = configlib.snapshot_rules(config)
    page = scanner.scan(site, timeout=timeout, allow_private=allow_private,
                        render=render, config=config)
    site_result = crawl_site.crawl(
        site, max_pages=max_pages, concurrency=concurrency, timeout=timeout,
        allow_private=allow_private, obey_robots=obey_robots, render=render,
        check_links=True, max_links=max_links, detect_dupes=True, config=config)
    sitemap = validate_sitemap.analyze(
        site, allow_private=allow_private, timeout=timeout,
        sample=sample, max_sitemaps=max_sitemaps)
    data = {"site": site, "page": page, "site_result": site_result, "sitemap": sitemap}
    if vitals:
        data["vitals"] = gather_vitals(site, timeout=timeout, strategy=strategy)
    if gsc:
        import gsc as gsc_mod  # noqa: PLC0415
        data["gsc"] = gsc_mod.gather(site, timeout=timeout)
    return data

def gather_vitals(site: str, *, timeout=20, strategy="mobile") -> dict:
    """Core Web Vitals for the audit: real CrUX **field** data first (origin-level),
    then PageSpeed Insights **lab** data as a fallback when CrUX has none (most
    sites). Opt-in — only runs with ``--vitals`` because it makes external API
    calls. Honest about which is which; never fabricates numbers."""
    import crux  # noqa: PLC0415
    import psi  # noqa: PLC0415
    from lib import env as envlib  # noqa: PLC0415

    crux_key = envlib.resolve("CRUX_API_KEY")
    field = crux.analyze(site, crux_key, origin=True, timeout=timeout) if crux_key else None

    lab = None
    if not (field and field.get("found")):
        psi_key = envlib.resolve("PAGESPEED_API_KEY") or crux_key
        lab = psi.analyze(site, psi_key, strategy=strategy, timeout=max(timeout, 60))
    return {"field": field, "lab": lab}

def _vitals_markdown(v: dict) -> str:
    """The Core Web Vitals section body (Markdown), demoted to slot under an H2."""
    import crux  # noqa: PLC0415
    import psi  # noqa: PLC0415
    field, lab = v.get("field"), v.get("lab")
    if field and field.get("found"):
        return _demote(crux.render_markdown(field))
    if lab is not None:
        note = ("_CrUX has no real-user field data for this site (below its traffic "
                "floor), so this is PageSpeed Insights **lab** data instead._\n\n"
                if field is not None else "")
        return note + _demote(psi.render_markdown(lab))
    if field is not None:                       # CrUX tried, no data, no lab
        return _demote(crux.render_markdown(field))
    return ("_No Core Web Vitals collected. Set `CRUX_API_KEY` for real-user field "
            "data, or `PAGESPEED_API_KEY` for lab data, then re-run with `--vitals`._")

def _vitals_headline(v: dict) -> str:
    """A short one-liner for the header/metrics strip, or '' if nothing usable."""
    field, lab = v.get("field"), v.get("lab")
    if field and field.get("found"):
        verdict = {True: "pass", False: "fail"}.get(field.get("cwv_pass"), "partial")
        return f"CWV (field): {verdict}"
    if lab and lab.get("found") and lab.get("perf_score") is not None:
        return f"Perf (lab): {lab['perf_score']}/100"
    return ""

def _gsc_markdown(g: dict, site: str) -> str:
    """The Search-performance section body (Markdown), demoted under an H2."""
    import gsc as gsc_mod  # noqa: PLC0415
    if not g.get("found"):
        return (f"_No Search Console data: {g.get('error', 'unavailable')}_"
                if g.get("error") else "_No Search Console data collected._")
    return _demote(gsc_mod.render_markdown(g, site))

def _gsc_headline(g: dict) -> str:
    """Short header-strip metric, or '' when there's no data."""
    if not g.get("found"):
        return ""
    s = g["summary"]
    delta = ""
    if s.get("clicks_prev"):
        d = round(100 * (s["clicks"] - s["clicks_prev"]) / s["clicks_prev"])
        delta = f" ({'+' if d >= 0 else ''}{d}%)"
    return f"GSC clicks ({g.get('days', 28)}d): {s['clicks']}{delta}"

def _extra_sections(data: dict) -> list:
    """The conditional report sections after the three fixed ones, numbered in
    order of presence: (number, title, markdown-body)."""
    out, n = [], 4
    cwv = data.get("vitals")
    if cwv:
        out.append((n, "Core Web Vitals", _vitals_markdown(cwv)))
        n += 1
    g = data.get("gsc")
    if g:
        out.append((n, "Search performance (GSC)", _gsc_markdown(g, data["site"])))
        n += 1
    return out

def overall_score(data: dict) -> float:
    """The audit's headline score: the lower of homepage and site-average."""
    return min(data["page"].score(), data["site_result"]["avg_score"])

def _schema_score_note(data: dict) -> str:
    schema = (crawl_site.schema_extraction_note(data['site_result'])
              or report_lib.recorded_schema_extraction_problem(data['page'].meta, for_score=True) or '')
    canonical_note = (crawl_site.canonical_comparison_note(data['site_result'])
                      or (canonical.ERROR if canonical.unverified(data['page'].meta) else ''))
    base_note = (crawl_site.anchor_base_note(data['site_result'])
                 or (links.BASE_ERROR if links.unassessed_base(data['page'].meta) else ''))
    hreflang_note = (crawl_site.hreflang_source_note(data['site_result'])
                     or (hreflang.ERROR if hreflang.unverified(data['page'].meta, for_score=True) else ''))
    partial_note = (crawl_site.partial_response_note(data['site_result'])
                    or (report_lib.PARTIAL_HTML_ERROR if report_lib.recorded_response_partial(data['page'].meta) else ''))
    image_note = report_lib.recorded_image_weight_problem(data['page'].meta, for_score=True)
    merchant_note = (crawl_site.merchant_comparison_note(data['site_result'])
                     or report_lib.recorded_merchant_comparison_problem(data['page'].meta, for_score=True))
    return ' '.join(note for note in (schema, canonical_note, base_note, hreflang_note, partial_note, image_note, merchant_note) if note)

def render_markdown(data: dict) -> str:
    page = data["page"]
    site_res = data["site_result"]
    sm = data["sitemap"]
    broken = crawl_site.link_summary(site_res.get('links'))
    dupes = crawl_site.duplicate_summary(site_res)

    cwv = data.get("vitals")
    headlines = [h for h in
                 ((_vitals_headline(cwv) if cwv else ""),
                  (_gsc_headline(data["gsc"]) if data.get("gsc") else ""))
                 if h]
    headline = "  ·  ".join(f"**{h}**" for h in headlines)
    header = [
        f"# Narwhal Site Audit — {data['site']}",
        "",
        f"**Homepage:** {page.score()}/100  ·  "
        f"**Site average:** {site_res['avg_score']}/100  ·  "
        f"**Pages scanned:** {site_res['pages_scanned']}  ",
        f"**Broken links:** {broken}  ·  **Near-duplicate clusters:** {dupes}  ·  "
        f"**Sitemap URLs:** {sm.get('total_urls', 0)}"
        + (f"  ·  {headline}" if headline else ""),
        "",
        "---",
        "",
        "## 1. Homepage audit",
        "",
        _demote(page.to_markdown()),
        "",
        "## 2. Site-wide",
        "",
        _demote(crawl_site.render_markdown(site_res)),
        "",
        "## 3. Sitemap",
        "",
        _demote(validate_sitemap.render_markdown(sm)),
    ]
    for n, title, body in _extra_sections(data):
        header += ["", f"## {n}. {title}", "", body]
    schema_note = _schema_score_note(data)
    if schema_note:
        header[5:5] = ['> ' + schema_note, '']
    return "\n".join(header).rstrip() + "\n"

def render_html(data: dict) -> str:
    """A self-contained, styled HTML audit: overall score gauge, a metrics
    strip, the homepage findings (rich cards), then the site-wide and sitemap
    sections. Reuses the shared HTML helpers and the sub-reports' Markdown so no
    presentation logic is duplicated."""
    page = data["page"]
    site_res = data["site_result"]
    sm = data["sitemap"]
    broken = crawl_site.link_summary(site_res.get('links'))
    dupes = crawl_site.duplicate_summary(site_res)
    overall = int(round(overall_score(data)))

    cwv = data.get("vitals")
    metrics = [
        ("Homepage", f"{page.score()}/100"),
        ("Site average", f"{site_res['avg_score']}/100"),
        ("Pages scanned", site_res["pages_scanned"]),
        ("Broken links", broken),
        ("Near-dupe clusters", dupes),
        ("Sitemap URLs", sm.get("total_urls", 0)),
    ]
    for headline in ((_vitals_headline(cwv) if cwv else ""),
                     (_gsc_headline(data["gsc"]) if data.get("gsc") else "")):
        if headline:
            label, _, val = headline.partition(": ")
            metrics.append((label, val))
    cells = "".join(
        f'<div class="metric"><span class="m-num">{report_lib._esc(v)}</span>'
        f'<span class="m-lab">{report_lib._esc(k)}</span></div>'
        for k, v in metrics)
    hero = (
        '<header class="hero">'
        f'{report_lib.score_gauge(overall)}'
        '<div class="hero-txt"><div class="grade" '
        f'style="color:{report_lib._grade_color(overall)}">Overall</div>'
        f'<div class="metrics">{cells}</div></div></header>')

    homepage = ('<h2 class="section">1. Homepage audit</h2>'
                + "".join(page._html_sections()))
    sitewide = ('<h2 class="section">2. Site-wide</h2><section class="card">'
                + report_lib.md_to_html(_demote(crawl_site.render_markdown(site_res)))
                + "</section>")
    sitemap = ('<h2 class="section">3. Sitemap</h2><section class="card">'
               + report_lib.md_to_html(_demote(validate_sitemap.render_markdown(sm)))
               + "</section>")

    extra_html = "".join(
        f'<h2 class="section">{n}. {title}</h2><section class="card">'
        + report_lib.md_to_html(body) + "</section>"
        for n, title, body in _extra_sections(data))

    schema_note = _schema_score_note(data)
    coverage = ('<section class="card"><p>' + report_lib._esc(schema_note) + '</p></section>') if schema_note else ''
    body = hero + coverage + homepage + sitewide + sitemap + extra_html
    return report_lib.html_document("Narwhal Site Audit", data["site"], body)

def render_json(data: dict) -> str:
    import json
    payload = {
        "schema_version": report_lib.REPORT_SCHEMA_VERSION,
        "tool_version": report_lib.TOOL_VERSION,
        "site": data["site"],
        "overall_score": overall_score(data),
        "homepage": json.loads(data["page"].to_json()),
        "crawl": json.loads(crawl_site.render_json(data["site_result"])),
        "sitemap": json.loads(validate_sitemap.render_json(data["sitemap"])),
    }
    if "vitals" in data:
        payload["vitals"] = data["vitals"]   # {field: crux result, lab: psi result}
    if "gsc" in data:
        payload["gsc"] = data["gsc"]         # gsc.gather() result
    return json.dumps(payload, indent=2, ensure_ascii=False)

@url_errors
def main(argv=None) -> int:
    cfg = configlib.load_from_args(argv)
    d = cfg.defaults
    ap = argparse.ArgumentParser(description="Comprehensive site audit (page + crawl + sitemap)",
                                 parents=[configlib.config_arg_parser()])
    ap.add_argument("url", help="site URL")
    ap.add_argument("--max-pages", type=int, default=d["max_pages"],
                    help="positive maximum pages for the crawl portion")
    ap.add_argument("--concurrency", type=int, default=d["concurrency"],
                    help="positive number of concurrent crawl page scans")
    ap.add_argument("--max-links", type=int, default=100,
                    help="nonnegative outbound-link cap (default 100; 0 skips link requests)")
    ap.add_argument("--max-sitemaps", type=int, default=12,
                    help="nonnegative sitemap validation file-attempt cap (default 12; 0 skips validation fetches)")
    ap.add_argument("--timeout", type=int, default=d["timeout"])
    ap.add_argument("--render", action="store_true")
    ap.add_argument("--ignore-robots", action="store_true")
    ap.add_argument("--allow-private", action="store_true")
    ap.add_argument("--vitals", action="store_true",
                    help="include real Core Web Vitals in the report — CrUX field "
                         "data (needs CRUX_API_KEY), falling back to PageSpeed "
                         "Insights lab data. Makes external API calls.")
    ap.add_argument("--strategy", choices=("mobile", "desktop"), default="mobile",
                    help="device for the lab (PSI) fallback (default: mobile)")
    ap.add_argument("--gsc", action="store_true",
                    help="include real Google Search Console query data "
                         "(striking distance, CTR laggards, decaying pages, "
                         "cannibalization). Needs GSC OAuth credentials — see "
                         "`narwhal gsc --auth`. Makes external API calls.")
    ap.add_argument("--format", choices=("markdown", "json", "html", "pdf"),
                    default="markdown",
                    help="output format; pdf needs WeasyPrint (falls back to html)")
    ap.add_argument("-o", "--output")
    ap.add_argument("--fail-under", type=int, metavar="N", default=d.get("fail_under"),
                    help="exit non-zero if the overall score (min of homepage & "
                         "site-average) is below N")
    args = ap.parse_args(argv)

    try:
        sys.stdout.reconfigure(encoding="utf-8", errors="replace")
    except (AttributeError, ValueError):
        pass

    try:
        crawl_site.validate_budgets(max_pages=args.max_pages, concurrency=args.concurrency)
        nonnegative_integer(args.max_links, 'max_links')
        nonnegative_integer(args.max_sitemaps, 'max_sitemaps')
        nonnegative_integer(cfg.default('sample'), 'sample')
    except ValueError as exc:
        print(f"Error: {exc}", file=sys.stderr)
        return 2

    data = run(args.url, max_pages=args.max_pages, concurrency=args.concurrency,
               timeout=args.timeout, allow_private=args.allow_private,
               obey_robots=not args.ignore_robots, render=args.render,
               max_links=args.max_links, max_sitemaps=args.max_sitemaps, config=cfg,
               vitals=args.vitals, strategy=args.strategy, gsc=args.gsc)
    renderers = {
        "json": render_json,
        "markdown": render_markdown,
        "html": render_html,
        "pdf": render_html,  # PDF is produced by converting the HTML
    }
    content = renderers[args.format](data)
    rc = deliver(args.format, args.output, content, label="audit",
                 score=int(round(overall_score(data))))
    if rc:
        return rc

    if below_threshold(overall_score(data), args.fail_under):
        print(f"FAIL: overall score {overall_score(data)}/100 is below the "
              f"--fail-under threshold of {args.fail_under}.", file=sys.stderr)
        return 1
    return 0

if __name__ == "__main__":
    raise SystemExit(main())
```

## File: skills/seo-scan/scripts/audit_content.py
size: 14158
sha: cdda5ed724171c388ada28d55bb8cd36b6bb833b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/audit_content.py

```text
"""Content quality & E-E-A-T auditor.

Observes extracted-text counts, English-oriented readability/style patterns,
attribution/date candidates and social metadata. These are scoped heuristics,
not measurements of content depth, expertise, quality or search outcomes.
"""

from __future__ import annotations

try:
    from lib import text as textlib
    from lib import content_quality
    from lib import htmlx
    from lib import authorship
    from lib import content_length
    from lib import date_cues
    from lib import readability_observation
    from lib import lexical_focus
except ImportError:  # when imported as a package
    from .lib import text as textlib  # type: ignore
    from .lib import content_quality  # type: ignore
    from .lib import htmlx  # type: ignore
    from .lib import authorship  # type: ignore
    from .lib import content_length  # type: ignore
    from .lib import date_cues  # type: ignore
    from .lib import readability_observation  # type: ignore
    from .lib import lexical_focus  # type: ignore

CAT = "content"

_WORD = content_length.WORD_PATTERN  # historical private matcher alias

def audit(doc, resp, report, ctx=None) -> None:
    text = doc.body_text or ""

    # Page-type awareness: prose checks misfire on link-hub pages (index,
    # category, front pages), and byline checks misfire on non-articles.
    hub = htmlx.is_hub_page(doc)
    article = htmlx.looks_article(doc)
    # Flesch and the filler/common-phrase lists are English-calibrated. Running
    # them on a declared non-English page measures nothing real — skip them
    # (and claim nothing) rather than mislabel French prose "hard to read".
    english = not doc.lang or doc.lang.strip().lower().startswith("en")

    th = (ctx or {}).get("thresholds", {})
    receipt = content_length.observe(text, language=doc.lang, basis=doc.extraction, thresholds=th)
    report.meta['content_length'] = receipt
    _word_count(receipt, report, hub=hub)
    _readability(text, report, hub=hub, article=article, language=doc.lang, basis=doc.extraction)
    if english:
        _quality(text, report, basis=doc.extraction)
    _keywords(doc, text, report)
    _authorship(doc, text, report, article=article)
    _freshness(doc, text, report)
    _og_social(doc, report)

def _word_count(receipt, report, hub=False):
    """Keep length cues contextual; a count cannot certify thinness or depth."""
    status = receipt['threshold_status']
    if status == 'uninterpreted':
        return  # no false zero-word defect or passing depth claim
    observed = (f"{receipt['ascii_pattern_matches']} matches of the configured ASCII-only pattern "
                f"in selected extracted text ({receipt['source_basis']}). ")
    advice = ('Review whether the captured text serves the reader and page intent. Keep useful '
              'concise text; edit only confirmed coverage gaps. Do not pad content to reach '
              'a configured count. Ranking and citation impact are not measured.')
    if status == 'below_lower':
        detail = observed + 'Below the configured lower bound. ' + content_length.LIMITS
        if hub:
            report.add(CAT, 'low', 'Review limited ASCII-token count on a hub', detail,
                       advice, rule_id='content.link.hub.page.with.little.prose')
        else:
            report.add(CAT, 'low', 'Review limited ASCII-token count', detail,
                       advice, rule_id='content.thin.content')
    elif status == 'below_upper':
        report.add(CAT, 'low', 'Review ASCII-token count in the configured middle range',
                   observed + content_length.LIMITS, advice,
                   rule_id='content.content.is.on.the.short.side')
    else:
        report.add(CAT, 'good', 'No below-range ASCII-token flag',
                   observed + content_length.LIMITS, rule_id='content.sufficient.content.depth')

def _readability(text, report, hub=False, article=False, *, language='', basis='visible text'):
    receipt = readability_observation.observe(text, language=language, basis=basis, hub=hub)
    report.meta['readability'] = receipt
    if receipt['formula_status'] != 'computed':
        return
    fre, grade = receipt['flesch_reading_ease'], receipt['flesch_kincaid_grade']
    detail = (f'Flesch reading ease estimate {fre}; FK grade formula estimate {grade}. '
              + readability_observation.LIMITS)
    advice = ('Review actual audience, language and the captured prose in context. Simplify only where useful; '
              'preserve necessary technical terms, factual precision and useful concise text. Do not pad or '
              'rewrite solely to reach a formula target. Reader comprehension and engine outcomes are unmeasured.')
    if fre < 30:
        report.add(CAT, 'low', 'Review below-30 readability formula estimate', detail, advice,
                   rule_id='content.content.is.very.hard.to.read')
    elif fre < 50:
        report.add(CAT, 'low', 'Review below-50 readability formula estimate', detail, advice,
                   rule_id='content.content.is.fairly.hard.to.read')
    else:
        report.add(CAT, 'good', 'No below-range readability formula flag', detail,
                   rule_id='content.readable.prose')

def _keywords(doc, text, report):
    receipt = lexical_focus.observe(doc, text)
    report.meta['lexical_focus'] = receipt
    keywords = receipt['body_terms']
    if not keywords:
        return
    display = lambda item: item['term'] + (' [clipped]' if item['clipped'] else '') + f" ({item['count']})"
    summary = ', '.join(display(item) for item in keywords[:6])
    bigrams = receipt['phrases']
    if bigrams:
        summary += '  ·  phrases: ' + ', '.join(item['term'] + (' [clipped]' if item['clipped'] else '') for item in bigrams)
    report.add(CAT, 'good', 'Frequent extracted-text terms observed', summary + '. ' + lexical_focus.LIMITS,
               rule_id='content.dominant.topics.detected')
    if receipt['status'] == 'zero_overlap':
        report.add(CAT, 'low', 'Review literal title/H1 term overlap',
                   f"0 exact shared title/first-H1 terms among {len(keywords)} retained frequent body terms. " + lexical_focus.LIMITS,
                   'Review actual page purpose and wording in context, including synonyms and extraction. '
                   'Edit only confirmed misleading labels or missing useful content; keep accurate wording. '
                   'Do not repeat keywords or rewrite solely to force overlap with the top-8 list. '
                   'Ranking and AI-citation effects are unmeasured.',
                   evidence=lexical_focus.witnesses(receipt),
                   rule_id='content.body.may.not.reinforce.the.title.topic')

def _quality(text, report, *, basis='selected extracted text'):
    """Surface phrase matches for editorial review, not authorship detection."""
    q = content_quality.analyze(text)
    if q["word_count"] < 100:
        return  # preserve the historical review minimum, not calibrated reliability

    source = ' '.join(str(basis or 'selected extracted text').split())[:160]
    counts = (f"{q['word_count']} matches of [A-Za-z][A-Za-z'-]+; "
              f"{q['unique_word_count']} distinct lowercased matches in {source}. ")
    limits = ('English-oriented patterns and a type/token ratio, not padding, thin/spun content, '
              'authorship, helpfulness or ranking/AI-citation measurements. Counts depend on '
              'selected text and this ASCII-only matcher; necessary repetition can be useful.')
    style_advice = ('Review actual wording, quoted examples and audience needs in context. Keep useful '
                    'phrasing and consistent technical terms; edit only confirmed unnecessary repetition '
                    'or vague wording. Do not add filler or substitute synonyms solely to change a count '
                    'or ratio. Search and AI-citation effects are unmeasured.')

    if q["filler_per_100w"] >= 1.0:
        report.add(CAT, 'low', 'Review configured phrase-match rate',
                   f"{q['filler_count']} configured phrase matches; rounded rate "
                   f"{q['filler_per_100w']} per 100 ASCII-pattern matches (review cutoff >=1.0). "
                   + counts + limits, style_advice,
                   evidence='; '.join(q['filler_examples']), rule_id='content.filler.padding.language')
    elif q["filler_count"] >= 2:
        report.add(CAT, 'low', 'Review configured phrase matches',
                   f"{q['filler_count']} configured phrase matches (review cutoff >=2 below the rate cutoff). "
                   + counts + limits, style_advice,
                   evidence='; '.join(q['filler_examples']), rule_id='content.some.filler.phrasing')

    # Keep examples/limits in advice too: legacy/third-party compact renderers
    # may omit the reported detail and evidence previews.
    phrase_advice = (f"Example matches: {'; '.join(q['ai_examples'])}. Review in context. "
                     "Edit only if wording is vague or unnecessary for the intended "
                     "audience; keep useful wording. Matches do not determine "
                     "authorship, originality, helpfulness or ranking impact.")
    if q["ai_distinct"] >= 4:
        report.add(CAT, "low", "Common phrases worth reviewing",
                   f"{q['ai_distinct']} distinct configured phrase matches "
                   f"({q['ai_pattern_count']} total). Phrase matches do not determine "
                   "authorship, originality, helpfulness or ranking impact.",
                   phrase_advice,
                   evidence="; ".join(q["ai_examples"]),
                   rule_id="content.reads.as.ai.generated.generic")
    elif q["ai_distinct"] >= 2:
        report.add(CAT, "low", "Some common phrases worth reviewing",
                   f"{q['ai_distinct']} distinct configured phrase matches "
                   f"({q['ai_pattern_count']} total). Phrase matches do not determine "
                   "authorship, originality, helpfulness or ranking impact.",
                   phrase_advice,
                   evidence="; ".join(q["ai_examples"]),
                   rule_id="content.some.generic.ai.sounding.phrasing")

    if q["word_count"] >= 400 and q["lexical_diversity"] < 0.35:
        report.add(CAT, 'low', 'Review lower type/token ratio',
                   f"Rounded distinct/total ASCII-pattern ratio {q['lexical_diversity']} "
                   '(review cutoff <0.35 with >=400 matches). ' + counts + limits,
                   style_advice, rule_id='content.repetitive.vocabulary')
    if (q["filler_per_100w"] < 1.0 and q["ai_distinct"] < 2
            and q["lexical_diversity"] >= 0.35):
        report.add(CAT, "good", "Few configured style-pattern matches",
                   f"{q['filler_count']} configured phrase matches; {q['ai_distinct']} distinct "
                   f"common-phrase matches; rounded type/token ratio {q['lexical_diversity']}. "
                   + counts + limits + ' This does not establish originality or content quality.',
                   rule_id="content.clean.specific.writing")

def _authorship(doc, text, report, article=False):
    receipt = authorship.observe(doc, text)
    receipt['article_hint'] = bool(article)
    report.meta['authorship_cues'] = receipt
    if receipt['candidates']:
        report.add(CAT, 'good', 'Attribution cue candidate observed',
                   f"{len(receipt['candidates'])} captured metadata/link/byline candidate(s). "
                   + authorship.LIMITS_NOTE,
                   rule_id='content.authorship.signal.present')
    elif article:
        report.add(CAT, 'low', 'Review article attribution cues',
                   'No attribution candidate was observed in the bounded metadata, author-link '
                   'and leading source-block checks. This does not prove anonymity.',
                   'Review the real byline, profile links and editorial ownership in context. '
                   'Identify actual creators/reviewers where appropriate; do not invent people '
                   'or credentials. Missing cues do not establish anonymity or poor quality.',
                   rule_id='content.no.visible.author.byline')
    # Homepages, hubs, and product pages don't carry bylines — flagging them
    # there was noise, so non-article pages are simply not judged on this.

def _freshness(doc, text, report):
    receipt = date_cues.observe(doc, text)
    report.meta['date_cues'] = receipt
    if receipt['candidates']:
        report.add(CAT, 'good', 'Date-related candidate observed',
                   f"{receipt['candidate_count']} captured metadata/text candidate(s). " + date_cues.LIMITS,
                   rule_id='content.date.freshness.signal.present')
    elif htmlx.looks_article(doc):
        report.add(CAT, 'low', 'Review article date cues',
                   'No candidate observed in the checked metadata and selected-text prefix. ' + date_cues.LIMITS,
                   'Review actual page purpose and original date evidence. Add accurate publication/update '
                   'information only when useful and known; do not invent dates, relabel events as publication '
                   'or refresh a date without substantive change. Ranking/citation effects are not measured.',
                   rule_id='content.no.visible.date.signal')

def _og_social(doc, report):
    missing = [
        p for p in ("og:title", "og:description", "og:image")
        if not doc.meta_by_property(p)
    ]
    if missing:
        report.add(CAT, "low", "Incomplete Open Graph tags",
                   f"Missing: {', '.join(missing)}.",
                   "Add og:title, og:description and og:image for rich social and "
                   "chat-app link previews.")
    else:
        report.ok(CAT, "Open Graph preview tags complete")
    if not doc.meta_by_name("twitter:card"):
        report.add(CAT, "low", "No Twitter/X card type",
                   "Missing <meta name=\"twitter:card\">.",
                   "Add twitter:card (e.g. summary_large_image) for X previews.")
```

## File: skills/seo-scan/scripts/audit_geo.py
size: 16176
sha: 6bfbe592d7f35cc33c9e839c7dbec5b37a3fe6c3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/audit_geo.py

```text
"""GEO / LLMO auditor — visibility in AI answers (ChatGPT, Claude, Perplexity,
Google AI Overviews).

Content heuristics and documented search/retrieval robots directives inform
this audit. Training/data-use choices are separate policy observations, not
proof of search visibility or live crawler access.
"""

from __future__ import annotations

import re
import math
from decimal import Decimal
from fractions import Fraction

try:
    from lib.robots import RobotsTxt
    from lib import htmlx
    from lib import jsdiff
    from lib import llms_resource
except ImportError:  # when imported as a package
    from .lib.robots import RobotsTxt  # type: ignore
    from .lib import htmlx  # type: ignore
    from .lib import jsdiff  # type: ignore
    from .lib import llms_resource  # type: ignore

CAT = "geo"

_WORD = re.compile(r"[A-Za-z][A-Za-z'-]+")
_QUESTION_WORDS = ("how", "what", "why", "when", "where", "who", "which", "can",
                   "does", "is", "are", "should", "do")
_STAT = re.compile(r"\b\d+([.,]\d+)?\s?(%|percent|million|billion|k\b|x\b)", re.I)
_CITE_HINT = re.compile(r"\b(according to|source:|study|research|report|data from|"
                        r"survey|cited|\[\d+\])\b", re.I)

# Static, primary-source role guidance, checked 2026-10-15. No runtime policy I/O.
_OPENAI_BOTS = "https://developers.openai.com/api/docs/bots"
_CLAUDE_BOTS = ("https://support.claude.com/en/articles/8896518-"
                "does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler")
_PERPLEXITY_BOTS = "https://docs.perplexity.ai/docs/resources/perplexity-crawlers"
_GOOGLE_BOTS = "https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers#google-extended"
_GOOGLE_SEARCH = "https://developers.google.com/search/docs/appearance/ai-features#controlling-your-content-in-ai-features-in-search"

# agent, role, purpose, source, interpretation for non-scored restrictions.
_CRAWLER_POLICIES = (
    ("OAI-SearchBot", "search_retrieval", "ChatGPT Search", _OPENAI_BOTS, ""),
    ("Claude-SearchBot", "search_retrieval", "Claude search", _CLAUDE_BOTS, ""),
    ("Claude-User", "search_retrieval", "Claude user-directed retrieval", _CLAUDE_BOTS, ""),
    ("PerplexityBot", "search_retrieval", "Perplexity search", _PERPLEXITY_BOTS, ""),
    ("Googlebot", "search_retrieval", "Google Search, including AI features", _GOOGLE_SEARCH, ""),
    ("GPTBot", "training", "OpenAI training collection", _OPENAI_BOTS,
     "Training collection opt-out; independent of ChatGPT Search access."),
    ("ClaudeBot", "training", "Anthropic training collection", _CLAUDE_BOTS,
     "Training collection opt-out; distinct from Claude search and user-directed retrieval."),
    ("Google-Extended", "data_use", "Gemini training and grounding", _GOOGLE_BOTS,
     "Controls training and specified Gemini/Vertex grounding uses, not Google Search or AI Overviews access."),
    ("CCBot", "data_collection", "Common Crawl dataset", "https://commoncrawl.org/ccbot",
     "Dataset collection restriction; this alone does not establish a direct search-access failure."),
    ("ChatGPT-User", "user_triggered", "ChatGPT user-triggered fetches", _OPENAI_BOTS,
     "A user-triggered directive does not prove a fetch is blocked; robots.txt may not apply. Not a Search opt-out control."),
    ("Perplexity-User", "user_triggered", "Perplexity user-triggered fetches", _PERPLEXITY_BOTS,
     "A user-triggered directive does not prove a fetch is blocked; this fetcher generally ignores robots.txt."),
    ("Claude-Web", "unverified", "Legacy or unverified token", None,
     "Current role is unverified; a matching directive does not establish a search impact."),
    ("Bytespider", "unverified", "Unverified role", None,
     "Current role is unverified; a matching directive does not establish a search impact."),
)
AI_BOTS = {agent: purpose for agent, role, purpose, source, note in _CRAWLER_POLICIES}

def audit(doc, resp, report, ctx=None) -> None:
    ctx = ctx or {}
    # Editorial pattern counts are not engine/citation measurements. Keep them
    # low priority, including on articles; article classification stays available
    # to callers of the individual helpers for compatibility.
    article = htmlx.looks_article(doc)
    _question_headings(doc, report, article=article)
    _passage_citability(doc, report, ctx.get("thresholds", {}))
    _evidence_density(doc, report, article=article)
    _direct_answer(doc, report)
    _llms_txt(ctx, report)
    _ai_crawler_access(ctx, report)
    _entity_clarity(doc, report)
    if ctx.get("jsdep"):   # only present when a --render scan measured it
        jsdiff.geo_finding(ctx["jsdep"], report)

def _record_text_cue(report, name, counts):
    """Expose bounded literal observations, not a semantic or engine verdict."""
    receipt = report.meta.setdefault('geo_text_cues', {
        'version': 1, 'basis': 'configured_english_oriented_patterns',
        'interpretation': 'editorial_review_only',
        'limits': 'Not language understanding, paragraph segmentation, source validation, '
                  'answer assessment or measured engine/ranking/citation behavior.',
        'checks': {},
    })
    receipt['checks'][name] = counts

def _bound_receipt(value):
    """Serialize bounds without rounding or changing their comparison behavior."""
    if type(value) is int:
        return value
    if type(value) is float:
        return value if math.isfinite(value) else {'kind': 'nonfinite_float', 'value': str(value)}
    if type(value) is Decimal:
        return {'kind': 'decimal', 'value': str(value)}
    if type(value) is Fraction:
        return {'kind': 'fraction', 'value': str(value)}
    # Other programmatic numeric types may support comparisons. Keep that
    # behavior, but do not serialize the object, call its conversion hooks or
    # imply an exact numeric snapshot that we cannot represent.
    return {'kind': 'unrecorded_numeric_type'}

def _question_headings(doc, report, article=False):
    subs = [t for lvl, t in doc.headings if lvl >= 2 and t]
    q = [t for t in subs if t.lower().split()[:1] and
         t.lower().split()[0] in _QUESTION_WORDS or t.rstrip().endswith("?")]
    _record_text_cue(report, 'question_headings', {
        'matched': len(q), 'examined': len(subs), 'advisory_below_fraction': 0.2,
        'match_rule': 'english_first_token_or_terminal_ascii_question_mark',
    })
    if not subs:
        return
    observed = (f"{len(q)}/{len(subs)} subheadings match configured English starters "
                "or a terminal ASCII question mark.")
    ratio = len(q) / len(subs)
    if ratio < 0.2:
        report.add(CAT, "low", "Few configured question-heading cues",
                   observed + " Question relevance and engine matching are not measured.",
                   observed + " Use descriptive headings suited to the audience; questions "
                   "are optional when useful. Do not rewrite solely to satisfy these "
                   "English-oriented cues; citation impact is not measured.",
                   rule_id="geo.few.question.based.headings")
    else:
        report.add(CAT, "good", "Configured question-heading cues present",
                   observed + " Question relevance and engine matching are not measured.",
                   rule_id="geo.question.based.headings.present")

def _passage_citability(doc, report, th=None):
    """Count synthetic sentence groups in a configured ASCII-word size range.

    This does not segment real paragraphs or measure self-containment/citability.
    The default 40–120 range is a heuristic, not an engine requirement.
    """
    th = th or {}
    lo, hi = th.get("passage_min", 40), th.get("passage_max", 120)
    text = doc.body_text or ""
    chunks = re.split(r"(?<=[.!?])\s+(?=[A-Z])", text)
    # Historical grouping algorithm, not actual paragraph segmentation.
    passages, buf, count = [], [], 0
    for s in chunks:
        w = len(_WORD.findall(s))
        buf.append(s)
        count += w
        if count >= lo:
            passages.append(count)
            buf, count = [], 0
    if buf and count:
        passages.append(count)
    citable = [p for p in passages if lo <= p <= hi]
    _record_text_cue(report, 'sentence_groups', {
        'in_range': len(citable), 'examined': len(passages),
        'word_min': _bound_receipt(lo), 'word_max': _bound_receipt(hi),
        'advisory_below_fraction': 0.3,
        'match_rule': 'ascii_word_counts_in_accumulated_sentence_fragments',
    })
    if not passages:
        return
    observed = (f"{len(citable)}/{len(passages)} synthetic sentence groups contain "
                f"{lo}–{hi} counted ASCII-word matches.")
    ratio = len(citable) / len(passages)
    if ratio < 0.3:
        report.add(CAT, "low", "Few sentence groups in the configured word range",
                   observed + " Actual paragraphs, self-containment and engine citability are not measured.",
                   observed + " Review readability and completeness in context. This configured "
                   "range is not an engine requirement; do not pad or split useful text "
                   "just to match it. Citation impact is not measured.",
                   rule_id="geo.few.self.contained.citable.passages")
    else:
        report.add(CAT, "good", "Sentence groups in the configured word range",
                   observed + " Actual paragraphs, self-containment and engine citability are not measured.",
                   rule_id="geo.citable.passage.structure")

def _evidence_density(doc, report, article=False):
    text = doc.body_text or ""
    stats = len(_STAT.findall(text))
    cites = len(_CITE_HINT.findall(text))
    _record_text_cue(report, 'evidence_cues', {
        'statistic_matches': stats, 'citation_cue_matches': cites,
        'source_validity_checked': False,
    })
    observed = f"{stats} configured statistic-pattern matches; {cites} citation-cue matches."
    if stats + cites == 0:
        report.add(CAT, "low", "No configured statistics/citation cues",
                   observed + " Other numbers, links or references may exist; source validity is not checked.",
                   observed + " Review factual claims and relevant primary sources in context. "
                   "Do not invent statistics or citations to satisfy this check. Cue absence "
                   "does not prove missing evidence; citation impact is not measured.",
                   rule_id="geo.no.statistics.or.citations")
    else:
        report.add(CAT, "good", "Configured statistics/citation cues present",
                   observed + " Lexical cues only; factual support and source validity are not checked.",
                   rule_id="geo.evidence.signals.present")

def _direct_answer(doc, report):
    """Observe English lexical cues in the first 80 whitespace-separated tokens."""
    text = doc.body_text or ""
    tokens = text.split()[:80]
    intro = " ".join(tokens)
    matched = bool(re.search(r"\b(is|are|means|refers to|allows|helps|provides)\b", intro, re.I))
    _record_text_cue(report, 'intro_cues', {
        'inspected_tokens': len(tokens), 'token_limit': 80, 'matched': matched,
        'match_rule': 'configured_english_answer_terms',
    })
    if not intro:
        return
    if not matched:
        report.add(CAT, "low", "No configured introductory answer cues",
                   "No configured English answer term matched in the first 80 whitespace-separated tokens. "
                   "This does not establish whether the opening answers a question.",
                   "Review whether the opening serves the reader's intent and language. "
                   "Add a concise answer only when useful; English cue absence does not "
                   "prove a missing answer. Answer accuracy and citation impact are not measured.",
                   rule_id="geo.no.direct.answer.up.top")
    else:
        report.add(CAT, "good", "Configured introductory answer cue present",
                   "A configured English term matched in the first 80 whitespace-separated tokens. "
                   "Answer directness, accuracy and citation impact are not measured.",
                   rule_id="geo.direct.answer.near.the.top")

def _llms_txt(ctx, report):
    supplied = ctx.get('llms_txt_receipt')
    receipt = llms_resource.recorded(supplied)
    if receipt is None:
        receipt = {'version': 1, 'checked_path': '/llms.txt', 'state': 'unverified',
                   'basis': 'legacy_context' if type(ctx.get('llms_txt')) is bool and supplied is None else 'not_recorded'}
        if receipt['basis'] == 'legacy_context':
            receipt['reported_present'] = ctx['llms_txt']
    report.meta['llms_txt'] = dict(receipt)
    legacy = receipt['basis'] == 'legacy_context'
    if receipt['state'] == 'observed' or (legacy and receipt['reported_present']):
        report.add(CAT, 'good', 'Root llms.txt text candidate observed' if not legacy else 'llms.txt presence reported (legacy context)',
                   llms_resource.note(report.meta), rule_id='geo.llms.txt.published', scope='site')
    elif receipt['state'] == 'absent' or (legacy and not receipt['reported_present']):
        report.add(CAT, 'low', 'No root llms.txt observed' if not legacy else 'No root llms.txt recorded (legacy context)',
                   llms_resource.note(report.meta),
                   'Optionally publish a curated llms.txt if useful; this is not a required ranking or access control.',
                   rule_id='geo.no.llms.txt', scope='site')

def _ai_crawler_access(ctx, report):
    """Classify root directives by documented purpose, not live bot reachability."""
    robots = ctx.get("robots_txt")
    if robots is None:
        return
    rt = RobotsTxt.parse(robots)
    agents, notes = [], []
    for agent, role, purpose, source, note in _CRAWLER_POLICIES:
        disallowed = rt.disallowed("/", agent)
        agents.append({"agent": agent, "role": role, "purpose": purpose,
                       "source": source, "disallowed": disallowed})
        if disallowed and role != "search_retrieval":
            notes.append({"agent": agent, "text": note, "source": source})
    report.meta["ai_crawler_access"] = {
        "version": 1, "policy_checked": "2026-10-15", "checked_path": "/",
        "basis": "robots_txt_only", "agents": agents, "notes": notes,
    }
    blocked = [row["agent"] for row in agents
               if row["role"] == "search_retrieval" and row["disallowed"]]
    if blocked:
        names = ", ".join(f"{b} ({AI_BOTS[b]})" for b in blocked)
        report.add(CAT, "high", "AI crawlers are blocked in robots.txt",
                   f"robots.txt disallows / for these search/retrieval agents: {names}. "
                   "Only the site root was checked; live access, other paths, indexing and citations are not verified.",
                   "If these search or user-retrieval channels match your goals, review their / directives "
                   "and infrastructure access. Keep deliberate restrictions; do not enable training bots "
                   "as a search fix.", evidence=names, scope="site")
    else:
        report.add(CAT, "good", "Search/retrieval agents are not disallowed at site root",
                   "robots.txt only; live access, other paths, indexing and citations are not verified.",
                   scope="site")

def _entity_clarity(doc, report):
    """A clear subject entity helps AI ground the page. Approximate by checking
    the H1/title share a consistent noun phrase and the page names an org."""
    title = (doc.title or "").lower()
    h1s = [t.lower() for lvl, t in doc.headings if lvl == 1]
    if title and h1s:
        t_words = set(_WORD.findall(title))
        h_words = set(_WORD.findall(h1s[0]))
        if t_words and not (t_words & h_words):
            report.add(CAT, "low", "Title and H1 don't share terms",
                       "The <title> and <h1> have no words in common.",
                       "Align them on the core entity so engines get one clear "
                       "topic signal.")
```

## File: skills/seo-scan/scripts/audit_schema.py
size: 16566
sha: 52701f9b10cff22161b2125e79a872cc6b96dea3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/audit_schema.py

```text
"""Supported JSON-LD, Microdata and bounded schema.org RDFa observations.

Distinguish decoder syntax errors from tool processing gaps, inspect observed
node fields and dated appearance policies, and condition type-nonobservation
advice on extraction scope rather than certifying absence or eligibility.
"""

from __future__ import annotations

try:
    from lib import ecommerce, htmlx, microdata, structured_data, schema_appearance, schema_coverage
    from lib.report import recorded_schema_extraction_problem
except ImportError:  # when imported as a package
    from .lib import ecommerce, htmlx, microdata, structured_data, schema_appearance, schema_coverage  # type: ignore
    from .lib.report import recorded_schema_extraction_problem

CAT = "schema"

# Preserve existing module names while sharing one dated, offline snapshot.
FEATURE_STATUS_CHECKED = schema_appearance.FEATURE_STATUS_CHECKED
DEPRECATED = schema_appearance.DEPRECATED
DEPRECATED_SOURCES = schema_appearance.DEPRECATED_SOURCES
DEPRECATED_ADDITIONAL_SOURCES = schema_appearance.DEPRECATED_ADDITIONAL_SOURCES

# Minimal required-property expectations per common type.
REQUIRED = {
    "Organization": ["name"],
    "LocalBusiness": ["name", "address"],
    "Recipe": ["name", "image"],
    "Event": ["name", "startDate", "location"],
    "JobPosting": ["title", "hiringOrganization", "datePosted"],
    "BreadcrumbList": ["itemListElement"],
    "VideoObject": ["name", "thumbnailUrl", "uploadDate"],
    "Review": ["reviewRating", "author"],
    "Course": ["name", "provider"],
}

ARTICLE_TYPES = {"Article", "NewsArticle", "BlogPosting"}
ARTICLE_SOURCE = "https://developers.google.com/search/docs/appearance/structured-data/article"
ARTICLE_STATUS_CHECKED = "2026-10-12"
ARTICLE_FIELDS = ["headline", "author", "datePublished", "image"]
RECIPE_SOURCE = "https://developers.google.com/search/docs/appearance/structured-data/recipe"
RECIPE_STATUS_CHECKED = "2026-10-12"
RECIPE_FIELDS = ["recipeIngredient", "recipeInstructions", "author", "aggregateRating"]

RECOMMENDED = {
    **{typ: list(ARTICLE_FIELDS) for typ in sorted(ARTICLE_TYPES)},
    "Organization": ["url", "logo"],
    "LocalBusiness": ["telephone", "openingHours", "geo"],
    "Recipe": list(RECIPE_FIELDS),
    "Event": ["endDate", "offers"],
    "VideoObject": ["description", "duration"],
}

def _field_value_present(value, depth=0):
    """Absence/blank evidence only, not datatype or reference validation."""
    if depth >= 16:
        return True  # unknown deeply nested shape, not proven absent
    if value is None:
        return False
    if isinstance(value, str):
        return bool(value.strip())
    if isinstance(value, list):
        return any(_field_value_present(child, depth + 1) for child in value)
    if isinstance(value, dict):
        if not value:
            return False
        if "@value" in value and set(value) <= {"@value", "@language", "@type", "@direction", "@index"}:
            return _field_value_present(value["@value"], depth + 1)
    return True  # preserve non-empty references/unknown shapes, not validity

def _article_policy(typ, report):
    policy = report.meta.setdefault("structured_data", {}).setdefault("article_field_policy", {
        "scope": "Google Article-family field recommendations, not full eligibility or schema.org validity",
        "required_properties": [], "checked_recommendations": list(ARTICLE_FIELDS),
        "checked_on": ARTICLE_STATUS_CHECKED, "source": ARTICLE_SOURCE, "observed_types": [],
    })
    if typ not in policy["observed_types"]:
        policy["observed_types"].append(typ)
        policy["observed_types"].sort()

def _recipe_policy(report):
    """Record offline base-field expectations without claiming full eligibility."""
    report.meta.setdefault("structured_data", {}).setdefault("recipe_field_policy", {
        "scope": "Google Recipe base-field presence, not full eligibility or schema.org validity",
        "required_properties": list(REQUIRED["Recipe"]),
        "checked_recommendations": list(RECIPE_FIELDS),
        "checked_on": RECIPE_STATUS_CHECKED, "source": RECIPE_SOURCE,
        "not_checked": ["conditional nutrition/yield and time relationships", "nested steps/sections",
                        "image crawlability and dish/content suitability", "datatype/language/reference validation"],
    })

def audit(doc, resp, report, ctx=None) -> None:
    blobs = doc.scripts_ld
    diagnostics = []
    records, errors = structured_data.collect(doc, diagnostics=diagnostics)
    report.meta["structured_data"] = structured_data.provenance(doc, records)
    report.meta['structured_data']['extraction_coverage'] = schema_coverage.observe(doc, errors)
    report.meta['structured_data']['jsonld_error_stages'] = {
        'version': 1, 'basis': 'decoder_and_node_processing_exceptions',
        'syntax_errors': sum(d['kind'] == 'syntax' for d in diagnostics),
        'decoder_processing_errors': sum(d['kind'] == 'processing' and d['stage'] == 'decode' for d in diagnostics),
        'node_processing_errors': sum(d['kind'] == 'processing' and d['stage'] == 'nodes' for d in diagnostics),
        'unclassified_errors': max(0, len(errors) - len(diagnostics)),
        'limits': 'Exception-stage observations only, not full JSON/JSON-LD conformance, schema validity, '
                  'exhaustive extraction or engine behavior. Missing legacy classification is not inferred.',
    }
    if doc.microdata_warnings:
        warning = "\n".join(doc.microdata_warnings)
        report.add(CAT, "low", "Microdata extraction needs verification",
                   warning, ("Check item scopes, URLs and itemref targets; validate the rendered markup with the schema.org validator. "
                             + microdata.warning_summary(doc.microdata_warnings)).strip(),
                   evidence=warning, rule_id="schema.microdata.extraction")
    if doc.rdfa_warnings:
        warning = "\n".join(doc.rdfa_warnings)
        report.add(CAT, "low", "RDFa extraction needs verification",
                   warning, ("Check RDFa subjects, vocabulary and coverage limits; validate the rendered markup with the schema.org validator. "
                             + microdata.warning_summary(doc.rdfa_warnings)).strip(),
                   evidence=warning, rule_id="schema.rdfa.extraction")
    if not blobs and not any(structured_data.types(r["node"]) for r in records):
        # Hub/index pages have no single entity to mark up — absence there is a
        # note, not a real gap (articles/products/homepages keep medium).
        if (schema_coverage.state(schema_coverage.meta_receipt(report.meta)) == 'no_known_problem'
                and not recorded_schema_extraction_problem(report.meta)):
            hub = htmlx.is_hub_page(doc)
            report.add(CAT, "low" if hub else "medium",
                       "No structured data",
                       "No JSON-LD, typed Microdata or supported schema.org RDFa was observed in the supported subset; "
                       "this does not certify exhaustive extraction or a markup requirement.",
                       "Review existing markup and the page's real entity before adding applicable semantic markup. "
                       "Preserve valid JSON-LD, Microdata or RDFa; do not invent content or duplicate existing entities. "
                       "Rich-result eligibility, ranking and AI citation benefits are not established."
                       + (" (Least critical on listing/index pages.)" if hub else ""),
                       rule_id="schema.no.structured.data")
        report.meta["ecommerce"] = ecommerce.audit(doc, report)
        return

    found_types = []
    error_kinds = {d['block']: d['kind'] for d in diagnostics}
    for block, error in errors:
        if error_kinds.get(block) == 'syntax':
            report.add(CAT, "high", "Invalid JSON-LD",
                       f"Block #{block} triggered a JSON decoder syntax error; this is not full JSON-LD/schema validation.",
                       "Inspect the original block and repair verified JSON syntax errors. Preserve valid semantic data; "
                       "engine behavior and rich-result eligibility are not measured.", evidence=error)
        else:
            report.add(CAT, 'low', 'JSON-LD processing needs verification',
                       f'Block #{block} could not be fully decoded or processed by this tool; '
                       'a limit/unsupported processing path is not proof of source syntax invalidity.',
                       'Inspect the original block, error evidence and supported tool/parser scope. '
                       'Do not rewrite valid markup or increase recursion/numeric/body limits automatically to clear this note. '
                       'Verify any actual source defect before editing; validity and engine behavior remain unverified.',
                       evidence=error, rule_id='schema.jsonld.processing.unverified')
    # Validate shared unique objects, including nested Microdata/RDFa entities.
    # Distinct defective variants remain evidence, but score a given rule once.
    start = len(report.findings)
    for record in records:
        _validate_node(record["node"], found_types, report)
    kept, seen = report.findings[:start], {}
    for finding in report.findings[start:]:
        if finding.rule_id not in seen:
            kept.append(finding)
            seen[finding.rule_id] = finding
        elif finding.detail not in seen[finding.rule_id].detail:
            seen[finding.rule_id].detail += " Additional node: " + finding.detail
    report.findings = kept

    if found_types:
        report.ok(CAT, "Structured data present",
                  ", ".join(sorted(set(found_types))))
    _cross_checks(doc, found_types, report)
    report.meta["ecommerce"] = ecommerce.audit(doc, report)

def _types_of(node) -> list:
    t = node.get("@type")
    if isinstance(t, list):
        return [str(x) for x in t]
    return [str(t)] if t else []

def _feature_notice(typ, report):
    source = DEPRECATED_SOURCES[typ]
    additional = DEPRECATED_ADDITIONAL_SOURCES.get(typ, [])
    notices = report.meta.setdefault("structured_data", {}).setdefault("google_rich_result_notices", [])
    if not any(notice["type"] == typ for notice in notices):
        notices.append(schema_appearance.notice(typ))
    # Config ignores use title substrings, not rule IDs. Honor the old title
    # as well as the new presentation; factual provenance remains available.
    if report.ignore and report.ignore(CAT, f"Deprecated rich-result type: {typ}"):
        return
    sources = "; ".join([source] + additional)
    other_use = "ClaimReview remains supported by Fact Check Explorer. " if typ == "ClaimReview" else ""
    report.add(CAT, "low", f"Retired Google rich-result feature: {typ}",
               DEPRECATED[typ],
               "Retain accurate markup if useful for semantic meaning or other consumers; do not expect this Google Search rich-result feature. "
               "Retirement alone does not invalidate schema.org markup or establish a ranking penalty. "
               + other_use + f"Google sources (checked {FEATURE_STATUS_CHECKED}): {sources}",
               # Keep the historical identity despite clearer wording.
               rule_id=f"schema.deprecated.rich.result.type.{typ.lower()}")

def _validate_node(node, found_types, report):
    for typ in _types_of(node):
        found_types.append(typ)
        if typ in DEPRECATED:
            _feature_notice(typ, report)
        if typ in ARTICLE_TYPES:
            _article_policy(typ, report)
        if typ == "Recipe":
            _recipe_policy(report)
        for req in REQUIRED.get(typ, []):
            absent = not _field_value_present(node.get(req)) if typ == "Recipe" else req not in node
            if absent:
                recipe = typ == "Recipe"
                report.add(CAT, "high", f"{typ} missing required '{req}'",
                           f"Recipe '{req}' is absent or blank; Google requires it for Recipe rich results."
                           if recipe else f"Schema {typ} lacks the required '{req}' property.",
                           (f"Add an accurate {'completed-dish image' if req == 'image' else 'dish name'} matching the page. "
                            f"This is a base-field check, not full eligibility or schema.org validity; verify conditional, nested and image requirements separately. Source: {RECIPE_SOURCE}")
                           if recipe else f"Add '{req}' — without it the rich result is invalid.")
        if typ in ARTICLE_TYPES or typ == "Recipe":
            missing_rec = [p for p in RECOMMENDED[typ] if not _field_value_present(node.get(p))]
        else:
            missing_rec = [p for p in RECOMMENDED.get(typ, []) if p not in node]
        if typ in ARTICLE_TYPES and "headline" in missing_rec and report.ignore and report.ignore(CAT, f"{typ} missing required 'headline'"):
            missing_rec.remove("headline")  # preserve the old headline-only opt-out
        if typ == "Recipe" and report.ignore:
            missing_rec = [p for p in missing_rec if p not in ("recipeIngredient", "recipeInstructions")
                           or not report.ignore(CAT, f"Recipe missing required '{p}'")]
        if missing_rec:
            article = typ in ARTICLE_TYPES
            recipe = typ == "Recipe"
            if article:
                recommendation = (f"Consider applicable, known {', '.join(missing_rec)} values; do not invent authors or dates. "
                                  f"Google Article markup has no required properties, and this is not an invalidity or eligibility verdict. Source: {ARTICLE_SOURCE}")
            elif recipe:
                recommendation = (f"Add applicable, real {', '.join(missing_rec)} values matching the recipe; do not invent authors or ratings. "
                                  f"Google requires Recipe name and image; ingredients and instructions are recommended. "
                                  f"This is not full eligibility or schema.org validity; verify conditional, nested and image requirements separately. Source: {RECIPE_SOURCE}")
            else:
                recommendation = f"Add {', '.join(missing_rec)} to strengthen the {typ} entity."
            report.add(CAT, "low", f"{typ} missing recommended properties",
                       f"Recommended fields absent{' or blank' if article or recipe else ''}: {', '.join(missing_rec)}.",
                       recommendation)

def _cross_checks(doc, found_types, report):
    # An unobserved type may be in the portion the extractor could not inspect.
    # Node-level validation above remains active for positively observed objects.
    if (schema_coverage.state(schema_coverage.meta_receipt(report.meta)) != 'no_known_problem'
            or recorded_schema_extraction_problem(report.meta)):
        return
    has_article = any(t in found_types for t in ("Article", "NewsArticle", "BlogPosting"))
    # Shared page-type heuristic (og:type / published_time / single <article>) —
    # raw text length alone misread text-heavy homepages as articles.
    if htmlx.looks_article(doc) and not has_article:
        report.add(CAT, "low", "Article-like page without Article schema",
                   "The page-type heuristic suggests an article, but no Article/BlogPosting/NewsArticle "
                   "type was observed in the supported subset; this is not proof of absence or suitability.",
                   "Review the actual page purpose and existing markup before adding an applicable Article type. "
                   "Use only real visible content and known authors/dates; preserve valid supported formats. "
                   "No rich-result eligibility, ranking or AI attribution benefit is verified.")
    if not any(t in found_types for t in ("Organization", "LocalBusiness", "WebSite")):
        report.add(CAT, "low", "No Organization/WebSite entity",
                   "No Organization, LocalBusiness or WebSite type was observed in this page's supported subset; "
                   "this is not a whole-site identity or exhaustive-extraction check.",
                   "Review existing publisher/site markup and intended consumer before adding applicable entity data. "
                   "Do not duplicate entities, invent publisher facts or add both types automatically. "
                   "Preserve valid JSON-LD, Microdata or RDFa; eligibility and ranking benefits are not established.")
```

## File: skills/seo-scan/scripts/audit_technical.py
size: 21514
sha: 1baf31f9da2e07678853513457bf696f26f0ca5b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/audit_technical.py

```text
"""Technical SEO auditor.

Checks the crawlability and indexability signals that determine whether a page
can rank at all: title/meta, headings, canonical, robots directives, viewport,
hreflang, images, links, and a few HTTP-header hygiene checks.
"""

from __future__ import annotations

import json
from urllib.parse import urljoin, urlparse

try:
    from lib import htmlx
    from lib import jsdiff
    from lib import links
    from lib import sitemap as sm
    from lib import indexing
    from lib import canonical
    from lib import hreflang
except ImportError:  # when imported as a package
    from .lib import htmlx  # type: ignore
    from .lib import jsdiff  # type: ignore
    from .lib import links  # type: ignore
    from .lib import sitemap as sm  # type: ignore
    from .lib import indexing  # type: ignore
    from .lib import canonical  # type: ignore
    from .lib import hreflang  # type: ignore

CAT = "technical"
ANCHOR_WITNESSES = 5

def audit(doc, resp, report, ctx=None) -> None:
    ctx = ctx or {}
    th = ctx.get("thresholds", {})
    _title(doc, report, th)
    _description(doc, report, th)
    _headings(doc, report)
    _canonical(doc, resp, report)
    _robots_directives(doc, report)
    _http_robots(resp, report)
    _viewport_lang(doc, report)
    _hreflang(doc, report)
    _images(doc, report)
    _links(doc, resp, report)
    _http_hygiene(resp, report)
    _robots_txt(ctx, report)
    _sitemap(ctx, report)
    _noscript_only(doc, report)
    if ctx.get("jsdep"):   # only present when a --render scan measured it
        jsdiff.technical_findings(ctx["jsdep"], report)

def _noscript_only(doc, report):
    """JS-shell pages that serve their real content only inside <noscript>.

    Non-rendering crawlers (and most AI fetchers) do read the fallback, so it's
    not invisible — but it's a second-class, historically spam-adjacent signal,
    and rendering crawlers see a *different* document than non-rendering ones."""
    visible = len((doc.text or "").split())
    fallback = len((doc.noscript_text or "").split())
    if visible < 20 and fallback >= 50:
        report.add(CAT, "medium", "Content served only as a <noscript> fallback",
                   f"{visible} words of regular body text vs {fallback} words "
                   "inside <noscript>.",
                   "Server-render (SSR/SSG) the main content so JS and non-JS "
                   "crawlers see the same document; verify the rendered page "
                   "with --render matches the fallback.")

def _title(doc, report, th=None):
    th = th or {}
    lo, hi = th.get("title_min", 15), th.get("title_max", 65)
    t = doc.title
    if not t:
        report.add(CAT, "critical", "Missing <title>",
                   "The page has no title element.",
                   "Add a unique, descriptive <title> of ~50–60 characters.")
        return
    n = len(t)
    if n < lo:
        # A homepage title that is just the brand name is normal practice, not a
        # ranking emergency — flagging it "high" was noise on most real sites.
        if htmlx.is_homepage(doc):
            report.add(CAT, "low", "Homepage title is just the brand",
                       f"Title is {n} characters.",
                       "Fine for a known brand; consider \"Brand — what you do\" "
                       "(~50–60 chars) to also rank for the value proposition.",
                       evidence=t)
        else:
            report.add(CAT, "high", "Title is very short",
                       f"Title is {n} characters.",
                       "Expand to ~50–60 characters with the primary query and brand.",
                       evidence=t)
    elif n > hi:
        report.add(CAT, "medium", "Title may be truncated in SERPs",
                   f"Title is {n} characters (>{hi} often truncates).",
                   "Trim to ~50–60 characters, front-loading the key phrase.",
                   evidence=t)
    else:
        report.ok(CAT, "Title length is in range", f"{n} characters")

def _description(doc, report, th=None):
    th = th or {}
    lo, hi = th.get("meta_desc_min", 70), th.get("meta_desc_max", 165)
    d = doc.meta_by_name("description")
    if not d:
        report.add(CAT, "high", "Missing meta description",
                   "No <meta name=\"description\"> found.",
                   "Add a compelling 140–160 character summary with the target query.")
        return
    n = len(d)
    if n < lo:
        report.add(CAT, "low", "Meta description is short",
                   f"Description is {n} characters.",
                   "Aim for 140–160 characters to use the full SERP snippet.",
                   evidence=d)
    elif n > hi:
        report.add(CAT, "low", "Meta description may be truncated",
                   f"Description is {n} characters.",
                   "Trim to ~155 characters.", evidence=d)
    else:
        report.ok(CAT, "Meta description length is in range", f"{n} characters")

def _headings(doc, report):
    h1s = [t for lvl, t in doc.headings if lvl == 1]
    if not h1s:
        report.add(CAT, "high", "No H1 heading",
                   "The page has no <h1>.",
                   "Add a single H1 that states the page's main topic.")
    elif len(h1s) > 1:
        report.add(CAT, "medium", "Multiple H1 headings",
                   f"Found {len(h1s)} H1 elements.",
                   "Use one H1; demote the rest to H2/H3.",
                   evidence=" | ".join(h1s[:3]))
    else:
        report.ok(CAT, "Exactly one H1", h1s[0])

    # heading level jumps (e.g. H2 -> H4) hurt outline clarity
    levels = [lvl for lvl, _ in doc.headings]
    for a, b in zip(levels, levels[1:]):
        if b - a > 1:
            report.add(CAT, "low", "Heading levels skip a level",
                       f"An H{a} is followed by an H{b}.",
                       "Keep heading nesting sequential (no H2→H4 jumps).")
            break

def _canonical(doc, resp, report):
    final = resp.final_url or resp.url
    receipt = canonical.observe(doc, final)
    report.meta['canonical_comparison'] = receipt
    can = doc.canonical()
    if receipt['status'] == 'missing':
        report.add(CAT, "medium", "No canonical URL",
                   "No <link rel=\"canonical\"> present.",
                   "Add a self-referencing canonical to consolidate signals.")
        return
    if receipt['status'] == 'unverified':
        report.add(CAT, 'low', 'Review unverified canonical comparison',
                   'A first HTML canonical declaration was observed, but a candidate/comparison URL '
                   'was empty, malformed or outside supported HTTP comparison. ' + canonical.LIMITS,
                   'Inspect the original declaration, HTML base and fetched URL before editing. '
                   'Repair only confirmed source defects; do not add a duplicate canonical or assume '
                   'the target is missing, reachable or selected by a search engine.', evidence=can or '',
                   rule_id='technical.canonical.comparison.unverified')
    elif receipt['status'] == 'differs':
        report.add(CAT, "low", "Canonical points elsewhere",
                   f"Canonical is {can} but fetched URL is {final}. Differing components: "
                   + ', '.join(receipt['differences']) + '. ' + canonical.LIMITS,
                   'Confirm this is intentional (cross-domain/variant canonical). Preserve valid '
                   'consolidation; edit only a verified wrong target. Search-engine selection is unmeasured.',
                   evidence=can)
    else:
        report.ok(CAT, 'Self-referencing canonical', str(can) + '. ' + canonical.LIMITS)

def _generic_meta_robots(doc):
    """Collect exact restriction names across active generic robots meta tags.

    Parameter names/values are not standalone rules (e.g. image-preview:none),
    but standalone names before a parameter remain observable.
    Keep one bounded positional witness per recognized name, scanning every tag.
    """
    observed = {}
    for position, meta in enumerate(doc.meta, 1):
        if (meta.get('name') or '').lower() != 'robots':
            continue
        for token in indexing.restriction_names(meta.get('content') or ''):
            observed.setdefault(token, position)
    rules = indexing.expand(observed)
    evidence = '; '.join(f'meta robots #{position}: {token}'
                         for token, position in sorted(observed.items()))
    return rules, evidence

def _robots_directives(doc, report):
    named = indexing.crawler_meta(doc.meta)
    if named:
        report.meta['crawler_meta_robots'] = named
    robots, evidence = _generic_meta_robots(doc)
    if 'noindex' in robots:
        report.add(CAT, "critical", "Page is set to noindex",
                   "Generic meta robots declares 'noindex' or its 'none' alias.",
                   "Remove the restricting directive only if this page should appear in search results.",
                   evidence=evidence)
    if 'nofollow' in robots:
        report.add(CAT, "medium", "Page-level nofollow",
                   "Generic meta robots declares 'nofollow' or its 'none' alias.",
                   "Review this directive if crawlers should follow page links; this check does not measure crawler behavior.",
                   evidence=evidence)
    if 'noindex' not in robots:
        report.add(CAT, 'good', 'No generic meta noindex detected',
                   'Generic meta robots observation only; it excludes HTTP headers and crawler-specific meta. '
                   'Absence is not proof of indexability.',
                   rule_id='technical.page.is.indexable')

def _http_robots(resp, report):
    """Score only observed unprefixed restrictions; named scopes are policy notes."""
    fields = getattr(resp, 'robots_header_fields', None)
    basis = getattr(resp, 'robots_header_basis', 'merged_or_unknown')
    if fields is None:
        value = next((value for key, value in resp.headers.items() if key.lower() == 'x-robots-tag'), '')
        fields = [value] if value else []
        basis = 'merged_or_unknown'
    if not fields:
        return
    receipt, witnesses = indexing.http_robots(fields, basis)
    report.meta['http_robots'] = receipt
    recommendation = ('Review the hosting/CDN/middleware response-header owner; remove the restriction only if unintended. '
                      'Changing HTML meta tags alone does not remove this header.')
    if 'noindex' in receipt['generic']:
        report.add(CAT, 'critical', 'HTTP X-Robots-Tag declares noindex',
                   'An unprefixed response-header rule declares noindex (including the none alias). '
                   'This observes a declaration, not live search inclusion.', recommendation,
                   evidence=witnesses['noindex'], rule_id='technical.http.robots.noindex')
    if 'nofollow' in receipt['generic']:
        report.add(CAT, 'medium', 'HTTP X-Robots-Tag declares nofollow',
                   'An unprefixed response-header rule declares nofollow (including the none alias). '
                   'This observes a declaration, not actual crawler behavior.', recommendation,
                   evidence=witnesses['nofollow'], rule_id='technical.http.robots.nofollow')

def _viewport_lang(doc, report):
    if not doc.meta_by_name("viewport"):
        report.add(CAT, "high", "No responsive viewport tag",
                   "Missing <meta name=\"viewport\">.",
                   "Add <meta name=\"viewport\" content=\"width=device-width, "
                   "initial-scale=1\"> for mobile-first indexing.")
    else:
        report.ok(CAT, "Responsive viewport declared")
    if not doc.lang:
        report.add(CAT, "low", "No lang attribute on <html>",
                   "The <html> element has no lang.",
                   "Set <html lang=\"…\"> to aid rendering and localization.")

def _hreflang(doc, report):
    alts = doc.links_by_rel("alternate")
    hreflangs = [l for l in alts if l.get("hreflang") is not None]
    receipt = {}
    hreflang.extract(doc, report.final_url or report.url, diagnostics=receipt)
    report.meta['hreflang_policy_basis'] = hreflang.EXTRACTION_BASIS
    report.meta['hreflang_extraction'] = receipt
    if not hreflangs:
        return
    seen = {}
    for l in hreflangs:
        code = l.get("hreflang").strip().lower()
        seen[code] = seen.get(code, 0) + 1
    dupes = [c for c, n in seen.items() if n > 1]
    if dupes:
        report.add(CAT, "medium", "Duplicate hreflang entries",
                   f"Repeated hreflang codes: {', '.join(dupes)}.",
                   "Each hreflang value should map to exactly one URL.")
    if "x-default" not in seen:
        report.add(CAT, "low", "No x-default hreflang",
                   'No x-default declaration observed; an unmatched-locale fallback is optional, not a universal requirement.',
                   'Review whether an existing intended fallback should be declared as x-default. '
                   'Do not invent a page or add a fallback solely to clear this contextual review.')
    if hreflang.unverified(report.meta):
        report.add(CAT, 'low', 'HTML hreflang URL declarations need review', hreflang.note(report.meta),
                   'If these are intended language alternatives, confirm their fully-qualified HTTP(S) page URLs '
                   'and correct only the relevant declarations. Do not invent language pages or treat source '
                   'omissions as HTTP failures; re-scan before relationship or score claims.',
                   rule_id='technical.hreflang.urls.review')
    if not dupes and not hreflang.unverified(report.meta):
        report.add(CAT, 'good', 'hreflang declarations observed',
                  f"{len(hreflangs)} declarations with supported source URLs; not search acceptance or language equivalence.",
                  rule_id='technical.hreflang.cluster.present')

def _images(doc, report):
    total = len(doc.images)
    if not total:
        return
    missing = [i for i in doc.images if not (i.get("alt") is not None)]
    if missing:
        report.add(CAT, "medium", "Images missing alt text",
                   f"{len(missing)} of {total} <img> tags have no alt attribute.",
                   "Add descriptive alt text (empty alt=\"\" only for decorative images).")
    else:
        report.ok(CAT, "All images have alt attributes", f"{total} images")
    if not any(i.get("loading") == "lazy" for i in doc.images) and total > 5:
        report.add(CAT, "low", "No lazy-loaded images",
                   f"{total} images and none use loading=\"lazy\".",
                   "Add loading=\"lazy\" to below-the-fold images to improve LCP.")

def _anchor_evidence(count, witnesses):
    """Omit credential-like hrefs; keep other witnesses as reversible literal JSON."""
    safe_witnesses = []
    for witness in witnesses:
        item = dict(witness)
        if links.has_credential_like_marker(item['href']):
            item['href'] = None
            item['href_omitted'] = 'credential_like_marker'
        safe_witnesses.append(item)
    return json.dumps({'scope': 'Source anchor observations; destinations not checked.',
                       'observed_count': count, 'witnesses': safe_witnesses},
                      indent=2, ensure_ascii=True).replace('`', '\`')

def _links(doc, resp, report):
    empty = 0
    generic = 0
    invalid = 0
    empty_witnesses, generic_witnesses, invalid_witnesses = [], [], []
    base_url = resp.final_url or resp.url
    effective, receipt = links.document_base(doc, base_url, csp=resp.headers.get('content-security-policy', ''))
    report.meta['anchor_resolution_basis'] = links.RESOLUTION_BASIS
    if receipt is not None:
        report.meta['anchor_base'] = receipt
    for a in doc.links:
        href = a.get("href") or ""
        if not href or href.startswith("#") or href.startswith("javascript:"):
            continue
        try:
            links.resolve_anchor(href, base_url, effective)
        except ValueError:
            invalid += 1
            if len(invalid_witnesses) < ANCHOR_WITNESSES:
                invalid_witnesses.append({'href': href})
        # Google documents image alt text and an otherwise-empty anchor's title
        # as source fallbacks. Keep them separate from visible/page text.
        text = (htmlx.collapse(a.text) or htmlx.collapse(a.image_alt_text)
                or htmlx.collapse(a.get("title")))
        if not text:
            empty += 1
            if len(empty_witnesses) < ANCHOR_WITNESSES:
                empty_witnesses.append({'href': href, 'label': text})
        elif text.lower() in ("click here", "read more", "here", "link", "more"):
            generic += 1
            if len(generic_witnesses) < ANCHOR_WITNESSES:
                generic_witnesses.append({'href': href, 'label': text})
    if invalid:
        report.add(CAT, "low", "Malformed HTTP link URLs",
                   f"{invalid} <a> href value(s) have invalid HTTP URL syntax and are omitted "
                   "from HTTP link collection and crawl discovery. No network failure is inferred.",
                   "Correct the link host, IPv6 brackets or port, then re-scan. "
                   "Syntax rejection does not establish whether a destination is reachable.",
                   rule_id="technical.links.invalid.url",
                   evidence=_anchor_evidence(invalid, invalid_witnesses))
    if empty:
        report.add(CAT, "low", "Links with no anchor text",
                   f"{empty} <a> tags have no text, image alt text or title fallback.",
                   "Give links descriptive text or meaningful image alt text. "
                   "A title is only a fallback, not a full accessibility fix.",
                   evidence=_anchor_evidence(empty, empty_witnesses))
    if generic:
        report.add(CAT, "low", "Generic anchor text",
                   f"{generic} links use phrases like 'click here'.",
                   "Review link purpose and surrounding context; use descriptive labels where helpful. "
                   "Keep concise navigation and avoid keyword insertion solely to change this phrase count.",
                   evidence=_anchor_evidence(generic, generic_witnesses))

def _http_hygiene(resp, report):
    if resp.redirects:
        chain = len(resp.redirects)
        if chain > 1:
            report.add(CAT, "low", "Redirect chain",
                       f"{chain} redirects before the final URL.",
                       "Collapse to a single 301 to preserve equity and speed.")
    scheme = urlparse(resp.final_url or resp.url).scheme
    if scheme != "https":
        report.add(CAT, "critical", "Page not served over HTTPS",
                   f"Final URL scheme is {scheme}.",
                   "Serve all pages over HTTPS with a valid certificate.")
    ct = (resp.headers.get("content-type") or "").lower()
    if ct and "text/html" not in ct:
        report.add(CAT, "low", "Unexpected content-type",
                   f"Content-Type is {ct}.", "Confirm the document is served as text/html.")
    if not resp.headers.get("content-encoding") and resp.headers:
        report.add(CAT, "low", "No compression header",
                   "Response has no Content-Encoding (gzip/br).",
                   "Enable gzip or Brotli compression to cut transfer size.")

def _robots_txt(ctx, report):
    robots = ctx.get("robots_txt")
    if robots is None:
        report.add(CAT, "medium", "No robots.txt found",
                   "Could not fetch /robots.txt.",
                   "Add a robots.txt; reference the XML sitemap in it.")
        return
    rejected = {}
    references = sm.robots_sitemaps(robots, diagnostics=rejected)
    if rejected:
        report.add(CAT, "low", "Rejected sitemap URL references",
                   sm.reference_note(sm.reference_diagnostics(rejected)),
                   "Use absolute HTTP(S) sitemap URLs with valid hosts and ports in robots.txt. "
                   "Correct rejected references and re-scan; syntax checks do not prove reachability.",
                   rule_id="technical.sitemap.invalid.references", scope="site")
        return  # do not endorse invalid directives as a passing sitemap reference
    if not references:
        report.add(CAT, "low", "robots.txt has no Sitemap directive",
                   "No 'Sitemap:' line in robots.txt.",
                   "Add 'Sitemap: https://…/sitemap.xml' to robots.txt.")
    else:
        report.ok(CAT, "robots.txt references a sitemap")

def _sitemap(ctx, report):
    value = ctx.get('sitemap_discovery')
    receipt = sm.recorded_discovery(value)
    if value is not None:
        report.meta['sitemap_discovery'] = receipt or {'basis': 'unrecognized'}
    found = ctx.get('sitemap_found') if value is None else bool(receipt and receipt['verified_files'])
    if found:
        report.ok(CAT, "XML sitemap reachable", ctx.get("sitemap_url", ""))
    elif sm.discovery_note(value):
        return  # coverage note, not proof of absence or a source penalty
    else:
        report.add(CAT, "medium", "No XML sitemap found",
                   "No sitemap.xml at the common locations or in robots.txt.",
                   "Publish an XML sitemap and submit it in Search Console.")

def _norm(url: str):
    """Compatibility alias for the shared, local component-comparison key."""
    return canonical.key(url)
```

## File: skills/seo-scan/scripts/brief.py
size: 34724
sha: 7dbd20687ab77b223ead76cce095159f9a701511
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/brief.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/brief.py

## File: skills/seo-scan/scripts/cli.py
size: 3527
sha: c4433cfc17d16d3e8265919044b7404fc63fba5f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/cli.py

```text
"""Unified ``narwhal`` command — dispatches to the scan/crawl/schema tools.

This is a thin router so the same code works three ways with no duplication:
  - ``narwhal scan|crawl|schema …``            (installed via uvx/pip)
  - ``python -m narwhal scan …``               (installed package)
  - ``python scan.py …`` / ``crawl_site.py``   (cloned repo / Claude Code plugin)

Each subcommand forwards the remaining args to that tool's own ``main()``.
"""

from __future__ import annotations

import sys

try:
    from ._version import __version__
except ImportError:  # running as loose scripts
    from _version import __version__

USAGE = """narwhal — SEO & GEO/LLMO scanner

Usage:
  narwhal audit <url> [options]     Comprehensive site audit (page + crawl + sitemap)
  narwhal scan <url> [options]      Audit a single page
  narwhal compare <you> <rival...>  Side-by-side competitor gap analysis (local-first)
  narwhal brief <you> <rival...>    Page-grounded content brief (--gsc adds own queries)
                                    --topic "…" plans a new page
  narwhal crawl <url> [options]     Audit a whole site (sitemap/link discovery)
  narwhal schema <Type> [options]   Generate schema.org JSON-LD
  narwhal sitemap <url> [options]   Validate a site's XML sitemap(s)
  narwhal llms <url> [options]      Generate a starter llms.txt
  narwhal diff <old.json> <new.json>  Compare two JSON reports (regression tracking)
  narwhal plan <report.json> [--repo .]  Map findings to source owners and verification
  narwhal render <file.md> [options]  Render a Markdown report as branded HTML/PDF
  narwhal vitals <url> [options]    Real Core Web Vitals from CrUX (opt-in; needs an API key)
  narwhal gsc <url> [options]       Real Search Console query data — striking distance, CTR
                                    laggards, decay, cannibalization (opt-in; OAuth — one-time
                                    setup: narwhal gsc --auth)
  narwhal mcp                         Run the MCP server (stdio) — needs the `mcp` extra
  narwhal --version

Run any subcommand with -h for its options, e.g. `narwhal scan -h`.
"""

def main(argv=None) -> int:
    argv = list(sys.argv[1:] if argv is None else argv)
    if not argv or argv[0] in ("-h", "--help", "help"):
        print(USAGE)
        return 0
    if argv[0] in ("-V", "--version", "version"):
        print(f"narwhal {__version__}")
        return 0

    cmd, rest = argv[0], argv[1:]
    module = {
        "scan": "scan",
        "audit": "audit",
        "compare": "compare",
        "brief": "brief",
        "crawl": "crawl_site",
        "crawl_site": "crawl_site",
        "schema": "generate_schema",
        "sitemap": "validate_sitemap",
        "llms": "generate_llms",
        "diff": "diff_scan",
        "plan": "plan",
        "render": "render_report",
        "vitals": "crux",
        "crux": "crux",
        "gsc": "gsc",
        "mcp": "mcp_server",
    }.get(cmd)
    if module is None:
        print(f"Unknown command: {cmd!r}\n", file=sys.stderr)
        print(USAGE, file=sys.stderr)
        return 2

    mod = _load(module)
    return mod.main(rest)

def _load(name):
    """Import a sibling tool module whether we're a package or loose scripts."""
    try:
        import importlib
        return importlib.import_module(f".{name}", __package__ or "")
    except (ImportError, TypeError):
        import importlib
        return importlib.import_module(name)

if __name__ == "__main__":
    raise SystemExit(main())
```

## File: skills/seo-scan/scripts/compare.py
size: 23109
sha: 688d0a211d3635292c7615fcb32008b91b307596
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/compare.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/compare.py

## File: skills/seo-scan/scripts/crawl_site.py
size: 46729
sha: f75a82fbe5c4355cfc4cd0d1687aa7a758cb22f7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/crawl_site.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/crawl_site.py

## File: skills/seo-scan/scripts/crux.py
size: 11154
sha: 3e3a10b4fce88f6cef3b585e3cc31fcbdc1e41ac
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/crux.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/crux.py

## File: skills/seo-scan/scripts/diff_scan.py
size: 46366
sha: 35f6b227a8d14beeba60ad176fc7b010391c1167
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/diff_scan.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/diff_scan.py

## File: skills/seo-scan/scripts/generate_llms.py
size: 10847
sha: a369000ca6dc3331a110f500659ccfd5abebb4d1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/generate_llms.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/generate_llms.py

## File: skills/seo-scan/scripts/generate_schema.py
size: 8106
sha: 03eb6ba04ca82c8129f594f9eb45113afcbb2124
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/generate_schema.py

```text
#!/usr/bin/env python3
"""Generate valid schema.org JSON-LD for the common rich-result types.

Emits a ready-to-paste ``<script type="application/ld+json">`` block with the
required and recommended properties for a type, filled from ``--field key=value``
pairs. Unknown required fields are left as clearly-marked TODO placeholders so
nothing silently ships incomplete.

Usage:
    python generate_schema.py Article --field headline="How GEO works" \
        --field author="Jane Doe" --field datePublished=2026-01-15
    python generate_schema.py --list
    python generate_schema.py LocalBusiness --field name="Acme" --pretty
"""

from __future__ import annotations

import argparse
import json
import sys

try:
    from .lib.json_input import DuplicateKeyError, unique_object
except ImportError:  # standalone script
    from lib.json_input import DuplicateKeyError, unique_object

CONTEXT = "https://schema.org"

# type -> (required, recommended). Kept in sync with audit_schema.py.
TEMPLATES = {
    "Article": ([], ["headline", "author", "datePublished", "dateModified", "image", "publisher"]),
    "BlogPosting": ([], ["headline", "author", "datePublished", "image"]),
    "NewsArticle": ([], ["headline", "author", "datePublished", "image", "publisher"]),
    "Product": (["name"], ["image", "description", "brand", "url", "offers", "aggregateRating", "sku"]),
    "Organization": (["name"], ["url", "logo", "sameAs", "contactPoint"]),
    "LocalBusiness": (["name", "address"], ["telephone", "openingHours", "geo", "priceRange", "url"]),
    "WebSite": (["name", "url"], ["potentialAction"]),
    "BreadcrumbList": (["itemListElement"], []),
    "FAQPage": (["mainEntity"], []),
    "Recipe": (["name", "image"], ["recipeIngredient", "recipeInstructions", "author", "aggregateRating", "cookTime"]),
    "Event": (["name", "startDate", "location"], ["endDate", "offers", "description", "image"]),
    "JobPosting": (["title", "hiringOrganization", "datePosted"], ["employmentType", "jobLocation", "baseSalary"]),
    "VideoObject": (["name", "thumbnailUrl", "uploadDate"], ["description", "duration", "contentUrl"]),
    "Person": (["name"], ["url", "jobTitle", "sameAs", "image"]),
    "Course": (["name", "provider"], ["description", "offers"]),
}

# Sensible structured placeholders for non-scalar required fields.
STRUCT_PLACEHOLDER = {
    "address": {"@type": "PostalAddress", "streetAddress": "TODO", "addressLocality": "TODO",
                "addressRegion": "TODO", "postalCode": "TODO", "addressCountry": "TODO"},
    "author": {"@type": "Person", "name": "TODO author name"},
    "publisher": {"@type": "Organization", "name": "TODO", "logo": {"@type": "ImageObject", "url": "TODO"}},
    "location": {"@type": "Place", "name": "TODO", "address": "TODO"},
    "hiringOrganization": {"@type": "Organization", "name": "TODO"},
    "provider": {"@type": "Organization", "name": "TODO"},
    "offers": {"@type": "Offer", "price": "TODO current price",
               "priceCurrency": "TODO ISO 4217 currency",
               "availability": "TODO schema.org ItemAvailability",
               "url": "TODO canonical offer URL",
               "itemCondition": "TODO schema.org item condition",
               "seller": {"@type": "Organization", "name": "TODO seller name"}},
    "geo": {"@type": "GeoCoordinates", "latitude": "TODO", "longitude": "TODO"},
    "itemListElement": [{"@type": "ListItem", "position": 1, "name": "TODO", "item": "TODO-url"}],
    "recipeInstructions": ["TODO step 1", "TODO step 2"],
    "recipeIngredient": ["TODO ingredient"],
    "mainEntity": [{"@type": "Question", "name": "TODO question?",
                    "acceptedAnswer": {"@type": "Answer", "text": "TODO answer."}}],
}

def build(type_name: str, fields: dict, include_recommended: bool = True) -> dict:
    if type_name not in TEMPLATES:
        raise SystemExit(f"Unknown type {type_name!r}. Use --list to see supported types.")
    required, recommended = TEMPLATES[type_name]
    node = {"@context": CONTEXT, "@type": type_name}
    keys = list(required) + (recommended if include_recommended else [])
    for key in keys:
        if key in fields:
            node[key] = _coerce(fields[key])
        elif key in required:
            node[key] = STRUCT_PLACEHOLDER.get(key, f"TODO: {key} (required)")
        elif key in STRUCT_PLACEHOLDER:
            node[key] = STRUCT_PLACEHOLDER[key]
        else:
            node[key] = f"TODO: {key} (recommended)"
    # allow arbitrary extra fields the caller passed
    for k, v in fields.items():
        if k not in node:
            node[k] = _coerce(v)
    try:
        # Detach caller fields and shared placeholders, enforcing JSON value types.
        return json.loads(json.dumps(node, allow_nan=False, ensure_ascii=False).encode('utf-8'),
                          object_pairs_hook=unique_object)
    except DuplicateKeyError:
        raise ValueError('Schema fields contain colliding JSON object keys; supply unique string keys.') from None
    except (TypeError, ValueError, RecursionError):
        raise ValueError('Schema fields must be finite UTF-8 JSON-compatible values within supported serialization limits.') from None

def _coerce(value):
    if not isinstance(value, str):
        return value
    v = value.strip()
    if v.startswith(("{", "[")):
        duplicate = False

        def admit_object(pairs):
            nonlocal duplicate
            try:
                return unique_object(pairs)
            except DuplicateKeyError:
                duplicate = True
                return {}

        try:
            decoded = json.loads(v, object_pairs_hook=admit_object)
        except json.JSONDecodeError:
            return value
        except (ValueError, RecursionError):
            raise ValueError('JSON field cannot be decoded within supported parser limits.') from None
        # Defer rejection so malformed JSON keeps its literal-string fallback.
        if duplicate:
            raise ValueError('JSON field contains duplicate object keys; supply unique keys.') from None
        return decoded
    return value

def main(argv=None) -> int:
    ap = argparse.ArgumentParser(description="Generate schema.org JSON-LD")
    ap.add_argument("type", nargs="?", help="schema type, e.g. Article, Product")
    ap.add_argument("--field", action="append", default=[], metavar="KEY=VALUE",
                    help="set a property (repeatable); value may be JSON")
    ap.add_argument("--list", action="store_true", help="list supported types")
    ap.add_argument("--no-recommended", action="store_true",
                    help="emit only required properties")
    ap.add_argument("--raw", action="store_true",
                    help="print bare JSON without the <script> wrapper (not HTML-escaped)")
    ap.add_argument("--pretty", action="store_true", help="alias for default pretty output")
    args = ap.parse_args(argv)

    try:
        sys.stdout.reconfigure(encoding="utf-8", errors="replace")
    except (AttributeError, ValueError):
        pass

    if args.list or not args.type:
        print("Supported types:\n  " + "\n  ".join(sorted(TEMPLATES)))
        return 0

    fields = {}
    for item in args.field:
        if "=" not in item:
            raise SystemExit(f"--field must be KEY=VALUE, got {item!r}")
        k, v = item.split("=", 1)
        fields[k.strip()] = v
    try:
        node = build(args.type, fields, include_recommended=not args.no_recommended)
    except ValueError as exc:
        print(f'Error: {exc}', file=sys.stderr)
        return 2
    blob = json.dumps(node, indent=2, ensure_ascii=False)
    if args.raw:
        print(blob)
    else:
        # JSON quoting alone does not prevent HTML's script-closing delimiter.
        blob = blob.replace('<', '\<')
        print('<script type="application/ld+json">')
        print(blob)
        print("</script>")
    if "TODO" in blob:
        print("\n# NOTE: replace all TODO placeholders before publishing.",
              file=sys.stderr)
    return 0

if __name__ == "__main__":
    raise SystemExit(main())
```

## File: skills/seo-scan/scripts/gsc.py
size: 24418
sha: db89d0c4631a5b9948bf09ef692c7092fa52fe74
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/gsc.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/gsc.py

## File: skills/seo-scan/scripts/lib/__init__.py
size: 47
sha: 45cbee0ab07c542f6f88388404e5c648c6d533d1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/__init__.py

```text
"""Shared library for the seo-scan toolkit."""
```

## File: skills/seo-scan/scripts/lib/authorship.py
size: 13152
sha: 62d6ed83573380f99be01be89cc132bd540383ee
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/authorship.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/authorship.py

## File: skills/seo-scan/scripts/lib/brand.py
size: 24372
sha: 2caf38072765fa1b0a9ce56a7434f1b0e28c0244
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/brand.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/brand.py

## File: skills/seo-scan/scripts/lib/budgets.py
size: 553
sha: 6d1aabf8d4033dfc316b224d4ec2be4a3c418e54
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/budgets.py

```text
"""Integer request and byte limits shared by toolkit entrypoints."""

def nonnegative_integer(value, name: str) -> None:
    """Reject invalid caps without coercing booleans, fractions or missing data."""
    if type(value) is not int or value < 0:
        raise ValueError(f'{name} must be a nonnegative integer.')

def positive_integer(value, name: str) -> None:
    """Reject zero and invalid byte budgets without coercing caller data."""
    if type(value) is not int or value <= 0:
        raise ValueError(f'{name} must be a positive integer.')
```

## File: skills/seo-scan/scripts/lib/canonical.py
size: 7843
sha: 52134a45a0de0148f90f8e47912ad29fcbb78b04
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/canonical.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/canonical.py

## File: skills/seo-scan/scripts/lib/cli_errors.py
size: 758
sha: 11ee3aab7b23b9ad3095e2c11af7ff617ab4feef
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/cli_errors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/cli_errors.py

## File: skills/seo-scan/scripts/lib/code_fences.py
size: 1520
sha: 30f2a4b62070036a4744d291fd6e9f494f1ce0ed
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/code_fences.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/code_fences.py

## File: skills/seo-scan/scripts/lib/config.py
size: 8288
sha: e6d6d227d11f41c0003aa51ae9ab845d4316bf44
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/config.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/config.py

## File: skills/seo-scan/scripts/lib/content_length.py
size: 4937
sha: c5373a45b7e049f13934589e55d998f58fe9bd75
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/content_length.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/content_length.py

## File: skills/seo-scan/scripts/lib/content_quality.py
size: 3519
sha: d6e321d04bf05bdde9e1235fdb7d55e08ad06ec2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/content_quality.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/content_quality.py

## File: skills/seo-scan/scripts/lib/date_cues.py
size: 8862
sha: e725280624e7e7a9f0ed62362812d50b15b5e2ba
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/date_cues.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/date_cues.py

## File: skills/seo-scan/scripts/lib/ecommerce.py
size: 35919
sha: 77b00f8818b7fb4898f825ff944eeb05ae3fcc8b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/ecommerce.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/ecommerce.py

## File: skills/seo-scan/scripts/lib/env.py
size: 2533
sha: baed420b1c5073e90f5753faf122d7530b828563
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/env.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/env.py

## File: skills/seo-scan/scripts/lib/evidence_observation.py
size: 3659
sha: 1871bdb698dad5f5be2903da420cce556ded8e55
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/evidence_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/evidence_observation.py

## File: skills/seo-scan/scripts/lib/finding_urls.py
size: 2393
sha: 475e3589798e9f4bf74866e54ed334f63bb42710
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/finding_urls.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/finding_urls.py

## File: skills/seo-scan/scripts/lib/guides.py
size: 4104
sha: 164dd86a2584e9173760bd86e835a9e69ca315ce
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/guides.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/guides.py

## File: skills/seo-scan/scripts/lib/hreflang.py
size: 20791
sha: af7a0d55f14c44b35219f11875c1cada8f8e3416
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/hreflang.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/hreflang.py

## File: skills/seo-scan/scripts/lib/htmlx.py
size: 17442
sha: 1c66f2cd4a3628e85438ef9d7ba5adfbbbbdaf6e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/htmlx.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/htmlx.py

## File: skills/seo-scan/scripts/lib/http.py
size: 33373
sha: d77aed4b1522386190bfd8cab2a86344e04acdf6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/http.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/http.py

## File: skills/seo-scan/scripts/lib/images.py
size: 12472
sha: 62593991dd7f59a05bef6bf8ebfe8cc8a6891297
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/images.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/images.py

## File: skills/seo-scan/scripts/lib/indexing.py
size: 4304
sha: dc4598ec7990b5c504714310322a16aba0e1486b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/indexing.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/indexing.py

## File: skills/seo-scan/scripts/lib/jsdiff.py
size: 8631
sha: 61c460c208f3e192d9cb43a22ad6bc3b5f661db0
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/jsdiff.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/jsdiff.py

## File: skills/seo-scan/scripts/lib/json_input.py
size: 414
sha: ef9bb81ea0eacfdfd76b117f212d3388b22465fe
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/json_input.py

```text
"""Strict object-key admission for JSON input, without rewriting values."""

class DuplicateKeyError(ValueError):
    """A JSON object repeated a decoded key; never choose a winning value."""

def unique_object(pairs):
    result = {}
    for key, value in pairs:
        if key in result:
            raise DuplicateKeyError('JSON object contains duplicate keys.')
        result[key] = value
    return result
```

## File: skills/seo-scan/scripts/lib/length_observation.py
size: 4911
sha: ad7cb8f4c333a6927eee5bb37e8b0e67df846422
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/length_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/length_observation.py

## File: skills/seo-scan/scripts/lib/lexical_focus.py
size: 6951
sha: ca27eca04ec4cecd8f85a0f11a7275c933d3f612
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/lexical_focus.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/lexical_focus.py

## File: skills/seo-scan/scripts/lib/links.py
size: 9135
sha: 269dced50522f589275a23a398a8482337586ac4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/links.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/links.py

## File: skills/seo-scan/scripts/lib/llms_resource.py
size: 7056
sha: 58765fd000e88d9f1072799355c008325ff8d5f5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/llms_resource.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/llms_resource.py

## File: skills/seo-scan/scripts/lib/markdown_text.py
size: 1106
sha: 6cad2928c453a0f6407dabdfe5232613efcfb009
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/markdown_text.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/markdown_text.py

## File: skills/seo-scan/scripts/lib/merchant_source.py
size: 4932
sha: bb13325b767e7a92a2fc1f7d9f64205896c48d40
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/merchant_source.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/merchant_source.py

## File: skills/seo-scan/scripts/lib/microdata.py
size: 10936
sha: bd7d37bc9bbcc052206f03309e66de9ffe876bc7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/microdata.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/microdata.py

## File: skills/seo-scan/scripts/lib/question_observation.py
size: 3741
sha: a148026d895ac6588097075ea79cfcab092b616d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/question_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/question_observation.py

## File: skills/seo-scan/scripts/lib/rdfa.py
size: 10141
sha: e806ea67cd00e99f0010028fc0c9a18b9853caf6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/rdfa.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/rdfa.py

## File: skills/seo-scan/scripts/lib/readability_observation.py
size: 6433
sha: aaffd608e8aa8311599be602d0281f7cdf4170ac
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/readability_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/readability_observation.py

## File: skills/seo-scan/scripts/lib/report.py
size: 72902
sha: 3f115a18d256d194349bc19755485763fc17847e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/report.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/report.py

## File: skills/seo-scan/scripts/lib/report_output.py
size: 1866
sha: 8d2155d9260ad2ff97bf3494c45896ab343d0454
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/report_output.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/report_output.py

## File: skills/seo-scan/scripts/lib/robots.py
size: 7255
sha: 8d0a7c6f97291c7b241262ee359859390b688c7d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/robots.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/robots.py

## File: skills/seo-scan/scripts/lib/schema_appearance.py
size: 4981
sha: e07ecc574ba9da8adcffdcab1a3b0b72a00847e7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/schema_appearance.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/schema_appearance.py

## File: skills/seo-scan/scripts/lib/schema_coverage.py
size: 4473
sha: ecaa6fd2d44d2471eb041be4d367aebd64ec5b5c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/schema_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/schema_coverage.py

## File: skills/seo-scan/scripts/lib/simhash.py
size: 3276
sha: d232aa795631ffa6eae58b98c3ed373e6d3b2f94
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/simhash.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/simhash.py

## File: skills/seo-scan/scripts/lib/sitegraph.py
size: 11591
sha: e57fbbb9b6c33fe1211ad48d4153d3879d97ac8b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitegraph.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitegraph.py

## File: skills/seo-scan/scripts/lib/sitemap.py
size: 16100
sha: 4606d153f27d8cfc3404dba217e80800578e5ed8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitemap.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitemap.py

## File: skills/seo-scan/scripts/lib/sitemap_discovery.py
size: 3167
sha: ab61ef762de71d7234ac4d2b79ef45089584f905
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitemap_discovery.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/sitemap_discovery.py

## File: skills/seo-scan/scripts/lib/source_parser.py
size: 602
sha: f25dabf3c37611c12ab625ba54ad32fd79ebfc39
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/source_parser.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/source_parser.py

## File: skills/seo-scan/scripts/lib/structured_data.py
size: 8328
sha: 8c44f8b468cdf724a1aa51d82b2231913adcebfc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/structured_data.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/structured_data.py

## File: skills/seo-scan/scripts/lib/subtopic_observation.py
size: 3352
sha: 58c07c56b154faa4de2a1a8409957543dda47e79
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/subtopic_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/subtopic_observation.py

## File: skills/seo-scan/scripts/lib/template_source.py
size: 2451
sha: a9a5344a1d3c81ca3b0a5064682fd52a4c8c1ee5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/template_source.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/template_source.py

## File: skills/seo-scan/scripts/lib/text.py
size: 4519
sha: 4094375c5707165d0ec543f3b6e59ba37c7a7f2f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/text.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/text.py

## File: skills/seo-scan/scripts/lib/urlpaths.py
size: 555
sha: 678a218b43c3c4898cdf0ef134c15acc14e16248
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/urlpaths.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/lib/urlpaths.py

## File: skills/seo-scan/scripts/mcp_server.py
size: 15699
sha: 7bc865ddb41a568d75d6ec1b3426b38857daea96
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/mcp_server.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/mcp_server.py

## File: skills/seo-scan/scripts/plan.py
size: 106028
sha: 7c3cd896e482f8d258cfd68631408a6f25d584d9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/plan.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/plan.py

## File: skills/seo-scan/scripts/psi.py
size: 8196
sha: 0fc139e13c89abc40c7c2cda862324aef8a3eb7d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/psi.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/psi.py

## File: skills/seo-scan/scripts/render_report.py
size: 4149
sha: ff52d415e92442b451878b307615d77a9dea0dd6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/render_report.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/render_report.py

## File: skills/seo-scan/scripts/scan.py
size: 17920
sha: e52dc1c0042d8cd97d23b2da50eff48289167f7b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/scan.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/scan.py

## File: skills/seo-scan/scripts/validate_sitemap.py
size: 13840
sha: b295a9ba9f70aac65f9a0283d1c86d812b846a0f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/validate_sitemap.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/scripts/validate_sitemap.py

## File: skills/seo-scan/references/content-eeat.md
size: 24408
sha: 3b6ca5ace1563194fbd6e682ea7291e598c4e807
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/content-eeat.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/content-eeat.md

## File: skills/seo-scan/references/geo-llmo.md
size: 16676
sha: 5a3cec0c6356c2a3f55769b2a606326fcb0648e2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/geo-llmo.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/geo-llmo.md

## File: skills/seo-scan/references/remediation-plan.schema.json
size: 5207
sha: 1fb6c4eda6702b8442cec4b5fa07e3461c7bfc47
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/remediation-plan.schema.json

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/remediation-plan.schema.json

## File: skills/seo-scan/references/schema.md
size: 33955
sha: 234ee08225c9e906296ea7d704a070c3a64b127e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/schema.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/schema.md

## File: skills/seo-scan/references/technical-seo.md
size: 34010
sha: afae4153fd7e76e9f8136a91eb861fd8d8ebedb1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/technical-seo.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/references/technical-seo.md

## File: skills/seo-scan/requirements.txt
size: 870
sha: ace8fa9880f4d4885ab47197ca9626cfafb5dae5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/requirements.txt

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/requirements.txt

## File: skills/seo-scan/tests/__init__.py
size: 34
sha: cde95b67b4986ad57d0ff8f6163c564629b0ca6a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/__init__.py

```text
"""Offline Narwhal test suite."""
```

## File: skills/seo-scan/tests/_cli_process.py
size: 1714
sha: af0e047624405461f591c3ab115762848606a925
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/_cli_process.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/_cli_process.py

## File: skills/seo-scan/tests/_measurement_browser.py
size: 270
sha: b852da89fdddded6bd016f67b6c284a417622b13
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/_measurement_browser.py

```text
"""Open native measurement details when checking their full evidence contents."""

def expand_measurements(page):
    page.emulate_media(media='screen')
    for summary in page.locator('details.measurement-details:not([open]) > summary').all():
        summary.click()
```

## File: skills/seo-scan/tests/_smoke_support.py
size: 1741
sha: 438187759f3dd5e48fd6730b0b2dc02d25b246d1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/_smoke_support.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/_smoke_support.py

## File: skills/seo-scan/tests/action_cycle_smoke.py
size: 112554
sha: b4c62c3132bcba05d764cda1137caeaee9c9733c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/action_cycle_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/action_cycle_smoke.py

## File: skills/seo-scan/tests/attribution_cue_smoke.py
size: 5170
sha: 586acac75bf24c18f0a3774146946ced6f42539b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/attribution_cue_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/attribution_cue_smoke.py

## File: skills/seo-scan/tests/brand_layout_smoke.py
size: 5270
sha: 5d0d18f61e45579a270c0bf464e7729b89e4b1ef
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/brand_layout_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/brand_layout_smoke.py

## File: skills/seo-scan/tests/canonical_comparison_smoke.py
size: 4835
sha: cae66b805cc162edde632806f845a983ea6750e9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/canonical_comparison_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/canonical_comparison_smoke.py

## File: skills/seo-scan/tests/comparative_evidence_smoke.py
size: 4643
sha: a7a9c9cadd2ac1d09f965e494531fe0a29c0dcf9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/comparative_evidence_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/comparative_evidence_smoke.py

## File: skills/seo-scan/tests/comparative_length_smoke.py
size: 5551
sha: 90f00a1525873d50d5d80e90cf3aab86ddf2fd4b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/comparative_length_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/comparative_length_smoke.py

## File: skills/seo-scan/tests/content_length_smoke.py
size: 4296
sha: 4a81fdd5d7ec6f47ee4d9bb3fa94a6b6e3570aa8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/content_length_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/content_length_smoke.py

## File: skills/seo-scan/tests/crawl_table_smoke.py
size: 4296
sha: f54789fdbf03e17f3ccda37261d6a42ce3652152
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/crawl_table_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/crawl_table_smoke.py

## File: skills/seo-scan/tests/crawl_url_identity_smoke.py
size: 4667
sha: ef51f7e113deada76a0d31c7ae8438f7a0b98474
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/crawl_url_identity_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/crawl_url_identity_smoke.py

## File: skills/seo-scan/tests/date_cues_smoke.py
size: 6232
sha: 5b528c725b43159ff83d4ca0cdd09b9d4fb406c7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/date_cues_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/date_cues_smoke.py

## File: skills/seo-scan/tests/document_base_links_smoke.py
size: 7054
sha: 8ae65b69ff11e3f99b46b5d998e1a3b2aac5f691
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/document_base_links_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/document_base_links_smoke.py

## File: skills/seo-scan/tests/golden_reports.py
size: 2011
sha: 34afa05f9c46502f053903414c4c361237be0fbf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/golden_reports.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/golden_reports.py

## File: skills/seo-scan/tests/graph_depth_coverage_smoke.py
size: 5590
sha: 41024d37e166fb7d3ce9655957b3f3f87556d6da
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/graph_depth_coverage_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/graph_depth_coverage_smoke.py

## File: skills/seo-scan/tests/hreflang_source_smoke.py
size: 7109
sha: 5991338e94d0066bef9a450787ae016fb176530e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/hreflang_source_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/hreflang_source_smoke.py

## File: skills/seo-scan/tests/jsonld_error_stages_smoke.py
size: 4018
sha: fe82713a1cfefdd248ce61ae4f52e2d45b4694ba
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/jsonld_error_stages_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/jsonld_error_stages_smoke.py

## File: skills/seo-scan/tests/lexical_focus_smoke.py
size: 4694
sha: 1d7129eaf26f0b8a5a14b4f81e9081b66416056b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/lexical_focus_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/lexical_focus_smoke.py

## File: skills/seo-scan/tests/measurement_disclosure_smoke.py
size: 6144
sha: 60127c42cbf697ab60d46387c5c04f4ab98c62b6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/measurement_disclosure_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/measurement_disclosure_smoke.py

## File: skills/seo-scan/tests/native_score_table_smoke.py
size: 7561
sha: a2231d35e81bc1b696fb2d1eeea2fdb0b047d79b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/native_score_table_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/native_score_table_smoke.py

## File: skills/seo-scan/tests/page_schema_review_smoke.py
size: 4303
sha: 68136a6f3748af78b315aa125c2ef6dcf1c00b9f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/page_schema_review_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/page_schema_review_smoke.py

## File: skills/seo-scan/tests/question_observation_smoke.py
size: 4924
sha: a2bc049ab4a0be4bd7877782548cd877f1ca2a3e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/question_observation_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/question_observation_smoke.py

## File: skills/seo-scan/tests/quick_win_preview_smoke.py
size: 4822
sha: 8277a7625eee70557ad05f2a3a34df0099a5a6a1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/quick_win_preview_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/quick_win_preview_smoke.py

## File: skills/seo-scan/tests/readability_observation_smoke.py
size: 5828
sha: f1ccbf47bd476247891662d215ee17c8c5c689c9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/readability_observation_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/readability_observation_smoke.py

## File: skills/seo-scan/tests/relative_link_paths_smoke.py
size: 4311
sha: 09cd75f956f5810c62fe9e45c45dc06c4547c97e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/relative_link_paths_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/relative_link_paths_smoke.py

## File: skills/seo-scan/tests/render_smoke.py
size: 12301
sha: 79f291d3a85b680d57f4b02ad3c7a315de80db9b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/render_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/render_smoke.py

## File: skills/seo-scan/tests/rendered_text_evidence_smoke.py
size: 5279
sha: 20287e551905ba7ab96b9a8539968fdf50348337
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/rendered_text_evidence_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/rendered_text_evidence_smoke.py

## File: skills/seo-scan/tests/report_headline_smoke.py
size: 5532
sha: d7da21bea334957b50a28efabdea580b97205487
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/report_headline_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/report_headline_smoke.py

## File: skills/seo-scan/tests/report_table_smoke.py
size: 7435
sha: 78c39ff7ec89309e46eef21e672087cc24713f21
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/report_table_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/report_table_smoke.py

## File: skills/seo-scan/tests/review_capture_smoke.py
size: 4447
sha: 3ada0681c01b850bb6923be9a665a33d4a6f0d2d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/review_capture_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/review_capture_smoke.py

## File: skills/seo-scan/tests/schema_appearance_smoke.py
size: 4689
sha: d3a5903ff23fbe643a581f8e371a0728887dfe9f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_appearance_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_appearance_smoke.py

## File: skills/seo-scan/tests/schema_coverage_smoke.py
size: 5055
sha: c809f3ff14da2b51a89b45b2717d92234acc5000
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_coverage_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_coverage_smoke.py

## File: skills/seo-scan/tests/schema_script_embedding_smoke.py
size: 2684
sha: 75c69354f573186aafbd3cc7a96bde4cb1bd0417
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_script_embedding_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/schema_script_embedding_smoke.py

## File: skills/seo-scan/tests/service_opt_in_smoke.py
size: 6504
sha: 65921ae71154a7bbdd08973c617c921b9daebaf3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/service_opt_in_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/service_opt_in_smoke.py

## File: skills/seo-scan/tests/style_review_smoke.py
size: 4846
sha: 3afd6aaefa1437114bdf7bbf9d6cc51d5986f88b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/style_review_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/style_review_smoke.py

## File: skills/seo-scan/tests/subtopic_observation_smoke.py
size: 4038
sha: a0238435343383dd2b80d92853403a307dd590f0
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/subtopic_observation_smoke.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/subtopic_observation_smoke.py

## File: skills/seo-scan/tests/test_aggregate_ranges.py
size: 9770
sha: 6e68f94f817380ac25e62a99b3c732141451e8f4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_aggregate_ranges.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_aggregate_ranges.py

## File: skills/seo-scan/tests/test_ai_crawler_roles.py
size: 8416
sha: 657941c0ba92f4c03756d8d824191349fe400709
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_ai_crawler_roles.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_ai_crawler_roles.py

## File: skills/seo-scan/tests/test_anchor_source_handoff.py
size: 5692
sha: 397c759eab4bc9a4240970b3c0fd281ae68ff308
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_anchor_source_handoff.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_anchor_source_handoff.py

## File: skills/seo-scan/tests/test_article_fields.py
size: 7704
sha: d815a4ce75bee03e84d8f98db6b6bae5d03d6220
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_article_fields.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_article_fields.py

## File: skills/seo-scan/tests/test_auditors.py
size: 40949
sha: b7bd29bccb95b9ef02f397f4726240c55b4f9d11
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_auditors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_auditors.py

## File: skills/seo-scan/tests/test_authorship_cues.py
size: 19805
sha: cb749fa5852eea30f663e0e0e70cd212323b4542
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_authorship_cues.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_authorship_cues.py

## File: skills/seo-scan/tests/test_brand_layout.py
size: 4000
sha: 23a313cef9e309aea43dfb0a206044b885bc298a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brand_layout.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brand_layout.py

## File: skills/seo-scan/tests/test_brief_grounding.py
size: 4413
sha: f6762c8ebbb637e7b6d051585ea099fca6664c14
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_grounding.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_grounding.py

## File: skills/seo-scan/tests/test_brief_query_coverage.py
size: 7515
sha: 0910c2bc2e7aeaa948ef131abcc67fa42c601429
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_query_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_query_coverage.py

## File: skills/seo-scan/tests/test_brief_query_table.py
size: 2314
sha: 13b913466f70cccbf8b70d3b4cbf3f175c7ee1e8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_query_table.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_query_table.py

## File: skills/seo-scan/tests/test_brief_rule_ownership.py
size: 6359
sha: 3b6e0758e0a58642002fe7f25c229095492b6ba3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_rule_ownership.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_brief_rule_ownership.py

## File: skills/seo-scan/tests/test_canonical_comparison.py
size: 18390
sha: 7294478da4bc4a966217fe85fefa319a3f9b6b3e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_canonical_comparison.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_canonical_comparison.py

## File: skills/seo-scan/tests/test_capture_review_case.py
size: 14629
sha: 8b45c373806fe29eac9c37b8be833204bf2d0e0a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_capture_review_case.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_capture_review_case.py

## File: skills/seo-scan/tests/test_cli_artifact_saves.py
size: 4890
sha: 08132a936babba1e751a223a9468aab74de2ce8e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_artifact_saves.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_artifact_saves.py

## File: skills/seo-scan/tests/test_cli_process.py
size: 4894
sha: 11d1a1c6bb8cfc2d23a6e6862ca03acc6648ae03
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_process.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_process.py

## File: skills/seo-scan/tests/test_cli_url_errors.py
size: 11664
sha: 99fdd50e722e21497f5dec189b79b954bc2838bb
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_url_errors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cli_url_errors.py

## File: skills/seo-scan/tests/test_code_fences.py
size: 7566
sha: 5da3158ab26f351dc79fe7994adb6a5886f78c81
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_code_fences.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_code_fences.py

## File: skills/seo-scan/tests/test_cold_rdfa.py
size: 2670
sha: fe65467ec288743cbc5c1af39a9aec95c1d0296f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cold_rdfa.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_cold_rdfa.py

## File: skills/seo-scan/tests/test_comparative_evidence.py
size: 9632
sha: 6ccc01509fc7debd089bc5529e2533931ecf6457
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparative_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparative_evidence.py

## File: skills/seo-scan/tests/test_comparative_length.py
size: 11258
sha: 8fb064f73f0244bd64ddcc2b31a7b5cc3c7cd252
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparative_length.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparative_length.py

## File: skills/seo-scan/tests/test_compare_rule_ownership.py
size: 5119
sha: 1426a7b76e4f84704fa821dd2973408323b3e91e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_compare_rule_ownership.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_compare_rule_ownership.py

## File: skills/seo-scan/tests/test_compare_target.py
size: 4802
sha: 634ef2ab9af42c9d103c63f6351ce6a5284de677
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_compare_target.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_compare_target.py

## File: skills/seo-scan/tests/test_comparison_budgets.py
size: 9993
sha: b39c0f3d5b5281531cd249fde45abe38170b7f55
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_budgets.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_budgets.py

## File: skills/seo-scan/tests/test_comparison_coverage.py
size: 9914
sha: 196668698e6b39cf73aa3623049caeb857c4e098
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_coverage.py

## File: skills/seo-scan/tests/test_comparison_html_source.py
size: 4976
sha: a96046805ba23ccf87e968c3b4895b37dc5a7fc9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_html_source.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_comparison_html_source.py

## File: skills/seo-scan/tests/test_content_length.py
size: 15910
sha: cc7b499482bbbf42e4d5df3f9852b084b8125070
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_content_length.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_content_length.py

## File: skills/seo-scan/tests/test_content_phrases.py
size: 9567
sha: d30cd56ef01d4dd5f64781cb7ca1fe10fd0a015b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_content_phrases.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_content_phrases.py

## File: skills/seo-scan/tests/test_crawl_budget_validation.py
size: 5295
sha: 8bd80f6fb30ff307a1bceec2dde9ab92e1cd3c63
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_budget_validation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_budget_validation.py

## File: skills/seo-scan/tests/test_crawl_execution_scope.py
size: 17552
sha: 03b65278df4e4ef062391e101b6f9f5ce00f6bcc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_execution_scope.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_execution_scope.py

## File: skills/seo-scan/tests/test_crawl_indexing.py
size: 6280
sha: f3190f7e1e756353182c5b88fcbb261c0a69f15a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_indexing.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_indexing.py

## File: skills/seo-scan/tests/test_crawl_measurement_coverage.py
size: 17196
sha: ad1ac35d6cb7b2628a7626d5ab189494b82731c2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_measurement_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_measurement_coverage.py

## File: skills/seo-scan/tests/test_crawl_pacing.py
size: 5246
sha: 34c7c76a731a5b281292d7368021ab148f71b010
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_pacing.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_pacing.py

## File: skills/seo-scan/tests/test_crawl_priority.py
size: 3670
sha: a3a871f4e2ae4aaf99ad49e89cfe2a01a912bb23
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_priority.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_priority.py

## File: skills/seo-scan/tests/test_crawl_rule_handoff.py
size: 6351
sha: 1b4918abe6dc968a13b2999e0d324a8eedff14d9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_rule_handoff.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_rule_handoff.py

## File: skills/seo-scan/tests/test_crawl_table_literals.py
size: 7557
sha: b2e5d51820820d20f30b7ac5b6c7a6f260bcbe46
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_table_literals.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_table_literals.py

## File: skills/seo-scan/tests/test_crawl_url_identity.py
size: 9760
sha: b151f355b42df9705074ca467d0dfa94cdef45bd
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_url_identity.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawl_url_identity.py

## File: skills/seo-scan/tests/test_crawler_meta.py
size: 6985
sha: e1407552998fcb961144beb24f575019935c8acf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawler_meta.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_crawler_meta.py

## File: skills/seo-scan/tests/test_date_cues.py
size: 14037
sha: e32f41b34d4cc33f7a0051194378192e4aee60a5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_date_cues.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_date_cues.py

## File: skills/seo-scan/tests/test_delivery_errors.py
size: 5366
sha: b7ce1de3889f2bebd006146f99ef73329b1e8147
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_delivery_errors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_delivery_errors.py

## File: skills/seo-scan/tests/test_diff_config.py
size: 8526
sha: 17fddfc93c751de51059d7d32b748f532105a64c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_config.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_config.py

## File: skills/seo-scan/tests/test_diff_crawl_coverage.py
size: 2753
sha: d3bb004495071e273a15199f1b483f1c0a873178
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_coverage.py

## File: skills/seo-scan/tests/test_diff_crawl_rules.py
size: 10937
sha: eecef9556cab4e25372854bc6acc7f3d26a95975
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_rules.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_rules.py

## File: skills/seo-scan/tests/test_diff_crawl_sample.py
size: 5356
sha: 9c19eac94f0769151c1ca55d19b348b40bc270bc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_sample.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_sample.py

## File: skills/seo-scan/tests/test_diff_crawl_setting_presence.py
size: 5620
sha: fd33b7a376a548489a595da6198ad24cb220fac8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_setting_presence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_crawl_setting_presence.py

## File: skills/seo-scan/tests/test_diff_execution_evidence.py
size: 6876
sha: 3148ebf641627dd7350ec4ce494bff78ea061627
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_execution_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_execution_evidence.py

## File: skills/seo-scan/tests/test_diff_explanations.py
size: 4092
sha: 888fa87fa15de164af2b6c8a6786e5205d8953a8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_explanations.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_explanations.py

## File: skills/seo-scan/tests/test_diff_input_contract.py
size: 9282
sha: 5128a0cfc5c5bfa47d26d00452783bfae9cd9834
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_input_contract.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_input_contract.py

## File: skills/seo-scan/tests/test_diff_label_previews.py
size: 6994
sha: bd66850d8fce1810502fe5b362607b9500c73202
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_label_previews.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_label_previews.py

## File: skills/seo-scan/tests/test_diff_new_finding_verdicts.py
size: 8721
sha: 20508d6d1c339981ef015537eec4ed845b1ae28c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_new_finding_verdicts.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_new_finding_verdicts.py

## File: skills/seo-scan/tests/test_diff_output_safety.py
size: 10627
sha: 0a3157434bde6c0682e96094f0acaeb645c06718
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_output_safety.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_output_safety.py

## File: skills/seo-scan/tests/test_diff_read_budget.py
size: 5061
sha: c8a852bbff271e641a20a3984b11f8309ca3a5c4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_read_budget.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_read_budget.py

## File: skills/seo-scan/tests/test_diff_repeated_rules.py
size: 7279
sha: 25ac9f4abd49c83aef35c9b48932d2088b5e1ba4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_repeated_rules.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_repeated_rules.py

## File: skills/seo-scan/tests/test_diff_scope.py
size: 16414
sha: 1f8cf56ceb71ef57b6fdda6d6e521f1b02aaaa9d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_scope.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_scope.py

## File: skills/seo-scan/tests/test_diff_settings.py
size: 11713
sha: 79162f1b0d0cdc3daa053d63b5a1fe54d5f1b320
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_settings.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_settings.py

## File: skills/seo-scan/tests/test_diff_severe_escalation.py
size: 4962
sha: f04040cff5f49f4a8205b61f7eb1aba8a495dfbb
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_severe_escalation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_severe_escalation.py

## File: skills/seo-scan/tests/test_diff_target_labels.py
size: 3742
sha: 0b1c637bb3579de195bfb8e6d4f428a1bb2bd265
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_target_labels.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_diff_target_labels.py

## File: skills/seo-scan/tests/test_document_base_links.py
size: 19921
sha: 3e411617fc22f7a756957e253f65553a28b28661
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_document_base_links.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_document_base_links.py

## File: skills/seo-scan/tests/test_ecommerce.py
size: 18797
sha: 5e3e62eeb0a9bb6947542368d643cc6f780bdea1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_ecommerce.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_ecommerce.py

## File: skills/seo-scan/tests/test_error_destinations.py
size: 5420
sha: 1937e6510065c788638b9c205179d98bc299938e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_error_destinations.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_error_destinations.py

## File: skills/seo-scan/tests/test_feature_notices.py
size: 6617
sha: b8e0cc70ce33285e542efd72c8efc3f7bafff8d0
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_feature_notices.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_feature_notices.py

## File: skills/seo-scan/tests/test_fetch_failures.py
size: 5028
sha: adaf4b23794e3f9b5d797a8c5f4f89640974521b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_fetch_failures.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_fetch_failures.py

## File: skills/seo-scan/tests/test_finding_guides.py
size: 6908
sha: 7dac82faea0c100d2a371f56abedc4fdfc3e8935
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_finding_guides.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_finding_guides.py

## File: skills/seo-scan/tests/test_finding_url_witnesses.py
size: 8081
sha: 9be9bf34567f9879fc174bb9c16fa36e0775a19d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_finding_url_witnesses.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_finding_url_witnesses.py

## File: skills/seo-scan/tests/test_geo_text_cues.py
size: 19288
sha: eed2502d867aae2ef52aaf97fcb4d07364a3c4ad
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_geo_text_cues.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_geo_text_cues.py

## File: skills/seo-scan/tests/test_golden_reports.py
size: 676
sha: d02054e6755e9781d914f2b561a42808337f2032
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_golden_reports.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_golden_reports.py

## File: skills/seo-scan/tests/test_graph_depth_coverage.py
size: 9338
sha: 7d6fb5b7c72d1e0674327cd9c46141c4b6b3fa10
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_graph_depth_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_graph_depth_coverage.py

## File: skills/seo-scan/tests/test_graph_rankings.py
size: 4132
sha: b88c25135172d978e9b428f2455079d28a80d278
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_graph_rankings.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_graph_rankings.py

## File: skills/seo-scan/tests/test_head_fallback_results.py
size: 5451
sha: 0a62928dc3761b3bb8fb036c39e8c13a70b54a65
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_fallback_results.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_fallback_results.py

## File: skills/seo-scan/tests/test_head_info_cleanup.py
size: 5758
sha: 127a4472ab3fd13a8422851d7a70afe412789114
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_info_cleanup.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_info_cleanup.py

## File: skills/seo-scan/tests/test_head_probe_cleanup.py
size: 6566
sha: ec87c2bf65abb976aa9ff9caca74f28e22d5daeb
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_probe_cleanup.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_head_probe_cleanup.py

## File: skills/seo-scan/tests/test_header_target_witnesses.py
size: 7060
sha: d4a099f9392f50d0f480483d995a2c44d3a8c50b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_header_target_witnesses.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_header_target_witnesses.py

## File: skills/seo-scan/tests/test_heading_order.py
size: 5061
sha: 38982a78e3a44bc584c3ac20086420e356ead5f3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_heading_order.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_heading_order.py

## File: skills/seo-scan/tests/test_hreflang_crawl_acquisition.py
size: 15386
sha: 1f9f79418ab159800d1afd4bdf5f152dd045d1f0
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_hreflang_crawl_acquisition.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_hreflang_crawl_acquisition.py

## File: skills/seo-scan/tests/test_hreflang_source_syntax.py
size: 22474
sha: 116d896f0a9db3065ba11b544db5b989dd278e62
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_hreflang_source_syntax.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_hreflang_source_syntax.py

## File: skills/seo-scan/tests/test_http_robots.py
size: 10946
sha: 7adab14d371b948a4cbbf7d28eb055fc0aa93e82
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_http_robots.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_http_robots.py

## File: skills/seo-scan/tests/test_http_terminal_status.py
size: 5123
sha: 31e5075aadeacb82a9b7185a7009c63a3fc4f267
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_http_terminal_status.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_http_terminal_status.py

## File: skills/seo-scan/tests/test_image_header_dimensions.py
size: 5048
sha: a2425d77d237c3f39e36c67ceb6ecead6a5d058f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_image_header_dimensions.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_image_header_dimensions.py

## File: skills/seo-scan/tests/test_image_weight_evidence.py
size: 11537
sha: e9e7fc8522c74c6ee9a30758524084ee849729d6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_image_weight_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_image_weight_evidence.py

## File: skills/seo-scan/tests/test_inline_code.py
size: 5940
sha: b63eefa78a40001e9373512eddb7fb4d18dfb4df
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_inline_code.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_inline_code.py

## File: skills/seo-scan/tests/test_inline_links.py
size: 5821
sha: 808ab46040b664568c23e8415071ea0cfb660762
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_inline_links.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_inline_links.py

## File: skills/seo-scan/tests/test_integrations.py
size: 10757
sha: beb0964bf4e5c5a8817234af58198d0ab3567329
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_integrations.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_integrations.py

## File: skills/seo-scan/tests/test_jpeg_header_boundaries.py
size: 3242
sha: 2908a2f8b072a9d6297d845d1f6ab7378acf9b93
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jpeg_header_boundaries.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jpeg_header_boundaries.py

## File: skills/seo-scan/tests/test_jpeg_marker_fill.py
size: 2592
sha: 41d51ede17b7ac75b807efbe6ed48eef83c64096
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jpeg_marker_fill.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jpeg_marker_fill.py

## File: skills/seo-scan/tests/test_js_baseline_coverage.py
size: 10285
sha: 6e4474e8ee2f29e14dfb50f6b8c9b8997be36a05
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_js_baseline_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_js_baseline_coverage.py

## File: skills/seo-scan/tests/test_jsonld_error_stages.py
size: 11578
sha: bf2187ea7f55954b53afa34fe9bac65ba384c535
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jsonld_error_stages.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jsonld_error_stages.py

## File: skills/seo-scan/tests/test_jsonld_literals.py
size: 8336
sha: 51c8082b650804da8c75f8733b8c21289b321c07
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jsonld_literals.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_jsonld_literals.py

## File: skills/seo-scan/tests/test_lexical_focus.py
size: 11993
sha: 7a3bb456a3285ad828addb4a199cf56329cc9977
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_lexical_focus.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_lexical_focus.py

## File: skills/seo-scan/tests/test_link_label_fallbacks.py
size: 6520
sha: afc6260c3276ea4aa56cfb910ee14f6c37f980c4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_link_label_fallbacks.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_link_label_fallbacks.py

## File: skills/seo-scan/tests/test_llms_artifact_userinfo.py
size: 5222
sha: 2dc7e24f5b604715ad2615c2baebbdfcaa6bc86a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_artifact_userinfo.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_artifact_userinfo.py

## File: skills/seo-scan/tests/test_llms_budgets.py
size: 4123
sha: 40182f228cd7af07d77b0dbd86f346ff5f13f183
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_budgets.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_budgets.py

## File: skills/seo-scan/tests/test_llms_literal_markdown.py
size: 7135
sha: 2b48314c87b1f19e92e72c1eb9f1177638a75dcf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_literal_markdown.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_literal_markdown.py

## File: skills/seo-scan/tests/test_llms_metadata_coverage.py
size: 8913
sha: 2a2f6fd51462739740047163fa30f9203cc6fbab
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_metadata_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_metadata_coverage.py

## File: skills/seo-scan/tests/test_llms_redirect_context.py
size: 3789
sha: 66afb6c60bd208aed2030da3d166eea08a1bc022
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_redirect_context.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_redirect_context.py

## File: skills/seo-scan/tests/test_llms_resource.py
size: 21757
sha: 6e4dc0b0e1e381bdb87599ea3b59892b93570d26
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_resource.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_llms_resource.py

## File: skills/seo-scan/tests/test_malformed_anchor_links.py
size: 10302
sha: dd7e13808f8c5b6b760315a42da98ef29f839564
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_malformed_anchor_links.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_malformed_anchor_links.py

## File: skills/seo-scan/tests/test_malformed_link_handoff.py
size: 6380
sha: 0017ece8d790550d2097413f004e6894644e0b46
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_malformed_link_handoff.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_malformed_link_handoff.py

## File: skills/seo-scan/tests/test_measurement_disclosure.py
size: 7619
sha: c95d5b2f5234599cc5856b5d4ff3882829a40550
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_measurement_disclosure.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_measurement_disclosure.py

## File: skills/seo-scan/tests/test_merchant_comparison_basis.py
size: 13053
sha: 5a7985ee1e0e77cb539f5e2278926d57116110ad
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_comparison_basis.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_comparison_basis.py

## File: skills/seo-scan/tests/test_merchant_comparison_coverage.py
size: 17268
sha: a95bfc4146f1bf087250831b146f03196719a99c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_comparison_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_comparison_coverage.py

## File: skills/seo-scan/tests/test_merchant_identity.py
size: 7008
sha: ff36f2d631592e08dfda8c626e6e43733fe53a52
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_identity.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_identity.py

## File: skills/seo-scan/tests/test_merchant_source.py
size: 8074
sha: c403c0270dee97eee5db907857595f91bdf816c2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_source.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_source.py

## File: skills/seo-scan/tests/test_merchant_urls.py
size: 4391
sha: 60063af1355efa83165815ba35e53657d302b3a0
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_urls.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_urls.py

## File: skills/seo-scan/tests/test_merchant_values.py
size: 5941
sha: 5bb31659c598d4340788a240d67ad74a3b6bdc1f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_values.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_merchant_values.py

## File: skills/seo-scan/tests/test_microdata.py
size: 19714
sha: 6887573663f4b2f5491b58ce6fcaf8d4e7e0943f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_microdata.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_microdata.py

## File: skills/seo-scan/tests/test_mutation_gate.py
size: 12067
sha: 1315df4248f05efcfba15c0608818c4daf392a26
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_mutation_gate.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_mutation_gate.py

## File: skills/seo-scan/tests/test_native_score_table.py
size: 2165
sha: 2f44883fec397f4a44c08b9cbc8369c4cc8e4d64
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_native_score_table.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_native_score_table.py

## File: skills/seo-scan/tests/test_nonpublic_host_guard.py
size: 7994
sha: 484986b294a25f24c4d9b6aac5756c847fd15fcc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_nonpublic_host_guard.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_nonpublic_host_guard.py

## File: skills/seo-scan/tests/test_offer_comparisons.py
size: 9873
sha: 941afed33d45d7cd1ac4526bf1cb0792abfcdb2f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_offer_comparisons.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_offer_comparisons.py

## File: skills/seo-scan/tests/test_optional_budget_preflight.py
size: 5505
sha: 78bcbbde9d9b3276f1faed80336caa908cdd30bf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_optional_budget_preflight.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_optional_budget_preflight.py

## File: skills/seo-scan/tests/test_page_schema_review.py
size: 17953
sha: 342326c5841f501338821f20a71f502ea7473da1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_page_schema_review.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_page_schema_review.py

## File: skills/seo-scan/tests/test_parser.py
size: 9137
sha: c7a0f46eade0c4a3aec256c8af35cbcb4e88722c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_parser.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_parser.py

## File: skills/seo-scan/tests/test_plan.py
size: 23880
sha: 74025a3fe84de51cba7c613b3f4a15449ce0ad93
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan.py

## File: skills/seo-scan/tests/test_plan_action_context.py
size: 6050
sha: e210a874059614b47024284cebe8836c6195a5e5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_action_context.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_action_context.py

## File: skills/seo-scan/tests/test_plan_astro_page_routes.py
size: 4149
sha: f1c3e6317d956267556bed5735b766beec3e42cf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_astro_page_routes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_astro_page_routes.py

## File: skills/seo-scan/tests/test_plan_audit_redirect.py
size: 7814
sha: 0492523f73088d6533464f27b664df7c402c5e2b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_audit_redirect.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_audit_redirect.py

## File: skills/seo-scan/tests/test_plan_automation_eligibility.py
size: 16707
sha: 92724bc6c7523b49cf4efb26c418c6a1f4022901
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_automation_eligibility.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_automation_eligibility.py

## File: skills/seo-scan/tests/test_plan_baseline_preservation.py
size: 4793
sha: 1a5c31a2550cd9b2a4e0c105f2d99560d434d055
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_baseline_preservation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_baseline_preservation.py

## File: skills/seo-scan/tests/test_plan_command_quoting.py
size: 5389
sha: 498a9baa3f17042061e2a8822f0f3ddb88b75667
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_command_quoting.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_command_quoting.py

## File: skills/seo-scan/tests/test_plan_crawl_links.py
size: 7700
sha: 2831def9ba0c74d44f69ce991600e8da0e297081
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_crawl_links.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_crawl_links.py

## File: skills/seo-scan/tests/test_plan_crawl_page_owners.py
size: 18002
sha: c1ba6d1e037e050464bb16b5da206d00b387c066
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_crawl_page_owners.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_crawl_page_owners.py

## File: skills/seo-scan/tests/test_plan_evidence_handoff.py
size: 6089
sha: 3a33e56c8026f8fd95daa024818482366d185b25
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_evidence_handoff.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_evidence_handoff.py

## File: skills/seo-scan/tests/test_plan_group_overlaps.py
size: 4930
sha: 78906fe516ca334d8a7b0d9bff709d713f1d1518
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_group_overlaps.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_group_overlaps.py

## File: skills/seo-scan/tests/test_plan_group_safety.py
size: 4032
sha: 7a9c4b8f99a7f037e5102a2d0eb8d8a26d9bd170
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_group_safety.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_group_safety.py

## File: skills/seo-scan/tests/test_plan_html_file_routes.py
size: 7963
sha: 8ae00f0a137063e5204f5f374e543b5738724f00
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_html_file_routes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_html_file_routes.py

## File: skills/seo-scan/tests/test_plan_hugo_page_routes.py
size: 4081
sha: 026bd1145a6eceee4dc8566fae80d9b9bdeee019
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_hugo_page_routes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_hugo_page_routes.py

## File: skills/seo-scan/tests/test_plan_input_validation.py
size: 8940
sha: e0a860de5da208f923339f1e9ce3c7ff3938079b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_input_validation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_input_validation.py

## File: skills/seo-scan/tests/test_plan_inventory_boundary.py
size: 4089
sha: 00383a56abc117eef878054e12d58b3973cbd796
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_inventory_boundary.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_inventory_boundary.py

## File: skills/seo-scan/tests/test_plan_inventory_errors.py
size: 4869
sha: 7ba3be35a1511eb57d7061b22f298a31effe517f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_inventory_errors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_inventory_errors.py

## File: skills/seo-scan/tests/test_plan_label_previews.py
size: 4145
sha: 84297d061d3ef8d6c33e05a9438d62c700ea2ffd
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_label_previews.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_label_previews.py

## File: skills/seo-scan/tests/test_plan_literal_paths.py
size: 3673
sha: 001d0d85046221cf267bc727f4830679c3fec409
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_literal_paths.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_literal_paths.py

## File: skills/seo-scan/tests/test_plan_local_pairs.py
size: 4525
sha: 1d4ce77dd136b1b928278af93b8b79a6c9b5da70
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_local_pairs.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_local_pairs.py

## File: skills/seo-scan/tests/test_plan_manifest.py
size: 15796
sha: 2abc91b2035f8c06087f61dc95cdb6c16c7ae29f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_manifest.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_manifest.py

## File: skills/seo-scan/tests/test_plan_manifest_identity.py
size: 10401
sha: a2deaa6b3faed45f2ce01bd922bcb1b670fc7b6b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_manifest_identity.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_manifest_identity.py

## File: skills/seo-scan/tests/test_plan_markdown_verification.py
size: 5163
sha: 990096d5e0ffd12aab1c7d57dcad2644b1356a12
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_markdown_verification.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_markdown_verification.py

## File: skills/seo-scan/tests/test_plan_memory_baseline.py
size: 7240
sha: 691ac4fc66fa1a20c8bcf00e884adc176ec30b02
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_memory_baseline.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_memory_baseline.py

## File: skills/seo-scan/tests/test_plan_next_discovery_owners.py
size: 4790
sha: 717ef68eae2dac5656eb0887c5809319239c4f66
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_next_discovery_owners.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_next_discovery_owners.py

## File: skills/seo-scan/tests/test_plan_next_page_routes.py
size: 6509
sha: 72025b69f3db2bfe157dd2c030a11756a53d383d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_next_page_routes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_next_page_routes.py

## File: skills/seo-scan/tests/test_plan_nuxt_page_routes.py
size: 3789
sha: b424af0d2b2e8682c717a084a67d035ad9155276
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_nuxt_page_routes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_nuxt_page_routes.py

## File: skills/seo-scan/tests/test_plan_observation_selection.py
size: 3533
sha: 15d29c968af0b65189018a65ff10f609527c4110
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_observation_selection.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_observation_selection.py

## File: skills/seo-scan/tests/test_plan_output_safety.py
size: 7747
sha: dac36718e30396ff362417a27dc2e9bc1cf70afb
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_output_safety.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_output_safety.py

## File: skills/seo-scan/tests/test_plan_owner_contract.py
size: 3936
sha: e2d6cd599e1e50519d12bcf2e81534d5891f65a8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_owner_contract.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_owner_contract.py

## File: skills/seo-scan/tests/test_plan_owner_preview.py
size: 4523
sha: c5f64ecc78df52b5c22cf46a5ff130a871a24907
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_owner_preview.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_owner_preview.py

## File: skills/seo-scan/tests/test_plan_read_budget.py
size: 3850
sha: a9efce32ac1bf1b177e7cded774a6c2b9030d8d9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_read_budget.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_read_budget.py

## File: skills/seo-scan/tests/test_plan_recommendation_preview.py
size: 4571
sha: d2af3915a32ddc4f158a39995deb1465bc68cd57
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_recommendation_preview.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_recommendation_preview.py

## File: skills/seo-scan/tests/test_plan_regression_gate.py
size: 4090
sha: 6e443fa85c626f97445f8b7409212816654b316e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_regression_gate.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_regression_gate.py

## File: skills/seo-scan/tests/test_plan_repeated_evidence.py
size: 8212
sha: 5e3583dc6bbb68cfca6aa8fe7136dd3f7f583839
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_repeated_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_repeated_evidence.py

## File: skills/seo-scan/tests/test_plan_route_priority.py
size: 5712
sha: f8d821b3e8bfac3911fe5663916149957c42b9b4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_route_priority.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_route_priority.py

## File: skills/seo-scan/tests/test_plan_scan_settings.py
size: 4945
sha: e0ef0eaffcb8f8dab6aacee942ebde9cd6a0b264
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_scan_settings.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_scan_settings.py

## File: skills/seo-scan/tests/test_plan_schema_contract.py
size: 7146
sha: ffca8a25f8ef61a6639c3e5c27b6b2380897a4c2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_schema_contract.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_schema_contract.py

## File: skills/seo-scan/tests/test_plan_sitemap_containers.py
size: 14442
sha: ec00cfa2414728dda0fcd6ce67016c77d01368eb
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_containers.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_containers.py

## File: skills/seo-scan/tests/test_plan_sitemap_problem_counts.py
size: 4987
sha: c8820ab966921be77643333dba02120fe648e87e
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_problem_counts.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_problem_counts.py

## File: skills/seo-scan/tests/test_plan_sitemap_unverified_witnesses.py
size: 3798
sha: 7ec8f4b863ca5ea720c7a9f7d101d0a1462ffdb7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_unverified_witnesses.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_unverified_witnesses.py

## File: skills/seo-scan/tests/test_plan_sitemap_verification.py
size: 14602
sha: 96ea00e5fe4e97d2ec2111c41c0a51554e0b7576
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_verification.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_sitemap_verification.py

## File: skills/seo-scan/tests/test_plan_static_fallback.py
size: 1505
sha: ae9f2c313f3fc1a100d42265e21e067cb18e7441
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_static_fallback.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_static_fallback.py

## File: skills/seo-scan/tests/test_plan_success_observations.py
size: 7331
sha: a6f74b073a2d7f265788f83f6c858396d630cde1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_success_observations.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_success_observations.py

## File: skills/seo-scan/tests/test_plan_url_eligibility.py
size: 7587
sha: 827781cda3dd00b740ea21622b91d1e662f870ee
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_url_eligibility.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_url_eligibility.py

## File: skills/seo-scan/tests/test_plan_url_witnesses.py
size: 7154
sha: 6e81ecef4c44c8fb47933ed790ad1b314299a700
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_url_witnesses.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_url_witnesses.py

## File: skills/seo-scan/tests/test_plan_verification_kind.py
size: 13318
sha: 6522eb298ad4ea399cf5f70f4be664ba5dd6fd74
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_verification_kind.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_plan_verification_kind.py

## File: skills/seo-scan/tests/test_point_prices.py
size: 9467
sha: ed1b279098a1f5fa1449767bc322e974d87dc2db
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_point_prices.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_point_prices.py

## File: skills/seo-scan/tests/test_product_names.py
size: 6170
sha: 7847699daabd6f12b0a20057db5e22489de0c146
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_product_names.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_product_names.py

## File: skills/seo-scan/tests/test_prospective_cohort.py
size: 4608
sha: 420239306a8c041530b6728cda2215946b6e7b02
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_prospective_cohort.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_prospective_cohort.py

## File: skills/seo-scan/tests/test_question_observation.py
size: 9378
sha: ced95e29a5072e9b34ba6e77c43bf779594bcb7b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_question_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_question_observation.py

## File: skills/seo-scan/tests/test_quick_win_previews.py
size: 5286
sha: 68719784bf6d8a8ad62f15d9265d1a86802267b9
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_quick_win_previews.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_quick_win_previews.py

## File: skills/seo-scan/tests/test_range_probe_cleanup.py
size: 7847
sha: 7d346cd08551ce472225b6c7d9cac517a27acf98
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_range_probe_cleanup.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_range_probe_cleanup.py

## File: skills/seo-scan/tests/test_range_response_evidence.py
size: 3312
sha: dd86fb4cf4ad4f5958fbbc97e63ff9ccdb063b75
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_range_response_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_range_response_evidence.py

## File: skills/seo-scan/tests/test_rdfa.py
size: 16900
sha: 1f94180d58658366056c878e4f6e8a81a91ed0a2
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rdfa.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rdfa.py

## File: skills/seo-scan/tests/test_readability_observation.py
size: 14237
sha: 26208cb1f81fcba71bb5da61afe5632f72de5a8d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_readability_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_readability_observation.py

## File: skills/seo-scan/tests/test_recipe_fields.py
size: 11559
sha: cd4b580fe5dcbae5f7f38c2d15d2f1b2fdc503dc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_recipe_fields.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_recipe_fields.py

## File: skills/seo-scan/tests/test_relative_link_paths.py
size: 9256
sha: e5f397bb1dcabd454bb8d2a9ef0f7bdd399fb0b5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_relative_link_paths.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_relative_link_paths.py

## File: skills/seo-scan/tests/test_render_budget.py
size: 9771
sha: 8b39c7d4a9166f0a2dfe3deb88f78233572ea8c6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_budget.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_budget.py

## File: skills/seo-scan/tests/test_render_output_safety.py
size: 9065
sha: 5213422b8f8774e7c0a751c6f792dafc2fb6dd48
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_output_safety.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_output_safety.py

## File: skills/seo-scan/tests/test_render_read_budget.py
size: 4796
sha: 6a9253dd772ccb3b131c9fc277abe52b3acd81f1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_read_budget.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_render_read_budget.py

## File: skills/seo-scan/tests/test_rendered_text_evidence.py
size: 10491
sha: 75f6d928028b9fbb63d12c2139a3110c1ad38938
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rendered_text_evidence.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rendered_text_evidence.py

## File: skills/seo-scan/tests/test_report_duplicate_keys.py
size: 5262
sha: fb327b30608973082ad766372046a9335d25e19d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_report_duplicate_keys.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_report_duplicate_keys.py

## File: skills/seo-scan/tests/test_report_output.py
size: 2361
sha: c3925bbb36a4e5746d40ba481d8323e304ebac5f
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_report_output.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_report_output.py

## File: skills/seo-scan/tests/test_reports.py
size: 12409
sha: 6b0165a8763d23067b7331c1c1297500478c5491
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_reports.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_reports.py

## File: skills/seo-scan/tests/test_resource_range_coverage.py
size: 7883
sha: 0be972f1f4d300b593b1398b6363063f8c7345e4
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_resource_range_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_resource_range_coverage.py

## File: skills/seo-scan/tests/test_response_charset.py
size: 6376
sha: 25055e446d4833b043821ff874a8e057d62275ac
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_response_charset.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_response_charset.py

## File: skills/seo-scan/tests/test_review_corpus.py
size: 13902
sha: 478a8cdc05fded95930111f41262af2b5b043321
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_review_corpus.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_review_corpus.py

## File: skills/seo-scan/tests/test_review_recording.py
size: 14199
sha: 88172f7181eb71f63c4d44adbc2c19dbaada6382
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_review_recording.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_review_recording.py

## File: skills/seo-scan/tests/test_robots_bom.py
size: 4297
sha: ef6e2c0b68117c522b43cdec33e134ade4b9fc82
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_bom.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_bom.py

## File: skills/seo-scan/tests/test_robots_encoding.py
size: 7229
sha: 2706dc92af855b8f510c1368e06a52f70b85803c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_encoding.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_encoding.py

## File: skills/seo-scan/tests/test_robots_meta.py
size: 6780
sha: 0ee9a52c37e0a22cc7a907bcd8ad861ea44c079c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_meta.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_meta.py

## File: skills/seo-scan/tests/test_robots_path_parameters.py
size: 2639
sha: 2f897f500f7b6d8a1133213ebea379cf4a22c79b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_path_parameters.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_path_parameters.py

## File: skills/seo-scan/tests/test_robots_wildcards.py
size: 4264
sha: 842af208a3cbf3b2cafdc64f13702c5057ac4446
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_wildcards.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_robots_wildcards.py

## File: skills/seo-scan/tests/test_rule_ownership.py
size: 12098
sha: 43f8629b37c8f43741ebbc2ef714da8786780681
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rule_ownership.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_rule_ownership.py

## File: skills/seo-scan/tests/test_scan_scope.py
size: 10067
sha: 2b45c48b55f60a5ad3ab85dcf47e81ed98d829be
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scan_scope.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scan_scope.py

## File: skills/seo-scan/tests/test_scan_selection_errors.py
size: 3048
sha: 1ea497d34ae7d71f520bb14be9a67ede8c32b93a
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scan_selection_errors.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scan_selection_errors.py

## File: skills/seo-scan/tests/test_schema_appearance.py
size: 9649
sha: c51aebe439f79a34d047ade76ee47b8ad66c65c3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_appearance.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_appearance.py

## File: skills/seo-scan/tests/test_schema_coverage.py
size: 16831
sha: 409c10ac58270f5ea66effdef767cfa6f8369fbf
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_coverage.py

## File: skills/seo-scan/tests/test_schema_duplicate_keys.py
size: 3720
sha: 9839c8b92b61eeb1101d6cbe71e8b74f68dff5b5
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_duplicate_keys.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_duplicate_keys.py

## File: skills/seo-scan/tests/test_schema_json_fields.py
size: 14028
sha: 2cedb24560bbf0855bb9f013321042143fc01b0b
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_json_fields.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_json_fields.py

## File: skills/seo-scan/tests/test_schema_receipt_validation.py
size: 7168
sha: 637f4886e9266a58d00ceadfed21849198213311
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_receipt_validation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_receipt_validation.py

## File: skills/seo-scan/tests/test_schema_script_embedding.py
size: 3785
sha: dfac04813078fa79a2d01f6686879b4e399c659c
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_script_embedding.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_script_embedding.py

## File: skills/seo-scan/tests/test_schema_source_coverage.py
size: 5229
sha: d24bb8ecf7aa50600292e000cb97fd5b1d234618
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_source_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_schema_source_coverage.py

## File: skills/seo-scan/tests/test_scope_selection_consistency.py
size: 3785
sha: 62b279ef4da7e6bfa56f6aa819f5726abc742ffc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scope_selection_consistency.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_scope_selection_consistency.py

## File: skills/seo-scan/tests/test_security_contract.py
size: 5486
sha: 096b6e66204dca583513a32d94504514f00bc317
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_security_contract.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_security_contract.py

## File: skills/seo-scan/tests/test_server_partial_response.py
size: 14508
sha: 0a37a9732d15eed1d2572d83e8e083c3f701f387
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_server_partial_response.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_server_partial_response.py

## File: skills/seo-scan/tests/test_service_opt_in.py
size: 12323
sha: 7445dbddf82424f91c5375d85f8f6da7c389a696
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_service_opt_in.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_service_opt_in.py

## File: skills/seo-scan/tests/test_site_rule_ownership.py
size: 6863
sha: dfc96e613fadfd27c6b9bb6b60d9390acbaac33d
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_site_rule_ownership.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_site_rule_ownership.py

## File: skills/seo-scan/tests/test_sitemap_decoded_budget.py
size: 7853
sha: 09bf2b44ece9562ebc51e44d8d15a1d586fea4bc
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_decoded_budget.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_decoded_budget.py

## File: skills/seo-scan/tests/test_sitemap_discovery_xml.py
size: 18020
sha: a0b01a92102fcb754e33d539b85cfde36e5b9db6
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_discovery_xml.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_discovery_xml.py

## File: skills/seo-scan/tests/test_sitemap_fetch_completeness.py
size: 21515
sha: c06de1f7f16ff14745a140fbc49b67f2aeabb834
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_fetch_completeness.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_fetch_completeness.py

## File: skills/seo-scan/tests/test_sitemap_file_identity.py
size: 8194
sha: 6418fa487463259c3c41389b6e7026ea3a339893
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_file_identity.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_file_identity.py

## File: skills/seo-scan/tests/test_sitemap_parse_coverage.py
size: 11693
sha: af426fae50dcb4e8ad38b0b34d8fa81aae1367d7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_parse_coverage.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_parse_coverage.py

## File: skills/seo-scan/tests/test_sitemap_references.py
size: 16924
sha: 47af3eaa8731856bb01b846acf46242d3f3bd3a8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_references.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_references.py

## File: skills/seo-scan/tests/test_sitemap_response_states.py
size: 7474
sha: 109d53e90b0e33aefb8b18ad364cefc315b6e9c3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_response_states.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_response_states.py

## File: skills/seo-scan/tests/test_sitemap_sample_spread.py
size: 4193
sha: 87973751282bfc1c893987a84dce8b78ccff05a7
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_sample_spread.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_sitemap_sample_spread.py

## File: skills/seo-scan/tests/test_source_warning_limits.py
size: 5790
sha: 94d1ff8561e184c9d21e2ca97dc3b4304a5af7df
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_source_warning_limits.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_source_warning_limits.py

## File: skills/seo-scan/tests/test_style_review.py
size: 10028
sha: e9ac82f8058a02771ba32aaa4d174820c8018fd1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_style_review.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_style_review.py

## File: skills/seo-scan/tests/test_subtopic_observation.py
size: 9015
sha: 6d2fdef239546c2d3f3300678654469d956c5c25
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_subtopic_observation.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_subtopic_observation.py

## File: skills/seo-scan/tests/test_summary_priority.py
size: 6503
sha: 5d3d2a0d426a8eb227b4b73517461d4bff31eb17
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_summary_priority.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_summary_priority.py

## File: skills/seo-scan/tests/test_table_alignment.py
size: 4784
sha: 7974be8f76783594266e19f1c23d6d881cc19716
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_alignment.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_alignment.py

## File: skills/seo-scan/tests/test_table_layout.py
size: 4176
sha: b1f0d4bdc7d0261ab31e760af0baf24c8fe23e84
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_layout.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_layout.py

## File: skills/seo-scan/tests/test_table_pipes.py
size: 4934
sha: a181941b52aab2cf88a9a8926b70aa54afe038be
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_pipes.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_table_pipes.py

## File: skills/seo-scan/tests/test_template_source.py
size: 9903
sha: 3d966fd17fdf604fe6da9ca7f7b20195ae670274
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_template_source.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_template_source.py

## File: skills/seo-scan/tests/test_tools.py
size: 26413
sha: f089f8552f8e5f5050c05acc22196cf61fa1b840
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_tools.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_tools.py

## File: skills/seo-scan/tests/test_transport_byte_preflight.py
size: 4490
sha: debb755c028d4fbbf258ae77f224c95991514c81
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_transport_byte_preflight.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_transport_byte_preflight.py

## File: skills/seo-scan/tests/test_unverified_link_witnesses.py
size: 7050
sha: ccc15cd18befb9b2f6367ce9e9156d14fa17ced1
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_unverified_link_witnesses.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_unverified_link_witnesses.py

## File: skills/seo-scan/tests/test_version.py
size: 4081
sha: 12e27e19e3a52a8e3ed77140430a964ee89d3843
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_version.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_version.py

## File: skills/seo-scan/tests/test_zero_prices.py
size: 3408
sha: 63cf8c50c6c183ade35291748c350f666172b1b8
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_zero_prices.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/test_zero_prices.py

## File: skills/seo-scan/tests/update_golden_reports.py
size: 218
sha: e0fcfb744977c52905fb991e16be7f57d122efe3
upstream: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/update_golden_reports.py

Content is not inlined in the catalog. Read the upstream file: https://github.com/aindong/narwhal/blob/main/skills/seo-scan/tests/update_golden_reports.py

## File: README.md
upstream: https://github.com/aindong/narwhal/blob/main/README.md

```text
<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark-512.png">
    <img src="assets/logo-512.png" alt="Narwhal logo" width="240">
  </picture>
</p>

<h1 align="center">Narwhal</h1>

<p align="center"><strong>Local-first SEO &amp; GEO/LLMO scanning — as an agent skill.</strong></p>

<p align="center">
  Inspect pages and sites for SEO <em>and</em> AI-answer visibility signals
  <br>(ChatGPT · Claude · Perplexity · Google AI Overviews) — straight from your coding agent.
</p>

<p align="center">
  <a href="https://github.com/aindong/narwhal/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/aindong/narwhal/actions/workflows/ci.yml/badge.svg"></a>
  <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-2ea44f">
  <img alt="Python 3.8+" src="https://img.shields.io/badge/Python-3.8%2B-3776ab?logo=python&logoColor=white">
  <img alt="Agents: Claude Code, Codex, Cursor, OpenCode" src="https://img.shields.io/badge/agents-Claude%20Code%20%C2%B7%20Codex%20%C2%B7%20Cursor%20%C2%B7%20OpenCode-1f6feb">
  <img alt="Local-first" src="https://img.shields.io/badge/data-local--first-14b8a6">
  <img alt="Dependencies: zero required" src="https://img.shields.io/badge/deps-zero%20required-8957e5">
</p>

<p align="center">
  <img src="assets/demo.gif" alt="Narwhal terminal demo: scan, audit, and Core Web Vitals" width="760">
</p>

Narwhal scans a web page or whole site for **SEO** and **GEO/LLMO** (visibility in
AI answer engines) and hands back a **prioritized, fix-first report**. It ships as
an agent skill: use it from Claude Code via
[`SKILL.md`](skills/seo-scan/SKILL.md), or from any agent that reads
[`AGENTS.md`](AGENTS.md) — Codex, Cursor, OpenCode, and friends.

Default scans need no accounts or API keys and send no telemetry. They fetch the
requested site and related audit resources; external data integrations are
opt-in. Narwhal runs on a bare Python install, with additional extraction and
rendering paths available through optional libraries.

Use Narwhal as an **audit assistant, not a final SEO verdict**. Check findings
against their evidence and your site's intent before changing anything. Its
score summarizes reported findings, not page quality or measured ranking/AI
citation performance. Passing tests do not establish real-world accuracy; see
[how to interpret scores and verification](docs/tuning/README.md#how-to-interpret-scores-and-verification).

## Why "Narwhal"?

The narwhal is the perfect mascot for a search-and-AI-visibility tool:

- **The tusk is a sensor, not a weapon.** A narwhal's tusk is packed with millions
  of nerve endings that read tiny changes in the water around it. Narwhal the tool
  does the same for a page — it senses the subtle, easy-to-miss signals (meta,
  canonical, schema, crawler directives and editorial text cues) that help you
  investigate a page's presentation and accessibility—not predict visibility.
- **It navigates dark, opaque water.** Narwhals thrive in deep, ice-covered Arctic
  seas using sound, surfacing where nothing else can. Modern search and AI answer
  engines are exactly that kind of murky water — Narwhal helps you navigate it.
- **The "unicorn of the sea."** Rare and unmistakable. That's the whole goal of SEO
  and GEO: to be the distinctive result that ranks and gets *cited* by AI, not one
  of the anonymous many.
- **It dives deep.** Deep audits, not surface-level checks.

And yes, it works as a backronym too:
**N**avigate **A**I **R**ankings, **W**eb **H**ealth **A**nd **L**LM-visibility.

## What it checks

| Area | Highlights |
|---|---|
| **Technical SEO** | title/meta, headings, canonical, robots directives, viewport/mobile, hreflang, images, links, HTTP hygiene, robots.txt, sitemap |
| **Content & E-E-A-T** | scoped text-length/readability cues, author/date candidates, Open Graph / Twitter cards |
| **Structured data** | JSON-LD + Microdata + bounded schema.org RDFa detection, required/recommended property validation, merchant checks, source-backed Google feature-retirement notes, JSON-LD generation |
| **E-commerce** | evidence-gated Product detection; Product/Offer/AggregateOffer completeness; variants; expired prices; visible-vs-schema price, currency, availability, SKU, and brand consistency |
| **GEO / LLMO** | contextual review of question-heading, sentence-group, statistic/citation and intro cues—not measured citability—plus `llms.txt` and role-aware **search/retrieval robots policies**, with separate non-scoring training/data-use notes |
| **Search performance** *(opt-in)* | real Google Search Console query data: striking-distance queries, CTR laggards, decaying pages, keyword cannibalization |
| **Site structure** | sampled click depth and start coverage, orphan-page candidates (sitemap vs crawl), inbound-link counts (not measured link equity) — observations stay visible even with zero inter-page edges |
| **Competitor gaps** | `narwhal compare <you> <rival…>`: same auditors on every page, then a gap analysis — schema types, meta strategy, structure, social packaging, with separate neutral length and statistic/citation-pattern observations (local-first; on-page facts only). Your first URL must load as HTML; failed competitors can be skipped, but never become "You". |
| **Content briefs** | `narwhal brief <you> <rival…>`: a page-grounded writing plan — competitor gaps, heading-review candidates, questions, schema and structure candidates. Add `--gsc` for own-page queries, or `--topic "…" --gsc-site <your-site>` for adjacent topic queries (Python/MCP: `gsc_site`). Matching question queries feed the writing plan; default briefs do not query account services |

GEO text-cue checks expose literal counts and limits in `meta.geo_text_cues`.
English-oriented patterns do not measure answer accuracy, actual paragraphs,
source validity or citation likelihood. Their low-priority advice keeps edits
conditional; configured ranges and matches are not engine requirements. Legacy
rule IDs remain, but displayed titles change. Priority corrections can raise a
score without changing a page. See the [check boundaries](skills/seo-scan/references/geo-llmo.md#text-cue-output-and-compatibility).

Attribution checks capture bounded metadata, author-link and short leading
byline-like **candidates**, not verified writers or expertise. Ordinary prose
words and blank author metadata do not pass. Missing article cues prompt low
contextual review, not an anonymity verdict; never invent people or credentials
to close a finding. Scans and comparisons use the same observer, with JSON
receipts and literal page-report witnesses. See [scope and limitations](skills/seo-scan/references/content-eeat.md#attribution-cues-not-identity-verification).

Date checks likewise record bounded metadata/selected-text **candidates**, not
verified publication/update dates or freshness. Scans, comparisons and briefs use
the same observer: modified-only metadata counts, blank metadata and a copyright
year alone do not. A missing article cue invites conditional review, not invented
dates or cosmetic refreshes; compared pages do not set a date quota. See
[date-cue scope and compatibility](skills/seo-scan/references/content-eeat.md#date-cues-not-freshness-verification).

Common-phrase checks are editorial review prompts, not AI-authorship detectors.
Quoted examples may be appropriate for the audience; neither matches nor their
absence establish originality, helpfulness or ranking impact. The four-distinct-phrase
advisory is now low priority (previously medium), so that score correction is not
a page improvement. Stable rule IDs remain; update title-based ignore filters
for the [revised labels and interpretation](skills/seo-scan/references/content-eeat.md#filler--phrase-review).

Configured filler-list matches and vocabulary ratios are also low contextual
reviews, with exact ASCII-pattern counts and extraction basis—not padding or
thin/spun-content diagnoses. Keep useful quot
```
