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.

fix(agentic): act on the live acceptance run

Agrici Daniel8bf10a70d921
diff --git a/agents/seo-agentic.md b/agents/seo-agentic.md
index d7a463f..5ff8bac 100644
--- a/agents/seo-agentic.md
+++ b/agents/seo-agentic.md
@@ -56,4 +56,4 @@ file after the first analysis pass and overwrite it with the complete findings
before finishing, so a turn-budget stop never loses completed work:
- `output_dir/findings/agentic.md`: evidence, the Lighthouse fraction, findings by priority, and recommendations
-- Structured JSON-compatible findings for `audit-data.json` under the AI Search Readiness category
+- Structured JSON-compatible findings for `audit-data.json` under the AI Search Readiness category, using the finding shape in the `seo-audit` skill's "Structured Audit Data Envelope" (title, severity, description, recommendation)
diff --git a/scripts/agent_ux_check.py b/scripts/agent_ux_check.py
index 3bc50e1..e7baafb 100644
--- a/scripts/agent_ux_check.py
+++ b/scripts/agent_ux_check.py
@@ -226,6 +226,12 @@ def audit(url: str, *, timeout_ms: int = 15000) -> dict:
"issues": [],
}
if page.get("error"):
+ # Without a renderer (for example no Chromium) the score stays
+ # unavailable, but the HTML semantics checks still run on raw HTML.
+ raw = render_page(url, mode="never", timeout_ms=timeout_ms, extract_content=False)
+ if not raw.get("error") and _has_meaningful_body(raw.get("content") or ""):
+ report["html_findings"] = analyze_html(raw.get("content") or "")
+ report["html_only_fallback"] = True
return report
html = page.get("content") or ""
if not _has_meaningful_body(html):
diff --git a/scripts/agentic_check.py b/scripts/agentic_check.py
index d82b005..1aa757a 100644
--- a/scripts/agentic_check.py
+++ b/scripts/agentic_check.py
@@ -347,14 +347,14 @@ def audit_robots(root: str) -> tuple[list, dict]:
"policy differs by purpose (training vs search vs user fetches).")))
user_agents = [a for a in per_agent if a["role"] == "user" and not a["root_allowed"]]
- if user_agents:
- checks.append(_check(
- "robots-user-agents", "User-triggered agents and robots.txt", "P1", "info",
- "vendor documentation",
- {"blocked_at_root": [a["token"] for a in user_agents],
- "documented_behaviour": {a["token"]: a["robots_behaviour"] for a in user_agents}},
- "Several user-triggered agents do not treat robots.txt as binding. Protect "
- "private paths with authentication, not robots.txt."))
+ checks.append(_check(
+ "robots-user-agents", "User-triggered agents and robots.txt", "P1",
+ "info" if user_agents else "pass", "vendor documentation",
+ {"blocked_at_root": [a["token"] for a in user_agents],
+ "documented_behaviour": {a["token"]: a["robots_behaviour"] for a in per_agent
+ if a["role"] == "user"}},
+ "Several user-triggered agents do not treat robots.txt as binding. Protect "
+ "private paths with authentication, not robots.txt." if user_agents else None))
all_signals = [s for g in parsed["groups"] for s in g["content_signal"]]
signal_issues = []
@@ -542,7 +542,7 @@ def _webmcp_markup(soup, base: str, data: dict) -> list:
uses_document = "document.modelContext" in blob
uses_navigator = "navigator.modelContext" in blob
data["webmcp"] = {"forms": len(forms), "forms_annotated": len(annotated),
- "forms_unannotated": unannotated[:20], "registerTool_calls": registers,
+ "forms_unannotated": unannotated[:20], "registerTool_call_sites": registers,
"document_modelContext": uses_document,
"navigator_modelContext": uses_navigator,
"same_origin_scripts_scanned": fetched}
@@ -553,26 +553,37 @@ def _webmcp_markup(soup, base: str, data: dict) -> list:
"pass" if has_tools else "info",
f"W3C Community Group draft, not a standard; WebKit opposes, Mozilla neutral "
f"(checked {CHECKED_ON})",
- {"registerTool_calls_seen": registers, "forms": len(forms),
- "forms_annotated": len(annotated)},
+ {"registerTool_call_sites": registers, "forms": len(forms),
+ "forms_annotated": len(annotated),
+ "note": "Static count of registerTool( call sites in inline and same-origin "
+ "scripts, not the number of tools (a loop registers many). Use "
+ "lighthouse_agentic.py webmcp-registered-tools for the real list."},
None if has_tools else
"Optional. If the site has search, booking, checkout or lead forms, register "
"imperative tools bound to the same handlers the UI uses. Static scan only; "
"confirm at runtime with lighthouse_agentic.py (webmcp-registered-tools)."))
- if uses_navigator and not uses_document:
- checks.append(_check(
- "webmcp-entry-point", "WebMCP registered on the current entry point", "P2",
- "warn", "W3C Community Group draft",
- {"navigator_modelContext": True, "document_modelContext": False},
- "Feature-detect both: 'const mc = document.modelContext ?? "
- "navigator.modelContext'. Check the current spec before shipping."))
- if forms and annotated and unannotated:
- checks.append(_check(
- "webmcp-form-coverage", "Every form annotated for declarative WebMCP", "P3",
- "info", "W3C Community Group draft (Chrome only)",
- {"unannotated": unannotated[:20]},
- "Lighthouse counts webmcp-form-coverage only when every form has toolname or "
- "tooldescription. Annotate only forms that are safe for an agent to submit."))
+ legacy_only = uses_navigator and not uses_document
+ checks.append(_check(
+ "webmcp-entry-point", "WebMCP registered on the current entry point", "P2",
+ "warn" if legacy_only else ("pass" if uses_document else "na"),
+ "W3C Community Group draft",
+ {"navigator_modelContext": uses_navigator, "document_modelContext": uses_document},
+ "Feature-detect both: 'const mc = document.modelContext ?? "
+ "navigator.modelContext'. Check the current spec before shipping."
+ if legacy_only else None))
+ if not forms:
+ form_status = "na"
+ elif not unannotated:
+ form_status = "pass"
+ else:
+ form_status = "info"
+ checks.append(_check(
+ "webmcp-form-annotations", "Forms annotated for declarative WebMCP (static scan)", "P3",
+ form_status, "W3C Community Group draft (Chrome only)",
+ {"forms": len(forms), "unannotated": unannotated[:20]},
+ "Lighthouse's webmcp-form-coverage audit counts only when every form has toolname "
+ "or tooldescription. Annotate only forms that are safe for an agent to submit."
+ if form_status == "info" else None))
return checks
diff --git a/skills/seo-agentic/SKILL.md b/skills/seo-agentic/SKILL.md
index b961f12..24abf2a 100644
--- a/skills/seo-agentic/SKILL.md
+++ b/skills/seo-agentic/SKILL.md
@@ -81,13 +81,13 @@ Run the steps in this order and keep every tool's JSON for the report.
| P1 | Content-Signal inside every relevant group (absence is info, a gap is warn) | `content-signal` |
| P1 | llms.txt passing the Lighthouse rules (absence is info) | `llms-txt` |
| P1 | Markdown via `.md` URLs or `Accept: text/markdown` with `Vary: Accept` | `markdown-delivery` |
-| P1 | Stable, visible confirmation states; no hover-only menus or focus traps | manual, `agent_ux_check.py` |
+| P1 | Stable, visible confirmation states; no hover-only menus or focus traps | manual review (no script evidence; say so if not checked) |
| P1 (transactional) / P2 | Imperative WebMCP tools bound to existing handlers | `webmcp-tools`, Lighthouse `webmcp-registered-tools` |
-| P1 if tools exist | Tool safety: annotations, confirmation, logging | `references/webmcp.md` |
+| P1 if tools exist | Tool safety: annotations, confirmation, logging | manual review of the page source against `references/webmcp.md` |
| P2 | WebMCP registered on `document.modelContext`, not only the legacy `navigator` entry point | `webmcp-entry-point` |
| P2 | API Catalog, OAuth metadata (only if you run APIs) | `well-known:api-catalog`, `well-known:oauth-*` |
| P3 | A2A agent card, UCP profile (only if you run them) | `well-known:agent-card.json`, `well-known:ucp` |
-| P3 | Declarative WebMCP form attributes (Chrome only) | `webmcp-form-coverage` |
+| P3 | Declarative WebMCP form attributes (Chrome only) | `webmcp-form-annotations` (static); Lighthouse `webmcp-form-coverage` |
| P3 (P1 when a signalled catalog fails) | ai-catalog.json (only if you have agent resources) | `ard-catalog` |
Fix in order P0, then P1. Do not recommend lower priorities while a P0 fails.
@@ -178,6 +178,8 @@ version changes, and the `CHECKED_ON` constant in `agentic_check.py` together.
| Scenario | Action |
|---|---|
| PSI quota exceeded or no key | Say so, suggest configuring a Google API key (`/seo google setup`), and continue with steps 2 and 3. Offer a local run: `npx lighthouse@latest <url> --only-categories=agentic-browsing --output=json`, then `--from-json`. |
+| Agent-UX `score_status: unavailable` (no Chromium) | Report the heuristic as unavailable; use `html_findings` if `html_only_fallback` is true and rely on Lighthouse `agent-accessibility-tree` for the tree. Suggest `/seo setup` for Chromium. |
+| Static WebMCP count differs from Lighthouse | `registerTool_call_sites` counts call sites, not tools. Report the Lighthouse `webmcp-registered-tools` list as the tool count. |
| No agentic-browsing category in a saved report | The report predates Lighthouse 13.2; rerun with a current version. |
| WebMCP audits N/A | The testing browser lacked WebMCP support, or the page registers nothing. Not a defect. |
| Site blocks the audit fetcher | Report the status and headers; do not retry with spoofed agent user agents unless step 4's authorization applies. |
diff --git a/skills/seo-agentic/references/webmcp.md b/skills/seo-agentic/references/webmcp.md
index 890103e..d912533 100644
--- a/skills/seo-agentic/references/webmcp.md
+++ b/skills/seo-agentic/references/webmcp.md
@@ -74,8 +74,9 @@ if (mc?.registerTool) {
</script>
```
-The return shape above follows the MCP content convention used in current
-samples; confirm it against the Chrome WebMCP docs before shipping.
+The origin-trial `<meta>` token enables the API for ordinary Chrome visitors
+during the trial; ChatGPT desktop and PSI do not need it. The return shape
+above follows the MCP content convention used in current samples; confirm it against the Chrome WebMCP docs before shipping.
`agentic_fix.py webmcp <url>` drafts one tool per real form, bound to the
form's own submit handler.
diff --git a/tests/test_agentic.py b/tests/test_agentic.py
index 43f7003..60f7a23 100644
--- a/tests/test_agentic.py
+++ b/tests/test_agentic.py
@@ -258,8 +258,8 @@ def test_webmcp_markup_detects_legacy_entry_point():
ids = {c["id"]: c for c in checks}
assert ids["webmcp-tools"]["status"] == "pass"
assert ids["webmcp-entry-point"]["status"] == "warn"
- assert ids["webmcp-form-coverage"]["evidence"]["unannotated"] == ["g"]
- assert data["webmcp"]["registerTool_calls"] == 1
+ assert ids["webmcp-form-annotations"]["evidence"]["unannotated"] == ["g"]
+ assert data["webmcp"]["registerTool_call_sites"] == 1
def test_js_shell_detection():
@@ -434,3 +434,29 @@ def test_from_json_bad_file_exits_cleanly(tmp_path, monkeypatch):
with pytest.raises(SystemExit) as exc:
la.main()
assert exc.value.code == 1
+
+
+def test_priority_table_checks_always_emit_a_row():
+ html = "<html><body><p>plain page</p></body></html>"
+ data: dict = {}
+ ids = {c["id"]: c["status"] for c in ac._webmcp_markup(ac._soup(html), "https://e.test/", data)}
+ assert ids == {"webmcp-tools": "info", "webmcp-entry-point": "na", "webmcp-form-annotations": "na"}
+ with patch.object(ac, "fetch", return_value=_rec(200, "User-agent: *\nAllow: /\n")):
+ checks, _ = ac.audit_robots("https://example.com")
+ assert {c["id"]: c["status"] for c in checks}["robots-user-agents"] == "pass"
+
+
+def test_agent_ux_falls_back_to_raw_html_without_a_renderer(monkeypatch):
+ import agent_ux_check
+
+ def fake_render(url, mode="auto", **_kwargs):
+ if mode == "always":
+ return {"url": url, "status_code": None, "error": "Executable doesn't exist"}
+ return {"url": url, "status_code": 200, "error": None,
+ "content": "<html><body><main><div onclick='x()'>Buy</div>"
+ "<p>" + "word " * 60 + "</p></main></body></html>"}
+
+ monkeypatch.setattr(agent_ux_check, "render_page", fake_render)
+ report = agent_ux_check.audit("https://e.test/")
+ assert report["score_status"] == "unavailable" and report["score"] is None
+ assert report["html_only_fallback"] is True and report["html_findings"]