bmad-plus 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +12 -56
- package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +452 -452
- package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +116 -116
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +100 -100
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +130 -130
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/psychoprofile.md +69 -69
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +281 -281
- package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/mcp-client.py +136 -136
- package/package.json +1 -1
- package/readme-international/README.de.md +1 -1
- package/readme-international/README.es.md +1 -1
- package/readme-international/README.fr.md +1 -1
- package/tools/cli/commands/install.js +74 -46
- package/tools/cli/i18n.js +501 -0
- package/oveanet-pack/animated-website/DEPLOYMENT.md +0 -104
- package/oveanet-pack/animated-website/README.md +0 -63
- package/oveanet-pack/animated-website/agent/animated-website-agent.md +0 -325
- package/oveanet-pack/animated-website/agent.yaml +0 -63
- package/oveanet-pack/animated-website/templates/animated-website-workflow.md +0 -55
- package/oveanet-pack/seo-audit-360/DEPLOYMENT.md +0 -115
- package/oveanet-pack/seo-audit-360/README.md +0 -66
- package/oveanet-pack/seo-audit-360/SKILL.md +0 -171
- package/oveanet-pack/seo-audit-360/agent/seo-chief.md +0 -294
- package/oveanet-pack/seo-audit-360/agent/seo-judge.md +0 -241
- package/oveanet-pack/seo-audit-360/agent/seo-scout.md +0 -171
- package/oveanet-pack/seo-audit-360/agent.yaml +0 -70
- package/oveanet-pack/seo-audit-360/checklist.md +0 -140
- package/oveanet-pack/seo-audit-360/extensions/google-analytics/EXTENSION.md +0 -79
- package/oveanet-pack/seo-audit-360/extensions/google-analytics/ga4_client.py +0 -200
- package/oveanet-pack/seo-audit-360/extensions/google-analytics/requirements.txt +0 -4
- package/oveanet-pack/seo-audit-360/extensions/google-search-console/EXTENSION.md +0 -109
- package/oveanet-pack/seo-audit-360/extensions/google-search-console/gsc_client.py +0 -186
- package/oveanet-pack/seo-audit-360/extensions/google-search-console/requirements.txt +0 -4
- package/oveanet-pack/seo-audit-360/hooks/seo-check.sh +0 -95
- package/oveanet-pack/seo-audit-360/pagespeed-playbook.md +0 -320
- package/oveanet-pack/seo-audit-360/ref/audit-schema.json +0 -187
- package/oveanet-pack/seo-audit-360/ref/cwv-thresholds.md +0 -87
- package/oveanet-pack/seo-audit-360/ref/eeat-criteria.md +0 -123
- package/oveanet-pack/seo-audit-360/ref/geo-signals.md +0 -167
- package/oveanet-pack/seo-audit-360/ref/hreflang-rules.md +0 -153
- package/oveanet-pack/seo-audit-360/ref/quality-gates.md +0 -133
- package/oveanet-pack/seo-audit-360/ref/schema-catalog.md +0 -91
- package/oveanet-pack/seo-audit-360/ref/schema-templates.json +0 -356
- package/oveanet-pack/seo-audit-360/requirements.txt +0 -14
- package/oveanet-pack/seo-audit-360/scripts/__pycache__/seo_crawl.cpython-314.pyc +0 -0
- package/oveanet-pack/seo-audit-360/scripts/__pycache__/seo_parse.cpython-314.pyc +0 -0
- package/oveanet-pack/seo-audit-360/scripts/install.ps1 +0 -53
- package/oveanet-pack/seo-audit-360/scripts/install.sh +0 -48
- package/oveanet-pack/seo-audit-360/scripts/seo_apis.py +0 -464
- package/oveanet-pack/seo-audit-360/scripts/seo_crawl.py +0 -282
- package/oveanet-pack/seo-audit-360/scripts/seo_fetch.py +0 -231
- package/oveanet-pack/seo-audit-360/scripts/seo_parse.py +0 -255
- package/oveanet-pack/seo-audit-360/scripts/seo_report.py +0 -403
- package/oveanet-pack/seo-audit-360/scripts/seo_screenshot.py +0 -202
- package/oveanet-pack/seo-audit-360/templates/seo-audit-workflow.md +0 -241
- package/oveanet-pack/seo-audit-360/tests/__pycache__/test_crawl.cpython-314-pytest-9.0.2.pyc +0 -0
- package/oveanet-pack/seo-audit-360/tests/__pycache__/test_parse.cpython-314-pytest-9.0.2.pyc +0 -0
- package/oveanet-pack/seo-audit-360/tests/fixtures/sample_page.html +0 -62
- package/oveanet-pack/seo-audit-360/tests/test_apis.py +0 -75
- package/oveanet-pack/seo-audit-360/tests/test_crawl.py +0 -121
- package/oveanet-pack/seo-audit-360/tests/test_fetch.py +0 -70
- package/oveanet-pack/seo-audit-360/tests/test_parse.py +0 -184
- package/oveanet-pack/universal-backup/DEPLOYMENT.md +0 -80
- package/oveanet-pack/universal-backup/README.md +0 -58
- package/oveanet-pack/universal-backup/agent/backup-agent.md +0 -71
- package/oveanet-pack/universal-backup/agent.yaml +0 -45
- package/oveanet-pack/universal-backup/templates/backup-workflow.md +0 -51
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
# SEO Scout — Technical Scanner Agent
|
|
2
|
-
|
|
3
|
-
> *"I see everything search engines see — and what they don't."*
|
|
4
|
-
|
|
5
|
-
## Identity
|
|
6
|
-
|
|
7
|
-
You are **Scout**, the technical reconnaissance agent of the BMAD+ SEO Engine. You crawl, fetch, inspect, and photograph websites to produce raw technical intelligence for the audit pipeline.
|
|
8
|
-
|
|
9
|
-
## Roles
|
|
10
|
-
|
|
11
|
-
You operate in 3 switchable roles:
|
|
12
|
-
|
|
13
|
-
### Role: Crawler
|
|
14
|
-
**Trigger**: Site discovery, multi-page analysis, sitemap exploration
|
|
15
|
-
- Fetch pages with proper HTTP handling (redirects, cookies, timeouts)
|
|
16
|
-
- Parse robots.txt and XML sitemaps to discover the site structure
|
|
17
|
-
- Perform recursive link-following (configurable depth, default: 2 levels, max 25 pages)
|
|
18
|
-
- Detect rendering architecture: SSR vs CSR vs ISR vs hybrid
|
|
19
|
-
- Compare responses between standard UA and Googlebot UA to detect dynamic rendering / prerender services
|
|
20
|
-
- Track redirect chains (flag chains >1 hop)
|
|
21
|
-
|
|
22
|
-
### Role: Inspector
|
|
23
|
-
**Trigger**: Technical audit, security check, infrastructure analysis
|
|
24
|
-
- Analyze 9 technical SEO categories (see checklist below)
|
|
25
|
-
- Extract HTTP headers and security configuration
|
|
26
|
-
- Evaluate URL structure, canonical setup, and pagination
|
|
27
|
-
- Check hreflang implementation (self-referencing, return tags, x-default)
|
|
28
|
-
- Detect IndexNow protocol support
|
|
29
|
-
- Identify JavaScript rendering dependencies
|
|
30
|
-
|
|
31
|
-
### Role: Photographer
|
|
32
|
-
**Trigger**: Visual audit, above-the-fold analysis, mobile check
|
|
33
|
-
- Capture viewport screenshots (mobile: 375×812, desktop: 1440×900)
|
|
34
|
-
- Analyze above-the-fold content (CTA visibility, hero element, text readability)
|
|
35
|
-
- Detect layout issues (horizontal scroll, overlapping elements)
|
|
36
|
-
- Verify touch target sizes (minimum 48×48px with 8px spacing)
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Technical Inspection Checklist (9 Categories)
|
|
41
|
-
|
|
42
|
-
### 1. Crawlability
|
|
43
|
-
- [ ] robots.txt exists, is valid, doesn't block critical resources
|
|
44
|
-
- [ ] XML sitemap exists, referenced in robots.txt, valid format
|
|
45
|
-
- [ ] Important pages reachable within 3 clicks of homepage
|
|
46
|
-
- [ ] No unintentional noindex/nofollow directives
|
|
47
|
-
- [ ] Crawl budget efficiency (for sites >10K pages)
|
|
48
|
-
- [ ] AI crawler access status (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, ChatGPT-User, Bytespider, CCBot, Google-Extended, anthropic-ai, cohere-ai, Applebot-Extended)
|
|
49
|
-
|
|
50
|
-
### 2. Indexability
|
|
51
|
-
- [ ] Canonical tags: self-referencing, no conflicts with noindex
|
|
52
|
-
- [ ] No duplicate content signals (www/non-www, HTTP/HTTPS, trailing slash)
|
|
53
|
-
- [ ] Pagination handled (rel=next/prev or infinite scroll with indexable URLs)
|
|
54
|
-
- [ ] No index bloat (unnecessary pages wasting crawl budget)
|
|
55
|
-
- [ ] Parameter URLs properly managed
|
|
56
|
-
|
|
57
|
-
### 3. Security
|
|
58
|
-
- [ ] HTTPS enforced with valid SSL certificate, no mixed content
|
|
59
|
-
- [ ] HSTS enabled (Strict-Transport-Security header)
|
|
60
|
-
- [ ] Content-Security-Policy (CSP) present
|
|
61
|
-
- [ ] X-Frame-Options set
|
|
62
|
-
- [ ] X-Content-Type-Options: nosniff
|
|
63
|
-
- [ ] Referrer-Policy configured
|
|
64
|
-
- [ ] HSTS preload list inclusion (for high-security sites)
|
|
65
|
-
|
|
66
|
-
### 4. URL Structure
|
|
67
|
-
- [ ] Clean, descriptive, hyphenated URLs
|
|
68
|
-
- [ ] Logical hierarchy reflecting site architecture
|
|
69
|
-
- [ ] No redirect chains (max 1 hop via 301)
|
|
70
|
-
- [ ] URL length reasonable (<100 characters)
|
|
71
|
-
- [ ] Consistent trailing slash usage
|
|
72
|
-
|
|
73
|
-
### 5. Mobile Optimization
|
|
74
|
-
- [ ] Viewport meta tag present and correct
|
|
75
|
-
- [ ] Responsive CSS (no fixed widths breaking mobile)
|
|
76
|
-
- [ ] Touch targets ≥48×48px with ≥8px spacing
|
|
77
|
-
- [ ] Base font size ≥16px
|
|
78
|
-
- [ ] No horizontal scroll
|
|
79
|
-
- [ ] Mobile-first indexing awareness (100% rollout since July 5, 2024)
|
|
80
|
-
|
|
81
|
-
### 6. Core Web Vitals (Source Inspection)
|
|
82
|
-
Inspect HTML/CSS for signals. Use PageSpeed Insights API when available.
|
|
83
|
-
|
|
84
|
-
| Metric | Good | Needs Work | Poor |
|
|
85
|
-
|--------|------|------------|------|
|
|
86
|
-
| **LCP** (Largest Contentful Paint) | ≤2.5s | 2.5–4.0s | >4.0s |
|
|
87
|
-
| **INP** (Interaction to Next Paint) | ≤200ms | 200–500ms | >500ms |
|
|
88
|
-
| **CLS** (Cumulative Layout Shift) | ≤0.1 | 0.1–0.25 | >0.25 |
|
|
89
|
-
|
|
90
|
-
> **INP replaced FID on March 12, 2024.** FID was fully removed from all Chrome tools on September 9, 2024. Never reference FID.
|
|
91
|
-
|
|
92
|
-
**LCP Subparts** (for diagnosis):
|
|
93
|
-
| Subpart | Description | Target |
|
|
94
|
-
|---------|-------------|--------|
|
|
95
|
-
| TTFB | Server response time | <800ms |
|
|
96
|
-
| Resource Load Delay | Time from TTFB to resource request | Minimize |
|
|
97
|
-
| Resource Load Time | Download time for LCP resource | Size-dependent |
|
|
98
|
-
| Element Render Delay | Time from loaded to painted | Minimize |
|
|
99
|
-
|
|
100
|
-
**Common bottlenecks to detect from source**:
|
|
101
|
-
- Unoptimized hero images (no WebP/AVIF, no preload, no lazy-load above fold)
|
|
102
|
-
- Render-blocking CSS/JS (no defer/async, no critical CSS inline)
|
|
103
|
-
- Excessive third-party scripts (analytics, chat widgets, ads)
|
|
104
|
-
- DOM size >1,500 elements (INP concern)
|
|
105
|
-
- Images without width/height dimensions (CLS concern)
|
|
106
|
-
- Web fonts without font-display: swap
|
|
107
|
-
|
|
108
|
-
### 7. Structured Data (Detection Only)
|
|
109
|
-
- [ ] JSON-LD blocks detected (count and types)
|
|
110
|
-
- [ ] Microdata detected
|
|
111
|
-
- [ ] RDFa detected
|
|
112
|
-
- [ ] Pass findings to **Judge** agent for validation
|
|
113
|
-
|
|
114
|
-
### 8. JavaScript Rendering
|
|
115
|
-
- [ ] Content visible in raw HTML vs requires JS execution
|
|
116
|
-
- [ ] SPA framework detection (React, Vue, Angular, Svelte, Next.js, Nuxt)
|
|
117
|
-
- [ ] Dynamic rendering setup (Prerender.io, Rendertron)
|
|
118
|
-
- [ ] Google Dec 2025 JS SEO guidance compliance:
|
|
119
|
-
- Canonical tags identical between server HTML and JS output
|
|
120
|
-
- No noindex in raw HTML that JS removes
|
|
121
|
-
- Structured data in initial HTML (not JS-injected for time-sensitive markup)
|
|
122
|
-
- Non-200 pages: Google does NOT render JS
|
|
123
|
-
|
|
124
|
-
### 9. IndexNow Protocol
|
|
125
|
-
- [ ] IndexNow API key file present at root
|
|
126
|
-
- [ ] Supported engines: Bing, Yandex, Naver, Seznam
|
|
127
|
-
- [ ] Recommend implementation for faster non-Google indexing
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Output Format
|
|
132
|
-
|
|
133
|
-
```markdown
|
|
134
|
-
## 🔎 Scout Report — Technical Analysis
|
|
135
|
-
|
|
136
|
-
### Site: [URL]
|
|
137
|
-
### Business Type: [Detected type]
|
|
138
|
-
### Pages Crawled: [N]
|
|
139
|
-
### Rendering: [SSR/CSR/Hybrid]
|
|
140
|
-
|
|
141
|
-
### Technical Score: XX/100
|
|
142
|
-
|
|
143
|
-
| Category | Status | Score | Issues |
|
|
144
|
-
|----------|--------|-------|--------|
|
|
145
|
-
| Crawlability | ✅/⚠️/❌ | XX/100 | N |
|
|
146
|
-
| Indexability | ✅/⚠️/❌ | XX/100 | N |
|
|
147
|
-
| Security | ✅/⚠️/❌ | XX/100 | N |
|
|
148
|
-
| URL Structure | ✅/⚠️/❌ | XX/100 | N |
|
|
149
|
-
| Mobile | ✅/⚠️/❌ | XX/100 | N |
|
|
150
|
-
| Core Web Vitals | ✅/⚠️/❌ | XX/100 | N |
|
|
151
|
-
| Structured Data | ✅/⚠️/❌ | XX/100 | N |
|
|
152
|
-
| JS Rendering | ✅/⚠️/❌ | XX/100 | N |
|
|
153
|
-
| IndexNow | ✅/⚠️/❌ | XX/100 | N |
|
|
154
|
-
|
|
155
|
-
### 🔴 Critical Issues
|
|
156
|
-
### 🟠 High Priority
|
|
157
|
-
### 🟡 Medium Priority
|
|
158
|
-
### 🟢 Low Priority
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
## Python Toolkit
|
|
162
|
-
|
|
163
|
-
Use these scripts from `scripts/` directory:
|
|
164
|
-
- `seo_fetch.py <url>` — Fetch with SSRF protection, redirect tracking, multi-UA
|
|
165
|
-
- `seo_parse.py <file.html> --url <base>` — Extract meta, headings, links, schema, word count
|
|
166
|
-
- `seo_crawl.py <url> --depth 2 --max 25` — Recursive crawler with sitemap discovery
|
|
167
|
-
- `seo_screenshot.py <url> --viewport mobile` — Playwright screenshot capture
|
|
168
|
-
|
|
169
|
-
## Auto-Activation Triggers
|
|
170
|
-
|
|
171
|
-
Activate Scout when detecting keywords: "crawl", "technical SEO", "robots.txt", "sitemap", "Core Web Vitals", "page speed", "mobile optimization", "security headers", "redirect", "IndexNow", "screenshot"
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
name: seo-audit-360
|
|
2
|
-
version: 2.0.0
|
|
3
|
-
author: Laurent Rochetta
|
|
4
|
-
brand: Oveanet × Laurent Rochetta
|
|
5
|
-
description: >
|
|
6
|
-
SEO Engine v2.0 — Complete SEO audit system with 3 multi-role agents,
|
|
7
|
-
6-phase workflow, Python toolkit, and PageSpeed perfection loop.
|
|
8
|
-
Covers technical SEO, E-E-A-T, schema validation, GEO (AI search),
|
|
9
|
-
Core Web Vitals, and auto-fix generation.
|
|
10
|
-
|
|
11
|
-
agents:
|
|
12
|
-
- id: seo-scout
|
|
13
|
-
name: Scout
|
|
14
|
-
file: agent/seo-scout.md
|
|
15
|
-
roles: [crawler, inspector, photographer]
|
|
16
|
-
description: Technical scanner — crawl, fetch, inspect, screenshot
|
|
17
|
-
|
|
18
|
-
- id: seo-judge
|
|
19
|
-
name: Judge
|
|
20
|
-
file: agent/seo-judge.md
|
|
21
|
-
roles: [content-expert, schema-master, geo-analyst]
|
|
22
|
-
description: Content & AI analyst — E-E-A-T, schema, GEO
|
|
23
|
-
|
|
24
|
-
- id: seo-chief
|
|
25
|
-
name: Chief
|
|
26
|
-
file: agent/seo-chief.md
|
|
27
|
-
roles: [scorer, strategist, reporter]
|
|
28
|
-
description: Strategist & reporter — scoring, action plans, monitoring
|
|
29
|
-
|
|
30
|
-
scripts:
|
|
31
|
-
- seo_fetch.py
|
|
32
|
-
- seo_parse.py
|
|
33
|
-
- seo_crawl.py
|
|
34
|
-
- seo_screenshot.py
|
|
35
|
-
|
|
36
|
-
references:
|
|
37
|
-
- ref/cwv-thresholds.md
|
|
38
|
-
- ref/schema-catalog.md
|
|
39
|
-
- ref/eeat-criteria.md
|
|
40
|
-
- ref/geo-signals.md
|
|
41
|
-
- ref/quality-gates.md
|
|
42
|
-
- ref/schema-templates.json
|
|
43
|
-
|
|
44
|
-
workflow: templates/seo-audit-workflow.md
|
|
45
|
-
|
|
46
|
-
commands:
|
|
47
|
-
- /seo full <url>
|
|
48
|
-
- /seo quick <url>
|
|
49
|
-
- /seo technical <url>
|
|
50
|
-
- /seo content <url>
|
|
51
|
-
- /seo geo <url>
|
|
52
|
-
- /seo schema <url>
|
|
53
|
-
- /seo images <url>
|
|
54
|
-
- /seo hreflang <url>
|
|
55
|
-
- /seo pagespeed <url>
|
|
56
|
-
- /seo plan <type>
|
|
57
|
-
- /seo fix
|
|
58
|
-
- /seo history
|
|
59
|
-
- /seo compare
|
|
60
|
-
|
|
61
|
-
platforms: [bmad, claude, gemini, opencode, codex]
|
|
62
|
-
|
|
63
|
-
dependencies:
|
|
64
|
-
required:
|
|
65
|
-
- python >= 3.10
|
|
66
|
-
optional:
|
|
67
|
-
- requests (pip install requests)
|
|
68
|
-
- beautifulsoup4 (pip install beautifulsoup4)
|
|
69
|
-
- lxml (pip install lxml)
|
|
70
|
-
- playwright (pip install playwright && playwright install chromium)
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
# SEO/GEO 360° Audit Checklist
|
|
2
|
-
|
|
3
|
-
## Usage
|
|
4
|
-
Use this checklist as a template for any website audit. Copy it to your project's output folder and check items as you go.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 1. Technical SEO
|
|
9
|
-
- [ ] `robots.txt` exists and is correctly configured
|
|
10
|
-
- [ ] `sitemap.xml` exists with all pages, `lastmod`, `changefreq`, `priority`
|
|
11
|
-
- [ ] Sitemap includes `xhtml:link` hreflang alternates (if multilingual)
|
|
12
|
-
- [ ] Canonical URLs present on all pages
|
|
13
|
-
- [ ] Hreflang tags for each language variant
|
|
14
|
-
- [ ] Meta robots: `index, follow, max-image-preview:large, max-snippet:-1`
|
|
15
|
-
- [ ] HTTPS enforced
|
|
16
|
-
- [ ] No render-blocking resources (fonts preloaded, CSS inlined or local)
|
|
17
|
-
- [ ] Mobile viewport meta tag present
|
|
18
|
-
- [ ] Favicon present (SVG preferred, fallback PNG)
|
|
19
|
-
- [ ] 404 error page exists
|
|
20
|
-
- [ ] Page load time < 3 seconds
|
|
21
|
-
|
|
22
|
-
## 2. On-Page SEO
|
|
23
|
-
- [ ] `<title>` tag: 50-60 chars, contains primary keyword, unique per page
|
|
24
|
-
- [ ] `<meta description>`: 150-160 chars, contains CTA, unique per page
|
|
25
|
-
- [ ] `<meta keywords>`: relevant long-tail keywords
|
|
26
|
-
- [ ] `<meta author>`: present
|
|
27
|
-
- [ ] Single `<h1>` per page, descriptive, keyword-rich
|
|
28
|
-
- [ ] Logical H2-H6 hierarchy
|
|
29
|
-
- [ ] Images: `alt` tags, `width`/`height`, `loading="lazy"`, WebP format
|
|
30
|
-
- [ ] Internal linking between pages
|
|
31
|
-
- [ ] External links: `rel="noopener"` on `target="_blank"`
|
|
32
|
-
- [ ] Content length adequate (300+ words for landing pages)
|
|
33
|
-
|
|
34
|
-
## 3. Schema.org / Structured Data
|
|
35
|
-
- [ ] Primary schema type (Organization/LocalBusiness/ProfessionalService)
|
|
36
|
-
- [ ] Service schema for each service offered
|
|
37
|
-
- [ ] FAQPage schema with real Q&As (minimum 5 questions)
|
|
38
|
-
- [ ] WebPage schema (datePublished, dateModified, inLanguage)
|
|
39
|
-
- [ ] BreadcrumbList schema
|
|
40
|
-
- [ ] Person schema for founder/team (if applicable)
|
|
41
|
-
- [ ] Review/AggregateRating schema (if applicable)
|
|
42
|
-
- [ ] Validated with Google Rich Results Test
|
|
43
|
-
|
|
44
|
-
## 4. GEO (Generative Engine Optimization)
|
|
45
|
-
- [ ] `llms.txt` file at site root with structured business info
|
|
46
|
-
- [ ] Content uses clear headings with question-based format
|
|
47
|
-
- [ ] FAQ section with expandable answers
|
|
48
|
-
- [ ] Concise, factual content per section (answers visible without interaction)
|
|
49
|
-
- [ ] AI crawlers allowed in `robots.txt`:
|
|
50
|
-
- [ ] GPTBot
|
|
51
|
-
- [ ] ChatGPT-User
|
|
52
|
-
- [ ] PerplexityBot
|
|
53
|
-
- [ ] ClaudeBot
|
|
54
|
-
- [ ] Google-Extended
|
|
55
|
-
- [ ] Content freshness: `dateModified` in schema, visible update dates
|
|
56
|
-
- [ ] E-E-A-T signals: author credentials, "About" info, LinkedIn links
|
|
57
|
-
- [ ] Tested queries in ChatGPT, Perplexity, and Gemini
|
|
58
|
-
|
|
59
|
-
## 5. Local SEO
|
|
60
|
-
- [ ] Geo meta tags: `geo.region`, `geo.placename`, `geo.position`, `ICBM`
|
|
61
|
-
- [ ] NAP (Name, Address, Phone/Email) in footer
|
|
62
|
-
- [ ] `<address>` HTML element used
|
|
63
|
-
- [ ] Schema includes `geo` (GeoCoordinates), `areaServed`, `address`
|
|
64
|
-
- [ ] Google Business Profile created and optimized
|
|
65
|
-
- [ ] Local keywords in title, description, and H1
|
|
66
|
-
- [ ] Citations on directories (Pages Jaunes, Google Maps, etc.)
|
|
67
|
-
|
|
68
|
-
## 6. Accessibility
|
|
69
|
-
- [ ] Skip navigation link
|
|
70
|
-
- [ ] `aria-hidden="true"` on decorative SVGs and elements
|
|
71
|
-
- [ ] `aria-label` on `<section>` and `<nav>` elements
|
|
72
|
-
- [ ] `aria-pressed` on toggle buttons
|
|
73
|
-
- [ ] Color contrast WCAG AA (4.5:1 minimum)
|
|
74
|
-
- [ ] Keyboard-navigable form elements
|
|
75
|
-
- [ ] `<html lang>` attribute set correctly (dynamic for multilingual)
|
|
76
|
-
- [ ] `prefers-reduced-motion` media query support
|
|
77
|
-
|
|
78
|
-
## 7. Social & Sharing
|
|
79
|
-
- [ ] Open Graph: `og:title`, `og:description`, `og:image`, `og:url`, `og:type`
|
|
80
|
-
- [ ] `og:site_name` present
|
|
81
|
-
- [ ] `og:locale` with `og:locale:alternate` for other languages
|
|
82
|
-
- [ ] `og:image` dimensions 1200×630px
|
|
83
|
-
- [ ] Twitter Card: `twitter:card` (summary_large_image)
|
|
84
|
-
- [ ] Social preview tested with sharing debugger tools
|
|
85
|
-
|
|
86
|
-
## 8. Multilingual SEO (if applicable)
|
|
87
|
-
- [ ] `<html lang>` dynamic based on selected language
|
|
88
|
-
- [ ] Bilingual `<title>` and `<meta description>` (via server-side logic)
|
|
89
|
-
- [ ] Hreflang tags for each page × each language
|
|
90
|
-
- [ ] `x-default` hreflang set
|
|
91
|
-
- [ ] Schema.org `description` in correct language
|
|
92
|
-
- [ ] OG tags in correct language (`og:locale`)
|
|
93
|
-
- [ ] Sitemap includes hreflang alternates per URL
|
|
94
|
-
- [ ] Language preference persisted (localStorage/cookie)
|
|
95
|
-
- [ ] Auto-detection of browser language (`navigator.language`)
|
|
96
|
-
- [ ] Legal pages (Privacy, Terms) translated
|
|
97
|
-
|
|
98
|
-
## 9. Content & Keywords
|
|
99
|
-
- [ ] Primary keyword identified per page
|
|
100
|
-
- [ ] Long-tail keyword variants in content
|
|
101
|
-
- [ ] Location-based keywords (city, region, country)
|
|
102
|
-
- [ ] Service-specific keywords
|
|
103
|
-
- [ ] Competitor keyword gap analysis
|
|
104
|
-
- [ ] Content matches search intent (informational, transactional, navigational)
|
|
105
|
-
|
|
106
|
-
## 10. PageSpeed 100% — Performance Perfection Loop
|
|
107
|
-
> Reference: See `pagespeed-playbook.md` for complete technique catalog with code examples.
|
|
108
|
-
|
|
109
|
-
### Performance (Impact-Ordered)
|
|
110
|
-
- [ ] Self-hosted fonts (woff2) — no Google CDN
|
|
111
|
-
- [ ] Font preload with `fetchpriority="high"` for critical weight
|
|
112
|
-
- [ ] `font-display: swap` on all `@font-face` rules
|
|
113
|
-
- [ ] ALL CSS inlined in production HTML (zero render-blocking)
|
|
114
|
-
- [ ] `.htaccess` cache headers: 1yr for static assets, 1hr for HTML
|
|
115
|
-
- [ ] Gzip/Brotli compression enabled (mod_deflate)
|
|
116
|
-
- [ ] ALL `<img>` tags have explicit `width` and `height` attributes
|
|
117
|
-
- [ ] Below-fold images have `loading="lazy"`
|
|
118
|
-
- [ ] LCP image has `fetchpriority="high"`
|
|
119
|
-
- [ ] Third-party scripts use `async defer`
|
|
120
|
-
- [ ] CLS = 0 (no layout shifts during load)
|
|
121
|
-
|
|
122
|
-
### Accessibility (WCAG AA)
|
|
123
|
-
- [ ] ALL text/background combos ≥ 4.5:1 contrast ratio
|
|
124
|
-
- [ ] White text on orange backgrounds replaced with dark text (#1a0800)
|
|
125
|
-
- [ ] Dim/muted text on dark backgrounds brightened to ≥ #a0b0b8
|
|
126
|
-
- [ ] Badge text with transparency backgrounds ≥ #d4dde3
|
|
127
|
-
- [ ] Checked: CTA buttons, active nav states, badges, footer, form labels, tags
|
|
128
|
-
|
|
129
|
-
### Best Practices
|
|
130
|
-
- [ ] No console errors from own code
|
|
131
|
-
- [ ] Third-party console errors documented as known limitations
|
|
132
|
-
- [ ] All external links have `rel="noopener noreferrer"`
|
|
133
|
-
- [ ] All resources loaded over HTTPS
|
|
134
|
-
|
|
135
|
-
### Anti-Patterns (NEVER DO)
|
|
136
|
-
- [ ] ❌ Never use `media="print" onload` for CSS (causes CLS 0.936)
|
|
137
|
-
- [ ] ❌ Never load fonts from external CDN without local fallback
|
|
138
|
-
- [ ] ❌ Never leave `<img>` tags without width/height dimensions
|
|
139
|
-
- [ ] ❌ Never fix contrast issues one at a time (batch ALL at once)
|
|
140
|
-
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# Google Analytics 4 Extension — BMAD+ SEO Engine
|
|
2
|
-
|
|
3
|
-
> Author: Laurent Rochetta | BMAD+ SEO Engine v2.1
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This extension connects to Google Analytics 4 (GA4) Data API for organic traffic analysis. Uses the same OAuth2 credentials as the Search Console extension.
|
|
8
|
-
|
|
9
|
-
## Setup Guide
|
|
10
|
-
|
|
11
|
-
### Prerequisites
|
|
12
|
-
- Google Cloud project with **GA4 Data API** enabled
|
|
13
|
-
- OAuth2 credentials (same `credentials.json` as GSC extension)
|
|
14
|
-
- GA4 property ID (find in GA4 Admin > Property Settings)
|
|
15
|
-
|
|
16
|
-
### First Run
|
|
17
|
-
```bash
|
|
18
|
-
python ga4_client.py --setup --property 123456789
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Commands
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
# Organic traffic overview
|
|
25
|
-
python ga4_client.py --organic https://example.com --property 123456789 --days 30
|
|
26
|
-
|
|
27
|
-
# Top organic landing pages
|
|
28
|
-
python ga4_client.py --landing https://example.com --property 123456789 --days 30
|
|
29
|
-
|
|
30
|
-
# Conversions from organic
|
|
31
|
-
python ga4_client.py --conversions https://example.com --property 123456789 --days 30
|
|
32
|
-
|
|
33
|
-
# Full export
|
|
34
|
-
python ga4_client.py --all https://example.com --property 123456789 --json > ga4-data.json
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Output Examples
|
|
38
|
-
|
|
39
|
-
### Organic Traffic
|
|
40
|
-
```
|
|
41
|
-
Organic Traffic (30 days):
|
|
42
|
-
Sessions: 12,450
|
|
43
|
-
Users: 8,230
|
|
44
|
-
New Users: 6,120
|
|
45
|
-
Engagement Rate: 72.3%
|
|
46
|
-
Avg Duration: 2m 45s
|
|
47
|
-
Bounce Rate: 36.1%
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Top Landing Pages
|
|
51
|
-
```
|
|
52
|
-
Top Organic Landing Pages:
|
|
53
|
-
1. /blog/ai-development — 2,340 sessions, 78% engagement
|
|
54
|
-
2. / — 1,850 sessions, 65% engagement
|
|
55
|
-
3. /features — 1,120 sessions, 82% engagement
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Integration with SEO Engine
|
|
59
|
-
|
|
60
|
-
When installed, the SEO Engine can:
|
|
61
|
-
- Correlate crawled pages with actual organic traffic
|
|
62
|
-
- Identify high-traffic pages that need SEO optimization
|
|
63
|
-
- Track organic conversion attribution
|
|
64
|
-
- Detect pages with high impressions but low engagement (content quality issues)
|
|
65
|
-
|
|
66
|
-
## Dependencies
|
|
67
|
-
|
|
68
|
-
Same Google Auth libraries as GSC extension:
|
|
69
|
-
```
|
|
70
|
-
google-auth>=2.0.0
|
|
71
|
-
google-auth-oauthlib>=1.0.0
|
|
72
|
-
google-analytics-data>=0.18.0
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Security Notes
|
|
76
|
-
|
|
77
|
-
- Uses same `credentials.json` and `token.json` as GSC extension
|
|
78
|
-
- GA4 property ID is not sensitive but should be stored per-project
|
|
79
|
-
- Add credentials to `.gitignore`
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Google Analytics 4 Client — GA4 Data API client for organic traffic analysis.
|
|
4
|
-
|
|
5
|
-
Features:
|
|
6
|
-
- Organic traffic metrics (sessions, users, engagement)
|
|
7
|
-
- Landing page performance
|
|
8
|
-
- Conversion attribution
|
|
9
|
-
- Custom date ranges
|
|
10
|
-
|
|
11
|
-
Author: Laurent Rochetta
|
|
12
|
-
License: MIT
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
import argparse
|
|
16
|
-
import json
|
|
17
|
-
import os
|
|
18
|
-
import sys
|
|
19
|
-
from datetime import datetime, timedelta
|
|
20
|
-
|
|
21
|
-
SCOPES = ["https://www.googleapis.com/auth/analytics.readonly"]
|
|
22
|
-
CREDENTIALS_FILE = os.path.join(os.path.dirname(__file__), "..", "google-search-console", "credentials.json")
|
|
23
|
-
TOKEN_FILE = os.path.join(os.path.dirname(__file__), "..", "google-search-console", "token.json")
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def get_client(property_id: str):
|
|
27
|
-
"""Authenticate and return a GA4 BetaAnalyticsData client."""
|
|
28
|
-
try:
|
|
29
|
-
from google.oauth2.credentials import Credentials
|
|
30
|
-
from google_auth_oauthlib.flow import InstalledAppFlow
|
|
31
|
-
from google.auth.transport.requests import Request
|
|
32
|
-
from google.analytics.data_v1beta import BetaAnalyticsDataClient
|
|
33
|
-
from google.analytics.data_v1beta.types import (
|
|
34
|
-
DateRange, Dimension, Metric, RunReportRequest, FilterExpression,
|
|
35
|
-
Filter,
|
|
36
|
-
)
|
|
37
|
-
except ImportError:
|
|
38
|
-
print(
|
|
39
|
-
"Error: Missing dependencies. Install:\n"
|
|
40
|
-
" pip install google-auth google-auth-oauthlib google-analytics-data",
|
|
41
|
-
file=sys.stderr,
|
|
42
|
-
)
|
|
43
|
-
sys.exit(1)
|
|
44
|
-
|
|
45
|
-
creds = None
|
|
46
|
-
if os.path.exists(TOKEN_FILE):
|
|
47
|
-
creds = Credentials.from_authorized_user_file(TOKEN_FILE, SCOPES)
|
|
48
|
-
|
|
49
|
-
if not creds or not creds.valid:
|
|
50
|
-
if creds and creds.expired and creds.refresh_token:
|
|
51
|
-
creds.refresh(Request())
|
|
52
|
-
else:
|
|
53
|
-
if not os.path.exists(CREDENTIALS_FILE):
|
|
54
|
-
print(f"Error: credentials.json not found. See EXTENSION.md for setup.", file=sys.stderr)
|
|
55
|
-
sys.exit(1)
|
|
56
|
-
flow = InstalledAppFlow.from_client_secrets_file(CREDENTIALS_FILE, SCOPES)
|
|
57
|
-
creds = flow.run_local_server(port=0)
|
|
58
|
-
|
|
59
|
-
with open(TOKEN_FILE, "w") as f:
|
|
60
|
-
f.write(creds.to_json())
|
|
61
|
-
|
|
62
|
-
return BetaAnalyticsDataClient(credentials=creds), property_id
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def run_organic_report(client, property_id: str, days: int = 30) -> dict:
|
|
66
|
-
"""Get organic traffic overview."""
|
|
67
|
-
from google.analytics.data_v1beta.types import (
|
|
68
|
-
DateRange, Metric, RunReportRequest, FilterExpression, Filter,
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
end_date = datetime.now().date()
|
|
72
|
-
start_date = end_date - timedelta(days=days)
|
|
73
|
-
|
|
74
|
-
request = RunReportRequest(
|
|
75
|
-
property=f"properties/{property_id}",
|
|
76
|
-
date_ranges=[DateRange(start_date=start_date.isoformat(), end_date=end_date.isoformat())],
|
|
77
|
-
metrics=[
|
|
78
|
-
Metric(name="sessions"),
|
|
79
|
-
Metric(name="totalUsers"),
|
|
80
|
-
Metric(name="newUsers"),
|
|
81
|
-
Metric(name="engagementRate"),
|
|
82
|
-
Metric(name="averageSessionDuration"),
|
|
83
|
-
Metric(name="bounceRate"),
|
|
84
|
-
],
|
|
85
|
-
dimension_filter=FilterExpression(
|
|
86
|
-
filter=Filter(
|
|
87
|
-
field_name="sessionDefaultChannelGroup",
|
|
88
|
-
string_filter=Filter.StringFilter(value="Organic Search"),
|
|
89
|
-
)
|
|
90
|
-
),
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
response = client.run_report(request)
|
|
94
|
-
|
|
95
|
-
if not response.rows:
|
|
96
|
-
return {"error": "No organic data available for this period"}
|
|
97
|
-
|
|
98
|
-
row = response.rows[0]
|
|
99
|
-
return {
|
|
100
|
-
"sessions": int(row.metric_values[0].value),
|
|
101
|
-
"users": int(row.metric_values[1].value),
|
|
102
|
-
"new_users": int(row.metric_values[2].value),
|
|
103
|
-
"engagement_rate": round(float(row.metric_values[3].value) * 100, 1),
|
|
104
|
-
"avg_duration_seconds": round(float(row.metric_values[4].value)),
|
|
105
|
-
"bounce_rate": round(float(row.metric_values[5].value) * 100, 1),
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
def run_landing_page_report(client, property_id: str, days: int = 30, limit: int = 20) -> list:
|
|
110
|
-
"""Get top organic landing pages."""
|
|
111
|
-
from google.analytics.data_v1beta.types import (
|
|
112
|
-
DateRange, Dimension, Metric, RunReportRequest, FilterExpression, Filter,
|
|
113
|
-
OrderBy,
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
end_date = datetime.now().date()
|
|
117
|
-
start_date = end_date - timedelta(days=days)
|
|
118
|
-
|
|
119
|
-
request = RunReportRequest(
|
|
120
|
-
property=f"properties/{property_id}",
|
|
121
|
-
date_ranges=[DateRange(start_date=start_date.isoformat(), end_date=end_date.isoformat())],
|
|
122
|
-
dimensions=[Dimension(name="landingPage")],
|
|
123
|
-
metrics=[
|
|
124
|
-
Metric(name="sessions"),
|
|
125
|
-
Metric(name="engagementRate"),
|
|
126
|
-
Metric(name="averageSessionDuration"),
|
|
127
|
-
],
|
|
128
|
-
dimension_filter=FilterExpression(
|
|
129
|
-
filter=Filter(
|
|
130
|
-
field_name="sessionDefaultChannelGroup",
|
|
131
|
-
string_filter=Filter.StringFilter(value="Organic Search"),
|
|
132
|
-
)
|
|
133
|
-
),
|
|
134
|
-
order_bys=[OrderBy(metric=OrderBy.MetricOrderBy(metric_name="sessions"), desc=True)],
|
|
135
|
-
limit=limit,
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
response = client.run_report(request)
|
|
139
|
-
|
|
140
|
-
return [{
|
|
141
|
-
"page": row.dimension_values[0].value,
|
|
142
|
-
"sessions": int(row.metric_values[0].value),
|
|
143
|
-
"engagement_rate": round(float(row.metric_values[1].value) * 100, 1),
|
|
144
|
-
"avg_duration": round(float(row.metric_values[2].value)),
|
|
145
|
-
} for row in response.rows]
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
# ── CLI ────────────────────────────────────────────────────────────
|
|
149
|
-
|
|
150
|
-
def main():
|
|
151
|
-
parser = argparse.ArgumentParser(
|
|
152
|
-
description="Google Analytics 4 Client (BMAD+ SEO Engine)"
|
|
153
|
-
)
|
|
154
|
-
parser.add_argument("--property", "-p", required=True, help="GA4 Property ID")
|
|
155
|
-
parser.add_argument("--organic", action="store_true", help="Organic traffic overview")
|
|
156
|
-
parser.add_argument("--landing", action="store_true", help="Top landing pages")
|
|
157
|
-
parser.add_argument("--all", action="store_true", help="All reports")
|
|
158
|
-
parser.add_argument("--days", type=int, default=30, help="Days lookback (default: 30)")
|
|
159
|
-
parser.add_argument("--limit", type=int, default=20, help="Max rows (default: 20)")
|
|
160
|
-
parser.add_argument("--json", "-j", action="store_true", help="Output as JSON")
|
|
161
|
-
parser.add_argument("--setup", action="store_true", help="Run OAuth2 setup")
|
|
162
|
-
|
|
163
|
-
args = parser.parse_args()
|
|
164
|
-
|
|
165
|
-
client, property_id = get_client(args.property)
|
|
166
|
-
|
|
167
|
-
if args.setup:
|
|
168
|
-
print("✅ OAuth2 setup complete for GA4.")
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
if args.organic or args.all:
|
|
172
|
-
data = run_organic_report(client, property_id, args.days)
|
|
173
|
-
if args.json:
|
|
174
|
-
print(json.dumps({"organic": data}, indent=2))
|
|
175
|
-
else:
|
|
176
|
-
print(f"\nOrganic Traffic ({args.days} days):")
|
|
177
|
-
if "error" in data:
|
|
178
|
-
print(f" {data['error']}")
|
|
179
|
-
else:
|
|
180
|
-
mins = data["avg_duration_seconds"] // 60
|
|
181
|
-
secs = data["avg_duration_seconds"] % 60
|
|
182
|
-
print(f" Sessions: {data['sessions']:,}")
|
|
183
|
-
print(f" Users: {data['users']:,}")
|
|
184
|
-
print(f" New Users: {data['new_users']:,}")
|
|
185
|
-
print(f" Engagement: {data['engagement_rate']}%")
|
|
186
|
-
print(f" Avg Duration: {mins}m {secs}s")
|
|
187
|
-
print(f" Bounce Rate: {data['bounce_rate']}%")
|
|
188
|
-
|
|
189
|
-
if args.landing or args.all:
|
|
190
|
-
pages = run_landing_page_report(client, property_id, args.days, args.limit)
|
|
191
|
-
if args.json:
|
|
192
|
-
print(json.dumps({"landing_pages": pages}, indent=2))
|
|
193
|
-
else:
|
|
194
|
-
print(f"\nTop Organic Landing Pages:")
|
|
195
|
-
for i, p in enumerate(pages, 1):
|
|
196
|
-
print(f" {i:2}. {p['page'][:55]} — {p['sessions']:,} sessions, {p['engagement_rate']}% engagement")
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if __name__ == "__main__":
|
|
200
|
-
main()
|