optbrew 0.0.0-stage → 0.1.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 (179) hide show
  1. package/.claude-plugin/marketplace.json +6 -0
  2. package/.claude-plugin/plugin.json +6 -0
  3. package/.codex-plugin/plugin.json +13 -0
  4. package/CHANGELOG.md +50 -0
  5. package/LICENSE +21 -0
  6. package/README.ko.md +149 -0
  7. package/README.md +148 -2
  8. package/THIRD_PARTY_NOTICES.md +10 -0
  9. package/bin/optbrew.mjs +4 -0
  10. package/docs/platforms.md +107 -0
  11. package/docs/release.md +14 -0
  12. package/lib/cli.mjs +116 -0
  13. package/lib/doctor.mjs +45 -0
  14. package/lib/install.mjs +158 -0
  15. package/lib/paths.mjs +30 -0
  16. package/lib/records.mjs +44 -0
  17. package/lib/reinstall.mjs +92 -0
  18. package/lib/transaction.mjs +205 -0
  19. package/lib/update.mjs +189 -0
  20. package/package.json +39 -4
  21. package/plugin.json +13 -0
  22. package/skills/optbrew/LICENSE +21 -0
  23. package/skills/optbrew/SKILL.md +17 -0
  24. package/skills/optbrew/THIRD_PARTY_NOTICES.md +10 -0
  25. package/skills/optbrew/agents/openai.yaml +4 -0
  26. package/skills/optbrew/bundle-manifest.json +687 -0
  27. package/skills/optbrew/licenses/firecrawl-seo-audit.txt +15 -0
  28. package/skills/optbrew/licenses/magnus-seo.txt +21 -0
  29. package/skills/optbrew/licenses/marketing-search.txt +21 -0
  30. package/skills/optbrew/licenses/mblode-seo.txt +21 -0
  31. package/skills/optbrew/licenses/naver-searchadvisor.txt +29 -0
  32. package/skills/optbrew/licenses/seranking-seo.txt +21 -0
  33. package/skills/optbrew/modules/firecrawl-seo-audit/GUIDE.md +64 -0
  34. package/skills/optbrew/modules/magnus-seo/GUIDE.md +79 -0
  35. package/skills/optbrew/modules/magnus-seo/README.md +45 -0
  36. package/skills/optbrew/modules/magnus-seo/assets/audit-report-template.md +76 -0
  37. package/skills/optbrew/modules/magnus-seo/references/aeo-methodology.md +105 -0
  38. package/skills/optbrew/modules/magnus-seo/references/agent-readable-content.md +28 -0
  39. package/skills/optbrew/modules/magnus-seo/references/content-and-entity-architecture.md +100 -0
  40. package/skills/optbrew/modules/magnus-seo/references/content-strategy-seo.md +142 -0
  41. package/skills/optbrew/modules/magnus-seo/references/discovery-and-freshness.md +47 -0
  42. package/skills/optbrew/modules/magnus-seo/references/evidence-boundaries.md +75 -0
  43. package/skills/optbrew/modules/magnus-seo/references/ghost-metadata.md +204 -0
  44. package/skills/optbrew/modules/magnus-seo/references/implementation-playbook.md +114 -0
  45. package/skills/optbrew/modules/magnus-seo/references/measurement-and-experimentation.md +47 -0
  46. package/skills/optbrew/modules/magnus-seo/references/onpage-seo.md +154 -0
  47. package/skills/optbrew/modules/magnus-seo/references/platform-guidance.md +30 -0
  48. package/skills/optbrew/modules/magnus-seo/references/schema-markup.md +244 -0
  49. package/skills/optbrew/modules/magnus-seo/references/source-index.md +36 -0
  50. package/skills/optbrew/modules/magnus-seo/references/structured-data.md +56 -0
  51. package/skills/optbrew/modules/magnus-seo/references/technical-seo.md +99 -0
  52. package/skills/optbrew/modules/magnus-seo/scripts/aeo_audit.py +158 -0
  53. package/skills/optbrew/modules/magnus-seo/scripts/build_prompt_matrix.py +52 -0
  54. package/skills/optbrew/modules/magnus-seo/templates/aeo-implementation-plan.md +53 -0
  55. package/skills/optbrew/modules/magnus-seo/templates/citation-observation-log.md +16 -0
  56. package/skills/optbrew/modules/magnus-seo/templates/llms.txt.template +15 -0
  57. package/skills/optbrew/modules/magnus-seo/templates/question-cluster.md +27 -0
  58. package/skills/optbrew/modules/magnus-seo/templates/robots-ai-crawlers.txt +23 -0
  59. package/skills/optbrew/modules/marketing-search/skills/ai-seo/GUIDE.md +483 -0
  60. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/agent-readiness.md +57 -0
  61. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/citations-vs-recommendations.md +85 -0
  62. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/content-patterns.md +287 -0
  63. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/content-types.md +71 -0
  64. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/format-volatility.md +98 -0
  65. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/okf.md +104 -0
  66. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/platform-ranking-factors.md +154 -0
  67. package/skills/optbrew/modules/marketing-search/skills/ai-seo/references/youtube-ai-citations.md +60 -0
  68. package/skills/optbrew/modules/marketing-search/skills/analytics/GUIDE.md +303 -0
  69. package/skills/optbrew/modules/marketing-search/skills/analytics/references/event-library.md +260 -0
  70. package/skills/optbrew/modules/marketing-search/skills/analytics/references/ga4-implementation.md +300 -0
  71. package/skills/optbrew/modules/marketing-search/skills/analytics/references/gtm-implementation.md +390 -0
  72. package/skills/optbrew/modules/marketing-search/skills/content-strategy/GUIDE.md +432 -0
  73. package/skills/optbrew/modules/marketing-search/skills/content-strategy/references/content-distribution.md +83 -0
  74. package/skills/optbrew/modules/marketing-search/skills/content-strategy/references/headless-cms.md +194 -0
  75. package/skills/optbrew/modules/marketing-search/skills/programmatic-seo/GUIDE.md +231 -0
  76. package/skills/optbrew/modules/marketing-search/skills/programmatic-seo/references/playbooks.md +308 -0
  77. package/skills/optbrew/modules/marketing-search/skills/schema/GUIDE.md +172 -0
  78. package/skills/optbrew/modules/marketing-search/skills/schema/references/schema-examples.md +398 -0
  79. package/skills/optbrew/modules/marketing-search/skills/seo-audit/GUIDE.md +492 -0
  80. package/skills/optbrew/modules/marketing-search/skills/seo-audit/references/ai-writing-detection.md +200 -0
  81. package/skills/optbrew/modules/marketing-search/skills/seo-audit/references/international-seo.md +230 -0
  82. package/skills/optbrew/modules/marketing-search/skills/site-architecture/GUIDE.md +350 -0
  83. package/skills/optbrew/modules/marketing-search/skills/site-architecture/references/mermaid-templates.md +216 -0
  84. package/skills/optbrew/modules/marketing-search/skills/site-architecture/references/navigation-patterns.md +305 -0
  85. package/skills/optbrew/modules/marketing-search/skills/site-architecture/references/site-type-templates.md +293 -0
  86. package/skills/optbrew/modules/mblode-seo/GUIDE.md +74 -0
  87. package/skills/optbrew/modules/mblode-seo/references/answer-engines.md +58 -0
  88. package/skills/optbrew/modules/mblode-seo/references/audit.md +78 -0
  89. package/skills/optbrew/modules/mblode-seo/references/brief-template.md +47 -0
  90. package/skills/optbrew/modules/mblode-seo/references/monitoring.md +56 -0
  91. package/skills/optbrew/modules/mblode-seo/references/nextjs-implementation.md +65 -0
  92. package/skills/optbrew/modules/mblode-seo/references/research-protocol.md +37 -0
  93. package/skills/optbrew/modules/mblode-seo/references/sources.md +47 -0
  94. package/skills/optbrew/modules/mblode-seo/references/validation-evidence.md +21 -0
  95. package/skills/optbrew/modules/naver-searchadvisor/GUIDE.md +75 -0
  96. package/skills/optbrew/modules/naver-searchadvisor/NOTICE.md +59 -0
  97. package/skills/optbrew/modules/naver-searchadvisor/references/INDEX.md +97 -0
  98. package/skills/optbrew/modules/naver-searchadvisor/scripts/audit.mjs +742 -0
  99. package/skills/optbrew/modules/naver-searchadvisor/scripts/robots.mjs +77 -0
  100. package/skills/optbrew/modules/seranking-seo/skills/seo-ai-search-share-of-voice/GUIDE.md +94 -0
  101. package/skills/optbrew/modules/seranking-seo/skills/seo-api/GUIDE.md +186 -0
  102. package/skills/optbrew/modules/seranking-seo/skills/seo-api/references/api-surface-map.md +207 -0
  103. package/skills/optbrew/modules/seranking-seo/skills/seo-api/references/auth-and-keys.md +182 -0
  104. package/skills/optbrew/modules/seranking-seo/skills/seo-api/references/integration-patterns.md +283 -0
  105. package/skills/optbrew/modules/seranking-seo/skills/seo-api/references/rate-limits-and-credits.md +235 -0
  106. package/skills/optbrew/modules/seranking-seo/skills/seo-competitor-gap-analysis/GUIDE.md +117 -0
  107. package/skills/optbrew/modules/seranking-seo/skills/seo-content-audit/GUIDE.md +155 -0
  108. package/skills/optbrew/modules/seranking-seo/skills/seo-content-audit/references/cite.md +84 -0
  109. package/skills/optbrew/modules/seranking-seo/skills/seo-content-audit/references/core-eeat.md +147 -0
  110. package/skills/optbrew/modules/seranking-seo/skills/seo-content-audit/templates/verdict.md +63 -0
  111. package/skills/optbrew/modules/seranking-seo/skills/seo-firecrawl/GUIDE.md +141 -0
  112. package/skills/optbrew/modules/seranking-seo/skills/seo-firecrawl/references/preflight.md +73 -0
  113. package/skills/optbrew/modules/seranking-seo/skills/seo-geo/GUIDE.md +159 -0
  114. package/skills/optbrew/modules/seranking-seo/skills/seo-google/GUIDE.md +393 -0
  115. package/skills/optbrew/modules/seranking-seo/skills/seo-google/assets/templates/cwv-audit-report.md +48 -0
  116. package/skills/optbrew/modules/seranking-seo/skills/seo-google/assets/templates/gsc-performance-report.md +44 -0
  117. package/skills/optbrew/modules/seranking-seo/skills/seo-google/assets/templates/indexation-status-report.md +43 -0
  118. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/auth-setup.md +160 -0
  119. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/cross-skill-integration.md +187 -0
  120. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/ga4-data-api.md +184 -0
  121. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/indexing-api.md +109 -0
  122. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/keyword-planner-api.md +66 -0
  123. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/nlp-api.md +55 -0
  124. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/pagespeed-crux-api.md +204 -0
  125. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/rate-limits-quotas.md +75 -0
  126. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/search-console-api.md +156 -0
  127. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/supplementary-apis.md +99 -0
  128. package/skills/optbrew/modules/seranking-seo/skills/seo-google/references/youtube-api.md +49 -0
  129. package/skills/optbrew/modules/seranking-seo/skills/seo-keyword-niche/GUIDE.md +174 -0
  130. package/skills/optbrew/modules/seranking-seo/skills/seo-page/GUIDE.md +174 -0
  131. package/skills/optbrew/modules/seranking-seo/skills/seo-plan/GUIDE.md +220 -0
  132. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/GUIDE.md +135 -0
  133. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/references/google-rich-results.md +89 -0
  134. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/templates/article.json +23 -0
  135. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/templates/breadcrumb-list.json +18 -0
  136. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/templates/faq-page.json +22 -0
  137. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/templates/local-business.json +32 -0
  138. package/skills/optbrew/modules/seranking-seo/skills/seo-schema/templates/product.json +25 -0
  139. package/skills/optbrew/modules/seranking-seo/skills/seo-sitemap/GUIDE.md +128 -0
  140. package/skills/optbrew/modules/seranking-seo/skills/seo-technical-audit/GUIDE.md +235 -0
  141. package/skills/optbrew/modules/seranking-seo/skills/seo-technical-audit/references/severity-mapping.md +133 -0
  142. package/skills/optbrew/references/ai-crawlers.json +21 -0
  143. package/skills/optbrew/references/ai-crawlers.md +24 -0
  144. package/skills/optbrew/references/api.md +45 -0
  145. package/skills/optbrew/references/check-registry.json +28 -0
  146. package/skills/optbrew/references/evidence.md +9 -0
  147. package/skills/optbrew/references/intake.md +9 -0
  148. package/skills/optbrew/references/measurement.md +29 -0
  149. package/skills/optbrew/references/policies.md +7 -0
  150. package/skills/optbrew/references/profiles.json +13 -0
  151. package/skills/optbrew/references/remediations.json +12 -0
  152. package/skills/optbrew/references/report.md +29 -0
  153. package/skills/optbrew/references/routing.md +15 -0
  154. package/skills/optbrew/references/schemas/contract.schema.json +51 -0
  155. package/skills/optbrew/references/scoring.md +62 -0
  156. package/skills/optbrew/scripts/adapters/anthropic.mjs +116 -0
  157. package/skills/optbrew/scripts/adapters/imports.mjs +81 -0
  158. package/skills/optbrew/scripts/audit.mjs +124 -0
  159. package/skills/optbrew/scripts/cli.mjs +41 -0
  160. package/skills/optbrew/scripts/core/bootstrap.mjs +31 -0
  161. package/skills/optbrew/scripts/core/bundle.mjs +73 -0
  162. package/skills/optbrew/scripts/core/capabilities.mjs +19 -0
  163. package/skills/optbrew/scripts/core/collector.mjs +250 -0
  164. package/skills/optbrew/scripts/core/compare.mjs +47 -0
  165. package/skills/optbrew/scripts/core/contracts.mjs +144 -0
  166. package/skills/optbrew/scripts/core/cost-ledger.mjs +95 -0
  167. package/skills/optbrew/scripts/core/crawlers.mjs +11 -0
  168. package/skills/optbrew/scripts/core/derive.mjs +168 -0
  169. package/skills/optbrew/scripts/core/facts.mjs +189 -0
  170. package/skills/optbrew/scripts/core/findings.mjs +54 -0
  171. package/skills/optbrew/scripts/core/html.mjs +53 -0
  172. package/skills/optbrew/scripts/core/metrics.mjs +97 -0
  173. package/skills/optbrew/scripts/core/protocol.mjs +125 -0
  174. package/skills/optbrew/scripts/core/report.mjs +742 -0
  175. package/skills/optbrew/scripts/core/scope.mjs +52 -0
  176. package/skills/optbrew/scripts/core/score.mjs +71 -0
  177. package/skills/optbrew/scripts/core/weights.mjs +139 -0
  178. package/skills/optbrew/source-lock.json +2686 -0
  179. package/source-lock.json +2686 -0
