Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

Merge pull request #332 from whatcodehaveyougit/fix/served-image-format

Agrici Daniel261b90b7dce5
diff --cc CHANGELOG.md
index e45c8cc,e5e4df2..fbce4ee
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -9,236 -9,13 +9,243 @@@ and this project adheres to [Semantic V
### Fixed
+- **Merchant validation accepts a list of `priceSpecification` objects.**
+ Schema.org allows one price specification or several. A list crashed
+ `schema_ecommerce_validate.py` with `AttributeError` before any finding
+ was returned. Loyalty-tier detection now checks each object in the list.
+- **An og:image query no longer sets the page encoding.** `charset=` inside
+ another meta attribute was treated as `<meta charset>`. A later
+ `<meta charset="utf-8">` was ignored, so a canonical
+ `https://example.com/café` was decoded as `https://example.com/café`.
+ A real `charset` attribute, or an `http-equiv="content-type"` pragma,
+ is still the encoding.
+- **A shorter filler phrase no longer scores inside a longer one.**
+ `let's dive into` also matched `let's dive in`, so one sentence was two
+ hits. On a 320-token page that moved `filler_score` from 25 to 50,
+ `overall_quality` from 47 to 41, and raised the filler flag.
+- **Sitemap discovery keeps a robots.txt URL when a comment follows it.**
+ `Sitemap: https://example.com/products.xml # catalog` was dropped, so that
+ URL was never fetched and only the common paths were checked. A `#` comment
+ runs to the end of the line (Google's robots.txt syntax, and RFC 9309), and
+ a leading UTF-8 BOM is not part of the first field.
+- **IndexNow key check compares hosts, not URL substrings.**
+ `verify_key_published` treated `example.com` as present in
+ `https://notexample.com/...` and rejected `Example.COM` against
+ `https://example.com/...`. The key file host is compared as a hostname,
+ before the file is fetched.
+- **GBP verified status uses DataForSEO `is_claimed` (#334).** The checklist
+ said verification is not exposed and could be inferred from profile
+ completeness or a Maps listing. `is_claimed` is that field. The 50-point
+ scale is unchanged. An absent value is Unknown (manual check required).
+- **`/seo` keeps the command word (#342).** The hub skill said `/seo $1 $2`.
+ Claude Code indexes arguments from 0 (`$0` is the first word, `$1` the
+ second; https://code.claude.com/docs/en/skills), so `/seo audit <url>`
+ loaded as `/seo <url> $2` and dropped `audit`. The line now uses
+ `$ARGUMENTS`, which is the full input.
+- **News sitemap validation keeps the 50,000 URL limit (#335).** The skill
+ told the model to replace that check with a 1,000 cap whenever the `news:`
+ namespace was present. Google caps `<news:news>` tags at 1,000 and still
+ applies the general sitemap limits
+ (https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap).
+- Recognize UTF-8 BOM XML sitemaps during format detection.
+- Preserve brackets around IPv6 hosts when normalizing drift baseline URLs.
+- Recognize the `none` robots directive as an indexing restriction in drift comparisons.
+- Avoid flagging a brand suffix when its text only occurs inside a longer word in the description.
+- Resolve relative image and link URLs using the first document base href.
+
+## [2.5.0] - 2026-10-22
+
+Security and accuracy fixes from a full audit, and Claude Desktop installs again.
+
+**Python 3.11 to 3.14 is now required.** Python 3.10 reached end of life on
+2026-10-01, and the Pillow 13.0.0 security release (28 advisories, no 12.x
+backport) needs 3.11. Python 3.15 is not supported yet because the Google Ads
+client library declares `< 3.15`. If your default Python is outside the range,
+the launcher and `install.ps1` now pick a supported one on their own, or you
+can set `CLAUDE_SEO_PYTHON`; `/seo setup` then rebuilds the runtime once.
+
+### Added
+
+- **Server stack CVE exposure check** in `seo-technical` (Security category).
+ A read-only detection pass that flags a site running a server-side stack with
+ a known critical CVE, so the owner can patch or take it offline. Reads the
+ stack from the normal response for the audited URL (`X-Powered-By`, PHP
+ session cookie, WordPress signals, static/Node markers); it never fuzzes or
+ sends exploit payloads, and asks whether the user owns the site before
+ requesting any other path. Ships the current PHP critical-RCE advisory
+ (CVE-2026-109618 / CVE-2026-109619, CVSS v4.0 9.2, fixed in PHP 8.5.12 /
+ 8.4.27 / 8.3.36 / 8.2.35; no upstream release for 8.1 and older), the
+ php.net interim mitigations, detection signals, and reporting bands in
+ `skills/seo-technical/references/stack-cve-exposure.md`, with sources
+ (php.net, both GitHub advisories, UK NCSC). A version string below the fixed
+ list is reported as High (likely exposed, confirm with the host), because
+ distributions backport fixes without changing it; Critical needs the owner
+ to confirm an unpatched build. A managed or static host with no PHP signal is
+ reported as not exposed.
+
+### Changed
+
+- **Data and guidance corrected against primary sources.**
+ - The September 2026 spam update is recorded as complete (Sep 24 to Oct 8,
+ 13 d 16 h), with Google's October documentation changes added to the
+ updates ledger.
+ - Keyword density targets are gone from `seo-page`, `seo-content` and
+ `seo-content-brief`; alt text is "descriptive, naming the subject", not
+ keyword-rich.
+ - The Gemini image model reference had read a 2025 release date as a
+ shutdown date; `gemini-2.5-flash-image` is current until at least
+ 2027-03-15.
+ - The Indexing API quota link (a 404) now points to the API Console quota
+ page.
+ - Breadcrumb (desktop only) and Event (publicly bookable, physical
+ location) rich result limits are documented.
+- Clearer skill triggers ("Use when" on `seo-geo`, `seo-local`,
+ `seo-technical`, `seo-agentic`; `seo-image-gen` only for SEO assets), the
+ hub and audit skills agree on when the backlinks agent runs, and the
+ extension copies of the DataForSEO and image agents match the core ones,
+ including `model` and `maxTurns`.
+- The supported Python range lives in one place (`MIN_PYTHON` and
+ `MAX_PYTHON` in `scripts/runtime.py`), and a test keeps the launcher,
+ `install.ps1`, `pyproject.toml`, CI and the docs in step with it.
+ `scripts/claude-seo` and `install.ps1` skip a default interpreter outside the
+ range (on Windows, `py -3` picks the newest installed Python, which can be
+ 3.15) and fall back to the newest supported one, and `install.ps1` now honors
+ `CLAUDE_SEO_PYTHON`. `/seo setup` refuses an unsupported interpreter with a
+ clear message.
+- `requirements.txt` sets `pillow>=13.0.0` (it arrives through matplotlib and
+ WeasyPrint).
+- CI runs ruff, tests Python 3.11, 3.12 and 3.14, audits dependencies on both
+ 3.11 and 3.14, pins GitHub Actions to commit SHAs, and no longer exposes
+ `GH_TOKEN` to install steps. The Windows smoke test covers a pinned
+ `CLAUDE_SEO_PYTHON` and the installer's own interpreter choice.
+- SECURITY.md and PRIVACY.md describe what the code does, including which
+ calls go to fixed vendor hosts and how to verify a signed release tag.
+
+### Fixed
+
+- **Claude Desktop installs claude-seo again (#344).** The claude-seo plugin
+ folder is the whole repository, and since v2.4.2 it held a second plugin
+ manifest at `plugins/seo-cockpit/.claude-plugin/plugin.json`, which Claude
+ Desktop refuses ("plugin.json must be at .claude-plugin/plugin.json at the
+ plugin root ... found nested"). seo-cockpit now lives on the `seo-cockpit`
+ branch of this repository and the marketplace installs it from there with a
+ `git-subdir` source pinned to a commit. It stays optional, keeps its install
+ id (`seo-cockpit@agricidaniel-claude-seo`) and moves to 0.3.4 (author and
+ homepage fields only). A new test fails if any nested plugin manifest
+ returns to the claude-seo tree.
+
+### Security
+
+- `agentic_check.py` rejects a well-known or ARD document nested deeper than
+ 256 levels before parsing it. On Python 3.14 the JSON parser's limit follows
+ the machine's stack size, so the same hostile document could pass on one
+ machine and fail on another.
+- **Google sign-in is bound to its run.** The OAuth flow now sends a random
+ `state` and a PKCE S256 challenge, and the exchange sends the matching
+ `code_verifier`. The local redirect server waits up to 300 s for the request
+ with the right `state`; stray or forged requests get a 400 and no longer end
+ the sign-in, and a silent connection is dropped after 10 s. Both token calls
+ time out after 30 s. The redirect URI (`http://localhost:8085`) is unchanged,
+ so existing OAuth clients keep working.
+- **Manual sign-in.** A pending sign-in is saved (0600) as
+ `oauth-pending.json` next to the token and is valid for 10 minutes after
+ the browser wait ends. `--exchange --code` now also accepts the full
+ redirect URL and checks its `state`; with no valid pending sign-in it stops
+ with "No pending sign-in (missing or expired). Run --auth again." instead of
+ sending a request that cannot succeed.
+- **Headless renders block service workers and WebSockets.** A new
+ `url_safety.new_guarded_context()` is used by `render_page.py`,
+ `capture_screenshot.py` and `analyze_visual.py`: service workers are
+ blocked, every request goes through the SSRF route handler, and WebSockets
+ are routed to a handler that never connects them.
+- **Body size caps.** `fetch_page.py` and the raw path of `render_page.py`
+ stop after 10 MiB of decompressed body and report `too_large`; redirect
+ bodies are capped at 64 KiB before requests reads them, so a 3xx gzip bomb
+ cannot exhaust memory. `sitemap_discovery.py` uses the same shared reader.
+- **Untrusted content rules everywhere.** Every agent and every skill, core
+ and extension, now states that fetched pages, SERP results and API payloads
+ are untrusted data, never instructions. The `seo-cluster` agent no longer
+ has Bash, which it never used.
+- `capture_screenshot.py` checks the output folder with resolved paths, so a
+ sibling such as `/home/user2` no longer passes for `/home/user`.
+- The cluster map template escapes every SERP field it writes into the page,
+ allowlists colors and link types, and the skill embeds its data with `<`
+ escaped, so a crafted SERP title cannot run script in the generated file.
+- The schema validation hook has a 30 s timeout.
+### Fixed
+
+- `skills/seo-schema/SKILL.md`, `agents/seo-schema.md` and
+ `scripts/parse_html.py`: a valid JSON-LD `@graph` document was reported as
+ broken markup. A `@graph` container is not an entity, so it needs no
+ `@type`, and the `@context` it declares is inherited by the entries it
+ holds. `parse_html.py` now keeps that `@context` on the flattened entries,
+ and the skill and the agent check `@context` once per document and `@type`
+ on entity nodes, the way `hooks/validate-schema.py` already did.
+
+## [2.4.2] - 2026-10-04
+
+seo-cockpit, Google sign-in through your own account, and a schema-hook fix.
+
+### Added
+
+- `plugins/seo-cockpit` 0.3.3: an optional mods companion plugin (Claude
+ Code 2.1.287+), a second entry in the marketplace
+ (`/plugin install seo-cockpit@agricidaniel-claude-seo`).
+ - Spend guard: holds paid SEO API calls against the DataForSEO budget
+ before they run (DataForSEO MCP tools and the Merchant script are priced
+ by `dataforseo_costs.py`; Ahrefs, Firecrawl, image generation, Moz,
+ Keywords Everywhere, Cloud NLP, the Indexing API, and curl or WebFetch
+ calls to SE Ranking and Profound ask first). It fails closed and logs
+ only successful priced calls.
+ - Live audit band (agents running and done, findings written, spend,
+ time), a receipt line with the health score when an audit finishes, an
+ opt-in economy mode that runs the five Opus agents on Sonnet, and
+ compaction instructions that keep audit state.
+ - `/seo-cockpit [site | export]`: one Overview (Audit, Vitals, Search,
+ Rankings, Maps, Spend) for a site taken from the folder, a site you
+ chose, or a Default site from `/config`, from any folder. Everything
+ free loads on open; a row opens its charts. Text charts in the terminal,
+ SVG on the desktop, an HTML dashboard export where panes do not draw
+ (the VS Code chat panel). A status line keeps the summary under the
+ prompt.
+ - Zero-token `/seo-spend` and `/seo-doctor`.
+ - Settings in `/config`: Default site, Audits folder, Google account
+ (`auto` or `gcloud`) and a sensitive Google API key.
+ - Verified on Claude Code 2.1.289: 85 kit tests (`claude plugin test`),
+ `claude plugin validate --strict`, and a live run on a real site.
+- `seo-maps`: a geo-grid scan now also saves its grid as
+ `{business}-maps/geo-grid-{keyword}-{date}.json`, for comparison over
+ time and for the seo-cockpit Maps view.
+
+### Changed
+
+- Google APIs can use the person's own gcloud sign-in
+ (`gcloud auth application-default login`): it is the fallback when no
+ claude-seo OAuth token or service account is configured, and
+ `CLAUDE_SEO_GOOGLE_AUTH=adc` chooses it even when a service account is set.
+ A service account often lacks access to properties the person owns. Only an
+ `authorized_user` gcloud file counts, and it refreshes with the scopes
+ granted at login.
+- `dataforseo_costs.py check` returns `credentials_in_env` on every result,
+ so a budget approval is not read as proof the call can run.
+
+### Fixed
+
+- Schema hook (`hooks/validate-schema.py`): diagnostics went to stdout,
+ which Claude Code ignores, so Claude never saw them. Critical errors now
+ exit 2 with the errors on stderr (fed back to Claude); warnings exit 0
+ with `hookSpecificOutput.additionalContext` JSON, which Claude reads
+ without an error notice. Wording no longer claims the edit is blocked: a
+ PostToolUse hook runs after the file is written.
+- `ai_opt_llm_ment_search` costs about $0.103 per the official response
+ example, not $0.05 (`dataforseo_costs.py` and both `cost-tiers.md`).
+ - Image format is judged by what the server sends, not the URL extension
+ (#331). `parse_html.py --probe-images` fetches each image with a browser
+ `Accept` header and adds `served_format`, `served_bytes`, `negotiated` and
+ `probe_error` to every image entry. `seo-images` and `seo-page` now flag
+ "Wrong Format" only from `served_format`, so a `.jpg` URL that a WebP plugin,
+ Cloudflare Polish or an image CDN already serves as WebP is no longer told to
+ "convert to WebP".
## [2.4.1] - 2026-09-29
diff --cc skills/seo-page/SKILL.md
index 69eb6a1,2bd3180..ddebb99
--- a/skills/seo-page/SKILL.md
+++ b/skills/seo-page/SKILL.md
@@@ -53,9 -53,12 +53,12 @@@ metadata
- Never recommend HowTo (deprecated) or FAQ for rich results (retired May 2026); existing FAQPage need not be removed, use QAPage for genuine Q&A
### Images
-- Alt text: present, descriptive, includes keywords where natural
+- Alt text: present and descriptive, naming the image's subject; the topic appears only where it naturally fits
- File size: flag >200KB (warning), >500KB (critical)
- - Format: recommend WebP/AVIF over JPEG/PNG
+ - Format: recommend WebP/AVIF over JPEG/PNG, judged by the format actually served, not the URL extension
+ (a `.jpg` URL often serves WebP). Run
+ `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run parse_html.py --url <url> --probe-images --json` and read
+ `served_format` / `served_bytes` per image; see `seo-images` for the rules
- Dimensions: width/height set for CLS prevention
- Lazy loading: report `lazy_method` per image (native | perfmatters | ewww | js-generic | none). Do not flag "not lazy-loaded" when JS lazy-loaders (Perfmatters, EWWW, lazysizes) are detected, they intentionally strip the native `loading="lazy"` attribute and use `data-src` placeholders