bmad-plus 0.12.0 → 0.12.2

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.
Files changed (160) hide show
  1. package/CHANGELOG.md +612 -554
  2. package/README.md +557 -577
  3. package/osint-agent-package/agents/osint-investigator.md +12 -0
  4. package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +491 -482
  5. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +126 -126
  6. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/lawful-basis-record.md +48 -48
  7. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +100 -100
  8. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/gdpr-osint.md +48 -48
  9. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +130 -130
  10. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/psychoprofile.md +69 -69
  11. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +281 -281
  12. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/mcp-client.py +136 -136
  13. package/package.json +104 -91
  14. package/readme-international/README.de.md +596 -589
  15. package/readme-international/README.es.md +613 -606
  16. package/readme-international/README.fr.md +611 -604
  17. package/src/bmad-plus/agents/agent-shadow/SKILL.md +18 -0
  18. package/src/bmad-plus/data/role-triggers.yaml +52 -0
  19. package/src/bmad-plus/module.yaml +283 -283
  20. package/src/bmad-plus/packs/pack-animated/animated-website-agent.md +325 -325
  21. package/src/bmad-plus/packs/pack-animated/templates/animated-website-workflow.md +55 -55
  22. package/src/bmad-plus/packs/pack-backup/backup-agent.md +71 -71
  23. package/src/bmad-plus/packs/pack-backup/templates/backup-workflow.md +51 -51
  24. package/src/bmad-plus/packs/pack-dev-studio/README.md +162 -162
  25. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +73 -73
  26. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +61 -61
  27. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +95 -95
  28. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +95 -95
  29. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +134 -134
  30. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +80 -80
  31. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +73 -73
  32. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +95 -95
  33. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +73 -73
  34. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +73 -73
  35. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +92 -92
  36. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +80 -80
  37. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +90 -90
  38. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +153 -153
  39. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +173 -173
  40. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +224 -224
  41. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +329 -329
  42. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +318 -318
  43. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +359 -359
  44. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +379 -379
  45. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +361 -361
  46. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +81 -81
  47. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +67 -67
  48. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +85 -85
  49. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +35 -35
  50. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +49 -49
  51. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +131 -131
  52. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +89 -89
  53. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +300 -300
  54. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +428 -428
  55. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +73 -73
  56. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +80 -80
  57. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +484 -484
  58. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +193 -193
  59. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +175 -175
  60. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +110 -110
  61. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +1511 -1511
  62. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +298 -298
  63. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +296 -296
  64. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +29 -29
  65. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +74 -74
  66. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +29 -29
  67. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +73 -73
  68. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +89 -89
  69. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +73 -73
  70. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +29 -29
  71. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +141 -141
  72. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +37 -37
  73. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +75 -75
  74. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +6 -6
  75. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +110 -110
  76. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +176 -176
  77. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +67 -67
  78. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +86 -86
  79. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +179 -179
  80. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +66 -66
  81. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +127 -127
  82. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +105 -105
  83. package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +120 -120
  84. package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +12 -12
  85. package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +328 -328
  86. package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +32 -32
  87. package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +81 -81
  88. package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +14 -0
  89. package/src/bmad-plus/packs/pack-seo/SKILL.md +171 -171
  90. package/src/bmad-plus/packs/pack-seo/checklist.md +140 -140
  91. package/src/bmad-plus/packs/pack-seo/pagespeed-playbook.md +320 -320
  92. package/src/bmad-plus/packs/pack-seo/ref/audit-schema.json +187 -187
  93. package/src/bmad-plus/packs/pack-seo/ref/cwv-thresholds.md +87 -87
  94. package/src/bmad-plus/packs/pack-seo/ref/eeat-criteria.md +123 -123
  95. package/src/bmad-plus/packs/pack-seo/ref/geo-signals.md +167 -167
  96. package/src/bmad-plus/packs/pack-seo/ref/hreflang-rules.md +153 -153
  97. package/src/bmad-plus/packs/pack-seo/ref/quality-gates.md +133 -133
  98. package/src/bmad-plus/packs/pack-seo/ref/schema-catalog.md +91 -91
  99. package/src/bmad-plus/packs/pack-seo/ref/schema-templates.json +356 -356
  100. package/src/bmad-plus/packs/pack-seo/requirements.txt +17 -0
  101. package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +456 -0
  102. package/src/bmad-plus/packs/pack-seo/scripts/seo_crawl.py +359 -0
  103. package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +304 -0
  104. package/src/bmad-plus/packs/pack-seo/scripts/seo_parse.py +255 -0
  105. package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +410 -0
  106. package/src/bmad-plus/packs/pack-seo/scripts/seo_screenshot.py +202 -0
  107. package/src/bmad-plus/packs/pack-seo/seo-chief.md +294 -294
  108. package/src/bmad-plus/packs/pack-seo/seo-judge.md +241 -241
  109. package/src/bmad-plus/packs/pack-seo/seo-scout.md +171 -171
  110. package/src/bmad-plus/packs/pack-seo/templates/seo-audit-workflow.md +241 -241
  111. package/src/bmad-plus/packs/pack-shield/README.md +6 -6
  112. package/src/bmad-plus/packs/pack-shield/SKILL.md +2 -2
  113. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +11 -11
  114. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +11 -11
  115. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +11 -11
  116. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +11 -11
  117. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +11 -11
  118. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +11 -11
  119. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +11 -11
  120. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +11 -11
  121. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +11 -11
  122. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +11 -11
  123. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +11 -11
  124. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +11 -11
  125. package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +11 -11
  126. package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +11 -11
  127. package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +11 -11
  128. package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +11 -11
  129. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +11 -11
  130. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +11 -11
  131. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +11 -11
  132. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +11 -11
  133. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +11 -11
  134. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +11 -11
  135. package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +1 -1
  136. package/tools/build/check-counts.js +628 -0
  137. package/tools/build/generated-adapters/.codex/AGENTS.md +1 -1
  138. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +1 -1
  139. package/tools/build/generated-adapters/.opencode/AGENTS.md +1 -1
  140. package/tools/build/generated-adapters/AGENTS.md +1 -1
  141. package/tools/build/generated-adapters/CLAUDE.md +1 -1
  142. package/tools/build/generated-adapters/CONVENTIONS.md +1 -1
  143. package/tools/build/generated-adapters/GEMINI.md +1 -1
  144. package/tools/cli/commands/autoconfig.js +470 -472
  145. package/tools/cli/commands/doctor.js +233 -233
  146. package/tools/cli/commands/install.js +598 -495
  147. package/tools/cli/commands/memory-journal-cmd.js +311 -311
  148. package/tools/cli/commands/memory.js +195 -195
  149. package/tools/cli/commands/scan.js +348 -364
  150. package/tools/cli/commands/uninstall.js +101 -101
  151. package/tools/cli/commands/update.js +134 -134
  152. package/tools/cli/i18n.js +845 -845
  153. package/tools/cli/lib/README-memory-journal.md +125 -125
  154. package/tools/cli/lib/ide-config.js +267 -259
  155. package/tools/cli/lib/memory-init.js +204 -113
  156. package/tools/cli/lib/packs.js +209 -209
  157. package/tools/cli/lib/path-hash.js +39 -0
  158. package/tools/cli/lib/python-provision.js +508 -508
  159. package/tools/cli/lib/stack-detect.js +102 -102
  160. package/tools/cli/lib/validate.js +50 -50
