myaidev-method 0.2.24-1 → 0.2.24-2

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 (32) hide show
  1. package/.claude-plugin/plugin.json +251 -0
  2. package/PLUGIN_ARCHITECTURE.md +276 -0
  3. package/README.md +204 -0
  4. package/USER_GUIDE.md +436 -9
  5. package/bin/cli.js +152 -0
  6. package/extension.json +174 -0
  7. package/hooks/hooks.json +221 -0
  8. package/marketplace.json +179 -0
  9. package/package.json +15 -3
  10. package/skills/content-verifier/SKILL.md +178 -0
  11. package/skills/content-writer/SKILL.md +151 -0
  12. package/skills/coolify-deployer/SKILL.md +207 -0
  13. package/skills/openstack-manager/SKILL.md +213 -0
  14. package/skills/security-auditor/SKILL.md +180 -0
  15. package/skills/security-tester/SKILL.md +171 -0
  16. package/skills/sparc-architect/SKILL.md +146 -0
  17. package/skills/sparc-coder/SKILL.md +136 -0
  18. package/skills/sparc-documenter/SKILL.md +195 -0
  19. package/skills/sparc-reviewer/SKILL.md +179 -0
  20. package/skills/sparc-tester/SKILL.md +156 -0
  21. package/skills/visual-generator/SKILL.md +147 -0
  22. package/skills/wordpress-publisher/SKILL.md +150 -0
  23. package/src/lib/content-coordinator.js +2562 -0
  24. package/src/lib/installation-detector.js +266 -0
  25. package/src/lib/visual-config-utils.js +1 -1
  26. package/src/lib/visual-generation-utils.js +34 -14
  27. package/src/scripts/generate-visual-cli.js +39 -10
  28. package/src/scripts/ping.js +0 -1
  29. package/src/templates/claude/agents/content-production-coordinator.md +689 -15
  30. package/src/templates/claude/commands/myai-content-enrichment.md +227 -0
  31. package/src/templates/claude/commands/myai-content-writer.md +48 -37
  32. package/src/templates/claude/commands/myai-coordinate-content.md +347 -11
@@ -10,12 +10,58 @@ You are a Content Production Coordinator specializing in orchestrating content v
10
10
 
11
11
  Coordinate the content production workflow for the provided directory: $ARGUMENTS
12
12
 
13
+ ## Content Queue File Format
14
+
15
+ Each markdown file in your content queue should follow this structure:
16
+
17
+ ```markdown
18
+ ---
19
+ title: "Your Article Title"
20
+ content_type: article
21
+ target_platform: wordpress
22
+ status: pending
23
+ priority: normal
24
+ references:
25
+ - "https://source1.com"
26
+ - "https://source2.com"
27
+ goals:
28
+ - "Primary goal for this content"
29
+ - "Secondary goal"
30
+ ---
31
+
32
+ ## Proprietary Content
33
+
34
+ [Your unique insights, original analysis, and value-add content here.
35
+ This is the section that gets verified for uniqueness.]
36
+
37
+ ## Supporting Content
38
+
39
+ [Additional context, examples, and supporting material]
40
+ ```
41
+
42
+ ### Required Fields
43
+ | Field | Description |
44
+ |-------|-------------|
45
+ | `title` | Article title (used for publishing) |
46
+ | **Proprietary Content section** | Your unique content to be verified |
47
+
48
+ ### Optional Fields
49
+ | Field | Values | Default |
50
+ |-------|--------|---------|
51
+ | `content_type` | article, tutorial, guide, listicle | article |
52
+ | `target_platform` | wordpress, payloadcms, static, docusaurus, mintlify, astro | wordpress |
53
+ | `status` | pending, verified, published, failed | pending |
54
+ | `priority` | high, normal, low | normal |
55
+ | `references` | Array of source URLs | [] |
56
+ | `goals` | Array of publishing goals | [] |
57
+
13
58
  ## Workflow
14
59
 
15
60
  ### 1. Initialize Work List
16
- - Read all files from the provided directory path in $ARGUMENTS
17
- - Parse each file for: Title, Proprietary Content, References, and Goals
18
- - Display a summary of found items to the user
61
+ - Read all markdown files from the provided directory path in $ARGUMENTS
62
+ - Parse YAML front matter and content sections
63
+ - Validate required fields (title, Proprietary Content section)
64
+ - Display a summary of found items with validation status
19
65
  - Ask for confirmation before proceeding with verification
20
66
 
21
67
  ### 2. Verify Content in Parallel