@@ -0,0 +1,230 @@
1
+ # International SEO: Evidence & Sources
2
+
3
+ Detailed evidence backing the International SEO & Localization section of the SEO Audit skill. Organized by topic with source URLs and key quotes.
4
+
5
+ ---
6
+
7
+ ## Hreflang
8
+
9
+ ### Placement Methods
10
+
11
+ Google supports three equivalent methods: HTML `<link>` in `<head>`, HTTP `Link` headers, and XML sitemap `<xhtml:link>` elements. Google confirmed no method is prioritized over another.
12
+
13
+ Google combines signals from both HTML and sitemaps. If the same language-region pair points to different URLs across methods, Google drops that pair rather than guessing.
14
+
15
+ - [Google Search Central: Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
16
+ - [SEJ: Google Combines Hreflang Signals](https://www.searchenginejournal.com/google-combines-hreflang-signals-from-html-sitemaps/389219/)
17
+
18
+ ### Reciprocal Requirement
19
+
20
+ Google's docs: "If page X links to page Y, page Y must link back to page X. If not, those annotations may be ignored or not interpreted correctly."
21
+
22
+ Every page must include itself (self-referencing) in the hreflang set. Missing self-referencing is the #1 error found by Semrush audits. A study of 374,756 domains found 67% of hreflang implementations had issues.
23
+
24
+ - [Google Search Central: Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
25
+ - [Semrush: 9 Common Hreflang Errors](https://www.semrush.com/blog/hreflang-errors/)
26
+ - [SE Land: 31% of International Websites Contain Hreflang Errors](https://searchengineland.com/study-31-of-international-websites-contain-hreflang-errors-395161)
27
+
28
+ ### x-default
29
+
30
+ Introduced April 2013. Designates the fallback page for users whose language/region matches no declared variant. Can point to the same URL as one of the language-specific alternates. Must be included in the complete set of annotations on every variant page.
31
+
32
+ - [Google Blog: x-default hreflang](https://developers.google.com/search/blog/2013/04/x-default-hreflang-for-international-pages)
33
+ - [Google Blog: How x-default can help you (2023)](https://developers.google.com/search/blog/2023/05/x-default)
34
+
35
+ ### Language & Region Codes
36
+
37
+ Language: ISO 639-1 (2-letter). Region: ISO 3166-1 Alpha 2 (2-letter). Format: `language[-script][-region]`.
38
+
39
+ You cannot specify a region code alone. Common mistakes: `en-UK` (should be `en-GB`), `es-419` (not ISO 3166-1). A study found 8.9% of sites using hreflang contain invalid language codes.
40
+
41
+ - [Google Search Central: Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
42
+ - [SE Land: 31% Study](https://searchengineland.com/study-31-of-international-websites-contain-hreflang-errors-395161)
43
+
44
+ ### Hreflang at Scale (20+ locales)
45
+
46
+ With 20 locales, HTML `<head>` hreflang adds ~1.5KB per page for zero user benefit. Sitemap-based hreflang has zero runtime performance impact. `<xhtml:link>` child elements do NOT count toward the 50,000 URL sitemap limit (only `<loc>` elements count).
47
+
48
+ John Mueller recommends focusing hreflang on pages receiving wrong-language traffic, not every page: "I wouldn't do it for any of the other pages of the site because it's so complex & hard to manage."
49
+
50
+ - [SERoundtable: Child Elements Don't Count](https://www.seroundtable.com/google-child-elements-dont-count-towards-sitemap-url-limit-34377.html)
51
+ - [SERoundtable: Where To Focus Hreflang](https://www.seroundtable.com/using-hreflang-34127.html)
52
+ - [Yoast: hreflang Ultimate Guide](https://yoast.com/hreflang-ultimate-guide/)
53
+
54
+ ### Google vs Bing
55
+
56
+ Bing treats hreflang as a "weak signal." Bing relies on `content-language` meta tag, HTML `lang` attribute, ccTLDs, and server location. Yandex supports hreflang like Google.
57
+
58
+ For both engines: implement hreflang (Google/Yandex) + `<html lang="...">` + `<meta http-equiv="content-language">` (Bing).
59
+
60
+ - [Digital Ready Marketing: Bing Doesn't Use Hreflang](https://digitalreadymarketing.com/bing-doesnt-use-hreflang-annotation-what-does-it-use/)
61
+ - [Yoast: hreflang Ultimate Guide](https://yoast.com/hreflang-ultimate-guide/)
62
+
63
+ ---
64
+
65
+ ## Canonicalization & i18n
66
+
67
+ ### Self-Referencing Canonicals
68
+
69
+ Each locale page must canonical to itself. John Mueller: "Don't use a rel=canonical across languages/countries, only use it on a per-country/language basis."
70
+
71
+ Google's docs: "Specify a canonical page in the same language, or the best possible substitute language if a canonical doesn't exist for the same language."
72
+
73
+ - [John Mueller: hreflang canonical](https://johnmu.com/hreflang-canonical/)
74
+ - [Google: Consolidate Duplicate URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
75
+
76
+ ### Canonical Overrides Hreflang
77
+
78
+ Mueller: "If your canonical is pointing somewhere else, Google will follow that and ignore your hreflang annotation." The canonical URL must be one of the URLs in the hreflang set, or all hreflang markup is ignored.
79
+
80
+ Google also states: "Google prefers URLs that are part of hreflang clusters for canonicalization" -- when signals align, hreflang strengthens canonical selection.
81
+
82
+ - [John Mueller: hreflang canonical](https://johnmu.com/hreflang-canonical/)
83
+ - [SEJ: Hreflang Tags Are Hints](https://www.searchenginejournal.com/google-reminds-that-hreflang-tags-are-hints-not-directives/546428/)
84
+ - [Google: Consolidate Duplicate URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
85
+
86
+ ### Near-Duplicate Regional Variants
87
+
88
+ Mueller (2023 Office Hours): "If the content is completely the same, and we can't tell any difference, then for simplicity and user experience we may just show one version -- even if hreflang is present."
89
+
90
+ Google's duplicate detection runs BEFORE hreflang evaluation. To keep both versions indexed, you need substantive content differences beyond currency symbols.
91
+
92
+ - [International Web Mastery: Same-Language Duplicate Pages](https://internationalwebmastery.com/blog/how-google-handles-canonicalization-of-same-language-duplicate-near-duplicate-pages/)
93
+ - [Google: Managing Multi-Regional Sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites)
94
+
95
+ ### Pagination Across Locales
96
+
97
+ Google: "Don't use the first page of a paginated sequence as the canonical page. Instead, give each page its own canonical URL." Each paginated page in each locale gets self-referencing canonical. `rel="next/prev"` deprecated March 2019.
98
+
99
+ - [Google: Pagination Best Practices](https://developers.google.com/search/docs/specialty/ecommerce/pagination-and-incremental-page-loading)
100
+
101
+ ---
102
+
103
+ ## International Sitemaps
104
+
105
+ ### Structure
106
+
107
+ Each `<url>` entry includes `<xhtml:link>` alternates for every locale. Requires `xmlns:xhtml="http://www.w3.org/1999/xhtml"` namespace.
108
+
109
+ Split sitemaps by content type, not by locale. Splitting by locale creates maintenance problems because every locale sitemap must reference every other locale (reciprocal requirement).
110
+
111
+ - [Google Search Central: Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
112
+ - [Lumar: How Google Handles Hreflang](https://www.lumar.io/office-hours/hreflang/)
113
+
114
+ ### Size Limits
115
+
116
+ 50,000 URLs / 50MB uncompressed per sitemap. Only `<loc>` elements count toward the 50K limit. But with 20 hreflang alternates per entry, the 50MB file size limit becomes the bottleneck. Plan for 2,000-5,000 URLs per sitemap when using full hreflang.
117
+
118
+ - [Google: Build and Submit a Sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
119
+ - [SERoundtable: Sitemap 50,000 Limit](https://www.seroundtable.com/google-sitemap-50-000-limit-based-on-location-urls-not-alternative-urls-33843.html)
120
+
121
+ ### Submission
122
+
123
+ Submit the sitemap index in Search Console AND reference it in robots.txt. Individual child sitemaps can be submitted separately for per-sitemap reporting.
124
+
125
+ - [Google: Build and Submit a Sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
126
+
127
+ ### Next.js Caveat
128
+
129
+ Next.js `alternates.languages` does NOT automatically include a self-referencing `<xhtml:link>` for the `<loc>` URL. You must explicitly include the `<loc>` URL's own language in the `languages` object.
130
+
131
+ - [Next.js Docs: sitemap.xml](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap)
132
+
133
+ ---
134
+
135
+ ## URL Structure
136
+
137
+ ### Strategies Compared
138
+
139
+ Google treats subdirectories and subdomains equivalently. Mueller: "From our point of view...they say subdomains and subdirectories are essentially equivalent."
140
+
141
+ URL parameters (`?lang=en`) are explicitly "Not recommended" per Google docs.
142
+
143
+ - [Google: Managing Multi-Regional Sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites)
144
+
145
+ ### Default Language
146
+
147
+ Mueller recommends: set `/` as x-default, put each language in its own prefix. Without marking `/` as x-default, "to Google it can look like '/' is a separate page from the others."
148
+
149
+ - [Google Blog: x-default](https://developers.google.com/search/blog/2023/05/x-default)
150
+ - [Google Blog: Creating the Right Homepage](https://developers.google.com/search/blog/2014/05/creating-right-homepage-for-your)
151
+
152
+ ### Content Negotiation / IP Redirects
153
+
154
+ Google strongly advises against locale-adaptive pages. Googlebot crawls from US IPs and does not send Accept-Language headers. Separate URLs + hreflang are required.
155
+
156
+ - [Google: Locale-Adaptive Pages](https://developers.google.com/search/docs/specialty/international/locale-adaptive-pages)
157
+
158
+ ### Trailing Slash Consistency
159
+
160
+ Mueller: trailing slash is "a significant part of the URL and will change the URL if it's there or not." Pick one format for all locale paths, internal links, canonicals, hreflang, and sitemaps.
161
+
162
+ Mueller (2025): "Consistency is the biggest technical SEO factor."
163
+
164
+ - [SERoundtable: Consistency Is The Biggest Technical SEO Factor](https://www.seroundtable.com/google-consistency-seo-40427.html)
165
+
166
+ ### Search Console Geotargeting
167
+
168
+ The International Targeting report is deprecated. Google now relies entirely on hreflang, content language analysis, and linking patterns. You can add subdirectory properties for per-locale reporting.
169
+
170
+ - [Google Support: International Targeting Deprecated](https://support.google.com/webmasters/answer/12474899?hl=en)
171
+
172
+ ### Framework Locale Modes
173
+
174
+ Use `localePrefix: 'always'` (next-intl) or equivalent. Never hide locale from URLs -- Google needs unique URLs per language. Using `'never'` mode disables alternate links entirely.
175
+
176
+ - [next-intl: Routing Configuration](https://next-intl.dev/docs/routing/configuration)
177
+ - [Next.js Discussion #18419](https://github.com/vercel/next.js/discussions/18419)
178
+
179
+ ---
180
+
181
+ ## Content Quality Across Locales
182
+
183
+ ### Auto-Translated Content (2025 Stance)
184
+
185
+ Google removed longstanding guidance advising against auto-translated content in mid-2025. Current stance: "Our policies do not strictly define content that has been translated by AI as spam." The scaled content abuse policy mentions translation as a possible vector, but does not ban it.
186
+
187
+ Reddit scaled AI translations to 35+ languages with Google's knowledge. The key distinction is intent and quality, not the method.
188
+
189
+ - [Google Spam Policies](https://developers.google.com/search/docs/essentials/spam-policies)
190
+ - [Glenn Gabe: Auto-Translating Content](https://www.gsqi.com/marketing-blog/auto-translating-content-google-scaled-content-abuse/)
191
+ - [SE Land: Reddit AI Translations](https://searchengineland.com/google-comments-on-reddits-use-of-ai-to-translate-its-pages-456908)
192
+
193
+ ### Thin Locale Pages
194
+
195
+ Google: "Localized versions of a page are only considered duplicates if the main content of the page remains untranslated." Pages with only translated boilerplate get clustered as duplicates.
196
+
197
+ Do NOT use noindex for unwanted locale pages (wastes crawl budget). Do NOT canonical cross-locale (conflicts with hreflang). Best approach: don't create locale pages you can't make genuinely helpful.
198
+
199
+ - [Google: Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
200
+ - [Google: Crawl Budget Management](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget)
201
+
202
+ ### Helpful Content System Impact
203
+
204
+ Merged into core ranking March 2024. Site-wide signal: "any content -- not just unhelpful content -- on sites determined to have relatively high amounts of unhelpful content overall is less likely to perform well in Search."
205
+
206
+ Low-quality translated pages can drag down the entire site. This is the strongest argument against creating locale pages that aren't genuinely helpful.
207
+
208
+ - [Google Blog: Helpful Content Update](https://developers.google.com/search/blog/2022/08/helpful-content-update)
209
+ - [Amsive: What Changed in 2024](https://www.amsive.com/insights/seo/googles-helpful-content-update-ranking-system-what-happened-and-what-changed-in-2024/)
210
+
211
+ ### Partial Translation
212
+
213
+ Google: "Translating only the boilerplate text of your pages while keeping the bulk of your content in a single language...can create a bad user experience." Google uses visible content (not lang attribute) to determine page language.
214
+
215
+ Translate ALL content on a page if you create a locale version. Untranslated metadata (title, description) in the wrong language reduces CTR.
216
+
217
+ - [Google: Managing Multi-Regional Sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites)
218
+
219
+ ### Crawl Budget
220
+
221
+ Only a concern for 1M+ pages or 10K+ pages changing daily. But alternate URLs (hreflang targets) do consume crawl budget. Broken hreflang links waste budget AND invalidate signals.
222
+
223
+ - [Google: Crawl Budget Management](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget)
224
+ - [Google Blog: Crawl Budget](https://developers.google.com/search/blog/2017/01/what-crawl-budget-means-for-googlebot)
225
+
226
+ ### Locale-Specific Signals
227
+
228
+ Google identifies audience via: "local addresses and phone numbers on the pages, the use of local language and currency, links from other local sites, or signals from your Business Profile."
229
+
230
+ - [Google: Managing Multi-Regional Sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites)
@@ -0,0 +1,350 @@
1
+ # Site Architecture
2
+
3
+ You are an information architecture expert. Your goal is to help plan website structure — page hierarchy, navigation, URL patterns, and internal linking — so the site is intuitive for users and optimized for search engines.
4
+
5
+ ## Before Planning
6
+
7
+ **Check for product marketing context first:**
8
+ If `.agents/product-marketing.md` exists (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md` filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.
9
+
10
+ Gather this context (ask if not provided):
11
+
12
+ ### 1. Business Context
13
+ - What does the company do?
14
+ - Who are the primary audiences?
15
+ - What are the top 3 goals for the site? (conversions, SEO traffic, education, support)
16
+
17
+ ### 2. Current State
18
+ - New site or restructuring an existing one?
19
+ - If restructuring: what's broken? (high bounce, poor SEO, users can't find things)
20
+ - Existing URLs that must be preserved (for redirects)?
21
+
22
+ ### 3. Site Type
23
+ - SaaS marketing site
24
+ - Content/blog site
25
+ - E-commerce
26
+ - Documentation
27
+ - Hybrid (SaaS + content)
28
+ - Small business / local
29
+
30
+ ### 4. Content Inventory
31
+ - How many pages exist or are planned?
32
+ - What are the most important pages? (by traffic, conversions, or business value)
33
+ - Any planned sections or expansions?
34
+
35
+ ---
36
+
37
+ ## Site Types and Starting Points
38
+
39
+ | Site Type | Typical Depth | Key Sections | URL Pattern |
40
+ |-----------|--------------|--------------|-------------|
41
+ | SaaS marketing | 2-3 levels | Home, Features, Pricing, Blog, Docs | `/features/name`, `/blog/slug` |
42
+ | Content/blog | 2-3 levels | Home, Blog, Categories, About | `/blog/slug`, `/category/slug` |
43
+ | E-commerce | 3-4 levels | Home, Categories, Products, Cart | `/category/subcategory/product` |
44
+ | Documentation | 3-4 levels | Home, Guides, API Reference | `/docs/section/page` |
45
+ | Hybrid SaaS+content | 3-4 levels | Home, Product, Blog, Resources, Docs | `/product/feature`, `/blog/slug` |
46
+ | Small business | 1-2 levels | Home, Services, About, Contact | `/services/name` |
47
+
48
+ **For full page hierarchy templates**: See [references/site-type-templates.md](references/site-type-templates.md)
49
+
50
+ ---
51
+
52
+ ## Page Hierarchy Design
53
+
54
+ ### The 3-Click Rule
55
+
56
+ Users should reach any important page within 3 clicks from the homepage. This isn't absolute, but if critical pages are buried 4+ levels deep, something is wrong.
57
+
58
+ ### Flat vs Deep
59
+
60
+ | Approach | Best For | Tradeoff |
61
+ |----------|----------|----------|
62
+ | Flat (2 levels) | Small sites, portfolios | Simple but doesn't scale |
63
+ | Moderate (3 levels) | Most SaaS, content sites | Good balance of depth and findability |
64
+ | Deep (4+ levels) | E-commerce, large docs | Scales but risks burying content |
65
+
66
+ **Rule of thumb**: Go as flat as possible while keeping navigation clean. If a nav dropdown has 20+ items, add a level of hierarchy.
67
+
68
+ ### Hierarchy Levels
69
+
70
+ | Level | What It Is | Example |
71
+ |-------|-----------|---------|
72
+ | L0 | Homepage | `/` |
73
+ | L1 | Primary sections | `/features`, `/blog`, `/pricing` |
74
+ | L2 | Section pages | `/features/analytics`, `/blog/seo-guide` |
75
+ | L3+ | Detail pages | `/docs/api/authentication` |
76
+
77
+ ### ASCII Tree Format
78
+
79
+ Use this format for page hierarchies:
80
+
81
+ ```
82
+ Homepage (/)
83
+ ├── Features (/features)
84
+ │ ├── Analytics (/features/analytics)
85
+ │ ├── Automation (/features/automation)
86
+ │ └── Integrations (/features/integrations)
87
+ ├── Pricing (/pricing)
88
+ ├── Blog (/blog)
89
+ │ ├── [Category: SEO] (/blog/category/seo)
90
+ │ └── [Category: CRO] (/blog/category/cro)
91
+ ├── Resources (/resources)
92
+ │ ├── Case Studies (/resources/case-studies)
93
+ │ └── Templates (/resources/templates)
94
+ ├── Docs (/docs)
95
+ │ ├── Getting Started (/docs/getting-started)
96
+ │ └── API Reference (/docs/api)
97
+ ├── About (/about)
98
+ │ └── Careers (/about/careers)
99
+ └── Contact (/contact)
100
+ ```
101
+
102
+ **When to use ASCII vs Mermaid**:
103
+ - ASCII: quick hierarchy drafts, text-only contexts, simple structures
104
+ - Mermaid: visual presentations, complex relationships, showing nav zones or linking patterns
105
+
106
+ ---
107
+
108
+ ## Navigation Design
109
+
110
+ ### Navigation Types
111
+
112
+ | Nav Type | Purpose | Placement |
113
+ |----------|---------|-----------|
114
+ | Header nav | Primary navigation, always visible | Top of every page |
115
+ | Dropdown menus | Organize sub-pages under parent | Expands from header items |
116
+ | Footer nav | Secondary links, legal, sitemap | Bottom of every page |
117
+ | Sidebar nav | Section navigation (docs, blog) | Left side within a section |
118
+ | Breadcrumbs | Show current location in hierarchy | Below header, above content |
119
+ | Contextual links | Related content, next steps | Within page content |
120
+
121
+ ### Header Navigation Rules
122
+
123
+ - **4-7 items max** in the primary nav (more causes decision paralysis)
124
+ - **CTA button** goes rightmost (e.g., "Start Free Trial," "Get Started")
125
+ - **Logo** links to homepage (left side)
126
+ - **Order by priority**: most important/visited pages first
127
+ - If you have a mega menu, limit to 3-4 columns
128
+
129
+ ### Footer Organization
130
+
131
+ Group footer links into columns:
132
+ - **Product**: Features, Pricing, Integrations, Changelog
133
+ - **Resources**: Blog, Case Studies, Templates, Docs
134
+ - **Company**: About, Careers, Contact, Press
135
+ - **Legal**: Privacy, Terms, Security
136
+
137
+ ### Breadcrumb Format
138
+
139
+ ```
140
+ Home > Features > Analytics
141
+ Home > Blog > SEO Category > Post Title
142
+ ```
143
+
144
+ Breadcrumbs should mirror the URL hierarchy. Every breadcrumb segment should be a clickable link except the current page.
145
+
146
+ **For detailed navigation patterns**: See [references/navigation-patterns.md](references/navigation-patterns.md)
147
+
148
+ ---
149
+
150
+ ## URL Structure
151
+
152
+ ### Design Principles
153
+
154
+ 1. **Readable by humans** — `/features/analytics` not `/f/a123`
155
+ 2. **Hyphens, not underscores** — `/blog/seo-guide` not `/blog/seo_guide`
156
+ 3. **Reflect the hierarchy** — URL path should match site structure
157
+ 4. **Consistent trailing slash policy** — pick one (with or without) and enforce it
158
+ 5. **Lowercase always** — `/About` should redirect to `/about`
159
+ 6. **Short but descriptive** — `/blog/how-to-improve-landing-page-conversion-rates` is too long; `/blog/landing-page-conversions` is better
160
+
161
+ ### URL Patterns by Page Type
162
+
163
+ | Page Type | Pattern | Example |
164
+ |-----------|---------|---------|
165
+ | Homepage | `/` | `example.com` |
166
+ | Feature page | `/features/{name}` | `/features/analytics` |
167
+ | Pricing | `/pricing` | `/pricing` |
168
+ | Blog post | `/blog/{slug}` | `/blog/seo-guide` |
169
+ | Blog category | `/blog/category/{slug}` | `/blog/category/seo` |
170
+ | Case study | `/customers/{slug}` | `/customers/acme-corp` |
171
+ | Documentation | `/docs/{section}/{page}` | `/docs/api/authentication` |
172
+ | Legal | `/{page}` | `/privacy`, `/terms` |
173
+ | Landing page | `/{slug}` or `/lp/{slug}` | `/free-trial`, `/lp/webinar` |
174
+ | Comparison | `/compare/{competitor}` or `/vs/{competitor}` | `/compare/competitor-name` |
175
+ | Integration | `/integrations/{name}` | `/integrations/slack` |
176
+ | Template | `/templates/{slug}` | `/templates/marketing-plan` |
177
+
178
+ ### Common Mistakes
179
+
180
+ - **Dates in blog URLs** — `/blog/2024/01/15/post-title` adds no value and makes URLs long. Use `/blog/post-title`.
181
+ - **Over-nesting** — `/products/category/subcategory/item/detail` is too deep. Flatten where possible.
182
+ - **Changing URLs without redirects** — Every old URL needs a 301 redirect to its new URL. Without them, you lose backlink equity and create broken pages for anyone with the old URL bookmarked or linked.
183
+ - **IDs in URLs** — `/product/12345` is not human-readable. Use slugs.
184
+ - **Query parameters for content** — `/blog?id=123` should be `/blog/post-title`.
185
+ - **Inconsistent patterns** — Don't mix `/features/analytics` and `/product/automation`. Pick one parent.
186
+
187
+ ### Breadcrumb-URL Alignment
188
+
189
+ The breadcrumb trail should mirror the URL path:
190
+
191
+ | URL | Breadcrumb |
192
+ |-----|-----------|
193
+ | `/features/analytics` | Home > Features > Analytics |
194
+ | `/blog/seo-guide` | Home > Blog > SEO Guide |
195
+ | `/docs/api/auth` | Home > Docs > API > Authentication |
196
+
197
+ ---
198
+
199
+ ## Visual Sitemap Output (Mermaid)
200
+
201
+ Use Mermaid `graph TD` for visual sitemaps. This makes hierarchy relationships clear and can annotate navigation zones.
202
+
203
+ ### Basic Hierarchy
204
+
205
+ ```mermaid
206
+ graph TD
207
+ HOME[Homepage] --> FEAT[Features]
208
+ HOME --> PRICE[Pricing]
209
+ HOME --> BLOG[Blog]
210
+ HOME --> ABOUT[About]
211
+
212
+ FEAT --> F1[Analytics]
213
+ FEAT --> F2[Automation]
214
+ FEAT --> F3[Integrations]
215
+
216
+ BLOG --> B1[Post 1]
217
+ BLOG --> B2[Post 2]
218
+ ```
219
+
220
+ ### With Navigation Zones
221
+
222
+ ```mermaid
223
+ graph TD
224
+ subgraph Header Nav
225
+ HOME[Homepage]
226
+ FEAT[Features]
227
+ PRICE[Pricing]
228
+ BLOG[Blog]
229
+ CTA[Get Started]
230
+ end
231
+
232
+ subgraph Footer Nav
233
+ ABOUT[About]
234
+ CAREERS[Careers]
235
+ CONTACT[Contact]
236
+ PRIVACY[Privacy]
237
+ end
238
+
239
+ HOME --> FEAT
240
+ HOME --> PRICE
241
+ HOME --> BLOG
242
+ HOME --> ABOUT
243
+
244
+ FEAT --> F1[Analytics]
245
+ FEAT --> F2[Automation]
246
+ ```
247
+
248
+ **For more Mermaid templates**: See [references/mermaid-templates.md](references/mermaid-templates.md)
249
+
250
+ ---
251
+
252
+ ## Internal Linking Strategy
253
+
254
+ ### Link Types
255
+
256
+ | Type | Purpose | Example |
257
+ |------|---------|---------|
258
+ | Navigational | Move between sections | Header, footer, sidebar links |
259
+ | Contextual | Related content within text | "Learn more about analytics (upstream-only reference; route through optbrew)" |
260
+ | Hub-and-spoke | Connect cluster content to hub | Blog posts linking to pillar page |
261
+ | Cross-section | Connect related pages across sections | Feature page linking to related case study |
262
+
263
+ ### Internal Linking Rules
264
+
265
+ 1. **No orphan pages** — every page must have at least one internal link pointing to it
266
+ 2. **Descriptive anchor text** — "our analytics features" not "click here"
267
+ 3. **5-10 internal links per 1000 words** of content (approximate guideline)
268
+ 4. **Link to important pages more often** — homepage, key feature pages, pricing
269
+ 5. **Use breadcrumbs** — free internal links on every page
270
+ 6. **Related content sections** — "Related Posts" or "You might also like" at page bottom
271
+
272
+ ### Hub-and-Spoke Model
273
+
274
+ For content-heavy sites, organize around hub pages:
275
+
276
+ ```
277
+ Hub: /blog/seo-guide (comprehensive overview)
278
+ ├── Spoke: /blog/keyword-research (links back to hub)
279
+ ├── Spoke: /blog/on-page-seo (links back to hub)
280
+ ├── Spoke: /blog/technical-seo (links back to hub)
281
+ └── Spoke: /blog/link-building (links back to hub)
282
+ ```
283
+
284
+ Each spoke links back to the hub. The hub links to all spokes. Spokes link to each other where relevant.
285
+
286
+ ### Link Audit Checklist
287
+
288
+ - [ ] Every page has at least one inbound internal link
289
+ - [ ] No broken internal links (404s)
290
+ - [ ] Anchor text is descriptive (not "click here" or "read more")
291
+ - [ ] Important pages have the most inbound internal links
292
+ - [ ] Breadcrumbs are implemented on all pages
293
+ - [ ] Related content links exist on blog posts
294
+ - [ ] Cross-section links connect features to case studies, blog to product pages
295
+
296
+ ---
297
+
298
+ ## Output Format
299
+
300
+ When creating a site architecture plan, provide these deliverables:
301
+
302
+ ### 1. Page Hierarchy (ASCII Tree)
303
+ Full site structure with URLs at each node. Use the ASCII tree format from the Page Hierarchy Design section.
304
+
305
+ ### 2. Visual Sitemap (Mermaid)
306
+ Mermaid diagram showing page relationships and navigation zones. Use `graph TD` with subgraphs for nav zones where helpful.
307
+
308
+ ### 3. URL Map Table
309
+
310
+ | Page | URL | Parent | Nav Location | Priority |
311
+ |------|-----|--------|-------------|----------|
312
+ | Homepage | `/` | — | Header | High |
313
+ | Features | `/features` | Homepage | Header | High |
314
+ | Analytics | `/features/analytics` | Features | Header dropdown | Medium |
315
+ | Pricing | `/pricing` | Homepage | Header | High |
316
+ | Blog | `/blog` | Homepage | Header | Medium |
317
+
318
+ ### 4. Navigation Spec
319
+ - Header nav items (ordered, with CTA)
320
+ - Footer sections and links
321
+ - Sidebar nav (if applicable)
322
+ - Breadcrumb implementation notes
323
+
324
+ ### 5. Internal Linking Plan
325
+ - Hub pages and their spokes
326
+ - Cross-section link opportunities
327
+ - Orphan page audit (if restructuring)
328
+ - Recommended links per key page
329
+
330
+ ---
331
+
332
+ ## Task-Specific Questions
333
+
334
+ 1. Is this a new site or are you restructuring an existing one?
335
+ 2. What type of site is it? (SaaS, content, e-commerce, docs, hybrid, small business)
336
+ 3. How many pages exist or are planned?
337
+ 4. What are the 5 most important pages on the site?
338
+ 5. Are there existing URLs that need to be preserved or redirected?
339
+ 6. Who are the primary audiences, and what are they trying to accomplish on the site?
340
+
341
+ ---
342
+
343
+ ## Related Skills
344
+
345
+ - **content-strategy**: For planning what content to create and topic clusters
346
+ - **programmatic-seo**: For building SEO pages at scale with templates and data
347
+ - **seo-audit**: For technical SEO, on-page optimization, and indexation issues
348
+ - **cro**: For optimizing individual pages for conversion
349
+ - **schema**: For implementing breadcrumb and site navigation structured data
350
+ - **competitors**: For comparison page frameworks and URL patterns