seomd-cli 1.3.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 +92 -92
  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 +127 -79
  11. package/src/commands/status.js +107 -79
  12. package/src/commands/sync.js +86 -72
  13. package/src/commands/validate.js +52 -25
  14. package/src/generators/directory.js +44 -143
  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 +181 -100
  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 -348
  30. package/src/templates/ecommerce/SEO.REVERSE.md +0 -199
  31. package/src/templates/ecommerce/SEO.md +0 -354
  32. package/src/templates/local/SEO.REVERSE.md +0 -222
  33. package/src/templates/local/SEO.md +0 -360
  34. package/src/templates/marketplace/SEO.REVERSE.md +0 -222
  35. package/src/templates/marketplace/SEO.md +0 -360
  36. package/src/templates/saas/SEO.REVERSE.md +0 -268
  37. package/src/templates/saas/SEO.md +0 -372
@@ -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,372 +0,0 @@
1
- # SEO.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | <https://seomd.dev>
6
-
7
- #### generated: {{date}}
8
-
9
- ## FIELD OWNERSHIP
10
-
11
- ### no prefix = founder declares (you own this)
12
-
13
- ### _analysis: = platform writes back (do not edit manually)
14
-
15
- ## Site
16
-
17
- site:
18
- type: saas
19
- domain: {{domain}}
20
- canonical: https://{{domain}}
21
- locale: en-US
22
- launched: null # YYYY-MM-DD
23
-
24
- ## Identity
25
-
26
- identity:
27
- brand: "{{brand}}"
28
- tagline: null
29
- social:
30
- twitter: null
31
- linkedin: null
32
- github: null
33
- schema_org_type: SoftwareApplication
34
-
35
- ## Keywords
36
-
37
- keywords:
38
-
39
- ### FOUNDER DECLARES
40
-
41
- primary: "{{primary_keyword}}"
42
- secondary: [] # add your secondary keywords
43
- negative: # terms that dilute your intent signal
44
- - "free"
45
- - "tutorial"
46
- - "how to"
47
- competitor_terms:
48
- {{competitor_terms}}
49
- category_terms: # unbranded category queries
50
- - "best {{primary_keyword}}"
51
- - "top {{primary_keyword}} tools"
52
- long_tail: [] # add long-tail variations
53
- seasonal: null # add seasonal terms if applicable
54
-
55
- ### PLATFORM WRITES BACK
56
-
57
- _analysis:
58
- source: null
59
- primary_search_volume: null
60
- primary_intent_type: null
61
- primary_trend: null
62
- recommended_secondary: []
63
- negative_additions_suggested: []
64
- last_analyzed: null
65
- next_analysis: null
66
-
67
- ## Intent
68
-
69
- intent:
70
-
71
- ### FOUNDER DECLARES
72
-
73
- #### Add queries your buyers actually type into AI engines
74
-
75
- #### Tip: think about what someone asks ChatGPT or Perplexity
76
-
77
- #### when they are looking for a solution like yours
78
-
79
- informational:
80
- priority: medium
81
- queries:
82
- - "what is {{primary_keyword}}"
83
- - "how does {{primary_keyword}} work"
84
-
85
- comparison:
86
- priority: high
87
- queries:
88
- {{competitors_comparison_queries}}
89
- - "best {{primary_keyword}} for startups"
90
-
91
- transactional:
92
- priority: high
93
- queries:
94
- - "is {{brand_lower}} worth it"
95
- - "should I use {{brand_lower}}"
96
- - "{{brand_lower}} pricing"
97
-
98
- reputational:
99
- priority: medium
100
- queries:
101
- - "{{brand_lower}} reviews"
102
- - "is {{brand_lower}} legit"
103
- - "{{brand_lower}} problems"
104
-
105
- category:
106
- priority: critical
107
- queries:
108
- - "best {{primary_keyword}}"
109
- - "top {{primary_keyword}} 2026"
110
-
111
- ### PLATFORM WRITES BACK
112
-
113
- _analysis:
114
- source: null
115
- last_analyzed: null
116
- next_analysis: null
117
- informational:
118
- citation_rate: null
119
- top_cited_competitor: null
120
- gap_score: null
121
- trend: null
122
- comparison:
123
- citation_rate: null
124
- top_cited_competitor: null
125
- gap_score: null
126
- trend: null
127
- transactional:
128
- citation_rate: null
129
- top_cited_competitor: null
130
- gap_score: null
131
- trend: null
132
- reputational:
133
- citation_rate: null
134
- top_cited_competitor: null
135
- gap_score: null
136
- trend: null
137
- category:
138
- citation_rate: null
139
- top_cited_competitor: null
140
- gap_score: null
141
- trend: null
142
-
143
- ## Pages
144
-
145
- pages:
146
- site_type: saas
147
-
148
- ### FOUNDER DECLARES
149
-
150
- #### status: live | draft | planned
151
-
152
- required:
153
- - id: homepage
154
- url: /
155
- primary_keyword: null
156
- status: planned
157
- priority: 1
158
-
159
- - id: features
160
- url: /features
161
- primary_keyword: null
162
- status: planned
163
- priority: 2
164
-
165
- - id: pricing
166
- url: /pricing
167
- primary_keyword: null
168
- status: planned
169
- priority: 3
170
-
171
- - id: comparison
172
- url: /vs/[competitor]
173
- primary_keyword: null
174
- status: planned
175
- priority: 4
176
-
177
- - id: alternatives
178
- url: /alternatives/[competitor]
179
- primary_keyword: null
180
- status: planned
181
- priority: 5
182
-
183
- - id: use-cases
184
- url: /for/[segment]
185
- primary_keyword: null
186
- status: planned
187
- priority: 6
188
-
189
- - id: integrations
190
- url: /integrations
191
- primary_keyword: null
192
- status: planned
193
- priority: 7
194
-
195
- - id: changelog
196
- url: /changelog
197
- primary_keyword: null
198
- status: planned
199
- priority: 8
200
-
201
- - id: docs
202
- url: /docs
203
- primary_keyword: null
204
- status: planned
205
- priority: 9
206
-
207
- - id: blog
208
- url: /blog
209
- primary_keyword: null
210
- status: planned
211
- priority: 10
212
-
213
- ### PLATFORM WRITES BACK
214
-
215
- _analysis:
216
- source: null
217
- last_analyzed: null
218
- pages: []
219
- missing_pages: []
220
- build_order_recommendation: []
221
-
222
- ## Copy
223
-
224
- copy:
225
-
226
- ### FOUNDER DECLARES
227
-
228
- h1_contains_primary_keyword: true
229
- meta_description_length: 150-160
230
- meta_description_includes_cta: true
231
- min_word_count:
232
- homepage: 800
233
- feature_page: 600
234
- blog_post: 1200
235
- comparison_page: 1500
236
- reading_level: 8 # grade level target
237
-
238
- ## Structure
239
-
240
- structure:
241
-
242
- ### FOUNDER DECLARES
243
-
244
- answer_first: true # direct answer in first 50 words
245
- faq_section_required: true # on all key pages
246
- faq_minimum_questions: 6
247
- statistics_per_page: 2 # minimum data points with sources
248
- citations_required: true # link to primary sources
249
- short_paragraphs: true # max 3 sentences
250
- heading_hierarchy: strict # H1 > H2 > H3, no skipping
251
-
252
- ## Authority
253
-
254
- authority:
255
-
256
- ### FOUNDER DECLARES
257
-
258
- cite_sources: true
259
- expert_quotes: false # set true when you have quotes
260
- eeat_signals:
261
- experience: null # describe your experience signal
262
- expertise: null # describe your expertise signal
263
- authority: null # describe your authority signal
264
- trust: null # describe your trust signal
265
-
266
- ## Schema
267
-
268
- schema:
269
-
270
- ### FOUNDER DECLARES
271
-
272
- types:
273
- - SoftwareApplication
274
- - Organization
275
- - FAQPage
276
- - WebPage
277
- faq_schema: true
278
- breadcrumb_schema: true
279
- organization_schema: true
280
-
281
- ## Crawl
282
-
283
- crawl:
284
-
285
- ### FOUNDER DECLARES
286
-
287
- sitemap: /sitemap.xml
288
- robots_txt: /robots.txt
289
- allow_ai_bots: true
290
- allowed_bots:
291
- - Googlebot
292
- - Bingbot
293
- - PerplexityBot
294
- - ChatGPT-User
295
- - GPTBot
296
- - ClaudeBot
297
- - anthropic-ai
298
- - cohere-ai
299
- disallow:
300
- - /admin
301
- - /checkout
302
- - /user/*
303
- - /api/*
304
-
305
- ## Performance
306
-
307
- performance:
308
-
309
- ### FOUNDER DECLARES
310
-
311
- lcp: 2.5s
312
- cls: 0.1
313
- fid: 100ms
314
- page_size: 500kb
315
- ttfb: 800ms
316
-
317
- ## AEO
318
-
319
- aeo:
320
-
321
- ### FOUNDER DECLARES
322
-
323
- ### AI Engine Optimization rules
324
-
325
- answer_first_format: true
326
- faq_on_all_key_pages: true
327
- structured_data_priority: high
328
- content_freshness_target: 30d # update key pages within 30 days
329
- competitors_to_monitor:
330
- {{competitors_to_monitor}}
331
-
332
- ### PLATFORM WRITES BACK
333
-
334
- _analysis:
335
- source: null
336
- overall_citation_rate: null
337
- overall_gap_score: null
338
- engines_tracked:
339
- - chatgpt
340
- - perplexity
341
- - claude
342
- - gemini
343
- - grok
344
- last_analyzed: null
345
- next_analysis: null
346
-
347
- ## Monitoring
348
-
349
- monitoring:
350
-
351
- ### FOUNDER DECLARES
352
-
353
- sync_schedule: monthly # monthly | weekly | on_demand
354
- auto_commit: false # platform commits directly to repo
355
- pr_mode: true # open PR instead of direct commit
356
- branch: main
357
- alert_on_gap_score_above: 80 # alert when gap score exceeds threshold
358
- alert_on_citation_drop: true # alert if citation rate drops
359
-
360
- ## Platform Connection
361
-
362
- ### Connect at <https://seomd.dev/connect>
363
-
364
- ### Add SEOMD_API_KEY to your .env file
365
-
366
- ### Never commit your API key to version control
367
-
368
- platform:
369
- provider: null # foxcite | manual | ahrefs | semrush
370
- project_id: null
371
-
372
- ### api_key: loaded from SEOMD_API_KEY environment variable