@lebtiga/sonic-agent 1.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 (62) hide show
  1. package/LICENSE.txt +223 -0
  2. package/README.md +61 -0
  3. package/bin/sonic.js +304 -0
  4. package/lib/index.js +20 -0
  5. package/lib/installer.js +156 -0
  6. package/lib/license.js +48 -0
  7. package/package.json +46 -0
  8. package/plugin/.claude-plugin/plugin.json +13 -0
  9. package/plugin/README.md +100 -0
  10. package/plugin/agents/sonic.md +80 -0
  11. package/plugin/commands/sonic-build.md +145 -0
  12. package/plugin/commands/sonic-help.md +71 -0
  13. package/plugin/skills/accessibility-qa/SKILL.md +160 -0
  14. package/plugin/skills/accessibility-qa/templates/accessibility-qa-report-template.md +123 -0
  15. package/plugin/skills/accessibility-qa/templates/wcag-compliance-statement.md +70 -0
  16. package/plugin/skills/aka-wireframe-wp/SKILL.md +149 -0
  17. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/README.md +190 -0
  18. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/footer.php +49 -0
  19. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/functions.php +395 -0
  20. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/header.php +58 -0
  21. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/index.php +39 -0
  22. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-answer.php +62 -0
  23. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-authority-hub.php +122 -0
  24. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-knowledge.php +58 -0
  25. package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/style.css +633 -0
  26. package/plugin/skills/aka-wireframe-wp/references/content-generator.md +371 -0
  27. package/plugin/skills/aka-wireframe-wp/references/internal-linker.md +430 -0
  28. package/plugin/skills/aka-wireframe-wp/references/orchestrator.md +269 -0
  29. package/plugin/skills/aka-wireframe-wp/references/prompts-library.md +880 -0
  30. package/plugin/skills/aka-wireframe-wp/references/seo-optimizer.md +433 -0
  31. package/plugin/skills/aka-wireframe-wp/references/strategy-planner.md +317 -0
  32. package/plugin/skills/aka-wireframe-wp/references/wordpress-deployer.md +545 -0
  33. package/plugin/skills/authority-site-builder/SKILL.md +138 -0
  34. package/plugin/skills/brand-philosophy/SKILL.md +77 -0
  35. package/plugin/skills/freepik-spaces/SKILL.md +122 -0
  36. package/plugin/skills/freepik-spaces/docs/automation-guide.md +233 -0
  37. package/plugin/skills/freepik-spaces/docs/research-notes.md +264 -0
  38. package/plugin/skills/freepik-spaces/plans/naseberry-demo-plan.md +320 -0
  39. package/plugin/skills/freepik-spaces/templates/naseberry-demo.json +302 -0
  40. package/plugin/skills/freepik-spaces/templates/saas-demo.json +212 -0
  41. package/plugin/skills/frontend-design/LICENSE.txt +177 -0
  42. package/plugin/skills/frontend-design/SKILL.md +77 -0
  43. package/plugin/skills/programmatic-seo/SKILL.md +236 -0
  44. package/plugin/skills/programmatic-seo/references/playbooks.md +293 -0
  45. package/plugin/skills/seo-qa/SKILL.md +132 -0
  46. package/plugin/skills/seo-qa/templates/schema-localbusiness.json +49 -0
  47. package/plugin/skills/seo-qa/templates/schema-service.json +36 -0
  48. package/plugin/skills/seo-qa/templates/seo-qa-report-template.md +90 -0
  49. package/plugin/skills/visual-identity/SKILL.md +109 -0
  50. package/plugin/skills/visual-identity/templates/style-guide-template.md +108 -0
  51. package/plugin/skills/website-image-gen/SKILL.md +82 -0
  52. package/plugin/skills/website-image-gen/templates/blog-featured.md +56 -0
  53. package/plugin/skills/website-image-gen/templates/hero-service-photo.md +56 -0
  54. package/plugin/skills/wordpress-pro/SKILL.md +105 -0
  55. package/plugin/skills/wordpress-pro/references/gutenberg-blocks.md +870 -0
  56. package/plugin/skills/wordpress-pro/references/hooks-filters.md +845 -0
  57. package/plugin/skills/wordpress-pro/references/performance-security.md +1012 -0
  58. package/plugin/skills/wordpress-pro/references/plugin-architecture.md +1041 -0
  59. package/plugin/skills/wordpress-pro/references/theme-development.md +858 -0
  60. package/plugin/sops/SOP-Sonic 777/authority-site-sop.html +1100 -0
  61. package/plugin/sops/SOP-WORDPRESS-330-PAGE-SITES.md +926 -0
  62. package/scripts/postinstall.js +109 -0