@@ -45,11 +91,167 @@ Coordinate the content production workflow for the provided directory: $ARGUMENT
45
91
 
46
92
  ## Parameters Supported
47
93
 
48
- - Directory path (required): Path to content queue directory
49
- - `--dry-run`: Only verify content, don't publish
50
- - `--force`: Skip confirmation prompts
51
- - `--verbose`: Show detailed progress for each item
52
- - `--output-dir`: Directory for report files (default: current directory)
94
+ ### Core Parameters
95
+ | Parameter | Description | Default |
96
+ |-----------|-------------|---------|
97
+ | Directory path (required) | Path to content queue directory | - |
98
+ | `--dry-run` | Only verify content, don't publish | false |
99
+ | `--force` | Skip confirmation prompts | false |
100
+ | `--verbose` | Show detailed progress for each item | false |
101
+ | `--output-dir` | Directory for report files | current directory |
102
+ | `--concurrency` | Max parallel operations (1-10) | 3 |
103
+ | `--fresh` | Ignore existing state, start fresh | false |
104
+ | `--resume` | Resume from last checkpoint (auto-detected) | true |
105
+ | `--retry-count` | Number of retry attempts per item | 2 |
106
+
107
+ ### Content Rules Integration
108
+ | Parameter | Description | Default |
109
+ |-----------|-------------|---------|
110
+ | `--content-rules` | Path to content-rules.md file | auto-detect |
111
+
112
+ The coordinator automatically searches for `content-rules.md` in these locations:
113
+ 1. Explicit path via `--content-rules`
114
+ 2. `./content-rules.md` (current directory)
115
+ 3. `./.claude/content-rules.md`
116
+ 4. `./docs/content-rules.md`
117
+
118
+ Content rules provide brand voice, writing style, and SEO guidelines that are passed to both the verifier and content writer for consistent output.
119
+
120
+ ### Multi-Platform Publishing
121
+ | Parameter | Description | Default |
122
+ |-----------|-------------|---------|
123
+ | `--platform` | Default publishing platform | wordpress |
124
+
125
+ **Supported Platforms:**
126
+ - `wordpress` - WordPress REST API (requires credentials)
127
+ - `payloadcms` - Payload CMS REST API
128
+ - `static` - Generate static markdown files
129
+ - `docusaurus` - Docusaurus documentation site
130
+ - `mintlify` - Mintlify documentation
131
+ - `astro` - Astro content collections
132
+
133
+ Each content item can override the default platform using the `target_platform` front matter field.
134
+
135
+ ### Webhook Notifications (CI/CD Integration)
136
+ | Parameter | Description | Default |
137
+ |-----------|-------------|---------|
138
+ | `--webhook-url` | URL to receive workflow notifications | none |
139
+ | `--webhook-events` | Comma-separated events to notify | complete,error |
140
+
141
+ **Available Events:**
142
+ - `start` - When workflow begins
143
+ - `complete` - When workflow finishes successfully
144
+ - `error` - When errors occur
145
+ - `published` - When each item is published
146
+
147
+ **Webhook Payload Example:**
148
+ ```json
149
+ {
150
+ "event": "complete",
151
+ "timestamp": "2026-01-20T10:30:00Z",
152
+ "workflow": "content-coordination",
153
+ "data": {
154
+ "totalItems": 10,
155
+ "published": 7,
156
+ "needsReview": 2,
157
+ "failed": 1,
158
+ "duration": "5m 23s"
159
+ }
160
+ }
161
+ ```
162
+
163
+ ### Analytics & Monitoring
164
+ | Parameter | Description | Default |
165
+ |-----------|-------------|---------|
166
+ | `--analytics` | Enable detailed analytics tracking | true |
167
+ | `--analytics-report` | Generate analytics report file | true |
168
+
169
+ When enabled, generates `analytics-YYYY-MM-DD-HH-MM-SS.md` with:
170
+ - Per-phase timing metrics
171
+ - Success/failure rates
172
+ - Average verification and publishing times
173
+ - Content quality score trends
174
+ - Error categorization
175
+
176
+ ### Queue Management
177
+ | Parameter | Description | Default |
178
+ |-----------|-------------|---------|
179
+ | `--queue` | Path to persistent queue file | .content-queue.json |
180
+ | `--add-to-queue` | Add items to queue without processing | false |
181
+ | `--clear-completed` | Remove completed items from queue | false |
182
+ | `--queue-stats` | Display queue statistics | false |
183
+
184
+ **Queue Commands:**
185
+ ```bash
186
+ # Add items to queue for later processing
187
+ /myai-coordinate-content ./new-content/ --add-to-queue
188
+
189
+ # View queue statistics
190
+ /myai-coordinate-content --queue-stats
191
+
192
+ # Clear completed items from queue
193
+ /myai-coordinate-content --clear-completed
194
+
195
+ # Process queued items
196
+ /myai-coordinate-content --queue .content-queue.json
197
+ ```
198
+
199
+ ### Scheduling (Cron & WordPress)
200
+
201
+ **Linux Crontab Integration:**
202
+ | Parameter | Description | Default |
203
+ |-----------|-------------|---------|
204
+ | `--cron` | Enable cron-safe mode (lock files, quiet output) | false |
205
+ | `--min-interval` | Minimum seconds between runs | 0 |
206
+ | `--generate-crontab` | Generate crontab entry and exit | false |
207
+
208
+ **WordPress Native Scheduling:**
209
+ | Parameter | Description | Default |
210
+ |-----------|-------------|---------|
211
+ | `--schedule-delay` | Hours to delay publication | 0 |
212
+ | `--spread-interval` | Hours between scheduled posts | 0 |
213
+ | `--schedule-date` | Specific publish date (ISO 8601) | immediate |
214
+
215
+ **Cron Setup:**
216
+ ```bash
217
+ # Generate crontab entry
218
+ /myai-coordinate-content --generate-crontab
219
+
220
+ # Run in cron-safe mode (for crontab)
221
+ /myai-coordinate-content ./content-queue/ --cron --force
222
+
223
+ # With minimum 6-hour interval between runs
224
+ /myai-coordinate-content ./content-queue/ --cron --min-interval 21600
225
+ ```
226
+
227
+ **WordPress Scheduling (schedule posts for future publication):**
228
+ ```bash
229
+ # Delay all posts by 24 hours
230
+ /myai-coordinate-content ./content-queue/ --schedule-delay 24
231
+
232
+ # Spread posts 6 hours apart
233
+ /myai-coordinate-content ./content-queue/ --spread-interval 6
234
+
235
+ # Combined: Start in 24 hours, then every 6 hours
236
+ /myai-coordinate-content ./content-queue/ --schedule-delay 24 --spread-interval 6
237
+ ```
238
+
239
+ **Content Front Matter Scheduling:**
240
+ ```yaml
241
+ ---
242
+ title: "My Article"
243
+ publish_date: "2026-02-15T09:00:00Z" # Schedule for specific date
244
+ # OR
245
+ scheduled_date: "2026-02-15T09:00:00Z"
246
+ ---
247
+ ```
248
+
249
+ ### Checkpoint/Resume
250
+
251
+ The coordinator automatically saves progress to `.content-coordinator-state.json`. If interrupted:
252
+ - Re-run the same command to resume from the last checkpoint
253
+ - Use `--fresh` to start over and ignore saved state
254
+ - Delete the state file manually to reset
53
255
 
