seomd-cli 1.4.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) 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 +79 -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 +215 -0
  10. package/src/commands/init.js +170 -66
  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 +46 -114
  15. package/src/generators/reverse.js +46 -56
  16. package/src/generators/seomd.js +226 -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/migrate.js +99 -0
  23. package/src/utils/parser.js +114 -25
  24. package/src/utils/placeholders.js +31 -0
  25. package/src/utils/repo-scanner.js +207 -0
  26. package/src/utils/writeback.js +171 -82
  27. package/src/validators/seomd.js +263 -93
  28. package/scripts/release-contributors.js +0 -196
  29. package/scripts/release-notes.js +0 -194
  30. package/src/templates/blog/SEO.REVERSE.md +0 -176
  31. package/src/templates/blog/SEO.md +0 -233
  32. package/src/templates/ecommerce/SEO.REVERSE.md +0 -199
  33. package/src/templates/ecommerce/SEO.md +0 -239
  34. package/src/templates/local/SEO.REVERSE.md +0 -222
  35. package/src/templates/local/SEO.md +0 -245
  36. package/src/templates/marketplace/SEO.REVERSE.md +0 -222
  37. package/src/templates/marketplace/SEO.md +0 -245
  38. package/src/templates/saas/SEO.REVERSE.md +0 -268
  39. package/src/templates/saas/SEO.md +0 -257
