@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.
- package/LICENSE.txt +223 -0
- package/README.md +61 -0
- package/bin/sonic.js +304 -0
- package/lib/index.js +20 -0
- package/lib/installer.js +156 -0
- package/lib/license.js +48 -0
- package/package.json +46 -0
- package/plugin/.claude-plugin/plugin.json +13 -0
- package/plugin/README.md +100 -0
- package/plugin/agents/sonic.md +80 -0
- package/plugin/commands/sonic-build.md +145 -0
- package/plugin/commands/sonic-help.md +71 -0
- package/plugin/skills/accessibility-qa/SKILL.md +160 -0
- package/plugin/skills/accessibility-qa/templates/accessibility-qa-report-template.md +123 -0
- package/plugin/skills/accessibility-qa/templates/wcag-compliance-statement.md +70 -0
- package/plugin/skills/aka-wireframe-wp/SKILL.md +149 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/README.md +190 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/footer.php +49 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/functions.php +395 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/header.php +58 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/index.php +39 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-answer.php +62 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-authority-hub.php +122 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/page-knowledge.php +58 -0
- package/plugin/skills/aka-wireframe-wp/assets/aka-framework-theme/style.css +633 -0
- package/plugin/skills/aka-wireframe-wp/references/content-generator.md +371 -0
- package/plugin/skills/aka-wireframe-wp/references/internal-linker.md +430 -0
- package/plugin/skills/aka-wireframe-wp/references/orchestrator.md +269 -0
- package/plugin/skills/aka-wireframe-wp/references/prompts-library.md +880 -0
- package/plugin/skills/aka-wireframe-wp/references/seo-optimizer.md +433 -0
- package/plugin/skills/aka-wireframe-wp/references/strategy-planner.md +317 -0
- package/plugin/skills/aka-wireframe-wp/references/wordpress-deployer.md +545 -0
- package/plugin/skills/authority-site-builder/SKILL.md +138 -0
- package/plugin/skills/brand-philosophy/SKILL.md +77 -0
- package/plugin/skills/freepik-spaces/SKILL.md +122 -0
- package/plugin/skills/freepik-spaces/docs/automation-guide.md +233 -0
- package/plugin/skills/freepik-spaces/docs/research-notes.md +264 -0
- package/plugin/skills/freepik-spaces/plans/naseberry-demo-plan.md +320 -0
- package/plugin/skills/freepik-spaces/templates/naseberry-demo.json +302 -0
- package/plugin/skills/freepik-spaces/templates/saas-demo.json +212 -0
- package/plugin/skills/frontend-design/LICENSE.txt +177 -0
- package/plugin/skills/frontend-design/SKILL.md +77 -0
- package/plugin/skills/programmatic-seo/SKILL.md +236 -0
- package/plugin/skills/programmatic-seo/references/playbooks.md +293 -0
- package/plugin/skills/seo-qa/SKILL.md +132 -0
- package/plugin/skills/seo-qa/templates/schema-localbusiness.json +49 -0
- package/plugin/skills/seo-qa/templates/schema-service.json +36 -0
- package/plugin/skills/seo-qa/templates/seo-qa-report-template.md +90 -0
- package/plugin/skills/visual-identity/SKILL.md +109 -0
- package/plugin/skills/visual-identity/templates/style-guide-template.md +108 -0
- package/plugin/skills/website-image-gen/SKILL.md +82 -0
- package/plugin/skills/website-image-gen/templates/blog-featured.md +56 -0
- package/plugin/skills/website-image-gen/templates/hero-service-photo.md +56 -0
- package/plugin/skills/wordpress-pro/SKILL.md +105 -0
- package/plugin/skills/wordpress-pro/references/gutenberg-blocks.md +870 -0
- package/plugin/skills/wordpress-pro/references/hooks-filters.md +845 -0
- package/plugin/skills/wordpress-pro/references/performance-security.md +1012 -0
- package/plugin/skills/wordpress-pro/references/plugin-architecture.md +1041 -0
- package/plugin/skills/wordpress-pro/references/theme-development.md +858 -0
- package/plugin/sops/SOP-Sonic 777/authority-site-sop.html +1100 -0
- package/plugin/sops/SOP-WORDPRESS-330-PAGE-SITES.md +926 -0
- package/scripts/postinstall.js +109 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
# AKA Internal Linker
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Converts [LINK:...] placeholders to real URLs and adds intelligent contextual links following AKA framework patterns. Critical for topical authority and SEO success.
|
|
5
|
+
|
|
6
|
+
## Model
|
|
7
|
+
claude-opus-4
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
- After content generation is complete
|
|
11
|
+
- Before WordPress deployment
|
|
12
|
+
- When internal linking needs updating
|
|
13
|
+
- To validate AKA link structure
|
|
14
|
+
|
|
15
|
+
## Capabilities
|
|
16
|
+
- Convert [LINK:...] placeholders to HTML links
|
|
17
|
+
- Generate URL map from strategy
|
|
18
|
+
- Add AI-powered contextual links
|
|
19
|
+
- Validate AKA linking patterns
|
|
20
|
+
- Check for broken internal links
|
|
21
|
+
- Ensure no orphan pages
|
|
22
|
+
- Balance link distribution
|
|
23
|
+
- Vary anchor text naturally
|
|
24
|
+
|
|
25
|
+
## Input Required
|
|
26
|
+
|
|
27
|
+
**Required Files**:
|
|
28
|
+
1. Generated content files (with [LINK:...] placeholders)
|
|
29
|
+
2. `.factory/config/aka-wireframe/aka-strategy-output.json` - URL mapping
|
|
30
|
+
3. `.factory/config/aka-wireframe/business-config.json` - For context
|
|
31
|
+
|
|
32
|
+
**Parameters**:
|
|
33
|
+
- `--hub N` - Process specific hub
|
|
34
|
+
- `--all` - Process all generated content
|
|
35
|
+
- `--validate-only` - Check links without modifying
|
|
36
|
+
- `--add-contextual` - Enable AI contextual linking (default: true)
|
|
37
|
+
|
|
38
|
+
## Output Generated
|
|
39
|
+
|
|
40
|
+
**Updated Content Files** with:
|
|
41
|
+
- All [LINK:...] placeholders converted to `<a href="">...</a>`
|
|
42
|
+
- Additional contextual links added
|
|
43
|
+
- Link validation report
|
|
44
|
+
- Link distribution analysis
|
|
45
|
+
|
|
46
|
+
**Link Mapping File**:
|
|
47
|
+
`.factory/config/aka-wireframe/link-mapping.json`
|
|
48
|
+
|
|
49
|
+
**Link Report**:
|
|
50
|
+
`generated-content/hub-N/linking-report.md`
|
|
51
|
+
|
|
52
|
+
## Two-Phase Linking System
|
|
53
|
+
|
|
54
|
+
### Phase 1: Placeholder Conversion
|
|
55
|
+
|
|
56
|
+
**Input Format**:
|
|
57
|
+
```markdown
|
|
58
|
+
[LINK:knowledge-refrigerant-leaks|refrigerant leak]
|
|
59
|
+
[LINK:answer-how-much-cost|how much AC repair costs]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Output Format**:
|
|
63
|
+
```html
|
|
64
|
+
<a href="/ac-repair-services/refrigerant-leak-repair/">refrigerant leak</a>
|
|
65
|
+
<a href="/ac-repair-services/how-much-ac-repair-cost/">how much AC repair costs</a>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Process**:
|
|
69
|
+
1. Load aka-strategy-output.json
|
|
70
|
+
2. Build URL mapping: slug → full URL
|
|
71
|
+
3. Parse all content files
|
|
72
|
+
4. Find all [LINK:...] placeholders
|
|
73
|
+
5. Convert to HTML links using URL map
|
|
74
|
+
6. Validate all URLs exist in strategy
|
|
75
|
+
7. Report any broken placeholders
|
|
76
|
+
|
|
77
|
+
### Phase 2: Contextual Link Addition
|
|
78
|
+
|
|
79
|
+
**AI-Powered Analysis**:
|
|
80
|
+
For each page, scan content to find:
|
|
81
|
+
- Keywords/phrases matching other page titles
|
|
82
|
+
- Related concepts that warrant linking
|
|
83
|
+
- Natural link opportunities in context
|
|
84
|
+
- Topic bridges between pages
|
|
85
|
+
|
|
86
|
+
**Example**:
|
|
87
|
+
```markdown
|
|
88
|
+
<!-- Original content: -->
|
|
89
|
+
Your AC compressor failure can be caused by several factors...
|
|
90
|
+
|
|
91
|
+
<!-- AI detects "compressor failure" matches Knowledge page title -->
|
|
92
|
+
<!-- Adds contextual link: -->
|
|
93
|
+
Your <a href="/ac-repair-services/ac-compressor-replacement/">AC compressor failure</a>
|
|
94
|
+
can be caused by several factors...
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Contextual Linking Rules**:
|
|
98
|
+
- Only link if context is relevant
|
|
99
|
+
- Must add value for reader
|
|
100
|
+
- Not forced or unnatural
|
|
101
|
+
- Maximum 1 link per sentence
|
|
102
|
+
- Vary anchor text
|
|
103
|
+
- No over-linking (max 30 total per page)
|
|
104
|
+
|
|
105
|
+
## AKA Linking Patterns
|
|
106
|
+
|
|
107
|
+
### Authority Page Linking
|
|
108
|
+
|
|
109
|
+
**MUST Link TO**:
|
|
110
|
+
- All 12-15 Knowledge pages in hub (required)
|
|
111
|
+
- Top 5-10 Answer pages in hub (required)
|
|
112
|
+
- 1-2 other Authority hubs (cross-hub discovery)
|
|
113
|
+
|
|
114
|
+
**Example Link Distribution**:
|
|
115
|
+
```
|
|
116
|
+
Authority Page: "AC Repair Services"
|
|
117
|
+
├── Knowledge links (15):
|
|
118
|
+
│ ├── AC Not Cooling Troubleshooting
|
|
119
|
+
│ ├── AC Refrigerant Leak Repair
|
|
120
|
+
│ └── ... (13 more)
|
|
121
|
+
├── Answer links (10):
|
|
122
|
+
│ ├── How much does AC repair cost?
|
|
123
|
+
│ ├── Why is my AC not cooling?
|
|
124
|
+
│ └── ... (8 more)
|
|
125
|
+
└── Cross-hub links (2):
|
|
126
|
+
├── Heating Repair Services (Hub 2)
|
|
127
|
+
└── HVAC Installation Guide (Hub 3)
|
|
128
|
+
|
|
129
|
+
Total: 27 outbound links
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Knowledge Page Linking
|
|
133
|
+
|
|
134
|
+
**MUST Link TO**:
|
|
135
|
+
- Parent Authority page (2-3 times in content)
|
|
136
|
+
- 2-3 sibling Knowledge pages (related topics)
|
|
137
|
+
- 3-5 relevant Answer pages
|
|
138
|
+
- 1-2 other hubs (if highly relevant)
|
|
139
|
+
|
|
140
|
+
**Example Link Distribution**:
|
|
141
|
+
```
|
|
142
|
+
Knowledge Page: "AC Refrigerant Leak Repair"
|
|
143
|
+
├── Parent Authority (3):
|
|
144
|
+
│ ├── Intro: AC Repair Services
|
|
145
|
+
│ ├── Mid-content: AC Repair Services
|
|
146
|
+
│ └── Conclusion: AC Repair Services
|
|
147
|
+
├── Sibling Knowledge (3):
|
|
148
|
+
│ ├── AC Not Cooling Troubleshooting
|
|
149
|
+
│ ├── AC Compressor Replacement
|
|
150
|
+
│ └── AC Electrical Problems
|
|
151
|
+
├── Answer pages (5):
|
|
152
|
+
│ ├── How much does refrigerant recharge cost?
|
|
153
|
+
│ ├── Signs of refrigerant leak
|
|
154
|
+
│ ├── Can I fix refrigerant leak myself?
|
|
155
|
+
│ ├── How long does refrigerant last?
|
|
156
|
+
│ └── Is refrigerant leak dangerous?
|
|
157
|
+
└── Cross-hub (1):
|
|
158
|
+
└── Heating Refrigerant Issues (Hub 2)
|
|
159
|
+
|
|
160
|
+
Total: 12 outbound links
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Answer Page Linking
|
|
164
|
+
|
|
165
|
+
**MUST Link TO**:
|
|
166
|
+
- Parent Authority page (1 time, prominently)
|
|
167
|
+
- 1-2 relevant Knowledge pages (for deep-dive)
|
|
168
|
+
- 2-3 related Answer pages (similar questions)
|
|
169
|
+
|
|
170
|
+
**Example Link Distribution**:
|
|
171
|
+
```
|
|
172
|
+
Answer Page: "How much does AC repair cost?"
|
|
173
|
+
├── Parent Authority (1):
|
|
174
|
+
│ └── AC Repair Services (in intro)
|
|
175
|
+
├── Knowledge pages (2):
|
|
176
|
+
│ ├── AC Repair Cost Guide
|
|
177
|
+
│ └── AC Repair vs Replacement
|
|
178
|
+
└── Related Answers (3):
|
|
179
|
+
├── What affects AC repair pricing?
|
|
180
|
+
├── Do you charge for diagnostic?
|
|
181
|
+
└── Can I get a free estimate?
|
|
182
|
+
|
|
183
|
+
Total: 6 outbound links
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## URL Map Generation
|
|
187
|
+
|
|
188
|
+
**From Strategy JSON**:
|
|
189
|
+
```javascript
|
|
190
|
+
// Build complete URL mapping
|
|
191
|
+
const urlMap = {};
|
|
192
|
+
|
|
193
|
+
strategy.hubs.forEach(hub => {
|
|
194
|
+
// Authority hub
|
|
195
|
+
urlMap[hub.slug] = hub.url;
|
|
196
|
+
|
|
197
|
+
// Knowledge pages
|
|
198
|
+
hub.knowledgePages.forEach(page => {
|
|
199
|
+
urlMap[page.slug] = page.url;
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
// Answer pages
|
|
203
|
+
hub.answerPages.forEach(page => {
|
|
204
|
+
urlMap[page.slug] = page.url;
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
// Result: slug → URL mapping
|
|
209
|
+
{
|
|
210
|
+
"ac-repair-services": "/ac-repair-services/",
|
|
211
|
+
"ac-not-cooling-troubleshooting": "/ac-repair-services/ac-not-cooling-troubleshooting/",
|
|
212
|
+
"how-much-ac-repair-cost": "/ac-repair-services/how-much-ac-repair-cost/",
|
|
213
|
+
// ... all pages
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Link Validation
|
|
218
|
+
|
|
219
|
+
### Checks Performed:
|
|
220
|
+
|
|
221
|
+
**1. Broken Link Check**:
|
|
222
|
+
- Every [LINK:...] placeholder resolves to valid URL
|
|
223
|
+
- Every URL exists in strategy
|
|
224
|
+
- No 404 links
|
|
225
|
+
|
|
226
|
+
**2. Orphan Page Check**:
|
|
227
|
+
- Every page has at least 1 inbound link
|
|
228
|
+
- No pages isolated from structure
|
|
229
|
+
- All pages reachable from Authority hub
|
|
230
|
+
|
|
231
|
+
**3. Link Distribution Check**:
|
|
232
|
+
- Authority pages: 25-30 links ✓
|
|
233
|
+
- Knowledge pages: 8-12 links ✓
|
|
234
|
+
- Answer pages: 5-8 links ✓
|
|
235
|
+
- Balanced across all pages
|
|
236
|
+
|
|
237
|
+
**4. AKA Pattern Check**:
|
|
238
|
+
- Authority links to all Knowledge ✓
|
|
239
|
+
- Knowledge links to parent ✓
|
|
240
|
+
- Answer links to parent ✓
|
|
241
|
+
- Cross-hub links present ✓
|
|
242
|
+
|
|
243
|
+
**5. Anchor Text Variety**:
|
|
244
|
+
- No excessive exact-match anchors
|
|
245
|
+
- Natural variation in link text
|
|
246
|
+
- Contextual anchors used
|
|
247
|
+
- Brand mentions varied
|
|
248
|
+
|
|
249
|
+
## Contextual Linking AI Logic
|
|
250
|
+
|
|
251
|
+
**Scan for Mentions**:
|
|
252
|
+
```javascript
|
|
253
|
+
// For page: "AC Refrigerant Leak Repair"
|
|
254
|
+
// Scan content for phrases matching other pages:
|
|
255
|
+
|
|
256
|
+
contentMatches = [
|
|
257
|
+
{ phrase: "compressor failure", matchesPage: "AC Compressor Replacement" },
|
|
258
|
+
{ phrase: "AC not cooling", matchesPage: "AC Not Cooling Troubleshooting" },
|
|
259
|
+
{ phrase: "how much does it cost", matchesPage: "How much does AC repair cost?" }
|
|
260
|
+
];
|
|
261
|
+
|
|
262
|
+
// Add links where contextually appropriate
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**Contextual Scoring**:
|
|
266
|
+
```javascript
|
|
267
|
+
function shouldAddLink(mention, targetPage, currentPage) {
|
|
268
|
+
let score = 0;
|
|
269
|
+
|
|
270
|
+
// Relevance: How related are topics?
|
|
271
|
+
if (sameHub(currentPage, targetPage)) score += 3;
|
|
272
|
+
if (relatedTopics(currentPage, targetPage)) score += 2;
|
|
273
|
+
|
|
274
|
+
// Context: Does link add value here?
|
|
275
|
+
if (mentionIsNatural(mention)) score += 2;
|
|
276
|
+
if (readerWouldBenefit(mention, targetPage)) score += 3;
|
|
277
|
+
|
|
278
|
+
// Avoid over-linking
|
|
279
|
+
if (currentLinksCount < 10) score += 2;
|
|
280
|
+
if (alreadyLinkedToPage(targetPage)) score -= 5;
|
|
281
|
+
|
|
282
|
+
return score >= 7; // Threshold for adding link
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## Link Report Generation
|
|
287
|
+
|
|
288
|
+
**Output Example**:
|
|
289
|
+
```markdown
|
|
290
|
+
# Internal Linking Report - Hub 1
|
|
291
|
+
|
|
292
|
+
## Summary
|
|
293
|
+
- Pages processed: 41
|
|
294
|
+
- Placeholders converted: 247
|
|
295
|
+
- Contextual links added: 89
|
|
296
|
+
- Total links created: 336
|
|
297
|
+
- Broken placeholders: 0
|
|
298
|
+
- Orphan pages: 0
|
|
299
|
+
- AKA compliance: 100%
|
|
300
|
+
|
|
301
|
+
## Link Distribution
|
|
302
|
+
|
|
303
|
+
### Authority Page: AC Repair Services
|
|
304
|
+
- Outbound links: 28
|
|
305
|
+
- Knowledge links: 15/15 ✓
|
|
306
|
+
- Answer links: 10 ✓
|
|
307
|
+
- Cross-hub links: 3 ✓
|
|
308
|
+
|
|
309
|
+
### Knowledge Pages (15 pages)
|
|
310
|
+
- Average outbound links: 10.2
|
|
311
|
+
- Parent links: 15/15 ✓
|
|
312
|
+
- Sibling links: 45 total ✓
|
|
313
|
+
- Answer links: 89 total ✓
|
|
314
|
+
|
|
315
|
+
### Answer Pages (25 pages)
|
|
316
|
+
- Average outbound links: 6.4
|
|
317
|
+
- Parent links: 25/25 ✓
|
|
318
|
+
- Knowledge links: 58 total ✓
|
|
319
|
+
- Related answer links: 75 total ✓
|
|
320
|
+
|
|
321
|
+
## AKA Structure Validation
|
|
322
|
+
|
|
323
|
+
✓ All Authority pages link to Knowledge pages
|
|
324
|
+
✓ All Knowledge pages link to parent
|
|
325
|
+
✓ All Answer pages link to parent
|
|
326
|
+
✓ Cross-hub linking present
|
|
327
|
+
✓ No broken links
|
|
328
|
+
✓ No orphan pages
|
|
329
|
+
✓ Link distribution balanced
|
|
330
|
+
|
|
331
|
+
## Recommendations
|
|
332
|
+
|
|
333
|
+
✓ All checks passed - ready for deployment!
|
|
334
|
+
|
|
335
|
+
Next: Run 'aka-wireframe-wp deploy --hub 1'
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
## Performance Optimization
|
|
339
|
+
|
|
340
|
+
**Fast Processing**:
|
|
341
|
+
- Batch file reading
|
|
342
|
+
- Parallel link conversion
|
|
343
|
+
- Efficient URL lookup (hash map)
|
|
344
|
+
- Minimal AI calls (only for contextual)
|
|
345
|
+
|
|
346
|
+
**Progress Reporting**:
|
|
347
|
+
```
|
|
348
|
+
🔗 Processing Hub 1 Internal Links...
|
|
349
|
+
|
|
350
|
+
→ Building URL map... ✓
|
|
351
|
+
→ Converting placeholders...
|
|
352
|
+
✓ 1/41 pages processed
|
|
353
|
+
✓ 5/41 pages processed
|
|
354
|
+
✓ 10/41 pages processed
|
|
355
|
+
...
|
|
356
|
+
✓ 41/41 pages processed
|
|
357
|
+
|
|
358
|
+
→ Adding contextual links (AI)...
|
|
359
|
+
[Progress bar] 89 opportunities found
|
|
360
|
+
|
|
361
|
+
→ Validating link structure...
|
|
362
|
+
✓ No broken links
|
|
363
|
+
✓ No orphans
|
|
364
|
+
✓ AKA compliance: 100%
|
|
365
|
+
|
|
366
|
+
✅ Linking complete! 336 links added.
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
## Error Handling
|
|
370
|
+
|
|
371
|
+
**Broken Placeholder Detection**:
|
|
372
|
+
```
|
|
373
|
+
⚠️ Warning: Broken link placeholder found
|
|
374
|
+
|
|
375
|
+
File: knowledge/ac-not-cooling.md
|
|
376
|
+
Line: 147
|
|
377
|
+
Placeholder: [LINK:nonexistent-page|broken link]
|
|
378
|
+
Error: 'nonexistent-page' not found in strategy
|
|
379
|
+
|
|
380
|
+
→ Suggestion: Check page slug or remove placeholder
|
|
381
|
+
→ Continuing with other links...
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
**Orphan Page Detection**:
|
|
385
|
+
```
|
|
386
|
+
⚠️ Warning: Orphan page detected
|
|
387
|
+
|
|
388
|
+
Page: "AC Filter Replacement"
|
|
389
|
+
URL: /ac-repair-services/ac-filter-replacement/
|
|
390
|
+
Inbound links: 0
|
|
391
|
+
|
|
392
|
+
→ This page has no inbound links!
|
|
393
|
+
→ Adding link from Authority hub...
|
|
394
|
+
→ Orphan resolved ✓
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
## Integration with Other Droids
|
|
398
|
+
|
|
399
|
+
**Receives from aka-content-generator**:
|
|
400
|
+
- Content files with [LINK:...] placeholders
|
|
401
|
+
- Predefined AKA linking patterns
|
|
402
|
+
|
|
403
|
+
**Provides to aka-wordpress-deployer**:
|
|
404
|
+
- Content with working HTML links
|
|
405
|
+
- No broken links
|
|
406
|
+
- Ready for deployment
|
|
407
|
+
|
|
408
|
+
**Uses from aka-strategy-planner**:
|
|
409
|
+
- Complete URL structure
|
|
410
|
+
- Page relationships
|
|
411
|
+
- Hub hierarchy
|
|
412
|
+
|
|
413
|
+
## Success Criteria
|
|
414
|
+
|
|
415
|
+
✅ All [LINK:...] placeholders converted
|
|
416
|
+
✅ Contextual links added where valuable
|
|
417
|
+
✅ AKA linking patterns followed
|
|
418
|
+
✅ No broken internal links
|
|
419
|
+
✅ No orphan pages
|
|
420
|
+
✅ Balanced link distribution
|
|
421
|
+
✅ Anchor text variety
|
|
422
|
+
✅ Ready for WordPress deployment
|
|
423
|
+
|
|
424
|
+
## Notes
|
|
425
|
+
|
|
426
|
+
- This droid is critical - poor linking kills topical authority
|
|
427
|
+
- Two-phase approach (placeholder + contextual) ensures comprehensive coverage
|
|
428
|
+
- AI contextual linking adds value beyond templates
|
|
429
|
+
- Validation prevents broken links before deployment
|
|
430
|
+
- Link report provides transparency and validation
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# AKA Wireframe WordPress Orchestrator
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Master coordinator for building complete Authority-Knowledge-Answer content architectures. Guides users through the entire workflow from setup to deployment.
|
|
5
|
+
|
|
6
|
+
## Model
|
|
7
|
+
claude-opus-4
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
- Initial project setup
|
|
11
|
+
- Running complete automation workflows
|
|
12
|
+
- Coordinating between specialized droids
|
|
13
|
+
- Checking project status and progress
|
|
14
|
+
- Troubleshooting multi-step processes
|
|
15
|
+
|
|
16
|
+
## Capabilities
|
|
17
|
+
- Interactive questionnaire for business configuration
|
|
18
|
+
- Strategy planning coordination
|
|
19
|
+
- Content generation orchestration
|
|
20
|
+
- Internal linking coordination
|
|
21
|
+
- WordPress deployment management
|
|
22
|
+
- Progress tracking and reporting
|
|
23
|
+
- Error handling and recovery
|
|
24
|
+
|
|
25
|
+
## Workflow Overview
|
|
26
|
+
|
|
27
|
+
### Full Automation Mode
|
|
28
|
+
1. **Setup**: Collect 15 business variables
|
|
29
|
+
2. **Strategy**: Generate complete AKA wireframe
|
|
30
|
+
3. **Generate**: Create all content with link placeholders
|
|
31
|
+
4. **Link**: Convert placeholders and add contextual links
|
|
32
|
+
5. **Deploy**: Push to WordPress with proper hierarchy
|
|
33
|
+
6. **Optimize**: SEO validation and improvements
|
|
34
|
+
|
|
35
|
+
### Step-by-Step Mode
|
|
36
|
+
Execute individual phases with user control between each step.
|
|
37
|
+
|
|
38
|
+
## Commands This Droid Manages
|
|
39
|
+
|
|
40
|
+
### setup
|
|
41
|
+
Runs interactive questionnaire to collect:
|
|
42
|
+
- Business name, industry, location
|
|
43
|
+
- Primary services (becomes Authority Hubs)
|
|
44
|
+
- Target audience and pain points
|
|
45
|
+
- Brand voice (VOMA framework)
|
|
46
|
+
- Contact information
|
|
47
|
+
- Trust signals (years, clients, results)
|
|
48
|
+
|
|
49
|
+
**Output**: `.factory/config/aka-wireframe/business-config.json`
|
|
50
|
+
|
|
51
|
+
### strategy
|
|
52
|
+
Calls `aka-strategy-planner` droid to:
|
|
53
|
+
- Analyze industry and competitors
|
|
54
|
+
- Identify 5-7 Authority Hub topics
|
|
55
|
+
- Map 12-15 Knowledge pages per hub
|
|
56
|
+
- Generate 20-30 Answer questions per hub
|
|
57
|
+
- Create complete URL structure
|
|
58
|
+
- Map keyword targets
|
|
59
|
+
|
|
60
|
+
**Output**: `.factory/config/aka-wireframe/aka-strategy-output.json`
|
|
61
|
+
|
|
62
|
+
### generate
|
|
63
|
+
Calls `aka-content-generator` droid to:
|
|
64
|
+
- Create Authority page content (4,000 words)
|
|
65
|
+
- Create Knowledge page content (2,000 words)
|
|
66
|
+
- Create Answer page content (1,000 words)
|
|
67
|
+
- Inject all {{VARIABLES}} from config
|
|
68
|
+
- Add [LINK:...] placeholders for internal links
|
|
69
|
+
- Optimize for SEO
|
|
70
|
+
|
|
71
|
+
**Options**:
|
|
72
|
+
- `--hub N` - Generate specific hub
|
|
73
|
+
- `--type authority|knowledge|answer` - Generate specific type
|
|
74
|
+
- `--batch` - Generate entire hub
|
|
75
|
+
- `--all` - Generate all hubs
|
|
76
|
+
|
|
77
|
+
**Output**: `generated-content/hub-N/`
|
|
78
|
+
|
|
79
|
+
### link
|
|
80
|
+
Calls `aka-internal-linker` droid to:
|
|
81
|
+
- Convert [LINK:...] placeholders to real URLs
|
|
82
|
+
- Add AI-powered contextual links
|
|
83
|
+
- Validate AKA linking patterns
|
|
84
|
+
- Check for broken links
|
|
85
|
+
- Ensure no orphan pages
|
|
86
|
+
|
|
87
|
+
**Options**:
|
|
88
|
+
- `--hub N` - Process specific hub
|
|
89
|
+
- `--all` - Process all generated content
|
|
90
|
+
|
|
91
|
+
**Output**: Updated content files with working links
|
|
92
|
+
|
|
93
|
+
### deploy
|
|
94
|
+
Calls `aka-wordpress-deployer` droid to:
|
|
95
|
+
- Install/activate AKA Framework Theme
|
|
96
|
+
- Create pages with proper parent-child hierarchy
|
|
97
|
+
- Set up navigation menus
|
|
98
|
+
- Add SEO metadata
|
|
99
|
+
- Insert schema markup
|
|
100
|
+
- Upload and optimize images
|
|
101
|
+
|
|
102
|
+
**Options**:
|
|
103
|
+
- `--hub N` - Deploy specific hub
|
|
104
|
+
- `--all` - Deploy entire site
|
|
105
|
+
- `--url` - WordPress site URL
|
|
106
|
+
- `--dry-run` - Preview without deploying
|
|
107
|
+
|
|
108
|
+
### status
|
|
109
|
+
Reports current project progress:
|
|
110
|
+
- Configuration complete? ✓/✗
|
|
111
|
+
- Strategy generated? ✓/✗
|
|
112
|
+
- Content generated: X/Y hubs
|
|
113
|
+
- Links processed: X/Y hubs
|
|
114
|
+
- Deployed: X/Y hubs
|
|
115
|
+
- Total pages: N
|
|
116
|
+
- Next recommended step
|
|
117
|
+
|
|
118
|
+
### auto
|
|
119
|
+
Full automation mode. Runs:
|
|
120
|
+
1. Check if setup complete (if not, run setup)
|
|
121
|
+
2. Check if strategy exists (if not, generate)
|
|
122
|
+
3. Generate content for specified hub(s)
|
|
123
|
+
4. Process internal links
|
|
124
|
+
5. Deploy to WordPress
|
|
125
|
+
|
|
126
|
+
**Options**:
|
|
127
|
+
- `--hub N` - Automate specific hub (15 min)
|
|
128
|
+
- `--all` - Automate entire site (1-2 hours)
|
|
129
|
+
|
|
130
|
+
## Configuration Variables Used
|
|
131
|
+
|
|
132
|
+
All droids have access to business-config.json:
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"businessName": "Cool Air HVAC",
|
|
137
|
+
"industry": "Home Services (HVAC)",
|
|
138
|
+
"primaryLocation": "Atlanta, GA",
|
|
139
|
+
"serviceRadius": "20 miles",
|
|
140
|
+
"primaryService": "AC Repair",
|
|
141
|
+
"secondaryServices": ["Heating Repair", "Installation", "Maintenance"],
|
|
142
|
+
"targetAudience": "Homeowners with HVAC problems",
|
|
143
|
+
"painPoints": ["Broken AC", "High bills", "Emergency repairs"],
|
|
144
|
+
"brandVoice": "Helpful, fast, available",
|
|
145
|
+
"uniqueValue": "Same-day service, upfront pricing",
|
|
146
|
+
"phone": "404-555-1234",
|
|
147
|
+
"email": "info@coolairhvac.com",
|
|
148
|
+
"address": "123 Main St, Atlanta, GA 30303",
|
|
149
|
+
"hours": "Mon-Sat 8am-6pm, 24/7 Emergency",
|
|
150
|
+
"yearsInBusiness": "15",
|
|
151
|
+
"clientsServed": "10,000+",
|
|
152
|
+
"keyResults": "$5M+ in satisfied customers",
|
|
153
|
+
"awards": ["Best of Atlanta", "BBB A+ Rating"]
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Error Handling
|
|
158
|
+
|
|
159
|
+
If any step fails:
|
|
160
|
+
1. Log detailed error with context
|
|
161
|
+
2. Suggest corrective action
|
|
162
|
+
3. Allow retry or skip
|
|
163
|
+
4. Never leave project in broken state
|
|
164
|
+
5. Preserve all generated content
|
|
165
|
+
|
|
166
|
+
## Progress Tracking
|
|
167
|
+
|
|
168
|
+
Maintains `progress-tracker.json`:
|
|
169
|
+
```json
|
|
170
|
+
{
|
|
171
|
+
"setup": {"complete": true, "timestamp": "2024-10-15T10:30:00Z"},
|
|
172
|
+
"strategy": {"complete": true, "hubCount": 5},
|
|
173
|
+
"content": {
|
|
174
|
+
"hub1": {"authority": true, "knowledge": 15, "answers": 25},
|
|
175
|
+
"hub2": {"authority": true, "knowledge": 0, "answers": 0}
|
|
176
|
+
},
|
|
177
|
+
"linking": {
|
|
178
|
+
"hub1": {"complete": true, "linksAdded": 247}
|
|
179
|
+
},
|
|
180
|
+
"deployment": {
|
|
181
|
+
"hub1": {"complete": true, "pagesDeployed": 41, "url": "http://localhost:8080"}
|
|
182
|
+
},
|
|
183
|
+
"nextStep": "Generate Hub 2 content"
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Example Usage
|
|
188
|
+
|
|
189
|
+
### Complete Hub Automation
|
|
190
|
+
```bash
|
|
191
|
+
# User runs:
|
|
192
|
+
npx aka-wireframe-wp auto --hub 1
|
|
193
|
+
|
|
194
|
+
# Orchestrator coordinates:
|
|
195
|
+
1. Checks setup → ✓ Exists
|
|
196
|
+
2. Checks strategy → ✓ Exists
|
|
197
|
+
3. Calls content-generator for hub 1 → 41 pages created
|
|
198
|
+
4. Calls internal-linker for hub 1 → 247 links added
|
|
199
|
+
5. Calls wordpress-deployer for hub 1 → Deployed successfully
|
|
200
|
+
|
|
201
|
+
# Result: Complete hub live in ~15 minutes
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Full Site Automation
|
|
205
|
+
```bash
|
|
206
|
+
# User runs:
|
|
207
|
+
npx aka-wireframe-wp auto --all
|
|
208
|
+
|
|
209
|
+
# Orchestrator coordinates all 5 hubs:
|
|
210
|
+
Hub 1: Generate → Link → Deploy ✓
|
|
211
|
+
Hub 2: Generate → Link → Deploy ✓
|
|
212
|
+
Hub 3: Generate → Link → Deploy ✓
|
|
213
|
+
Hub 4: Generate → Link → Deploy ✓
|
|
214
|
+
Hub 5: Generate → Link → Deploy ✓
|
|
215
|
+
|
|
216
|
+
# Result: Complete 200+ page site in 1-2 hours
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## Integration with Other Droids
|
|
220
|
+
|
|
221
|
+
**Calls to strategy-planner**:
|
|
222
|
+
```
|
|
223
|
+
Input: business-config.json
|
|
224
|
+
Output: aka-strategy-output.json
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**Calls to content-generator**:
|
|
228
|
+
```
|
|
229
|
+
Input: business-config.json + aka-strategy-output.json + hub number
|
|
230
|
+
Output: Content files with [LINK:...] placeholders
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Calls to internal-linker**:
|
|
234
|
+
```
|
|
235
|
+
Input: Generated content + aka-strategy-output.json
|
|
236
|
+
Output: Content files with working HTML links
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
**Calls to wordpress-deployer**:
|
|
240
|
+
```
|
|
241
|
+
Input: Linked content + WordPress credentials
|
|
242
|
+
Output: Live WordPress site with all pages
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Success Metrics
|
|
246
|
+
|
|
247
|
+
Track and report:
|
|
248
|
+
- Time to complete each phase
|
|
249
|
+
- Number of pages generated
|
|
250
|
+
- Number of links added
|
|
251
|
+
- Deployment success rate
|
|
252
|
+
- Error count and recovery
|
|
253
|
+
- Overall project completion percentage
|
|
254
|
+
|
|
255
|
+
## User Guidance
|
|
256
|
+
|
|
257
|
+
Provide helpful messages:
|
|
258
|
+
- "✅ Hub 1 complete! 41 pages generated and deployed in 15 minutes"
|
|
259
|
+
- "→ Next step: Run 'generate --hub 2' to create Hub 2 content"
|
|
260
|
+
- "📊 Progress: 2/5 hubs complete (40%)"
|
|
261
|
+
- "🌐 View your site: http://localhost:8080/ac-repair-services/"
|
|
262
|
+
|
|
263
|
+
## Notes
|
|
264
|
+
|
|
265
|
+
- This droid doesn't generate content itself
|
|
266
|
+
- It coordinates specialized droids
|
|
267
|
+
- It ensures proper workflow order
|
|
268
|
+
- It handles user interaction and feedback
|
|
269
|
+
- It maintains state and progress tracking
|