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,199 +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
- ### Category
58
-
59
- - id: category
60
- url: /[category]
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
- ### Product
81
-
82
- - id: product
83
- url: /products/[slug]
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
- ### Collection
104
-
105
- - id: collection
106
- url: /collections/[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
- ### Reviews
127
-
128
- - id: reviews
129
- url: /reviews
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
- ### Cart
150
-
151
- - id: cart
152
- url: /cart
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
- ### Checkout
173
-
174
- - id: checkout
175
- url: /checkout
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
- ## Competitor Profiles
196
- ### Platform populated — competitor citation patterns
197
-
198
- competitors:
199
- {{reverse_competitors}}
@@ -1,239 +0,0 @@
1
- # SEO.md
2
-
3
- ## {{brand}}
4
-
5
- ### spec v1.0 | <https://seomd.dev>
6
-
7
- ## Site
8
-
9
- site:
10
- type: ecommerce
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: Organization
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: low
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: ecommerce
85
-
86
- required:
87
- - id: homepage
88
- url: /
89
- primary_keyword: null
90
- status: planned
91
- priority: 1
92
-
93
- - id: category
94
- url: /[category]
95
- primary_keyword: null
96
- status: planned
97
- priority: 2
98
-
99
- - id: product
100
- url: /products/[slug]
101
- primary_keyword: null
102
- status: planned
103
- priority: 3
104
-
105
- - id: collection
106
- url: /collections/[slug]
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: cart
118
- url: /cart
119
- primary_keyword: null
120
- status: planned
121
- priority: 6
122
-
123
- - id: checkout
124
- url: /checkout
125
- primary_keyword: null
126
- status: planned
127
- priority: 7
128
-
129
- ## Copy
130
-
131
- copy:
132
-
133
- h1_contains_primary_keyword: true
134
- meta_description_length: 150-160
135
- meta_description_includes_cta: true
136
- min_word_count:
137
- homepage: 800
138
- feature_page: 600
139
- blog_post: 1200
140
- comparison_page: 1500
141
- reading_level: 8 # grade level target
142
-
143
- ## Structure
144
-
145
- structure:
146
-
147
- answer_first: true # direct answer in first 50 words
148
- faq_section_required: true # on all key pages
149
- faq_minimum_questions: 6
150
- statistics_per_page: 2 # minimum data points with sources
151
- citations_required: true # link to primary sources
152
- short_paragraphs: true # max 3 sentences
153
- heading_hierarchy: strict # H1 > H2 > H3, no skipping
154
-
155
- ## Authority
156
-
157
- authority:
158
-
159
- cite_sources: true
160
- expert_quotes: false # set true when you have quotes
161
- eeat_signals:
162
- experience: null # describe your experience signal
163
- expertise: null # describe your expertise signal
164
- authority: null # describe your authority signal
165
- trust: null # describe your trust signal
166
-
167
- ## Schema
168
-
169
- schema:
170
-
171
- types:
172
- - Product
173
- - Organization
174
- - FAQPage
175
- - BreadcrumbList
176
- faq_schema: true
177
- breadcrumb_schema: true
178
- organization_schema: true
179
-
180
- ## Crawl
181
-
182
- crawl:
183
-
184
- sitemap: /sitemap.xml
185
- robots_txt: /robots.txt
186
- allow_ai_bots: true
187
- allowed_bots:
188
- - Googlebot
189
- - Bingbot
190
- - PerplexityBot
191
- - ChatGPT-User
192
- - GPTBot
193
- - ClaudeBot
194
- - anthropic-ai
195
- - cohere-ai
196
- disallow:
197
- - /admin
198
- - /checkout
199
- - /user/*
200
- - /api/*
201
-
202
- ## Performance
203
-
204
- performance:
205
-
206
- lcp: 2.5s
207
- cls: 0.1
208
- fid: 100ms
209
- page_size: 500kb
210
- ttfb: 800ms
211
-
212
- ## AEO
213
-
214
- aeo:
215
-
216
- answer_first_format: true
217
- faq_on_all_key_pages: true
218
- structured_data_priority: high
219
- content_freshness_target: 30d # update key pages within 30 days
220
- competitors_to_monitor:
221
- {{competitors_to_monitor}}
222
-
223
- ## Monitoring
224
-
225
- monitoring:
226
-
227
- sync_schedule: monthly # monthly | weekly | on_demand
228
- auto_commit: false # platform commits directly to repo
229
- pr_mode: true # open PR instead of direct commit
230
- branch: main
231
- alert_on_gap_score_above: 80 # alert when gap score exceeds threshold
232
- alert_on_citation_drop: true # alert if citation rate drops
233
-
234
- ## Platform Connection
235
-
236
- platform:
237
- provider: null # foxcite | manual | ahrefs | semrush
238
- project_id: null
239
-
@@ -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
- ### Services
58
-
59
- - id: services
60
- url: /services
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
- ### Location
81
-
82
- - id: location
83
- url: /[city]
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
- ### About
104
-
105
- - id: about
106
- url: /about
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
- ### Reviews
127
-
128
- - id: reviews
129
- url: /reviews
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
- ### FAQ
150
-
151
- - id: faq
152
- url: /faq
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
- ### Contact
173
-
174
- - id: contact
175
- url: /contact
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
- ### Service-area
196
-
197
- - id: service-area
198
- url: /service-area
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}}