@@ -1,245 +0,0 @@
1
- # SEO.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | <https://seomd.dev>
6
-
7
- ## Site
8
-
9
- site:
10
- type: local
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: LocalBusiness
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: medium
57
- queries:
58
- {{competitors_comparison_queries}}
59
- - "best {{primary_keyword}} for startups"
60
-
61
- transactional:
62
- priority: critical
63
- queries:
64
- - "is {{brand_lower}} worth it"
65
- - "should I use {{brand_lower}}"
66
- - "{{brand_lower}} pricing"
67
-
68
- reputational:
69
- priority: critical
70
- queries:
71
- - "{{brand_lower}} reviews"
72
- - "is {{brand_lower}} legit"
73
- - "{{brand_lower}} problems"
74
-
75
- category:
76
- priority: high
77
- queries:
78
- - "best {{primary_keyword}}"
79
- - "top {{primary_keyword}} 2026"
80
-
81
- ## Pages
82
-
83
- pages:
84
- site_type: local
85
-
86
- required:
87
- - id: homepage
88
- url: /
89
- primary_keyword: null
90
- status: planned
91
- priority: 1
92
-
93
- - id: services
94
- url: /services
95
- primary_keyword: null
96
- status: planned
97
- priority: 2
98
-
99
- - id: location
100
- url: /[city]
101
- primary_keyword: null
102
- status: planned
103
- priority: 3
104
-
105
- - id: about
106
- url: /about
107
- primary_keyword: null
108
- status: planned
109
- priority: 4
110
-
111
- - id: reviews
112
- url: /reviews
113
- primary_keyword: null
114
- status: planned
115
- priority: 5
116
-
117
- - id: faq
118
- url: /faq
119
- primary_keyword: null
120
- status: planned
121
- priority: 6
122
-
123
- - id: contact
124
- url: /contact
125
- primary_keyword: null
126
- status: planned
127
- priority: 7
128
-
129
- - id: service-area
130
- url: /service-area
131
- primary_keyword: null
132
- status: planned
133
- priority: 8
134
-
135
- ## Copy
136
-
137
- copy:
138
-
139
- h1_contains_primary_keyword: true
140
- meta_description_length: 150-160
141
- meta_description_includes_cta: true
142
- min_word_count:
143
- homepage: 800
144
- feature_page: 600
145
- blog_post: 1200
146
- comparison_page: 1500
147
- reading_level: 8 # grade level target
148
-
149
- ## Structure
150
-
151
- structure:
152
-
153
- answer_first: true # direct answer in first 50 words
154
- faq_section_required: true # on all key pages
155
- faq_minimum_questions: 6
156
- statistics_per_page: 2 # minimum data points with sources
157
- citations_required: true # link to primary sources
158
- short_paragraphs: true # max 3 sentences
159
- heading_hierarchy: strict # H1 > H2 > H3, no skipping
160
-
161
- ## Authority
162
-
163
- authority:
164
-
165
- cite_sources: true
166
- expert_quotes: false # set true when you have quotes
167
- eeat_signals:
168
- experience: null # describe your experience signal
169
- expertise: null # describe your expertise signal
170
- authority: null # describe your authority signal
171
- trust: null # describe your trust signal
172
-
173
- ## Schema
174
-
175
- schema:
176
-
177
- types:
178
- - LocalBusiness
179
- - FAQPage
180
- - Review
181
- - GeoCoordinates
182
- faq_schema: true
183
- breadcrumb_schema: true
184
- organization_schema: true
185
-
186
- ## Crawl
187
-
188
- crawl:
189
-
190
- sitemap: /sitemap.xml
191
- robots_txt: /robots.txt
192
- allow_ai_bots: true
193
- allowed_bots:
194
- - Googlebot
195
- - Bingbot
196
- - PerplexityBot
197
- - ChatGPT-User
198
- - GPTBot
199
- - ClaudeBot
200
- - anthropic-ai
201
- - cohere-ai
202
- disallow:
203
- - /admin
204
- - /checkout
205
- - /user/*
206
- - /api/*
207
-
208
- ## Performance
209
-
210
- performance:
211
-
212
- lcp: 2.5s
213
- cls: 0.1
214
- fid: 100ms
215
- page_size: 500kb
216
- ttfb: 800ms
217
-
218
- ## AEO
219
-
220
- aeo:
221
-
222
- answer_first_format: true
223
- faq_on_all_key_pages: true
224
- structured_data_priority: high
225
- content_freshness_target: 30d # update key pages within 30 days
226
- competitors_to_monitor:
227
- {{competitors_to_monitor}}
228
-
229
- ## Monitoring
230
-
231
- monitoring:
232
-
233
- sync_schedule: monthly # monthly | weekly | on_demand
234
- auto_commit: false # platform commits directly to repo
235
- pr_mode: true # open PR instead of direct commit
236
- branch: main
237
- alert_on_gap_score_above: 80 # alert when gap score exceeds threshold
238
- alert_on_citation_drop: true # alert if citation rate drops
239
-
240
- ## Platform Connection
241
-
242
- platform:
243
- provider: null # foxcite | manual | ahrefs | semrush
244
- project_id: null
245
-
@@ -1,222 +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
- ### Listing
58
-
59
- - id: listing
60
- url: /listings/[slug]
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
- ### Category
81
-
82
- - id: category
83
- url: /[category]
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
- ### Seller-profile
104
-
105
- - id: seller-profile
106
- url: /sellers/[slug]
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
- ### Search-results
127
-
128
- - id: search-results
129
- url: /search
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
- ### How-it-works
150
-
151
- - id: how-it-works
152
- url: /how-it-works
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
- ### Pricing
173
-
174
- - id: pricing
175
- url: /pricing
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
- ### Trust-safety
196
-
197
- - id: trust-safety
198
- url: /trust
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
- ## Competitor Profiles
219
- ### Platform populated — competitor citation patterns
220
-
221
- competitors:
222
- {{reverse_competitors}}
@@ -1,245 +0,0 @@
1
- # SEO.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | <https://seomd.dev>
6
-
7
- ## Site
8
-
9
- site:
10
- type: marketplace
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: WebSite
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: critical
63
- queries:
64
- - "is {{brand_lower}} worth it"
65
- - "should I use {{brand_lower}}"
66
- - "{{brand_lower}} pricing"
67
-
68
- reputational:
69
- priority: high
70
- queries:
71
- - "{{brand_lower}} reviews"
72
- - "is {{brand_lower}} legit"
73
- - "{{brand_lower}} problems"
74
-
75
- category:
76
- priority: high
77
- queries:
78
- - "best {{primary_keyword}}"
79
- - "top {{primary_keyword}} 2026"
80
-
81
- ## Pages
82
-
83
- pages:
84
- site_type: marketplace
85
-
86
- required:
87
- - id: homepage
88
- url: /
89
- primary_keyword: null
90
- status: planned
91
- priority: 1
92
-
93
- - id: listing
94
- url: /listings/[slug]
95
- primary_keyword: null
96
- status: planned
97
- priority: 2
98
-
99
- - id: category
100
- url: /[category]
101
- primary_keyword: null
102
- status: planned
103
- priority: 3
104
-
105
- - id: seller-profile
106
- url: /sellers/[slug]
107
- primary_keyword: null
108
- status: planned
109
- priority: 4
110
-
111
- - id: search-results
112
- url: /search
113
- primary_keyword: null
114
- status: planned
115
- priority: 5
116
-
117
- - id: how-it-works
118
- url: /how-it-works
119
- primary_keyword: null
120
- status: planned
121
- priority: 6
122
-
123
- - id: pricing
124
- url: /pricing
125
- primary_keyword: null
126
- status: planned
127
- priority: 7
128
-
129
- - id: trust-safety
130
- url: /trust
131
- primary_keyword: null
132
- status: planned
133
- priority: 8
134
-
135
- ## Copy
136
-
137
- copy:
138
-
139
- h1_contains_primary_keyword: true
140
- meta_description_length: 150-160
141
- meta_description_includes_cta: true
142
- min_word_count:
143
- homepage: 800
144
- feature_page: 600
145
- blog_post: 1200
146
- comparison_page: 1500
147
- reading_level: 8 # grade level target
148
-
149
- ## Structure
150
-
151
- structure:
152
-
153
- answer_first: true # direct answer in first 50 words
154
- faq_section_required: true # on all key pages
155
- faq_minimum_questions: 6
156
- statistics_per_page: 2 # minimum data points with sources
157
- citations_required: true # link to primary sources
158
- short_paragraphs: true # max 3 sentences
159
- heading_hierarchy: strict # H1 > H2 > H3, no skipping
160
-
161
- ## Authority
162
-
163
- authority:
164
-
165
- cite_sources: true
166
- expert_quotes: false # set true when you have quotes
167
- eeat_signals:
168
- experience: null # describe your experience signal
169
- expertise: null # describe your expertise signal
170
- authority: null # describe your authority signal
171
- trust: null # describe your trust signal
172
-
173
- ## Schema
174
-
175
- schema:
176
-
177
- types:
178
- - WebSite
179
- - Organization
180
- - FAQPage
181
- - Product
182
- faq_schema: true
183
- breadcrumb_schema: true
184
- organization_schema: true
185
-
186
- ## Crawl
187
-
188
- crawl:
189
-
190
- sitemap: /sitemap.xml
191
- robots_txt: /robots.txt
192
- allow_ai_bots: true
193
- allowed_bots:
194
- - Googlebot
195
- - Bingbot
196
- - PerplexityBot
197
- - ChatGPT-User
198
- - GPTBot
199
- - ClaudeBot
200
- - anthropic-ai
201
- - cohere-ai
202
- disallow:
203
- - /admin
204
- - /checkout
205
- - /user/*
206
- - /api/*
207
-
208
- ## Performance
209
-
210
- performance:
211
-
212
- lcp: 2.5s
213
- cls: 0.1
214
- fid: 100ms
215
- page_size: 500kb
216
- ttfb: 800ms
217
-
218
- ## AEO
219
-
220
- aeo:
221
-
222
- answer_first_format: true
223
- faq_on_all_key_pages: true
224
- structured_data_priority: high
225
- content_freshness_target: 30d # update key pages within 30 days
226
- competitors_to_monitor:
227
- {{competitors_to_monitor}}
228
-
229
- ## Monitoring
230
-
231
- monitoring:
232
-
233
- sync_schedule: monthly # monthly | weekly | on_demand
234
- auto_commit: false # platform commits directly to repo
235
- pr_mode: true # open PR instead of direct commit
236
- branch: main
237
- alert_on_gap_score_above: 80 # alert when gap score exceeds threshold
238
- alert_on_citation_drop: true # alert if citation rate drops
239
-
240
- ## Platform Connection
241
-
242
- platform:
243
- provider: null # foxcite | manual | ahrefs | semrush
244
- project_id: null
245
-