@@ -0,0 +1,371 @@
1
+ # AKA Content Generator
2
+
3
+ ## Purpose
4
+ Generates SEO-optimized content for Authority, Knowledge, and Answer pages with automatic variable injection and link placeholders following the AKA framework.
5
+
6
+ ## Model
7
+ claude-opus-4
8
+
9
+ ## When to Use
10
+ - After strategy is generated
11
+ - To create individual pages or batches
12
+ - For any page type (Authority, Knowledge, Answer)
13
+ - When content needs updating or refreshing
14
+
15
+ ## Capabilities
16
+ - Authority page generation (4,000 words)
17
+ - Knowledge page generation (2,000 words)
18
+ - Answer page generation (1,000 words, featured snippet optimized)
19
+ - Automatic {{VARIABLE}} injection from config
20
+ - [LINK:...] placeholder injection for internal linking
21
+ - SEO optimization (titles, meta, headings, keywords)
22
+ - Brand voice consistency (VOMA framework)
23
+ - Schema markup suggestions
24
+
25
+ ## Input Required
26
+
27
+ **Required Files**:
28
+ 1. `.factory/config/aka-wireframe/business-config.json` - Business variables
29
+ 2. `.factory/config/aka-wireframe/aka-strategy-output.json` - Complete strategy
30
+ 3. Hub number and page type
31
+
32
+ **Parameters**:
33
+ - `--type` authority|knowledge|answer
34
+ - `--hub` 1-7 (which hub)
35
+ - `--page` N (specific page number within hub)
36
+ - `--batch` (generate all pages for hub)
37
+
38
+ ## Output Generated
39
+
40
+ **Files Created**:
41
+ ```
42
+ generated-content/
43
+ ├── hub-1/
44
+ │ ├── authority/
45
+ │ │ └── ac-repair-services.md
46
+ │ ├── knowledge/
47
+ │ │ ├── ac-not-cooling-troubleshooting.md
48
+ │ │ ├── ac-refrigerant-leak-repair.md
49
+ │ │ └── ... (15 total)
50
+ │ └── answers/
51
+ │ ├── how-much-ac-repair-cost.md
52
+ │ ├── why-ac-not-cooling.md
53
+ │ └── ... (25 total)
54
+ └── hub-2/
55
+ └── ...
56
+ ```
57
+
58
+ **Content Format** (Markdown with frontmatter):
59
+ ```markdown
60
+ ---
61
+ title: "AC Repair Services in Atlanta | Cool Air HVAC"
62
+ metaDescription: "Expert AC repair in Atlanta. Same-day service, upfront pricing..."
63
+ slug: "ac-repair-services"
64
+ pageType: "authority"
65
+ hubId: 1
66
+ primaryKeyword: "AC repair Atlanta"
67
+ secondaryKeywords: ["Atlanta AC repair", "air conditioning repair", "AC service"]
68
+ wordCount: 4247
69
+ generatedAt: "2024-10-15T12:30:00Z"
70
+ ---
71
+
72
+ # AC Repair Services in Atlanta, GA
73
+
74
+ [Content with {{VARIABLES}} replaced and [LINK:...] placeholders...]
75
+ ```
76
+
77
+ ## Variable Injection System
78
+
79
+ All content automatically replaces these placeholders:
80
+
81
+ **Business Variables**:
82
+ - `{{BUSINESS_NAME}}` → "Cool Air HVAC"
83
+ - `{{INDUSTRY}}` → "Home Services (HVAC)"
84
+ - `{{LOCATION}}` → "Atlanta, GA"
85
+ - `{{PRIMARY_SERVICE}}` → "AC Repair"
86
+ - `{{PHONE}}` → "404-555-1234"
87
+ - `{{EMAIL}}` → "info@coolairhvac.com"
88
+
89
+ **Audience Variables**:
90
+ - `{{TARGET_AUDIENCE}}` → "Homeowners with HVAC problems"
91
+ - `{{PAIN_POINTS}}` → "Broken AC, High bills, Emergency repairs"
92
+ - `{{UNIQUE_VALUE}}` → "Same-day service, upfront pricing"
93
+
94
+ **Trust Variables**:
95
+ - `{{YEARS_IN_BUSINESS}}` → "15"
96
+ - `{{CLIENTS_SERVED}}` → "10,000+"
97
+ - `{{KEY_RESULTS}}` → "$5M+ in satisfied customers"
98
+
99
+ **Brand Voice**:
100
+ - `{{BRAND_VOICE}}` → "Helpful, fast, available"
101
+
102
+ ## Link Placeholder System
103
+
104
+ Content includes strategic link placeholders that will be converted by aka-internal-linker:
105
+
106
+ **Format**: `[LINK:page-slug|anchor text]`
107
+
108
+ **Example in Generated Content**:
109
+ ```markdown
110
+ When your AC stops cooling, the problem could be a
111
+ [LINK:knowledge-refrigerant-leaks|refrigerant leak], a
112
+ [LINK:knowledge-compressor-failure|failed compressor], or
113
+ [LINK:knowledge-thermostat-issues|thermostat problems].
114
+
115
+ Many homeowners wonder [LINK:answer-how-much-repair-cost|how much AC repair costs]
116
+ and [LINK:answer-diy-vs-professional|whether to DIY or hire a pro].
117
+ ```
118
+
119
+ **Link Placement Rules** (AKA Framework):
120
+
121
+ **Authority Pages** include links to:
122
+ - All 12-15 Knowledge pages in hub (distributed naturally)
123
+ - Top 5-10 Answer pages in hub
124
+ - 1-2 other Authority hubs (cross-hub linking)
125
+
126
+ **Knowledge Pages** include links to:
127
+ - Parent Authority page (2-3 times)
128
+ - 2-3 sibling Knowledge pages (related topics)
129
+ - 3-5 relevant Answer pages
130
+
131
+ **Answer Pages** include links to:
132
+ - Parent Authority page (once, prominently)
133
+ - 1-2 relevant Knowledge pages (for deep-dive)
134
+ - 2-3 related Answer pages (similar questions)
135
+
136
+ ## Content Generation by Page Type
137
+
138
+ ### Authority Page (4,000 words)
139
+
140
+ **Structure**:
141
+ ```markdown
142
+ # {{PRIMARY_SERVICE}} in {{LOCATION}} | {{BUSINESS_NAME}}
143
+
144
+ [Trust Bar: ⭐⭐⭐⭐⭐ Reviews | 💰 Results | 📞 Free Consultation]
145
+
146
+ ## Quick Navigation
147
+ [Table of contents]
148
+
149
+ ## 🚨 Emergency Banner (if applicable)
150
+ **Need {{PRIMARY_SERVICE}} now?** Call {{PHONE}} - Available 24/7
151
+
152
+ ## Introduction: You're Not Alone (300 words)
153
+ [Empathy for {{TARGET_AUDIENCE}}]
154
+ [Address {{PAIN_POINTS}}]
155
+ [{{BUSINESS_NAME}} value proposition]
156
+ [Trust signals: {{YEARS_IN_BUSINESS}}, {{CLIENTS_SERVED}}]
157
+
158
+ ## Section 1: Understanding {{PRIMARY_SERVICE}} (900 words)
159
+ [Comprehensive explanation]
160
+ [{{LOCATION}} specific details]
161
+ [Statistics and data]
162
+ [Links to 3-4 Knowledge pages: [LINK:knowledge-page-slug|anchor]]
163
+
164
+ ## Section 2: Types of {{PRIMARY_SERVICE}} (800 words)
165
+ [8-10 specific types]
166
+ [Each type links to Knowledge page: [LINK:...]]
167
+
168
+ ## Section 3: The Process (800 words)
169
+ [Step-by-step walkthrough]
170
+ [What {{TARGET_AUDIENCE}} can expect]
171
+ [Timeline and pricing transparency]
172
+
173
+ ## Section 4: Why Choose {{BUSINESS_NAME}} (600 words)
174
+ [{{UNIQUE_VALUE}}]
175
+ [{{KEY_RESULTS}}]
176
+ [Testimonials and proof]
177
+
178
+ ## FAQ Section (400 words)
179
+ [5-7 questions linking to Answer pages: [LINK:answer-slug|question]]
180
+
181
+ ## Conclusion with CTA (200 words)
182
+ [Summary, next steps, contact info: {{PHONE}}, {{EMAIL}}]
183
+ ```
184
+
185
+ **SEO Optimization**:
186
+ - Primary keyword density: 0.8-1.2%
187
+ - H1: One per page with primary keyword
188
+ - H2-H3: Hierarchical with secondary keywords
189
+ - Meta title: 60 characters max
190
+ - Meta description: 155 characters max
191
+ - Internal links: 25-30 via placeholders
192
+ - Schema: Article + Service + LocalBusiness
193
+
194
+ ### Knowledge Page (2,000 words)
195
+
196
+ **Structure**:
197
+ ```markdown
198
+ # {{SPECIFIC_TOPIC}} | {{BUSINESS_NAME}}
199
+
200
+ ## Introduction (200 words)
201
+ [What this topic is]
202
+ [Why it matters to {{TARGET_AUDIENCE}}]
203
+ [Link to parent: [LINK:hub-slug|{{PRIMARY_SERVICE}}]]
204
+
205
+ ## Understanding {{SPECIFIC_TOPIC}} (500 words)
206
+ [Comprehensive explanation]
207
+ [{{LOCATION}} specific factors]
208
+ [Technical details made simple]
209
+
210
+ ## Signs/Symptoms (400 words)
211
+ [How to identify the issue]
212
+ [When it's urgent vs routine]
213
+ [What {{TARGET_AUDIENCE}} often misses]
214
+
215
+ ## Solutions and Process (600 words)
216
+ [How {{BUSINESS_NAME}} addresses this]
217
+ [Step-by-step breakdown]
218
+ [Timeline and cost factors]
219
+ [Links to related Knowledge: [LINK:sibling-knowledge|topic]]
220
+
221
+ ## FAQ (200 words)
222
+ [3-5 questions linking to Answers: [LINK:answer-slug|question]]
223
+
224
+ ## Next Steps (100 words)
225
+ [Clear call-to-action]
226
+ [{{PHONE}} or consultation link]
227
+ ```
228
+
229
+ **SEO Optimization**:
230
+ - Primary keyword density: 1.0-1.5%
231
+ - Word count: 2,000-2,500
232
+ - Internal links: 8-12 via placeholders
233
+ - H2-H3 structure
234
+ - Schema: Article + HowTo (if process-based)
235
+
236
+ ### Answer Page (1,000 words)
237
+
238
+ **Structure** (Featured Snippet Optimized):
239
+ ```markdown
240
+ # {{EXACT_QUESTION}}
241
+
242
+ ## Quick Answer (50-100 words)
243
+ **[Direct answer in bold, optimized for featured snippet]**
244
+
245
+ [Can be formatted as:]
246
+ - Numbered list (for steps)
247
+ - Bullet points (for multiple answers)
248
+ - Table (for comparisons)
249
+ - Paragraph (for explanations)
250
+
251
+ ## Detailed Explanation (400 words)
252
+ [Expand on quick answer]
253
+ [{{LOCATION}} specific context]
254
+ [Address related concerns]
255
+ [Link to parent: [LINK:hub-slug|{{PRIMARY_SERVICE}}]]
256
+
257
+ ## Important Considerations (200 words)
258
+ [Things people often miss]
259
+ [Common mistakes]
260
+ [{{BUSINESS_NAME}} recommendations]
261
+
262
+ ## What to Do Next (150 words)
263
+ [Clear action steps]
264
+ [When to contact {{BUSINESS_NAME}}]
265
+ [{{PHONE}} or consultation CTA]
266
+
267
+ ## Related Questions (100 words)
268
+ [3-5 related questions: [LINK:answer-slug|question]]
269
+ [Link to deeper content: [LINK:knowledge-slug|topic]]
270
+ ```
271
+
272
+ **SEO Optimization**:
273
+ - Question as H1 exactly as searched
274
+ - Quick answer in first paragraph
275
+ - Featured snippet formatting
276
+ - Schema: FAQPage
277
+ - Internal links: 5-8 via placeholders
278
+
279
+ ## Brand Voice Integration (VOMA)
280
+
281
+ Content tone matches `{{BRAND_VOICE}}`:
282
+
283
+ **"Helpful, fast, available"** (HVAC example):
284
+ - Short paragraphs (2-3 sentences)
285
+ - Active voice, action-oriented
286
+ - Emergency emphasis where relevant
287
+ - Transparent about pricing/timeline
288
+ - Reassuring, not pushy
289
+
290
+ **"Professional, empathetic, assertive"** (Law example):
291
+ - Formal but approachable
292
+ - Acknowledge customer stress
293
+ - Strong value proposition
294
+ - Clear about process and rights
295
+ - Confident without overpromising
296
+
297
+ ## Batch Generation
298
+
299
+ When `--batch` flag used:
300
+
301
+ **Process**:
302
+ 1. Load strategy for specified hub
303
+ 2. Generate Authority page first
304
+ 3. Generate all 12-15 Knowledge pages
305
+ 4. Generate all 20-30 Answer pages
306
+ 5. Save all files to hub directory
307
+ 6. Report summary and next steps
308
+
309
+ **Output**:
310
+ ```
311
+ ✅ Hub 1 Content Generation Complete!
312
+
313
+ Generated:
314
+ - 1 Authority page (4,247 words)
315
+ - 15 Knowledge pages (31,450 words)
316
+ - 25 Answer pages (23,180 words)
317
+
318
+ Total: 41 pages, 58,877 words
319
+ Time: ~8 minutes
320
+ Link placeholders: 247
321
+
322
+ Files saved to: generated-content/hub-1/
323
+
324
+ Next: Run 'aka-wireframe-wp link --hub 1' to process links
325
+ ```
326
+
327
+ ## Quality Control
328
+
329
+ Each generated page includes:
330
+ - ✅ Proper word count for page type
331
+ - ✅ All {{VARIABLES}} replaced
332
+ - ✅ Link placeholders follow format
333
+ - ✅ SEO metadata complete
334
+ - ✅ Proper heading hierarchy
335
+ - ✅ Brand voice consistent
336
+ - ✅ Grammar and spelling correct
337
+ - ✅ No duplicate content
338
+
339
+ ## Example Generated Content
340
+
341
+ **Authority Page Excerpt**:
342
+ ```markdown
343
+ # AC Repair Services in Atlanta, GA | Cool Air HVAC
344
+
345
+ ⭐⭐⭐⭐⭐ 500+ Five-Star Reviews | 💰 15 Years Serving Atlanta | 📞 404-555-1234
346
+
347
+ ## Your AC Stopped Working? We're Here to Help 24/7
348
+
349
+ When summer temperatures soar in Atlanta, a broken air conditioner isn't
350
+ just inconvenient—it's an emergency. At Cool Air HVAC, we understand the
351
+ stress of dealing with AC problems. Our team has been serving homeowners
352
+ across Atlanta for 15 years, completing over 10,000 successful repairs.
353
+
354
+ Whether you're dealing with [LINK:knowledge-ac-not-cooling|an AC that won't cool],
355
+ [LINK:knowledge-refrigerant-leaks|a refrigerant leak], or
356
+ [LINK:knowledge-compressor-failure|a failed compressor], we provide same-day
357
+ service with upfront pricing.
358
+
359
+ Many customers wonder [LINK:answer-how-much-cost|how much AC repair costs]
360
+ before calling. We believe in transparency...
361
+ ```
362
+
363
+ ## Notes
364
+
365
+ - Generated content is Markdown (easy to edit, version control)
366
+ - Variables inject automatically based on business-config.json
367
+ - Link placeholders converted later by aka-internal-linker
368
+ - Content follows AKA framework strictly
369
+ - SEO optimization is automatic, not manual
370
+ - Brand voice pulled from VOMA config
371
+ - All content is unique and customized per business