Production-grade SEO and GEO auditing from your OpenClaw agent. Crawl pages, score them, find issues, track progress, and generate client-ready reports.
pip3 install requests beautifulsoup4 lxml
Optional for advanced features:
GOOGLE_SEARCH_CONSOLE_KEY — JSON key file for Search Console APIBRAVE_API_KEY — Already configured if web_search worksPAGESPEED_API_KEY — Google PageSpeed Insights (free, 25k queries/day)All data lives in ~/.openclaw/workspace/seo-audit/:
seo-audit/
├── config.json # API keys, default settings
├── sites/ # Per-site audit data
│ └── example.com/
│ ├── audits/ # Timestamped audit results
│ ├── keywords/ # Keyword tracking data
│ └── competitors/ # Competitor analysis
├── reports/ # Generated PDF/MD reports
└── templates/ # Report templates
Run scripts/init-workspace.sh to create this structure.
Crawl a URL and audit all on-page SEO factors:
scripts/audit-page.sh "https://example.com" [--depth 1]
Checks performed:
Output: JSON audit result + human-readable summary.
Check the technical foundation:
scripts/audit-technical.sh "https://example.com"
Checks performed:
Score a page's readiness for AI search engines (ChatGPT, Perplexity, Google AI Overviews):
scripts/audit-geo.sh "https://example.com"
GEO-specific checks:
Output: GEO readiness score (0-100) with specific improvement recommendations.
Analyze competitors for a target keyword or domain:
scripts/analyze-competitor.sh --keyword "ai seo tools" [--competitors "site1.com,site2.com"]
If no competitors specified, auto-discovers top 10 ranking pages via Brave Search.
Analysis includes:
Track keyword rankings over time:
scripts/track-keywords.sh --site "example.com" --keywords "keyword1,keyword2,keyword3"
scripts/track-keywords.sh --site "example.com" --report # Show ranking changes
sites//keywords/ Generate client-ready reports:
scripts/generate-report.sh --site "example.com" --type full # Complete audit
scripts/generate-report.sh --site "example.com" --type summary # Executive summary
scripts/generate-report.sh --site "example.com" --type geo # GEO-focused
scripts/generate-report.sh --site "example.com" --type monthly # Monthly progress
Reports include:
Output formats: Markdown (default), HTML (for email/web).
Each audit produces scores across categories:
| Category | Weight | What It Measures |
|---|---|---|
| ---------- | -------- | ----------------- |
| On-Page | 25% | Content, tags, structure |
| Technical | 25% | Speed, mobile, crawlability |
| GEO | 20% | AI search readiness |
| Content Quality | 15% | Depth, uniqueness, authority |
| User Experience | 15% | Core Web Vitals, navigation |
Overall grade: A (90-100), B (80-89), C (70-79), D (60-69), F (<60)
references/scoring-rubric.md — Detailed scoring criteria for each checkreferences/geo-optimization.md — Deep dive on GEO strategies and AI search ranking factorsreferences/search-console-setup.md — Google Search Console API integration guide共 1 个版本