54
256
  ## Output Format
55
257
 
@@ -110,20 +312,154 @@ Generated: YYYY-MM-DD HH:MM:SS
110
312
 
111
313
  ## Example Usage
112
314
 
315
+ ### Basic Operations
113
316
  ```bash
114
- # Basic usage
317
+ # Basic usage - process all content in queue
115
318
  /myai-coordinate-content ./content-queue/
116
319
 
117
- # Dry run to verify content only
320
+ # Dry run - verify content only, no publishing
118
321
  /myai-coordinate-content ./content-queue/ --dry-run
119
322
 
120
- # Force publishing without confirmations
323
+ # Force mode - skip all confirmations (useful for CI/CD)
121
324
  /myai-coordinate-content ./content-queue/ --force
122
325
 
123
326
  # Verbose output with custom report directory
124
327
  /myai-coordinate-content ./content-queue/ --verbose --output-dir ./reports/
328
+
329
+ # High concurrency for large batches
330
+ /myai-coordinate-content ./content-queue/ --concurrency 5
331
+
332
+ # Start fresh, ignoring any saved state
333
+ /myai-coordinate-content ./content-queue/ --fresh
334
+
335
+ # Resume an interrupted workflow (automatic)
336
+ /myai-coordinate-content ./content-queue/
337
+ ```
338
+
339
+ ### Multi-Platform Publishing
340
+ ```bash
341
+ # Publish to PayloadCMS instead of WordPress
342
+ /myai-coordinate-content ./content-queue/ --platform payloadcms
343
+
344
+ # Generate static markdown files
345
+ /myai-coordinate-content ./content-queue/ --platform static --output-dir ./published/
346
+
347
+ # Publish to Docusaurus documentation site
348
+ /myai-coordinate-content ./docs-queue/ --platform docusaurus
349
+ ```
350
+
351
+ ### Content Rules Integration
352
+ ```bash
353
+ # Use custom content rules file
354
+ /myai-coordinate-content ./content-queue/ --content-rules ./brand/content-rules.md
355
+
356
+ # Content rules are auto-detected from standard locations
357
+ /myai-coordinate-content ./content-queue/ # Finds ./content-rules.md automatically
358
+ ```
359
+
360
+ ### CI/CD Integration with Webhooks
361
+ ```bash
362
+ # Send notifications to CI/CD webhook
363
+ /myai-coordinate-content ./content-queue/ --webhook-url https://ci.example.com/webhook
364
+
365
+ # Notify on all events including each published item
366
+ /myai-coordinate-content ./content-queue/ --webhook-url https://ci.example.com/webhook --webhook-events start,complete,error,published
367
+
368
+ # Full CI/CD pipeline integration
369
+ /myai-coordinate-content ./content-queue/ --force --webhook-url $CI_WEBHOOK_URL --analytics
370
+ ```
371
+
372
+ ### Queue Management
373
+ ```bash
374
+ # Add new content to queue without processing
375
+ /myai-coordinate-content ./new-articles/ --add-to-queue
376
+
377
+ # View queue statistics
378
+ /myai-coordinate-content --queue-stats
379
+
380
+ # Process items from queue
381
+ /myai-coordinate-content --queue .content-queue.json
382
+
383
+ # Clear completed items from queue
384
+ /myai-coordinate-content --clear-completed
385
+ ```
386
+
387
+ ### Analytics & Monitoring
388
+ ```bash
389
+ # Enable detailed analytics (default)
390
+ /myai-coordinate-content ./content-queue/ --analytics
391
+
392
+ # Full production run with all options
393
+ /myai-coordinate-content ./content-queue/ \
394
+ --verbose \
395
+ --output-dir ./reports/ \
396
+ --concurrency 3 \
397
+ --content-rules ./brand/content-rules.md \
398
+ --webhook-url https://ci.example.com/webhook \
399
+ --analytics
125
400
  ```
