# bhanunamikaze/agentic-seo-skill architecture

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

- Interactive diagram: https://gitdiagram.com/bhanunamikaze/agentic-seo-skill
- Repository: https://github.com/bhanunamikaze/agentic-seo-skill

## Overview

This repository is an LLM-first SEO analysis skill: scripts collect evidence while an agent interprets findings, prioritizes them, and produces an action plan. The documented one-command website-audit path is `audit_runner.py`; the README also describes standalone technical, content, schema, performance, links, AI-crawler, and GitHub SEO capabilities. The graph preserves those distinct areas and shared runtime helpers. Some capability scripts and the audit runner were not sampled, so their internal call relationships are omitted rather than inferred.

Main entry points: [`scripts/lib/safe_http.py`](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/lib/safe_http.py) (Safe HTTP client), [`scripts/seo_common.py`](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/seo_common.py) (Fetch and parse), [`scripts/github_api.py`](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_api.py) (GitHub API client), [`scripts/github_seo_report.py`](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_seo_report.py) (GitHub SEO report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_audit["Audit workflow"]
  node_audit_runner["Audit runner<br/>[audit_runner.py]"]
  node_finding_verifier["Finding verifier"]
  node_report_generator["Report dashboard<br/>[generate_report.py]"]
end

subgraph group_site["Website analysis"]
  node_fetch_parse["Fetch and parse<br/>[seo_common.py]"]
  node_crawl["Site crawl<br/>[crawl_audit.py]"]
  node_indexability["Indexability checks"]
  node_robots_sitemaps["Robots and sitemaps<br/>[robots_checker.py]"]
  node_performance["Page performance<br/>[pagespeed.py]"]
  node_content["Content analysis<br/>[article_seo.py]"]
  node_readability["Readability analysis<br/>[readability.py]"]
  node_schema["Schema validation<br/>[validate_schema.py]"]
  node_schema_rules["Schema requirements"]
  node_links["Link analysis<br/>[internal_links.py]"]
  node_ai_crawlers["AI crawler guidance"]
  node_llms_generator["llms.txt drafting"]
end

subgraph group_github["GitHub SEO"]
  node_github_report["GitHub SEO report"]
  node_repo_audit["Repository audit"]
  node_gh_benchmark["Search benchmark"]
  node_gh_competitors["Competitor research"]
  node_github_api["GitHub API client<br/>[github_api.py]"]
end

subgraph group_shared["Shared runtime"]
  node_safe_http["Safe HTTP client<br/>[safe_http.py]"]
  node_env_loader["Environment loader<br/>[env_loader.py]"]
end

node_user(("SEO practitioner"))

node_user -->|"starts audit"| node_audit_runner
node_audit_runner -->|"writes reports"| node_user
node_github_report -->|"verifies findings"| node_finding_verifier
node_github_report -->|"uses API"| node_github_api
node_repo_audit -->|"uses API"| node_github_api
node_gh_benchmark -->|"uses API"| node_github_api
node_gh_competitors -->|"uses API"| node_github_api
node_github_api -->|"loads credentials"| node_env_loader
node_content -->|"fetches pages"| node_safe_http
node_crawl -->|"uses helpers"| node_fetch_parse
node_indexability -.->|"uses helpers"| node_fetch_parse
node_robots_sitemaps -.->|"uses helpers"| node_fetch_parse
node_performance -->|"fetches evidence"| node_safe_http
node_readability -->|"fetches pages"| node_safe_http
node_links -->|"fetches pages"| node_safe_http
node_ai_crawlers -->|"fetches files"| node_safe_http
node_llms_generator -->|"uses helpers"| node_fetch_parse
node_schema -.->|"checks requirements"| node_schema_rules
node_fetch_parse -->|"fetches URLs"| node_safe_http

click node_audit_runner "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/audit_runner.py"
click node_finding_verifier "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/finding_verifier.py"
click node_report_generator "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/generate_report.py"
click node_fetch_parse "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/seo_common.py"
click node_crawl "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/crawl_audit.py"
click node_indexability "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/indexability_matrix.py"
click node_robots_sitemaps "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/robots_checker.py"
click node_performance "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/pagespeed.py"
click node_content "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/article_seo.py"
click node_readability "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/readability.py"
click node_schema "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/validate_schema.py"
click node_schema_rules "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/schema_required_props.py"
click node_links "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/internal_links.py"
click node_ai_crawlers "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/llms_txt_checker.py"
click node_llms_generator "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/llms_txt_generator.py"
click node_github_report "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_seo_report.py"
click node_repo_audit "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_repo_audit.py"
click node_gh_benchmark "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_search_benchmark.py"
click node_gh_competitors "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_competitor_research.py"
click node_github_api "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_api.py"
click node_safe_http "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/lib/safe_http.py"
click node_env_loader "https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/env_loader.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_audit_runner,node_finding_verifier,node_report_generator toneBlue
class node_fetch_parse,node_crawl,node_indexability,node_robots_sitemaps,node_performance,node_content,node_readability,node_schema,node_schema_rules,node_links,node_ai_crawlers,node_llms_generator toneAmber
class node_github_report,node_repo_audit,node_gh_benchmark,node_gh_competitors,node_github_api toneMint
class node_safe_http,node_env_loader toneRose
class node_user toneIndigo
```

## Components

### Audit workflow

- [Audit runner](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/audit_runner.py): `scripts/audit_runner.py`
- [Finding verifier](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/finding_verifier.py): `scripts/finding_verifier.py`
- [Report dashboard](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/generate_report.py): `scripts/generate_report.py`

### Website analysis

- [Fetch and parse](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/seo_common.py): `scripts/seo_common.py`
- [Site crawl](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/crawl_audit.py): `scripts/crawl_audit.py`
- [Indexability checks](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/indexability_matrix.py): `scripts/indexability_matrix.py`
- [Robots and sitemaps](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/robots_checker.py): `scripts/robots_checker.py`
- [Page performance](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/pagespeed.py): `scripts/pagespeed.py`
- [Content analysis](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/article_seo.py): `scripts/article_seo.py`
- [Readability analysis](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/readability.py): `scripts/readability.py`
- [Schema validation](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/validate_schema.py): `scripts/validate_schema.py`
- [Schema requirements](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/schema_required_props.py): `scripts/schema_required_props.py`
- [Link analysis](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/internal_links.py): `scripts/internal_links.py`
- [AI crawler guidance](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/llms_txt_checker.py): `scripts/llms_txt_checker.py`
- [llms.txt drafting](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/llms_txt_generator.py): `scripts/llms_txt_generator.py`

### GitHub SEO

- [GitHub SEO report](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_seo_report.py): `scripts/github_seo_report.py`
- [Repository audit](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_repo_audit.py): `scripts/github_repo_audit.py`
- [Search benchmark](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_search_benchmark.py): `scripts/github_search_benchmark.py`
- [Competitor research](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_competitor_research.py): `scripts/github_competitor_research.py`
- [GitHub API client](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/github_api.py): `scripts/github_api.py`

### Shared runtime

- [Safe HTTP client](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/lib/safe_http.py): `scripts/lib/safe_http.py`
- [Environment loader](https://github.com/bhanunamikaze/agentic-seo-skill/blob/main/scripts/env_loader.py): `scripts/env_loader.py`

### Other components

- **SEO practitioner**

## Connections

- SEO practitioner → Audit runner: starts audit (evidence: `README.md`)
- Audit runner → SEO practitioner: writes reports (evidence: `README.md`)
- GitHub SEO report → Finding verifier: verifies findings (evidence: `scripts/github_seo_report.py`)
- GitHub SEO report → GitHub API client: uses API (evidence: `scripts/github_seo_report.py`)
- Repository audit → GitHub API client: uses API (evidence: `scripts/github_repo_audit.py`)
- Search benchmark → GitHub API client: uses API (evidence: `scripts/github_search_benchmark.py`)
- Competitor research → GitHub API client: uses API (evidence: `scripts/github_competitor_research.py`)
- GitHub API client → Environment loader: loads credentials (evidence: `scripts/github_api.py`)
- Content analysis → Safe HTTP client: fetches pages (evidence: `scripts/article_seo.py`)
- Site crawl → Fetch and parse: uses helpers (evidence: `scripts/crawl_audit.py`)
- Indexability checks → Fetch and parse: uses helpers
- Robots and sitemaps → Fetch and parse: uses helpers
- Page performance → Safe HTTP client: fetches evidence (evidence: `scripts/pagespeed.py`)
- Readability analysis → Safe HTTP client: fetches pages (evidence: `scripts/readability.py`)
- Link analysis → Safe HTTP client: fetches pages (evidence: `scripts/internal_links.py`)
- AI crawler guidance → Safe HTTP client: fetches files (evidence: `scripts/llms_txt_checker.py`)
- llms.txt drafting → Fetch and parse: uses helpers (evidence: `scripts/llms_txt_generator.py`)
- Schema validation → Schema requirements: checks requirements
- Fetch and parse → Safe HTTP client: fetches URLs (evidence: `scripts/seo_common.py`)
