{"success":true,"name":"seo-technical","description":">","category":"unitary","path":"unitary/seo-technical/SKILL.md","file":"SKILL.md","content":"---\nname: seo-technical\ndescription: >\n  Technical SEO audit across 9 categories: crawlability, indexability, security,\n  URL structure, mobile, Core Web Vitals, structured data, JavaScript rendering,\n  and IndexNow protocol. Use when user says \"technical SEO\", \"crawl issues\",\n  \"robots.txt\", \"Core Web Vitals\", \"site speed\", or \"security headers\".\nuser-invocable: true\nargument-hint: \"[url]\"\nlicense: MIT\nmetadata:\n  author: AgriciDaniel\n  version: \"2.3.1\"\n  category: seo\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/artisto/skills-off/claude-seo-rest/seo-technical`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# Technical SEO Audit\n\n## Categories\n\n### 1. Crawlability\n- robots.txt: exists, valid, not blocking important resources\n- XML sitemap: run `\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run sitemap_discovery.py <url> --json`; require a\n  valid entry in `found`, and report stale or unsafe robots.txt declarations\n  separately from working fallback locations\n- Noindex tags: intentional vs accidental\n- Crawl depth: important pages within 3 clicks of homepage\n- JavaScript rendering: check if critical content requires JS execution\n- Crawl budget: for large sites (>10k pages), efficiency matters\n- Googlebot **fetch limits**: Googlebot fetches the first **2MB of HTML** and first **64MB of a PDF** (uncompressed; 15MB is the broader crawler-infra default). Long-standing, not a 2026 change, but inline base64 images, oversized inline CSS/JS, or bloated nav can push critical content/JSON-LD past the cap and out of the index. Keep key content + structured data within the first 2MB.\n- Crawl rate **auto-adjusts** (backs off on 5xx/slow responses); there is **no manual crawl-rate control** (the legacy Search Console setting was removed Jan 2024). Influence crawling via sitemaps, server responsiveness, and robots controls.\n- Google's canonical crawling/robots reference moved to **developers.google.com/crawling** (migrated 2025-11-20); IP-range files relocated to `/crawling/ipranges/` and `googlebot.json` was renamed `common-crawlers.json`.\n- AMP has no separate ranking advantage. Since 2026-07-01, Google Search sends\n  users directly to publisher-hosted AMP URLs, so do not recommend AMP Cache,\n  AMP Viewer, or signed exchange maintenance. Audit AMP against the same content,\n  action-parity, and quality requirements as other pages.\n\n#### AI Crawler Management\n\nAs of 2025-2026, AI companies actively crawl the web to train models and power AI search. Managing these crawlers via robots.txt is a critical technical SEO consideration.\n\n**Known AI crawlers:**\n\n| Crawler | Company | robots.txt token | Purpose |\n|---------|---------|-----------------|---------|\n| GPTBot | OpenAI | `GPTBot` | Model training (NOT ChatGPT Search) |\n| OAI-SearchBot | OpenAI | `OAI-SearchBot` | ChatGPT Search citability |\n| ChatGPT-User | OpenAI | `ChatGPT-User` | Real-time browsing (user-triggered) |\n| ClaudeBot | Anthropic | `ClaudeBot` | Model training (NOT Claude search citability) |\n| Claude-SearchBot | Anthropic | `Claude-SearchBot` | Claude search-result citability |\n| PerplexityBot | Perplexity | `PerplexityBot` | Search index + training |\n| Bytespider | ByteDance | `Bytespider` | Model training |\n| Google-Extended | Google | `Google-Extended` | Gemini training (NOT search) |\n| Applebot-Extended | Apple | `Applebot-Extended` | Apple Intelligence training opt-out (NOT Siri/Spotlight/Safari) |\n| CCBot | Common Crawl | `CCBot` | Open dataset |\n\n**Key distinctions:**\n- Blocking `Google-Extended` prevents Gemini training use but does NOT affect Google Search indexing or AI Overviews (those use `Googlebot`)\n- Blocking `GPTBot` prevents OpenAI training but does NOT affect ChatGPT Search\n  citability, which is governed by `OAI-SearchBot`, nor user-triggered browsing\n  (`ChatGPT-User`). Check `OAI-SearchBot` for any citability claim; `GPTBot`\n  status is evidence about training use only\n- Blocking `ClaudeBot` prevents Anthropic model training but does NOT affect\n  citability in Claude's own search features, which is governed by\n  `Claude-SearchBot` (per Anthropic's crawler support article). Check\n  `Claude-SearchBot` for any Claude-search citability claim; `ClaudeBot` status\n  is evidence about training use only\n- Blocking `Applebot-Extended` opts out of Apple Intelligence / generative-model\n  training use but does NOT affect discoverability via Siri, Spotlight, or Safari,\n  which follows `Applebot` (per Apple's support article); `Applebot-Extended` does\n  not itself crawl\n- ~3-5% of websites now use AI-specific robots.txt rules\n\n**Example, selective AI crawler blocking:**\n```\n# Allow search indexing, block AI training crawlers\nUser-agent: GPTBot\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nUser-agent: Bytespider\nDisallow: /\n\n# Allow all other crawlers (including Googlebot for search)\nUser-agent: *\nAllow: /\n```\n\n**Recommendation:** Consider your AI visibility strategy before blocking. Being cited by AI systems drives brand awareness and referral traffic. Cross-reference the `seo-geo` skill for the full AI crawler/fetcher taxonomy.\n\n> **User-triggered fetchers ignore robots.txt by design.** Google now documents **Google-Agent** (Project Mariner, agentic browsing) plus **Google-NotebookLM** and **Google Messages** as *user-triggered* fetchers that **cannot be blocked via robots.txt**. Use server-side access controls instead. By contrast, `Google-Extended` and `Google-CloudVertexBot` obey robots.txt. Emerging: **Web Bot Auth** (RFC 9421) lets bots authenticate cryptographically via a `Signature-Agent` header + key directory at `agent.bot.goog` (used by Google-Agent); reverse-DNS verification remains the fallback.\n\n### 2. Indexability\n- Canonical tags: self-referencing, no conflicts with noindex\n- Duplicate content: near-duplicates, parameter URLs, www vs non-www\n- Canonicalization fixes can take time: Google may retain corrected pages in a\n  duplicate cluster for **up to two weeks** while re-evaluating them. Do not\n  interpret an unchanged canonical immediately after a fix as proof that the\n  fix failed.\n- Thin content: pages below minimum word counts per type\n- Pagination: rel=next/prev or load-more pattern\n- Hreflang: correct for multi-language/multi-region sites\n- Index bloat: unnecessary pages consuming crawl budget\n\n### 3. Security\n- HTTPS: enforced, valid SSL certificate, no mixed content\n- Security headers:\n  - Content-Security-Policy (CSP)\n  - Strict-Transport-Security (HSTS)\n  - X-Frame-Options\n  - X-Content-Type-Options\n  - Referrer-Policy\n- HSTS preload: check preload list inclusion for high-security sites\n- **Back-button hijacking** (spam-policy violation, malicious practices): flag pages that defeat the Back button via `history.pushState`/`replaceState` (including scripts injected by third-party ad/library platforms). Added to Google's spam policies 2026-04-13; **enforcement live since 2026-06-15** (manual actions + automated demotions): treat as Critical.\n\n### 4. URL Structure\n- Clean URLs: descriptive, hyphenated, no query parameters for content\n- Hierarchy: logical folder structure reflecting site architecture\n- Redirects: no chains (max 1 hop), 301 for permanent moves\n- URL length: flag >100 characters\n- Trailing slashes: consistent usage\n\n### 5. Mobile Optimization & Page Experience\n- Responsive design: viewport meta tag, responsive CSS\n- Touch targets: minimum 48x48px with 8px spacing\n- Font size: minimum 16px base\n- No horizontal scroll\n- Mobile-first indexing: Googlebot Smartphone is the primary crawler (rollout completed 2024). A mobile version is **not strictly required** (Google says \"very strongly recommended\"), sites that don't work on mobile can still be indexed, but the real risk is **content/parity loss**, not hard exclusion.\n- **Mobile/desktop content parity** (highest-value mobile check): equivalent primary content, matching robots meta tags, matching titles/descriptions, equivalent structured data, crawlable resources; avoid lazy-loading primary content that requires user interaction.\n- **Intrusive interstitials / ad density**: flag full-page interstitials, standalone consent-redirect pages, persistent blocking dialogs, and excessive/distracting ad density (a named page-experience aspect). Acceptable: small banners, standard CMS/legal dialogs.\n- **\"Read more\" deep links**: keep key content **immediately visible on load** (not behind tabs/accordions), don't hijack scroll on load, and preserve URL hash fragments, content hidden behind expandable sections is less likely to qualify.\n\n> **Page experience is guidance, not a single ranking system.** Only **Core Web Vitals** feeds ranking directly; **HTTPS** is a confirmed but lightweight signal (affects <~1% of queries). Relevance can still win even when page experience is sub-par, so don't over-weight security headers. Note: the standalone **Page Experience report was removed** from Search Console (monitor via the Core Web Vitals + HTTPS reports).\n\n### 6. Core Web Vitals\n- **LCP** (Largest Contentful Paint): target <=2.5s\n- **INP** (Interaction to Next Paint): target <=200ms\n  - INP replaced FID on March 12, 2024. FID was removed from Chrome's field-data tools (CrUX API, PageSpeed Insights) on September 9, 2024 (Lighthouse is a lab tool that never reported FID). Do NOT reference FID anywhere.\n- **CLS** (Cumulative Layout Shift): target <=0.1\n- Evaluation uses 75th percentile of real user data\n- Use PageSpeed Insights API or CrUX data if MCP available\n\n### 7. Structured Data\n- Detection: JSON-LD (preferred), Microdata, RDFa\n- Validation against Google's supported types\n- See seo-schema skill for full analysis\n\n### 8. JavaScript Rendering\n- Check if content visible in initial HTML vs requires JS\n- Identify client-side rendered (CSR) vs server-side rendered (SSR)\n- Flag SPA frameworks (React, Vue, Angular) that may cause indexing issues\n- If dynamic rendering is detected, flag it as technical debt rather than a valid setup.\n  Google documents it as \"a workaround and not a recommended solution\" because of the added\n  complexity and resource cost.\n  See https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering\n\n**Recommended rendering strategy:**\n\n| Strategy | Use Case |\n|----------|----------|\n| **SSR** | Public SEO content, dynamic pages |\n| **SSG** | Static content, blogs, docs |\n| **CSR** | Authenticated / behind-login content only |\n\n**Preferred frameworks:** Next.js, Astro, React Router v7 (Remix), SvelteKit\n\n#### JavaScript SEO: Canonical & Indexing Guidance (December 2025)\n\nGoogle updated its JavaScript SEO documentation in December 2025 with critical clarifications:\n\n1. **Canonical conflicts:** If a canonical tag in raw HTML differs from one injected by JavaScript, Google may use EITHER one. Ensure canonical tags are identical between server-rendered HTML and JS-rendered output.\n2. **noindex with JavaScript:** If raw HTML contains `<meta name=\"robots\" content=\"noindex\">` but JavaScript removes it, Google MAY still honor the noindex from raw HTML. Serve correct robots directives in the initial HTML response.\n3. **Non-200 status codes:** Google does NOT render JavaScript on pages returning non-200 HTTP status codes. Any content or meta tags injected via JS on error pages will be invisible to Googlebot.\n4. **Structured data in JavaScript:** Product, Article, and other structured data injected via JS may face delayed processing. For time-sensitive structured data (especially e-commerce Product markup), include it in the initial server-rendered HTML.\n\n**Best practice:** Serve critical SEO elements (canonical, meta robots, structured data, title, meta description) in the initial server-rendered HTML rather than relying on JavaScript injection.\n\n### 9. IndexNow Protocol\n- Check if site supports IndexNow for Bing, Yandex, Naver\n- Supported by search engines other than Google\n- Recommend implementation for faster indexing on non-Google engines\n\n## Agent-Friendly Pages & Agentic Browsing\n\nAI agents (not just AI summarizers) increasingly read sites through three\nchannels: vision models on screenshots, raw HTML/DOM, and the **accessibility\ntree** (the cleanest signal). Audit criteria: semantic HTML (real `<button>`\nand `<a>`, not `<div onclick>`), label associations, interactive target sizing,\nlayout stability across templates, `cursor: pointer` correctness, live in\n`references/agent-friendly-pages.md`.\n\nGoogle now ships a Lighthouse **Agentic Browsing** category (default-on since\nLighthouse 13.3.0, Chrome 150+; buckets: agent-centric accessibility, CLS +\nllms.txt, three WebMCP audits). It reports a **fractional pass-ratio (X of N),\nnot a 0-100 score**, keep that distinct from this skill's own Agent-UX 0-100\nheuristic below. Lighthouse 13.4.1 re-enabled the category through the PSI API.\nIt is also available through Lighthouse CLI with\n`--only-categories=agentic-browsing`, DevTools, and the PSI web UI. See\n`references/agent-friendly-pages.md`.\n\n### Audit command\n\n```bash\n# Render with Playwright + capture accessibility tree, then score\n\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run agent_ux_check.py https://example.com --json\n```\n\nThe scanner outputs an Agent-UX score (0-100) plus itemized issues:\n- HTML findings: real buttons / anchors, `<div onclick>` widgets, semantic\n  landmarks, inputs without `<label for>`, inputs without ARIA labels\n- Accessibility tree findings: total nodes, interactive nodes, unnamed\n  interactive elements, `role=\"generic\"` ratio\n\nThe accessibility-tree snapshot uses Chromium's\n`Accessibility.getFullAXTree` CDP command through Playwright. To capture the\ntree without scoring, use\n`\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run render_page.py <url> --a11y-tree --json`.\n\nSurface findings as **opportunities**, not failures; don't gate audits on a\nsub-100 Agent-UX score. WebMCP origin-trial/sign-up status needs verification,\nand absence of WebMCP support is still an opportunity, not a defect.\n\n## Output\n\n### Technical Score: XX/100\n\n### Category Breakdown\n| Category | Status | Score |\n|----------|--------|-------|\n| Crawlability | pass/warn/fail | XX/100 |\n| Indexability | pass/warn/fail | XX/100 |\n| Security | pass/warn/fail | XX/100 |\n| URL Structure | pass/warn/fail | XX/100 |\n| Mobile | pass/warn/fail | XX/100 |\n| Core Web Vitals | pass/warn/fail | XX/100 |\n| Structured Data | pass/warn/fail | XX/100 |\n| JS Rendering | pass/warn/fail | XX/100 |\n| IndexNow | pass/warn/fail | XX/100 |\n\n### Critical Issues (fix immediately)\n### High Priority (fix within 1 week)\n### Medium Priority (fix within 1 month)\n### Low Priority (backlog)\n\n## DataForSEO Integration (Optional)\n\nIf DataForSEO MCP tools are available, use `on_page_instant_pages` for real page analysis (status codes, page timing, broken links, on-page checks), `on_page_lighthouse` for Lighthouse audits (performance, accessibility, SEO scores), and `domain_analytics_technologies_domain_technologies` for technology stack detection.\n\n## Google API Integration (Optional)\n\nIf Google API credentials are configured, use `\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run pagespeed_check.py <url> --json` for real PSI + CrUX field data (replaces lab-only CWV estimates), `\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run crux_history.py <url> --json` for 25-week CWV trends, and `\"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run gsc_inspect.py <url> --json` for real indexation status per URL.\n\n## Auditing a Local or Private Host\n\n`url_safety` refuses loopback and private addresses by default, so `http://localhost:3000` and a staging host on Tailscale fail with \"Blocked hostname\" or \"Blocked IP literal\". That default is deliberate: these scripts follow URLs found on the pages they crawl.\n\nTo audit a pre-deployment host, the operator names it in `CLAUDE_SEO_LOCAL_TARGETS`, a comma-separated list of `host` or `host:port` entries:\n\n```bash\nCLAUDE_SEO_LOCAL_TARGETS=\"localhost:3000,127.0.0.1:8080,[IP]\" \\\n  \"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo\" run fetch_page.py http://localhost:3000/\n```\n\nWhat it does and does not cover:\n\n| Behaviour | Allowlisted host |\n|-----------|------------------|\n| First, top-level URL over raw HTTP | Allowed |\n| Redirect target reached from that URL | Refused |\n| Subresource fetched by a rendered page | Refused |\n| Playwright renders (`--render`, screenshots) | Refused; use the raw-HTTP path |\n| A host not named in the variable | Refused |\n| Cloud metadata endpoints, even when listed | Refused |\n\n`host:port` matches that port only; a bare `host` matches any port. With the variable unset the policy is unchanged. Never suggest setting it for a host the user does not control. See SECURITY.md.\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| URL unreachable | Report connection error with status code. Suggest verifying URL, checking DNS resolution, and confirming the site is publicly accessible. |\n| robots.txt not found | Note that no robots.txt was detected at the root domain. Recommend creating one with appropriate directives. Continue audit on remaining categories. |\n| HTTPS not configured | Flag as a critical issue. Report whether HTTP is served without redirect, mixed content exists, or SSL certificate is missing/expired. |\n| Core Web Vitals data unavailable | Note that CrUX data is not available (common for low-traffic sites). Suggest using Lighthouse lab data as a proxy and recommend increasing traffic before re-testing. |\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}