seomd-cli 1.4.0 → 2.0.0

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 (37) hide show
  1. package/PROVIDER_SPEC.md +125 -0
  2. package/README.md +54 -190
  3. package/SKILL.md +44 -0
  4. package/bin/seomd.js +78 -31
  5. package/package.json +11 -7
  6. package/src/commands/analyze.js +90 -90
  7. package/src/commands/check.js +301 -0
  8. package/src/commands/doctor.js +109 -0
  9. package/src/commands/generate.js +202 -0
  10. package/src/commands/init.js +123 -62
  11. package/src/commands/status.js +92 -76
  12. package/src/commands/sync.js +84 -70
  13. package/src/commands/validate.js +52 -25
  14. package/src/generators/directory.js +43 -110
  15. package/src/generators/reverse.js +46 -56
  16. package/src/generators/seomd.js +197 -44
  17. package/src/providers/http.js +67 -0
  18. package/src/providers/index.js +194 -0
  19. package/src/utils/agent-wiring.js +97 -0
  20. package/src/utils/api-client.js +14 -56
  21. package/src/utils/constants.js +110 -12
  22. package/src/utils/parser.js +114 -25
  23. package/src/utils/repo-scanner.js +207 -0
  24. package/src/utils/writeback.js +171 -82
  25. package/src/validators/seomd.js +255 -93
  26. package/scripts/release-contributors.js +0 -196
  27. package/scripts/release-notes.js +0 -194
  28. package/src/templates/blog/SEO.REVERSE.md +0 -176
  29. package/src/templates/blog/SEO.md +0 -233
  30. package/src/templates/ecommerce/SEO.REVERSE.md +0 -199
  31. package/src/templates/ecommerce/SEO.md +0 -239
  32. package/src/templates/local/SEO.REVERSE.md +0 -222
  33. package/src/templates/local/SEO.md +0 -245
  34. package/src/templates/marketplace/SEO.REVERSE.md +0 -222
  35. package/src/templates/marketplace/SEO.md +0 -245
  36. package/src/templates/saas/SEO.REVERSE.md +0 -268
  37. package/src/templates/saas/SEO.md +0 -257
