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.

docs: make SECURITY.md and PRIVACY.md match what the code does

Agrici Danieldc1c6ef03aca
diff --git a/CLAUDE.md b/CLAUDE.md
index 1c5564e..426be60 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -284,7 +284,7 @@ Promoting reviewed release changes:
pushes are user-authorized per-release.
- **`aimh` accepts day-to-day pushes.** No release-gate ceremony required
for the private remote.
-- **v2.2.5 is tagged on both repositories.** Each tag points to that
+- **Every release is tagged on both repositories.** Each tag points to that
repository's reviewed release commit.
- **Never force-sync the histories.** Preserve reviewed divergence and never
rewrite either remote without explicit per-operation authorization.
diff --git a/PRIVACY.md b/PRIVACY.md
index 6737c73..c35de17 100644
--- a/PRIVACY.md
+++ b/PRIVACY.md
@@ -17,7 +17,7 @@ Optional extensions make API calls to third-party services when you invoke their
| Extension | Service | Data Sent | Privacy Policy |
|-----------|---------|-----------|---------------|
-| **DataForSEO** | api.dataforseo.com | URLs and domains you analyze | [DataForSEO Privacy](https://dataforseo.com/privacy-policy) |
+| **DataForSEO** | api.dataforseo.com (through the MCP server, and directly from `dataforseo_merchant.py`) | URLs, domains and product queries you analyze | [DataForSEO Privacy](https://dataforseo.com/privacy-policy) |
| **Firecrawl** | api.firecrawl.dev | URLs you crawl or scrape | [Firecrawl Privacy](https://www.firecrawl.dev/privacy) |
| **Banana (Gemini)** | generativelanguage.googleapis.com | Image generation prompts | [Google AI Privacy](https://ai.google.dev/terms) |
| **Ahrefs** | Official `@ahrefs/mcp` server (Ahrefs API) | Domains and URLs you analyze | [Ahrefs Privacy](https://ahrefs.com/privacy) |
@@ -25,7 +25,7 @@ Optional extensions make API calls to third-party services when you invoke their
| **Profound** | Profound API (tryprofound.com) | Brands and domains you track | [Profound Privacy](https://tryprofound.com/privacy) |
| **Bing Webmaster / IndexNow** | Bing Webmaster Tools API and IndexNow endpoints | Domains, submitted URLs, and key-verification URL data | [Microsoft Privacy](https://privacy.microsoft.com/) |
| **Matomo** | Your own Matomo instance (self-hosted or Matomo Cloud); no claude-seo vendor is contacted | `idSite`, the report parameters (method, period, date range, segment, row limit), and `token_auth` in the POST body | [Matomo Privacy](https://matomo.org/privacy-policy/) (Cloud); self-hosted = your own policy |
-| **Unlighthouse** | Local only — no third-party vendor | Runs Lighthouse locally against the target URL; only the target site is contacted (to crawl it). Nothing is sent to a third-party vendor. | N/A (runs locally) |
+| **Unlighthouse** | Local only, no third-party vendor | Runs Lighthouse locally against the target URL; only the target site is contacted (to crawl it). Nothing is sent to a third-party vendor. | N/A (runs locally) |
## Backlink APIs
@@ -55,7 +55,8 @@ vendor, telemetry endpoint, or third party sees any of it, and the URLs of the
site you analyze are read back from your own Matomo, not sent to it.
Both scripts reach the instance through `scripts/url_safety.py`, the same
-SSRF-guarded, DNS-pinned path as every other outbound request in claude-seo.
+SSRF-guarded, DNS-pinned path claude-seo uses for every user-supplied or
+page-derived URL. Calls to fixed vendor API hosts go to those hosts directly.
A self-hosted instance on a private address is reached by naming it in the
`CLAUDE_SEO_LOCAL_TARGETS` allowlist; redirects away from the instance are
refused rather than followed. See SECURITY.md and
@@ -73,12 +74,21 @@ When configured with Google API credentials, these scripts transmit data to Goog
| `indexing_notify.py` | Indexing API | URLs to submit for indexing |
| `ga4_report.py` | Analytics Data | Authenticated query for your GA4 properties |
| `crux_history.py` | CrUX History | URL or origin to query |
+| `lcp_subparts.py` | CrUX | URL or origin to query |
+| `lighthouse_agentic.py` | PageSpeed Insights | URL to analyze |
| `nlp_analyze.py` | Cloud Natural Language | Text content for entity / sentiment / category analysis |
| `keyword_planner.py` | Google Ads (Keyword Planner) | Seed keywords for volume, CPC, and competition lookups |
| `youtube_search.py` | YouTube Data API v3 | Search queries for YouTube SEO research |
Google API usage is governed by [Google's Privacy Policy](https://policies.google.com/privacy) and the [Google API Terms of Service](https://developers.google.com/terms).
+## Flow references
+
+`sync_flow.py` downloads the public Flow framework references from
+`api.github.com` (the `AgriciDaniel/flow` repository) when you run a Flow sync.
+It sends no data about your sites; the request carries only a GitHub token if
+you have one set for the `gh` CLI.
+
## Credentials
- API keys and OAuth tokens are stored locally in `~/.config/claude-seo/` or environment variables
diff --git a/SECURITY.md b/SECURITY.md
index 0d5707b..888340f 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -43,21 +43,21 @@ claude-seo is a research and audit toolkit that runs on a user's workstation. It
1. **Malicious audit target.** A site the user points claude-seo at attempts to leak local-network or cloud-metadata data via SSRF chains: private IP literals, decimal/hex/octal IPv4, FQDN trailing dot, 30x redirects to private IPs, DNS rebinding (initial public resolution → later private), IPv4-mapped IPv6, dual-stack hosts with one private record.
- **Mitigation:** `scripts/url_safety.py` is the canonical pre-flight + DNS-pinned fetch layer. Every URL-fetching script in this repository validates through it. See `tests/test_url_safety.py` for the regression suite (91 cases across 31 test functions, covering each bypass class).
+ **Mitigation:** `scripts/url_safety.py` is the canonical pre-flight + DNS-pinned fetch layer. Every script that fetches a user-supplied or page-derived URL validates through it. Calls to fixed vendor API hosts (Google, Bing, Moz, Common Crawl, GitHub, DataForSEO) go to those hosts directly. See `tests/test_url_safety.py` for the regression suite covering each bypass class.
2. **Tampered install.** A modified plugin install, GitHub release, or manual install script could deliver altered files. Plugin install is the default path; `curl ... | bash` is the legacy/manual path, so signature verification of release artifacts remains a defence-in-depth concern.
- **Mitigation status:** SHA-256 manifest tooling shipped in v2.0.0; install script verification is tracked for v2.3. Until install scripts verify manifests, users may install by cloning the tag explicitly and inspecting the diff against the previous release.
+ **Mitigation status:** SHA-256 manifest tooling (`scripts/release_sign.py`, `scripts/verify_release.py`) shipped in v2.0.0, but the install scripts do not verify a manifest yet and releases do not attach one. Installer verification is planned for v2.5.0. Until then, install by cloning the release tag explicitly (`git clone --branch vX.Y.Z`), check the tag signature with `git tag -v vX.Y.Z`, and inspect the diff against the previous release.
3. **Local privilege escalation against stored credentials.** The OAuth token at `~/.config/claude-seo/oauth-token.json` is the most sensitive on-disk artifact.
- **Mitigation:** v2 forces `0o600` on every write (`os.open` + `os.fchmod`) and remediates legacy `0o644` files in place on first load. Tokens never contain the OAuth `client_secret` — only the access/refresh pair plus expiry metadata.
+ **Mitigation:** v2 forces `0o600` on every write (`os.open` + `os.fchmod`) and remediates legacy `0o644` files in place on first load. Tokens never contain the OAuth `client_secret`, only the access/refresh pair plus expiry metadata.
## Known residual risks
- **Playwright + Chromium DNS rebinding.** Chromium does its own DNS resolution inside the renderer process. claude-seo's Python-layer DNS pin (`url_safety._pin_dns`) cannot reach it. The Playwright `route()` handler re-validates every subresource host (`make_safe_playwright_route_handler`), which closes the common case, but a true rebinding attacker can still race Chromium's resolver after our pre-flight returns. Mitigation: do not point `/seo` skills at untrusted sites with high-frequency redirects.
- **CONNECT proxies weaken DNS pinning.** Behind a configured HTTP proxy (`HTTPS_PROXY` and friends) the proxy resolves the final host itself, so `url_safety`'s pin degrades to the pre-flight check in `validate_url_strict`; the proxy host itself is exempted from the pinned scope only after passing the same hostname blocklist and `is_safe_ip` policy as an audit target, so a proxy on loopback, RFC 1918, RFC 6598, link-local, or a metadata address is refused rather than exempted.
-- **IPv6-only audit targets.** The strict validator queries `family=AF_INET` for the initial resolution. Hosts with AAAA records only will surface as "DNS resolution failed". This is **fail-closed** by design — we'd rather refuse than connect to an unvalidated IPv6 endpoint. Tracked for a future patch (full dual-stack pinning, similar to the Playwright handler which already uses `AF_UNSPEC`).
+- **IPv6-only audit targets.** The strict validator queries `family=AF_INET` for the initial resolution. Hosts with AAAA records only will surface as "DNS resolution failed". This is **fail-closed** by design: we'd rather refuse than connect to an unvalidated IPv6 endpoint. Tracked for a future patch (full dual-stack pinning, similar to the Playwright handler which already uses `AF_UNSPEC`).
- **Windows file permissions.** `os.fchmod(fd, 0o600)` is a no-op on Windows for non-ACL filesystems. Users on Windows should rely on per-user directory ACLs instead of POSIX mode bits. `scripts/backlinks_auth.py` additionally makes a best-effort `icacls <path> /inheritance:r /grant:r "%USERNAME%:F"` call after every write to (and load-time remediation of) `~/.config/claude-seo/backlinks-api.json`, restricting it to the current user on NTFS. This is best-effort only: a failure (missing `icacls`, a non-NTFS volume, a restricted shell) is logged as a warning and does not block the credential read or write, so on a failure the file's effective protection on Windows falls back to whatever the containing directory's ACLs already provide.
- **RFC 6598 (100.64.0.0/10) is refused by default.** Cloud providers serve instance metadata in this range, so `url_safety` treats it like RFC 1918. Tailscale also allocates from it, so a staging site reached over Tailscale is refused under the default policy. The escape hatch is `CLAUDE_SEO_LOCAL_TARGETS`, a comma-separated allowlist of `host` or `host:port` entries (for example `localhost:3000,127.0.0.1:8080,100.101.102.103`, the last being a Tailscale address). Its scope is deliberately narrow:
@@ -79,17 +79,17 @@ If you are auditing, these are the high-leverage files:
| `scripts/capture_screenshot.py` | Playwright screenshot capture with safe route handler. |
| `scripts/google_auth.py` | OAuth token lifecycle, `chmod 0o600` writes. |
| `scripts/backlinks_auth.py` | Backlink-API credential loading; SSRF guard via `url_safety`. |
-| `tests/test_url_safety.py` | 91-case regression battery covering every bypass class. |
+| `tests/test_url_safety.py` | Regression battery covering every bypass class. |
## What this policy does **not** cover
- Bugs that require attacker control of the user's machine (any local attacker is already game over).
-- Vulnerabilities in upstream dependencies — please report those to their respective maintainers. We track CVEs in `requirements.txt` and bump pins under the `deps:` Dependabot stream.
-- Quality-of-output issues (SEO recommendations, schema errors, etc.) — those are bugs, not security issues.
+- Vulnerabilities in upstream dependencies. Please report those to their respective maintainers. We track CVEs in `requirements.txt` and bump pins under the `deps:` Dependabot stream.
+- Quality-of-output issues (SEO recommendations, schema errors, etc.). Those are bugs, not security issues.
## Security-relevant practices
- No credentials or API keys are committed to this repository. `.gitignore` blocks every known credential filename pattern.
- Install scripts write only to user-level directories under `~/.claude/` and `~/.config/claude-seo/`.
- Python dependencies install into an isolated virtual environment. Plugin installs use persistent `CLAUDE_PLUGIN_DATA`; manual installs use `~/.claude/skills/seo/.venv/`. The runtime never falls back to global or user package installation.
-- Every new fetcher must route through `scripts/url_safety.py` — there is no exception for "trusted" URLs.
+- Every new fetcher of a user-supplied or page-derived URL must route through `scripts/url_safety.py`. There is no exception for "trusted" URLs.
diff --git a/docs/MIGRATION-v1-to-v2.md b/docs/MIGRATION-v1-to-v2.md
index 7869bad..f323f69 100644
--- a/docs/MIGRATION-v1-to-v2.md
+++ b/docs/MIGRATION-v1-to-v2.md
@@ -20,8 +20,7 @@ files, new extensions. Existing audit reports will look slightly fuller
but use exactly the same overall structure.
This guide covers the v1.x → v2.0.0 jump only; the v2.1.0 through v2.2.5
-releases are documented in [../CHANGELOG.md](../CHANGELOG.md), and the
-suite is now at 410 tests.
+releases are documented in [../CHANGELOG.md](../CHANGELOG.md).
## What's new in v2