@@ -1,153 +1,153 @@
1
- # Hreflang — Audit Rules & Best Practices (March 2026)
2
-
3
- > Author: Laurent Rochetta | BMAD+ SEO Engine v2.0
4
-
5
- ## What is Hreflang?
6
-
7
- `hreflang` tells search engines which language/region version of a page to serve.
8
- Errors cause wrong language indexing, duplicate content penalties, and lost organic traffic.
9
-
10
- ---
11
-
12
- ## Implementation Methods
13
-
14
- | Method | Best For | Max Pages |
15
- |--------|----------|-----------|
16
- | `<link>` in `<head>` | Small sites (<50 pages) | ~50 |
17
- | HTTP header `Link:` | Non-HTML files (PDFs) | ~50 |
18
- | Sitemap `<xhtml:link>` | Large sites (50+) | Unlimited |
19
-
20
- > **Recommendation**: Use sitemap for sites with 50+ pages. HTTP headers for non-HTML resources.
21
-
22
- ---
23
-
24
- ## Validation Rules
25
-
26
- ### Rule 1: Valid Language Codes
27
- - Use **ISO 639-1** (2-letter): `en`, `fr`, `de`, `es`, `ja`, `zh`
28
- - Optional **ISO 3166-1 Alpha-2** for region: `en-US`, `en-GB`, `fr-FR`, `fr-CA`, `pt-BR`
29
- - **Case insensitive** but convention is lowercase lang, uppercase country
30
-
31
- | ✅ Valid | ❌ Invalid | Why |
32
- |---------|-----------|-----|
33
- | `en` | `english` | Must be ISO 639-1 |
34
- | `fr-FR` | `fr-FRA` | Country must be 2-letter |
35
- | `zh-Hans` | `cn` | `cn` is not a valid language code |
36
- | `x-default` | `default` | Must use exact `x-default` |
37
-
38
- ### Rule 2: Self-Referencing (MANDATORY)
39
- Every page MUST include a hreflang tag pointing to itself.
40
-
41
- ```html
42
- <!-- On the English page (example.com/en/) -->
43
- <link rel="alternate" hreflang="en" href="https://example.com/en/" />
44
- <link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
45
- <link rel="alternate" hreflang="x-default" href="https://example.com/en/" />
46
- ```
47
-
48
- **Error if missing**: Google may ignore all hreflang tags on that page.
49
-
50
- ### Rule 3: Return Tags (MANDATORY)
51
- If page A links to page B with hreflang, page B MUST link back to page A.
52
-
53
- ```
54
- Page A (en) → hreflang="fr" → Page B (fr)
55
- Page B (fr) → hreflang="en" → Page A (en) ← MANDATORY
56
- ```
57
-
58
- **Error if missing**: Called "orphan hreflang" — Google ignores the one-way tag.
59
-
60
- ### Rule 4: x-default (STRONGLY RECOMMENDED)
61
- Designate a fallback page for users whose language/region doesn't match any variant.
62
-
63
- ```html
64
- <link rel="alternate" hreflang="x-default" href="https://example.com/" />
65
- ```
66
-
67
- Common choices for x-default:
68
- - Language selector/redirect page
69
- - English version (most common)
70
- - Homepage of the main domain
71
-
72
- ### Rule 5: Canonical + Hreflang Consistency
73
- - Each hreflang URL **must be the canonical version** (not a redirect, not a URL with parameters)
74
- - If a page has `rel="canonical"` pointing elsewhere, hreflang tags on that page are **ignored**
75
- - Canonical and hreflang must agree: don't have hreflang point to a URL that canonicalizes to a different URL
76
-
77
- ### Rule 6: Absolute URLs Only
78
- ```html
79
- <!-- ✅ Correct -->
80
- <link rel="alternate" hreflang="fr" href="https://example.com/fr/page" />
81
-
82
- <!-- ❌ Wrong -->
83
- <link rel="alternate" hreflang="fr" href="/fr/page" />
84
- ```
85
-
86
- ### Rule 7: No Hreflang on Non-200 Pages
87
- - Don't include hreflang tags on pages that return 3xx, 4xx, or 5xx
88
- - Don't point hreflang to pages that redirect
89
-
90
- ---
91
-
92
- ## Common Error Patterns
93
-
94
- ### Error 1: Missing Return Tags
95
- **Symptom**: hreflang is configured on the main language but not on alternate versions.
96
- **Fix**: Add reciprocal hreflang tags on ALL language variants.
97
-
98
- ### Error 2: Wrong Canonical + Hreflang
99
- **Symptom**: Page A hreflang → Page B, but Page B canonical → Page C.
100
- **Fix**: Align canonical and hreflang targets.
101
-
102
- ### Error 3: Missing Self-Reference
103
- **Symptom**: Page lists other language versions but not itself.
104
- **Fix**: Add `hreflang` tag with the current page's own language/URL.
105
-
106
- ### Error 4: Inconsistent URLs
107
- **Symptom**: hreflang uses `http://` but site is on `https://`, or trailing slash mismatch.
108
- **Fix**: Use exact canonical URL (protocol, www/non-www, trailing slash).
109
-
110
- ### Error 5: Language vs Region Confusion
111
- **Symptom**: Using `hreflang="fr"` for France and `hreflang="fr"` for Canada.
112
- **Fix**: Use `hreflang="fr-FR"` and `hreflang="fr-CA"` to differentiate.
113
-
114
- ### Error 6: Missing x-default
115
- **Symptom**: Users in unsupported regions see random language version.
116
- **Fix**: Add `x-default` pointing to language selector or English version.
117
-
118
- ---
119
-
120
- ## Sitemap Implementation (Recommended for 50+ pages)
121
-
122
- ```xml
123
- <?xml version="1.0" encoding="UTF-8"?>
124
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
125
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
126
- <url>
127
- <loc>https://example.com/en/page</loc>
128
- <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page"/>
129
- <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/page"/>
130
- <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/page"/>
131
- <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/en/page"/>
132
- </url>
133
- </urlset>
134
- ```
135
-
136
- ---
137
-
138
- ## Audit Checklist
139
-
140
- | # | Check | Priority |
141
- |---|-------|----------|
142
- | 1 | All hreflang language codes are valid ISO 639-1 | 🔴 Critical |
143
- | 2 | All hreflang country codes are valid ISO 3166-1 | 🔴 Critical |
144
- | 3 | Every page has self-referencing hreflang | 🔴 Critical |
145
- | 4 | All hreflang tags have return tags | 🔴 Critical |
146
- | 5 | All hreflang URLs are absolute | 🔴 Critical |
147
- | 6 | x-default is specified | 🟠 High |
148
- | 7 | Hreflang URLs match canonical URLs | 🟠 High |
149
- | 8 | No hreflang on non-200 pages | 🟠 High |
150
- | 9 | No hreflang pointing to redirecting URLs | 🟠 High |
151
- | 10 | Consistent protocol (https) and www/non-www | 🟡 Medium |
152
- | 11 | Language/region differentiation correct | 🟡 Medium |
153
- | 12 | Sitemap implementation for 50+ pages | 🟡 Medium |
1
+ # Hreflang — Audit Rules & Best Practices (March 2026)
2
+
3
+ > Author: Laurent Rochetta | BMAD+ SEO Engine v2.0
4
+
5
+ ## What is Hreflang?
6
+
7
+ `hreflang` tells search engines which language/region version of a page to serve.
8
+ Errors cause wrong language indexing, duplicate content penalties, and lost organic traffic.
9
+
10
+ ---
11
+
12
+ ## Implementation Methods
13
+
14
+ | Method | Best For | Max Pages |
15
+ |--------|----------|-----------|
16
+ | `<link>` in `<head>` | Small sites (<50 pages) | ~50 |
17
+ | HTTP header `Link:` | Non-HTML files (PDFs) | ~50 |
18
+ | Sitemap `<xhtml:link>` | Large sites (50+) | Unlimited |
19
+
20
+ > **Recommendation**: Use sitemap for sites with 50+ pages. HTTP headers for non-HTML resources.
21
+
22
+ ---
23
+
24
+ ## Validation Rules
25
+
26
+ ### Rule 1: Valid Language Codes
27
+ - Use **ISO 639-1** (2-letter): `en`, `fr`, `de`, `es`, `ja`, `zh`
28
+ - Optional **ISO 3166-1 Alpha-2** for region: `en-US`, `en-GB`, `fr-FR`, `fr-CA`, `pt-BR`
29
+ - **Case insensitive** but convention is lowercase lang, uppercase country
30
+
31
+ | ✅ Valid | ❌ Invalid | Why |
32
+ |---------|-----------|-----|
33
+ | `en` | `english` | Must be ISO 639-1 |
34
+ | `fr-FR` | `fr-FRA` | Country must be 2-letter |
35
+ | `zh-Hans` | `cn` | `cn` is not a valid language code |
36
+ | `x-default` | `default` | Must use exact `x-default` |
37
+
38
+ ### Rule 2: Self-Referencing (MANDATORY)
39
+ Every page MUST include a hreflang tag pointing to itself.
40
+
41
+ ```html
42
+ <!-- On the English page (example.com/en/) -->
43
+ <link rel="alternate" hreflang="en" href="https://example.com/en/" />
44
+ <link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
45
+ <link rel="alternate" hreflang="x-default" href="https://example.com/en/" />
46
+ ```
47
+
48
+ **Error if missing**: Google may ignore all hreflang tags on that page.
49
+
50
+ ### Rule 3: Return Tags (MANDATORY)
51
+ If page A links to page B with hreflang, page B MUST link back to page A.
52
+
53
+ ```
54
+ Page A (en) → hreflang="fr" → Page B (fr)
55
+ Page B (fr) → hreflang="en" → Page A (en) ← MANDATORY
56
+ ```
57
+
58
+ **Error if missing**: Called "orphan hreflang" — Google ignores the one-way tag.
59
+
60
+ ### Rule 4: x-default (STRONGLY RECOMMENDED)
61
+ Designate a fallback page for users whose language/region doesn't match any variant.
62
+
63
+ ```html
64
+ <link rel="alternate" hreflang="x-default" href="https://example.com/" />
65
+ ```
66
+
67
+ Common choices for x-default:
68
+ - Language selector/redirect page
69
+ - English version (most common)
70
+ - Homepage of the main domain
71
+
72
+ ### Rule 5: Canonical + Hreflang Consistency
73
+ - Each hreflang URL **must be the canonical version** (not a redirect, not a URL with parameters)
74
+ - If a page has `rel="canonical"` pointing elsewhere, hreflang tags on that page are **ignored**
75
+ - Canonical and hreflang must agree: don't have hreflang point to a URL that canonicalizes to a different URL
76
+
77
+ ### Rule 6: Absolute URLs Only
78
+ ```html
79
+ <!-- ✅ Correct -->
80
+ <link rel="alternate" hreflang="fr" href="https://example.com/fr/page" />
81
+
82
+ <!-- ❌ Wrong -->
83
+ <link rel="alternate" hreflang="fr" href="/fr/page" />
84
+ ```
85
+
86
+ ### Rule 7: No Hreflang on Non-200 Pages
87
+ - Don't include hreflang tags on pages that return 3xx, 4xx, or 5xx
88
+ - Don't point hreflang to pages that redirect
89
+
90
+ ---
91
+
92
+ ## Common Error Patterns
93
+
94
+ ### Error 1: Missing Return Tags
95
+ **Symptom**: hreflang is configured on the main language but not on alternate versions.
96
+ **Fix**: Add reciprocal hreflang tags on ALL language variants.
97
+
98
+ ### Error 2: Wrong Canonical + Hreflang
99
+ **Symptom**: Page A hreflang → Page B, but Page B canonical → Page C.
100
+ **Fix**: Align canonical and hreflang targets.
101
+
102
+ ### Error 3: Missing Self-Reference
103
+ **Symptom**: Page lists other language versions but not itself.
104
+ **Fix**: Add `hreflang` tag with the current page's own language/URL.
105
+
106
+ ### Error 4: Inconsistent URLs
107
+ **Symptom**: hreflang uses `http://` but site is on `https://`, or trailing slash mismatch.
108
+ **Fix**: Use exact canonical URL (protocol, www/non-www, trailing slash).
109
+
110
+ ### Error 5: Language vs Region Confusion
111
+ **Symptom**: Using `hreflang="fr"` for France and `hreflang="fr"` for Canada.
112
+ **Fix**: Use `hreflang="fr-FR"` and `hreflang="fr-CA"` to differentiate.
113
+
114
+ ### Error 6: Missing x-default
115
+ **Symptom**: Users in unsupported regions see random language version.
116
+ **Fix**: Add `x-default` pointing to language selector or English version.
117
+
118
+ ---
119
+
120
+ ## Sitemap Implementation (Recommended for 50+ pages)
121
+
122
+ ```xml
123
+ <?xml version="1.0" encoding="UTF-8"?>
124
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
125
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
126
+ <url>
127
+ <loc>https://example.com/en/page</loc>
128
+ <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page"/>
129
+ <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/page"/>
130
+ <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/page"/>
131
+ <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/en/page"/>
132
+ </url>
133
+ </urlset>
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Audit Checklist
139
+
140
+ | # | Check | Priority |
141
+ |---|-------|----------|
142
+ | 1 | All hreflang language codes are valid ISO 639-1 | 🔴 Critical |
143
+ | 2 | All hreflang country codes are valid ISO 3166-1 | 🔴 Critical |
144
+ | 3 | Every page has self-referencing hreflang | 🔴 Critical |
145
+ | 4 | All hreflang tags have return tags | 🔴 Critical |
146
+ | 5 | All hreflang URLs are absolute | 🔴 Critical |
147
+ | 6 | x-default is specified | 🟠 High |
148
+ | 7 | Hreflang URLs match canonical URLs | 🟠 High |
149
+ | 8 | No hreflang on non-200 pages | 🟠 High |
150
+ | 9 | No hreflang pointing to redirecting URLs | 🟠 High |
151
+ | 10 | Consistent protocol (https) and www/non-www | 🟡 Medium |
152
+ | 11 | Language/region differentiation correct | 🟡 Medium |
153
+ | 12 | Sitemap implementation for 50+ pages | 🟡 Medium |
@@ -1,133 +1,133 @@
1
- # Quality Gates — Content Thresholds (March 2026)
2
-
3
- > Author: Laurent Rochetta | BMAD+ SEO Engine v2.0
4
-
5
- ## Word Count Minimums by Page Type
6
-
7
- | Page Type | Minimum | Notes |
8
- |-----------|---------|-------|
9
- | Homepage | 500 | Brand clarity + key offerings |
10
- | Service page | 800 | Comprehensive service description |
11
- | Blog / article | 1,500 | Deep topical coverage |
12
- | Product page | 300+ (400+ complex) | Depends on product complexity |
13
- | Category page | 200 | Plus product listings |
14
- | Location page | 500–600 | Must be 60%+ unique per location |
15
- | Comparison page | 1,200 | Feature matrix + analysis |
16
- | Landing page | 400 | Conversion-focused |
17
- | About page | 500 | Company story + credentials |
18
- | FAQ page | 1,000 | Comprehensive Q&A coverage |
19
-
20
- > **Word count is NOT a ranking factor.** These are topical coverage floors. A thorough 500-word page beats a padded 2,000-word one.
21
-
22
- ---
23
-
24
- ## Location Page Quality Gates
25
-
26
- | Threshold | Action |
27
- |-----------|--------|
28
- | 1–29 location pages | ✅ Normal — ensure 60%+ unique content per page |
29
- | 30+ location pages | ⚠️ WARNING — enforce 60%+ unique content, audit for thin/duplicate |
30
- | 50+ location pages | 🛑 HARD STOP — require user justification before proceeding |
31
-
32
- ### Unique Content Requirements per Location
33
- - Unique local testimonials or case studies
34
- - Location-specific service details
35
- - Local area information and context
36
- - Original photos (not stock)
37
- - Unique meta title and description
38
-
39
- ---
40
-
41
- ## Programmatic Page Quality Gates
42
-
43
- | Threshold | Action |
44
- |-----------|--------|
45
- | 1–99 programmatic pages | ✅ Normal — verify template quality |
46
- | 100+ pages | ⚠️ WARNING — audit for thin content and cannibalization |
47
- | 500+ pages | 🛑 HARD STOP — full audit required before generating more |
48
-
49
- ### Programmatic Content Requirements
50
- - Each page must provide unique value (not just data swap)
51
- - Internal linking automation between related pages
52
- - Canonical strategy to prevent index bloat
53
- - Minimum 200 words of unique contextual content per page
54
- - Quality varies by template — audit samples before scale
55
-
56
- ---
57
-
58
- ## Title Tag Guidelines
59
-
60
- | Criterion | Requirement |
61
- |-----------|-------------|
62
- | Length | 50–60 characters (display limit ~600px) |
63
- | Primary keyword | Include near the beginning |
64
- | Brand name | Append with " | Brand" or " — Brand" |
65
- | Uniqueness | Every page must have a unique title |
66
- | Accuracy | Must reflect actual page content |
67
-
68
- ---
69
-
70
- ## Meta Description Guidelines
71
-
72
- | Criterion | Requirement |
73
- |-----------|-------------|
74
- | Length | 150–160 characters |
75
- | Call to action | Include when appropriate |
76
- | Primary keyword | Include naturally |
77
- | Uniqueness | Every page must have a unique description |
78
- | Accuracy | Must match page content (Google may rewrite if not) |
79
-
80
- ---
81
-
82
- ## Heading Hierarchy Rules
83
-
84
- | Rule | Requirement |
85
- |------|-------------|
86
- | H1 count | Exactly 1 per page |
87
- | H1 content | Should contain primary keyword, be descriptive |
88
- | Hierarchy | H1 → H2 → H3 (no skipping levels) |
89
- | Heading frequency | One heading every 200–300 words |
90
- | Heading style | Descriptive, not generic ("Our Services" → "Professional SEO Audit Services") |
91
-
92
- ---
93
-
94
- ## Image Optimization Standards
95
-
96
- | Criterion | Standard | Priority |
97
- |-----------|----------|----------|
98
- | Alt text | Descriptive, meaningful, includes keywords naturally | High |
99
- | Dimensions | Width and height attributes specified | High (CLS) |
100
- | Format | WebP or AVIF preferred, JPEG/PNG acceptable | Medium |
101
- | File size | <200KB for standard, <500KB for hero images | Medium |
102
- | Lazy loading | `loading="lazy"` for below-fold images | Medium |
103
- | Preload | `<link rel="preload">` for hero/LCP images | High |
104
- | Srcset | Responsive sizes for different viewports | Medium |
105
-
106
- ---
107
-
108
- ## Internal Linking Standards
109
-
110
- | Metric | Target |
111
- |--------|--------|
112
- | Links per 1,000 words | 3–5 relevant internal links |
113
- | Anchor text | Descriptive (not "click here") |
114
- | Orphan pages | 0 (every page linked from at least one other) |
115
- | Click depth | Important pages within 3 clicks of homepage |
116
- | Broken links | 0 internal 404s |
117
-
118
- ---
119
-
120
- ## Thin Content Detection
121
-
122
- A page is flagged as "thin content" when:
123
- 1. Word count is below the minimum for its page type
124
- 2. Content is predominantly duplicate or near-duplicate of another page
125
- 3. Content is auto-generated without unique value-add
126
- 4. Page provides no actionable information
127
-
128
- ### Doorway Page Prevention
129
- Never recommend creating pages that:
130
- - Exist solely to funnel users to another page
131
- - Have nearly identical content with only location/keyword swaps
132
- - Provide no standalone value
133
- - Target many similar keyword variations with minimal differences
1
+ # Quality Gates — Content Thresholds (March 2026)
2
+
3
+ > Author: Laurent Rochetta | BMAD+ SEO Engine v2.0
4
+
5
+ ## Word Count Minimums by Page Type
6
+
7
+ | Page Type | Minimum | Notes |
8
+ |-----------|---------|-------|
9
+ | Homepage | 500 | Brand clarity + key offerings |
10
+ | Service page | 800 | Comprehensive service description |
11
+ | Blog / article | 1,500 | Deep topical coverage |
12
+ | Product page | 300+ (400+ complex) | Depends on product complexity |
13
+ | Category page | 200 | Plus product listings |
14
+ | Location page | 500–600 | Must be 60%+ unique per location |
15
+ | Comparison page | 1,200 | Feature matrix + analysis |
16
+ | Landing page | 400 | Conversion-focused |
17
+ | About page | 500 | Company story + credentials |
18
+ | FAQ page | 1,000 | Comprehensive Q&A coverage |
19
+
20
+ > **Word count is NOT a ranking factor.** These are topical coverage floors. A thorough 500-word page beats a padded 2,000-word one.
21
+
22
+ ---
23
+
24
+ ## Location Page Quality Gates
25
+
26
+ | Threshold | Action |
27
+ |-----------|--------|
28
+ | 1–29 location pages | ✅ Normal — ensure 60%+ unique content per page |
29
+ | 30+ location pages | ⚠️ WARNING — enforce 60%+ unique content, audit for thin/duplicate |
30
+ | 50+ location pages | 🛑 HARD STOP — require user justification before proceeding |
31
+
32
+ ### Unique Content Requirements per Location
33
+ - Unique local testimonials or case studies
34
+ - Location-specific service details
35
+ - Local area information and context
36
+ - Original photos (not stock)
37
+ - Unique meta title and description
38
+
39
+ ---
40
+
41
+ ## Programmatic Page Quality Gates
42
+
43
+ | Threshold | Action |
44
+ |-----------|--------|
45
+ | 1–99 programmatic pages | ✅ Normal — verify template quality |
46
+ | 100+ pages | ⚠️ WARNING — audit for thin content and cannibalization |
47
+ | 500+ pages | 🛑 HARD STOP — full audit required before generating more |
48
+
49
+ ### Programmatic Content Requirements
50
+ - Each page must provide unique value (not just data swap)
51
+ - Internal linking automation between related pages
52
+ - Canonical strategy to prevent index bloat
53
+ - Minimum 200 words of unique contextual content per page
54
+ - Quality varies by template — audit samples before scale
55
+
56
+ ---
57
+
58
+ ## Title Tag Guidelines
59
+
60
+ | Criterion | Requirement |
61
+ |-----------|-------------|
62
+ | Length | 50–60 characters (display limit ~600px) |
63
+ | Primary keyword | Include near the beginning |
64
+ | Brand name | Append with " | Brand" or " — Brand" |
65
+ | Uniqueness | Every page must have a unique title |
66
+ | Accuracy | Must reflect actual page content |
67
+
68
+ ---
69
+
70
+ ## Meta Description Guidelines
71
+
72
+ | Criterion | Requirement |
73
+ |-----------|-------------|
74
+ | Length | 150–160 characters |
75
+ | Call to action | Include when appropriate |
76
+ | Primary keyword | Include naturally |
77
+ | Uniqueness | Every page must have a unique description |
78
+ | Accuracy | Must match page content (Google may rewrite if not) |
79
+
80
+ ---
81
+
82
+ ## Heading Hierarchy Rules
83
+
84
+ | Rule | Requirement |
85
+ |------|-------------|
86
+ | H1 count | Exactly 1 per page |
87
+ | H1 content | Should contain primary keyword, be descriptive |
88
+ | Hierarchy | H1 → H2 → H3 (no skipping levels) |
89
+ | Heading frequency | One heading every 200–300 words |
90
+ | Heading style | Descriptive, not generic ("Our Services" → "Professional SEO Audit Services") |
91
+
92
+ ---
93
+
94
+ ## Image Optimization Standards
95
+
96
+ | Criterion | Standard | Priority |
97
+ |-----------|----------|----------|
98
+ | Alt text | Descriptive, meaningful, includes keywords naturally | High |
99
+ | Dimensions | Width and height attributes specified | High (CLS) |
100
+ | Format | WebP or AVIF preferred, JPEG/PNG acceptable | Medium |
101
+ | File size | <200KB for standard, <500KB for hero images | Medium |
102
+ | Lazy loading | `loading="lazy"` for below-fold images | Medium |
103
+ | Preload | `<link rel="preload">` for hero/LCP images | High |
104
+ | Srcset | Responsive sizes for different viewports | Medium |
105
+
106
+ ---
107
+
108
+ ## Internal Linking Standards
109
+
110
+ | Metric | Target |
111
+ |--------|--------|
112
+ | Links per 1,000 words | 3–5 relevant internal links |
113
+ | Anchor text | Descriptive (not "click here") |
114
+ | Orphan pages | 0 (every page linked from at least one other) |
115
+ | Click depth | Important pages within 3 clicks of homepage |
116
+ | Broken links | 0 internal 404s |
117
+
118
+ ---
119
+
120
+ ## Thin Content Detection
121
+
122
+ A page is flagged as "thin content" when:
123
+ 1. Word count is below the minimum for its page type
124
+ 2. Content is predominantly duplicate or near-duplicate of another page
125
+ 3. Content is auto-generated without unique value-add
126
+ 4. Page provides no actionable information
127
+
128
+ ### Doorway Page Prevention
129
+ Never recommend creating pages that:
130
+ - Exist solely to funnel users to another page
131
+ - Have nearly identical content with only location/keyword swaps
132
+ - Provide no standalone value
133
+ - Target many similar keyword variations with minimal differences