@@ -1,268 +0,0 @@
1
- # SEO.REVERSE.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | https://seomd.dev
6
-
7
- #### generated: {{date}}
8
-
9
- ## This file is generated by the {{brand}} platform.
10
- ### Do not edit manually — run `npx seomd analyze` to update.
11
- ### Run `npx seomd sync` to pull latest intelligence.
12
-
13
- ## Each page section contains a full reverse engineer analysis:
14
-
15
- ### why_page_won — what the top cited competitor does right
16
- ### citation_hooks — specific patterns to replicate
17
- ### gaps_for_brand — where your page falls short
18
- ### remediation_playbook — step by step fixes with effort/impact
19
- ### fastest_win — highest ROI action to take now
20
- ### suggested_content_outline — ready to use outline for your writer/AI
21
-
22
- domain: {{domain}}
23
- brand: "{{brand}}"
24
- primary_competitor: {{primary_competitor}}
25
- last_analyzed: null
26
- next_analysis: null
27
- source: null
28
-
29
- ## Pages
30
- ### Run `npx seomd analyze` to populate these sections
31
-
32
- pages:
33
-
34
- ### Homepage
35
-
36
- - id: homepage
37
- url: /
38
- status: planned
39
- citation_rate: null
40
- gap_score: null
41
- top_cited_competitor: null
42
-
43
- why_page_won: []
44
- citation_hooks: []
45
-
46
- gaps_for_{{brand_lower_snake}}: []
47
-
48
- remediation_playbook: []
49
-
50
- fastest_win:
51
- action: null
52
- estimated_gap_score_improvement: null
53
- effort: null
54
-
55
- suggested_content_outline: []
56
-
57
- ### Features
58
-
59
- - id: features
60
- url: /features
61
- status: planned
62
- citation_rate: null
63
- gap_score: null
64
- top_cited_competitor: null
65
-
66
- why_page_won: []
67
- citation_hooks: []
68
-
69
- gaps_for_{{brand_lower_snake}}: []
70
-
71
- remediation_playbook: []
72
-
73
- fastest_win:
74
- action: null
75
- estimated_gap_score_improvement: null
76
- effort: null
77
-
78
- suggested_content_outline: []
79
-
80
- ### Pricing
81
-
82
- - id: pricing
83
- url: /pricing
84
- status: planned
85
- citation_rate: null
86
- gap_score: null
87
- top_cited_competitor: null
88
-
89
- why_page_won: []
90
- citation_hooks: []
91
-
92
- gaps_for_{{brand_lower_snake}}: []
93
-
94
- remediation_playbook: []
95
-
96
- fastest_win:
97
- action: null
98
- estimated_gap_score_improvement: null
99
- effort: null
100
-
101
- suggested_content_outline: []
102
-
103
- ### Comparison
104
-
105
- - id: comparison
106
- url: /vs/[competitor]
107
- status: planned
108
- citation_rate: null
109
- gap_score: null
110
- top_cited_competitor: null
111
-
112
- why_page_won: []
113
- citation_hooks: []
114
-
115
- gaps_for_{{brand_lower_snake}}: []
116
-
117
- remediation_playbook: []
118
-
119
- fastest_win:
120
- action: null
121
- estimated_gap_score_improvement: null
122
- effort: null
123
-
124
- suggested_content_outline: []
125
-
126
- ### Alternatives
127
-
128
- - id: alternatives
129
- url: /alternatives/[competitor]
130
- status: planned
131
- citation_rate: null
132
- gap_score: null
133
- top_cited_competitor: null
134
-
135
- why_page_won: []
136
- citation_hooks: []
137
-
138
- gaps_for_{{brand_lower_snake}}: []
139
-
140
- remediation_playbook: []
141
-
142
- fastest_win:
143
- action: null
144
- estimated_gap_score_improvement: null
145
- effort: null
146
-
147
- suggested_content_outline: []
148
-
149
- ### Use-cases
150
-
151
- - id: use-cases
152
- url: /for/[segment]
153
- status: planned
154
- citation_rate: null
155
- gap_score: null
156
- top_cited_competitor: null
157
-
158
- why_page_won: []
159
- citation_hooks: []
160
-
161
- gaps_for_{{brand_lower_snake}}: []
162
-
163
- remediation_playbook: []
164
-
165
- fastest_win:
166
- action: null
167
- estimated_gap_score_improvement: null
168
- effort: null
169
-
170
- suggested_content_outline: []
171
-
172
- ### Integrations
173
-
174
- - id: integrations
175
- url: /integrations
176
- status: planned
177
- citation_rate: null
178
- gap_score: null
179
- top_cited_competitor: null
180
-
181
- why_page_won: []
182
- citation_hooks: []
183
-
184
- gaps_for_{{brand_lower_snake}}: []
185
-
186
- remediation_playbook: []
187
-
188
- fastest_win:
189
- action: null
190
- estimated_gap_score_improvement: null
191
- effort: null
192
-
193
- suggested_content_outline: []
194
-
195
- ### Changelog
196
-
197
- - id: changelog
198
- url: /changelog
199
- status: planned
200
- citation_rate: null
201
- gap_score: null
202
- top_cited_competitor: null
203
-
204
- why_page_won: []
205
- citation_hooks: []
206
-
207
- gaps_for_{{brand_lower_snake}}: []
208
-
209
- remediation_playbook: []
210
-
211
- fastest_win:
212
- action: null
213
- estimated_gap_score_improvement: null
214
- effort: null
215
-
216
- suggested_content_outline: []
217
-
218
- ### Docs
219
-
220
- - id: docs
221
- url: /docs
222
- status: planned
223
- citation_rate: null
224
- gap_score: null
225
- top_cited_competitor: null
226
-
227
- why_page_won: []
228
- citation_hooks: []
229
-
230
- gaps_for_{{brand_lower_snake}}: []
231
-
232
- remediation_playbook: []
233
-
234
- fastest_win:
235
- action: null
236
- estimated_gap_score_improvement: null
237
- effort: null
238
-
239
- suggested_content_outline: []
240
-
241
- ### Blog
242
-
243
- - id: blog
244
- url: /blog
245
- status: planned
246
- citation_rate: null
247
- gap_score: null
248
- top_cited_competitor: null
249
-
250
- why_page_won: []
251
- citation_hooks: []
252
-
253
- gaps_for_{{brand_lower_snake}}: []
254
-
255
- remediation_playbook: []
256
-
257
- fastest_win:
258
- action: null
259
- estimated_gap_score_improvement: null
260
- effort: null
261
-
262
- suggested_content_outline: []
263
-
264
- ## Competitor Profiles
265
- ### Platform populated — competitor citation patterns
266
-
267
- competitors:
268
- {{reverse_competitors}}
@@ -1,257 +0,0 @@
1
- # SEO.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | <https://seomd.dev>
6
-
7
- ## Site
8
-
9
- site:
10
- type: saas
11
- domain: {{domain}}
12
- canonical: https://{{domain}}
13
- locale: en-US
14
- launched: null # YYYY-MM-DD
15
-
16
- ## Identity
17
-
18
- identity:
19
- brand: "{{brand}}"
20
- tagline: null
21
- social:
22
- twitter: null
23
- linkedin: null
24
- github: null
25
- schema_org_type: SoftwareApplication
26
-
27
- ## Keywords
28
-
29
- keywords:
30
-
31
- primary: "{{primary_keyword}}"
32
- secondary: [] # add your secondary keywords
33
- negative: # terms that dilute your intent signal
34
- - "free"
35
- - "tutorial"
36
- - "how to"
37
- competitor_terms:
38
- {{competitor_terms}}
39
- category_terms: # unbranded category queries
40
- - "best {{primary_keyword}}"
41
- - "top {{primary_keyword}} tools"
42
- long_tail: [] # add long-tail variations
43
- seasonal: null # add seasonal terms if applicable
44
-
45
- ## Intent
46
-
47
- intent:
48
-
49
- informational:
50
- priority: medium
51
- queries:
52
- - "what is {{primary_keyword}}"
53
- - "how does {{primary_keyword}} work"
54
-
55
- comparison:
56
- priority: high
57
- queries:
58
- {{competitors_comparison_queries}}
59
- - "best {{primary_keyword}} for startups"
60
-
61
- transactional:
62
- priority: high
63
- queries:
64
- - "is {{brand_lower}} worth it"
65
- - "should I use {{brand_lower}}"
66
- - "{{brand_lower}} pricing"
67
-
68
- reputational:
69
- priority: medium
70
- queries:
71
- - "{{brand_lower}} reviews"
72
- - "is {{brand_lower}} legit"
73
- - "{{brand_lower}} problems"
74
-
75
- category:
76
- priority: critical
77
- queries:
78
- - "best {{primary_keyword}}"
79
- - "top {{primary_keyword}} 2026"
80
-
81
- ## Pages
82
-
83
- pages:
84
- site_type: saas
85
-
86
- required:
87
- - id: homepage
88
- url: /
89
- primary_keyword: null
90
- status: planned
91
- priority: 1
92
-
93
- - id: features
94
- url: /features
95
- primary_keyword: null
96
- status: planned
97
- priority: 2
98
-
99
- - id: pricing
100
- url: /pricing
101
- primary_keyword: null
102
- status: planned
103
- priority: 3
104
-
105
- - id: comparison
106
- url: /vs/[competitor]
107
- primary_keyword: null
108
- status: planned
109
- priority: 4
110
-
111
- - id: alternatives
112
- url: /alternatives/[competitor]
113
- primary_keyword: null
114
- status: planned
115
- priority: 5
116
-
117
- - id: use-cases
118
- url: /for/[segment]
119
- primary_keyword: null
120
- status: planned
121
- priority: 6
122
-
123
- - id: integrations
124
- url: /integrations
125
- primary_keyword: null
126
- status: planned
127
- priority: 7
128
-
129
- - id: changelog
130
- url: /changelog
131
- primary_keyword: null
132
- status: planned
133
- priority: 8
134
-
135
- - id: docs
136
- url: /docs
137
- primary_keyword: null
138
- status: planned
139
- priority: 9
140
-
141
- - id: blog
142
- url: /blog
143
- primary_keyword: null
144
- status: planned
145
- priority: 10
146
-
147
- ## Copy
148
-
149
- copy:
150
-
151
- h1_contains_primary_keyword: true
152
- meta_description_length: 150-160
153
- meta_description_includes_cta: true
154
- min_word_count:
155
- homepage: 800
156
- feature_page: 600
157
- blog_post: 1200
158
- comparison_page: 1500
159
- reading_level: 8 # grade level target
160
-
161
- ## Structure
162
-
163
- structure:
164
-
165
- answer_first: true # direct answer in first 50 words
166
- faq_section_required: true # on all key pages
167
- faq_minimum_questions: 6
168
- statistics_per_page: 2 # minimum data points with sources
169
- citations_required: true # link to primary sources
170
- short_paragraphs: true # max 3 sentences
171
- heading_hierarchy: strict # H1 > H2 > H3, no skipping
172
-
173
- ## Authority
174
-
175
- authority:
176
-
177
- cite_sources: true
178
- expert_quotes: false # set true when you have quotes
179
- eeat_signals:
180
- experience: null # describe your experience signal
181
- expertise: null # describe your expertise signal
182
- authority: null # describe your authority signal
183
- trust: null # describe your trust signal
184
-
185
- ## Schema
186
-
187
- schema:
188
-
189
- types:
190
- - SoftwareApplication
191
- - Organization
192
- - FAQPage
193
- - WebPage
194
- faq_schema: true
195
- breadcrumb_schema: true
196
- organization_schema: true
197
-
198
- ## Crawl
199
-
200
- crawl:
201
-
202
- sitemap: /sitemap.xml
203
- robots_txt: /robots.txt
204
- allow_ai_bots: true
205
- allowed_bots:
206
- - Googlebot
207
- - Bingbot
208
- - PerplexityBot
209
- - ChatGPT-User
210
- - GPTBot
211
- - ClaudeBot
212
- - anthropic-ai
213
- - cohere-ai
214
- disallow:
215
- - /admin
216
- - /checkout
217
- - /user/*
218
- - /api/*
219
-
220
- ## Performance
221
-
222
- performance:
223
-
224
- lcp: 2.5s
225
- cls: 0.1
226
- fid: 100ms
227
- page_size: 500kb
228
- ttfb: 800ms
229
-
230
- ## AEO
231
-
232
- aeo:
233
-
234
- answer_first_format: true
235
- faq_on_all_key_pages: true
236
- structured_data_priority: high
237
- content_freshness_target: 30d # update key pages within 30 days
238
- competitors_to_monitor:
239
- {{competitors_to_monitor}}
240
-
241
- ## Monitoring
242
-
243
- monitoring:
244
-
245
- sync_schedule: monthly # monthly | weekly | on_demand
246
- auto_commit: false # platform commits directly to repo
247
- pr_mode: true # open PR instead of direct commit
248
- branch: main
249
- alert_on_gap_score_above: 80 # alert when gap score exceeds threshold
250
- alert_on_citation_drop: true # alert if citation rate drops
251
-
252
- ## Platform Connection
253
-
254
- platform:
255
- provider: null # foxcite | manual | ahrefs | semrush
256
- project_id: null
257
-