126
401
 
402
+ ### Automated Scheduling
403
+
404
+ **Setup Linux Crontab:**
405
+ ```bash
406
+ # Generate crontab entry with instructions
407
+ /myai-coordinate-content --generate-crontab
408
+
409
+ # Example crontab entries (add to crontab -e):
410
+
411
+ # Every 6 hours
412
+ 0 */6 * * * cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
413
+
414
+ # Daily at 9 AM
415
+ 0 9 * * * cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
416
+
417
+ # Weekdays at 9 AM and 5 PM
418
+ 0 9,17 * * 1-5 cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
419
+ ```
420
+
421
+ **WordPress Post Scheduling:**
422
+ ```bash
423
+ # Schedule posts to publish over the next week (one per day)
424
+ /myai-coordinate-content ./content-queue/ --spread-interval 24
425
+
426
+ # Delay publishing by 48 hours, then spread every 12 hours
427
+ /myai-coordinate-content ./content-queue/ --schedule-delay 48 --spread-interval 12
428
+
429
+ # Set specific publish dates in content front matter:
430
+ # publish_date: "2026-02-20T09:00:00Z"
431
+ ```
432
+
433
+ **Combined Automation (Cron + WordPress Scheduling):**
434
+ ```bash
435
+ # Run via cron, but schedule posts for optimal times
436
+ /myai-coordinate-content ./content-queue/ \
437
+ --cron \
438
+ --force \
439
+ --schedule-delay 24 \
440
+ --spread-interval 6 \
441
+ --webhook-url https://ci.example.com/content-published
442
+ ```
443
+
444
+ ### Setting Up a Content Queue
445
+
446
+ 1. Create a directory for your content queue:
447
+ ```bash
448
+ mkdir -p ./content-queue
449
+ ```
450
+
451
+ 2. Add content files following the format above:
452
+ ```bash
453
+ # Example: ./content-queue/api-best-practices.md
454
+ ```
455
+
456
+ 3. Run the coordinator:
457
+ ```bash
458
+ /myai-coordinate-content ./content-queue/
459
+ ```
460
+
461
+ 4. Review the generated reports and confirm publishing
462
+
127
463
  ## User Communication
128
464
 
129
465
  - Always confirm before starting verification