# agricidaniel/claude-seo architecture

> Architecture diagram of the GitHub repository agricidaniel/claude-seo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/agricidaniel/claude-seo
- Repository: https://github.com/agricidaniel/claude-seo
- Video tour (about a minute): https://gitdiagram.com/agricidaniel/claude-seo/video

## Overview

Claude SEO is a Claude Code SEO-audit plugin: a user invokes a command for a site, specialist analyses gather and evaluate SEO signals, and Claude presents recommendations and an action plan. The visible Python scripts implement audit checks, search and analytics integrations, rendering, safety, and drift monitoring; the README documents broader content, schema, local, commerce, and AI-search capabilities whose command implementations are not present in this tree. Edges are limited to README-documented behavior and relationships shown in the supplied source excerpts or SOURCE INDEX.

Main entry points: [`scripts/google_auth.py`](https://github.com/agricidaniel/claude-seo/blob/main/scripts/google_auth.py) (Google credentials), [`scripts/agentic_check.py`](https://github.com/agricidaniel/claude-seo/blob/main/scripts/agentic_check.py) (Agent readiness), [`scripts/render_page.py`](https://github.com/agricidaniel/claude-seo/blob/main/scripts/render_page.py) (Page renderer), [`scripts/gsc_query.py`](https://github.com/agricidaniel/claude-seo/blob/main/scripts/gsc_query.py) (Search Console queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Audit entry"]
  node_claude["Claude Code"]
  node_audit["Audit commands"]
end

subgraph group_analysis["Site analysis"]
  node_technical["Technical checks"]
  node_content["Content quality"]
  node_schema["Schema checks"]
  node_agentic["Agent readiness<br/>[agentic_check.py]"]
  node_render["Page renderer<br/>[render_page.py]"]
  node_localcommerce["Local and commerce"]
  node_geo["AI search analysis"]
end

subgraph group_data["Search data"]
  node_googledata["Google reports<br/>[google_report.py]"]
  node_gsc["Search Console queries<br/>[gsc_query.py]"]
  node_pagespeed["PageSpeed checks<br/>[pagespeed_check.py]"]
  node_youtube["YouTube search<br/>[youtube_search.py]"]
  node_backlinks["Backlink research<br/>[backlinks_auth.py]"]
  node_bing["Bing link data<br/>[bing_webmaster.py]"]
  node_matomo["Matomo reports<br/>[matomo_report.py]"]
end

subgraph group_monitor["Monitoring"]
  node_driftbase["Drift baseline<br/>[drift_baseline.py]"]
  node_driftcompare["Drift comparison<br/>[drift_compare.py]"]
  node_driftother["Drift history and reports"]
end

subgraph group_shared["Shared services"]
  node_urlsafety["URL safety<br/>[url_safety.py]"]
  node_googleauth["Google credentials<br/>[google_auth.py]"]
  node_matomoauth["Matomo credentials<br/>[matomo_auth.py]"]
end

node_user(("SEO user"))

node_user -->|"invokes commands"| node_claude
node_claude -->|"runs SEO commands"| node_audit
node_audit -->|"audits site"| node_technical
node_audit -->|"checks content"| node_content
node_audit -->|"checks markup"| node_schema
node_audit -->|"checks readiness"| node_agentic
node_audit -->|"renders pages"| node_render
node_audit -->|"audits local commerce"| node_localcommerce
node_audit -->|"assesses AI search"| node_geo
node_audit -->|"reports search data"| node_googledata
node_audit -->|"queries performance"| node_gsc
node_audit -->|"checks speed"| node_pagespeed
node_audit -->|"queries video data"| node_youtube
node_audit -->|"researches links"| node_backlinks
node_audit -->|"queries link data"| node_bing
node_audit -->|"reports analytics"| node_matomo
node_audit -->|"stores baseline"| node_driftbase
node_audit -->|"compares changes"| node_driftcompare
node_audit -->|"tracks history"| node_driftother
node_agentic -->|"uses safety checks"| node_urlsafety
node_render -->|"uses safety checks"| node_urlsafety
node_gsc -->|"builds API client"| node_googleauth
node_pagespeed -->|"uses credentials"| node_googleauth
node_youtube -->|"builds API client"| node_googleauth
node_bing -->|"loads credentials"| node_backlinks
node_matomo -->|"loads credentials"| node_matomoauth
node_driftcompare -->|"reads baseline"| node_driftbase

click node_technical "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_content "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_schema "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_agentic "https://github.com/agricidaniel/claude-seo/blob/main/scripts/agentic_check.py"
click node_render "https://github.com/agricidaniel/claude-seo/blob/main/scripts/render_page.py"
click node_localcommerce "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_geo "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_googledata "https://github.com/agricidaniel/claude-seo/blob/main/scripts/google_report.py"
click node_gsc "https://github.com/agricidaniel/claude-seo/blob/main/scripts/gsc_query.py"
click node_pagespeed "https://github.com/agricidaniel/claude-seo/blob/main/scripts/pagespeed_check.py"
click node_youtube "https://github.com/agricidaniel/claude-seo/blob/main/scripts/youtube_search.py"
click node_backlinks "https://github.com/agricidaniel/claude-seo/blob/main/scripts/backlinks_auth.py"
click node_bing "https://github.com/agricidaniel/claude-seo/blob/main/scripts/bing_webmaster.py"
click node_matomo "https://github.com/agricidaniel/claude-seo/blob/main/scripts/matomo_report.py"
click node_driftbase "https://github.com/agricidaniel/claude-seo/blob/main/scripts/drift_baseline.py"
click node_driftcompare "https://github.com/agricidaniel/claude-seo/blob/main/scripts/drift_compare.py"
click node_driftother "https://github.com/agricidaniel/claude-seo/tree/main/scripts"
click node_urlsafety "https://github.com/agricidaniel/claude-seo/blob/main/scripts/url_safety.py"
click node_googleauth "https://github.com/agricidaniel/claude-seo/blob/main/scripts/google_auth.py"
click node_matomoauth "https://github.com/agricidaniel/claude-seo/blob/main/scripts/matomo_auth.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_claude,node_audit,node_user toneBlue
class node_technical,node_content,node_schema,node_agentic,node_render,node_localcommerce,node_geo toneAmber
class node_googledata,node_gsc,node_pagespeed,node_youtube,node_backlinks,node_bing,node_matomo toneMint
class node_driftbase,node_driftcompare,node_driftother toneRose
class node_urlsafety,node_googleauth,node_matomoauth toneIndigo
```

## Components

### Audit entry

- **Claude Code**
- **Audit commands**

### Site analysis

- [Technical checks](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`
- [Content quality](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`
- [Schema checks](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`
- [Agent readiness](https://github.com/agricidaniel/claude-seo/blob/main/scripts/agentic_check.py): `scripts/agentic_check.py`
- [Page renderer](https://github.com/agricidaniel/claude-seo/blob/main/scripts/render_page.py): `scripts/render_page.py`
- [Local and commerce](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`
- [AI search analysis](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`

### Search data

- [Google reports](https://github.com/agricidaniel/claude-seo/blob/main/scripts/google_report.py): `scripts/google_report.py`
- [Search Console queries](https://github.com/agricidaniel/claude-seo/blob/main/scripts/gsc_query.py): `scripts/gsc_query.py`
- [PageSpeed checks](https://github.com/agricidaniel/claude-seo/blob/main/scripts/pagespeed_check.py): `scripts/pagespeed_check.py`
- [YouTube search](https://github.com/agricidaniel/claude-seo/blob/main/scripts/youtube_search.py): `scripts/youtube_search.py`
- [Backlink research](https://github.com/agricidaniel/claude-seo/blob/main/scripts/backlinks_auth.py): `scripts/backlinks_auth.py`
- [Bing link data](https://github.com/agricidaniel/claude-seo/blob/main/scripts/bing_webmaster.py): `scripts/bing_webmaster.py`
- [Matomo reports](https://github.com/agricidaniel/claude-seo/blob/main/scripts/matomo_report.py): `scripts/matomo_report.py`

### Monitoring

- [Drift baseline](https://github.com/agricidaniel/claude-seo/blob/main/scripts/drift_baseline.py): `scripts/drift_baseline.py`
- [Drift comparison](https://github.com/agricidaniel/claude-seo/blob/main/scripts/drift_compare.py): `scripts/drift_compare.py`
- [Drift history and reports](https://github.com/agricidaniel/claude-seo/tree/main/scripts): `scripts`

### Shared services

- [URL safety](https://github.com/agricidaniel/claude-seo/blob/main/scripts/url_safety.py): `scripts/url_safety.py`
- [Google credentials](https://github.com/agricidaniel/claude-seo/blob/main/scripts/google_auth.py): `scripts/google_auth.py`
- [Matomo credentials](https://github.com/agricidaniel/claude-seo/blob/main/scripts/matomo_auth.py): `scripts/matomo_auth.py`

### Other components

- **SEO user**

## Connections

- SEO user → Claude Code: invokes commands (evidence: `README.md`)
- Claude Code → Audit commands: runs SEO commands (evidence: `README.md`)
- Audit commands → Technical checks: audits site (evidence: `README.md`)
- Audit commands → Content quality: checks content (evidence: `README.md`)
- Audit commands → Schema checks: checks markup (evidence: `README.md`)
- Audit commands → Agent readiness: checks readiness (evidence: `README.md`)
- Audit commands → Page renderer: renders pages (evidence: `scripts/render_page.py`)
- Audit commands → Local and commerce: audits local commerce (evidence: `README.md`)
- Audit commands → AI search analysis: assesses AI search (evidence: `README.md`)
- Audit commands → Google reports: reports search data (evidence: `README.md`)
- Audit commands → Search Console queries: queries performance (evidence: `scripts/gsc_query.py`)
- Audit commands → PageSpeed checks: checks speed (evidence: `README.md`)
- Audit commands → YouTube search: queries video data (evidence: `scripts/youtube_search.py`)
- Audit commands → Backlink research: researches links (evidence: `scripts/backlinks_auth.py`)
- Audit commands → Bing link data: queries link data (evidence: `README.md`)
- Audit commands → Matomo reports: reports analytics (evidence: `scripts/matomo_report.py`)
- Audit commands → Drift baseline: stores baseline (evidence: `README.md`)
- Audit commands → Drift comparison: compares changes (evidence: `README.md`)
- Audit commands → Drift history and reports: tracks history (evidence: `README.md`)
- Agent readiness → URL safety: uses safety checks (evidence: `scripts/agentic_check.py`)
- Page renderer → URL safety: uses safety checks (evidence: `scripts/render_page.py`)
- Search Console queries → Google credentials: builds API client (evidence: `scripts/gsc_query.py`)
- PageSpeed checks → Google credentials: uses credentials (evidence: `scripts/pagespeed_check.py`)
- YouTube search → Google credentials: builds API client (evidence: `scripts/youtube_search.py`)
- Bing link data → Backlink research: loads credentials (evidence: `scripts/bing_webmaster.py`)
- Matomo reports → Matomo credentials: loads credentials (evidence: `scripts/matomo_report.py`)
- Drift comparison → Drift baseline: reads baseline (evidence: `scripts/drift_compare.py`)
