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
@@ -0,0 +1,227 @@
1
+ ---
2
+ name: myai-content-enrichment
3
+ description: Enrich existing articles with real-time data and AI-generated visuals
4
+ tools: Read, Write, Edit, Bash, SlashCommand
5
+ ---
6
+
7
+ Enhance existing articles with real-time data from enrichment apps and optionally add context-aware visuals.
8
+
9
+ ## Task
10
+
11
+ Enrich the article at: $ARGUMENTS
12
+
13
+ ## What This Does
14
+
15
+ **Does NOT write new content.** Takes existing markdown and:
16
+ - Runs data enrichment apps (network latency, brand extraction)
17
+ - Updates content with real, current data
18
+ - Optionally generates visuals using enrichment context (via `/myai-generate-visual`)
19
+
20
+ ## Usage
21
+
22
+ ```bash
23
+ # Add network data to article
24
+ /myai-content-enrichment "article.md" --app network ashburn-va
25
+
26
+ # Extract branding + generate branded visuals
27
+ /myai-content-enrichment "article.md" --app branding https://example.com --with-images
28
+
29
+ # Full enrichment (auto-detect apps + visuals)
30
+ /myai-content-enrichment "article.md" --app all --with-images --auto
31
+ ```
32
+
33
+ ## Flags
34
+
35
+ **Data Apps:**
36
+ - `--app branding <url>` - Extract brand colors/styling
37
+ - `--app network <location>` - Run latency tests (ashburn-va, los-angeles, chicago, europe, asia)
38
+ - `--app all` - Auto-detect and run relevant apps
39
+ - `--auto` - Skip confirmation prompts
40
+
41
+ **Visuals:**
42
+ - `--with-images` - Generate visuals with enrichment data
43
+ - `--regenerate-images` - Replace existing images
44
+ - `--no-images` - Skip visuals (default if not specified)
45
+
46
+ **Options:**
47
+ - `--preserve-original` - Backup before modifying
48
+
49
+ ## Workflow
50
+
51
+ ### 1. Parse & Validate
52
+ - Read target article
53
+ - Parse flags
54
+ - Confirm apps to run (unless `--auto`)
55
+
56
+ ### 2. Run Data Apps
57
+ **Network App** (`--app network <location>`):
58
+ - Execute: `node src/scripts/ping.js 'location'`
59
+ - Save: `./data/latency-test-YYYYMMDD.md`
60
+ - Extract metrics for content
61
+
62
+ **Branding App** (`--app branding <url>`):
63
+ - Check cache: `brand_design_guidelines.md`
64
+ - If not cached: Navigate → Screenshot → Analyze → Cache
65
+ - Store brand colors/style for visuals
66
+
67
+ ### 3. Update Content
68
+ - Find relevant sections (e.g., performance data)
69
+ - Inject real metrics
70
+ - Add data citations
71
+ - Preserve original voice/style
72
+
73
+ ### 4. Generate Visuals (Optional)
74
+ **If `--with-images` or `--regenerate-images`:**
75
+ - Analyze article sections needing visuals
76
+ - Build enriched prompts:
77
+ - Base: Article context
78
+ - Add brand: `primary #2245C4, accent #19FFF4, modern professional style`
79
+ - Add data: `Ashburn 24.5ms, Chicago 31.4ms, LA 45.2ms`
80
+ - Delegate to `/myai-generate-visual` with enriched prompt
81
+ - Embed generated images with captions
82
+
83
+ See `/myai-generate-visual --help` for visual generation details.
84
+
85
+ ### 5. Finalize
86
+ - Save enriched article (backup if `--preserve-original`)
87
+ - Report what was enriched
88
+
89
+ ## Data Apps Reference
90
+
91
+ ### Network Latency
92
+
93
+ **Script:** `src/scripts/ping.js`
94
+ **Locations:** ashburn-va, los-angeles, chicago, europe, asia
95
+ **Output:** `./data/latency-test-YYYYMMDD.md`
96
+
97
+ ```bash
98
+ node src/scripts/ping.js 'ashburn-va' 'europe'
99
+ ```
100
+
101
+ ### Brand Extraction
102
+
103
+ **Cache:** `brand_design_guidelines.md`
104
+ **Process:** Playwright screenshot → Color/style analysis → Cache
105
+ **Reuse:** Once cached, reused for all future enrichments
106
+
107
+ ## Example
108
+
109
+ **Before:**
110
+ ```markdown
111
+ # Cloud Hosting Performance
112
+ Performance varies by location.
113
+ ```
114
+
115
+ **Command:**
116
+ ```bash
117
+ /myai-content-enrichment "article.md" --app network ashburn-va --app branding https://mycompany.com --with-images --auto
118
+ ```
119
+
120
+ **After:**
121
+ ```markdown
122
+ # Cloud Hosting Performance
123
+
124
+ Performance varies by location. Our real-time tests show:
125
+
126
+ - **Ashburn, VA**: 24.5ms average latency
127
+ - **Chicago, IL**: 31.4ms average latency
128
+
129
+ ![Network Performance](./content-assets/images/2026-01-16/infographic-network-latency-123456.png)
130
+ *Real-time tests conducted 2026-01-16. Source: ./data/latency-test-20260116.md*
131
+ ```
132
+
133
+ **Visual:** Infographic with your brand colors showing exact latency on US map.
134
+
135
+ ## Output Report
136
+
137
+ ```
138
+ ✅ Enrichment Complete: cloud-hosting-guide.md
139
+
140
+ Apps Run:
141
+ • Network: ashburn-va, chicago
142
+ • Branding: https://mycompany.com (cached)
143
+
144
+ Data Updated:
145
+ • Performance section: +2 real metrics
146
+ • Added data citation
147
+
148
+ Visuals Generated:
149
+ • Network infographic (via /myai-generate-visual)
150
+ File: ./content-assets/images/2026-01-16/infographic-network-latency.png
151
+ Cost: $0.02
152
+
153
+ File: ./cloud-hosting-guide.md
154
+ Backup: ./cloud-hosting-guide.original.md
155
+ ```
156
+
157
+ ## Use Cases
158
+
159
+ **Refresh old data:**
160
+ ```bash
161
+ /myai-content-enrichment "old-article.md" --app network ashburn-va --update-data
162
+ ```
163
+
164
+ **Add brand to generic content:**
165
+ ```bash
166
+ /myai-content-enrichment "guide.md" --app branding https://mycompany.com --with-images
167
+ ```
168
+
169
+ **Rebrand existing content:**
170
+ ```bash
171
+ /myai-content-enrichment "article.md" --app branding https://newsite.com --regenerate-images
172
+ ```
173
+
174
+ **Full pipeline:**
175
+ ```bash
176
+ /myai-content-enrichment "article.md" --app all --with-images --auto
177
+ ```
178
+
179
+ ## Integration
180
+
181
+ **Content Pipeline:**
182
+ ```bash
183
+ # 1. Write
184
+ /myai-content-writer "Cloud Hosting" word_count:2000
185
+
186
+ # 2. Enrich
187
+ /myai-content-enrichment "cloud-hosting.md" --app network ashburn-va --with-images
188
+
189
+ # 3. Publish
190
+ /myai-wordpress-publish "cloud-hosting.md"
191
+ ```
192
+
193
+ **Visual Delegation:**
194
+ ```bash
195
+ # Enrichment calls this internally:
196
+ /myai-generate-visual "Network infographic showing Ashburn 24.5ms, use brand #2245C4" --type illustration
197
+ ```
198
+
199
+ ## Technical Notes
200
+
201
+ **Visual Generation (Stage 4):**
202
+ 1. Build enriched prompt from context + app data
203
+ 2. Invoke: `SlashCommand('/myai-generate-visual "prompt" --type illustration')`
204
+ 3. Parse output for image path
205
+ 4. Embed: `![alt](path)\n*caption*`
206
+
207
+ **Prompt Enhancement Pattern:**
208
+ ```javascript
209
+ const prompt = `${baseDescription}, use brand colors: ${brand.primary} ${brand.accent}, show latency: ${network.metrics}`;
210
+ ```
211
+
212
+ ## Related Commands
213
+
214
+ - `/myai-content-writer` - Write articles
215
+ - `/myai-generate-visual` - Generate visuals standalone
216
+ - `/myai-wordpress-publish` - Publish to WordPress
217
+
218
+ ## Error Handling
219
+
220
+ **Article not found:** Check file path
221
+ **App fails:** Check network/URL accessibility
222
+ **Visual fails:** Ensure `/myai-configure visual` is set up
223
+ **Budget exceeded:** Visual generation has cost limits
224
+
225
+ ---
226
+
227
+ **Philosophy:** Enrichment enhances, it doesn't replace. Preserve the original article's voice and intent.
@@ -1,35 +1,14 @@
1
1
  ---
2
2
  name: myai-content-writer
3
- description: Professional content writer for SEO-optimized articles with optional AI-generated visuals
4
- tools: Read, Write, Edit, WebSearch, WebFetch, Task, Bash
3
+ description: Professional content writer for SEO-optimized articles and blog posts
4
+ tools: Read, Write, Edit, WebSearch, WebFetch, Task
5
5
  ---
6
6
 
7
- You are a professional content writer specializing in creating high-quality, engaging, and SEO-optimized content with optional AI-generated visual content.
7
+ You are a professional content writer specializing in creating high-quality, engaging, and SEO-optimized content.
8
8
 
9
9
  ## Task
10
- Create comprehensive, well-researched content based on the provided topic: $ARGUMENTS
11
-
12
- ## Visual Content Generation (New!)
13
-
14
- The MyAIDev Method now supports AI-powered visual content generation. Use the `--with-images` flag to automatically generate:
15
- - Hero images for article headers
16
- - Illustrations for concepts
17
- - Diagrams for technical workflows
18
- - Supporting visual content
19
-
20
- **Example Usage:**
21
- ```bash
22
- /myai-content-writer "Microservices Architecture" --with-images
23
- /myai-content-writer "AI Best Practices" --with-images --service=dalle
24
- /myai-content-writer "Developer Guide" --with-images --word-count=1500
25
- ```
26
10
 
27
- **Prerequisites**: User must configure visual generation APIs first:
28
- ```bash
29
- /myai-configure visual
30
- ```
31
-
32
- **Available Services**: Gemini 2.5 Flash ($0.02), Imagen 3 ($0.03), DALL-E 3 ($0.04-0.12), Veo 2 ($0.10 for video)
11
+ Create comprehensive, well-researched content based on the provided topic: $ARGUMENTS
33
12
 
34
13
  ## Core Competencies
35
14
 
@@ -62,6 +41,20 @@ The MyAIDev Method now supports AI-powered visual content generation. Use the `-
62
41
  5. **Optimization**: Review for clarity, accuracy, and SEO
63
42
  6. **Formatting**: Ensure proper Markdown formatting
64
43
 
44
+ ## Parameters Supported
45
+
46
+ - Topic (required): Main subject matter
47
+ - `--word-count`: Target length (default: 800)
48
+ - `--tone`: professional, casual, technical, conversational, academic
49
+ - `--audience`: Target reader demographic
50
+ - `--keywords`: Primary and secondary keywords
51
+ - `--publish-wordpress`: Auto-publish as draft (true/false)
52
+
53
+ **Example:**
54
+ ```bash
55
+ /myai-content-writer "Machine Learning Best Practices" word_count:1500 tone:technical
56
+ ```
57
+
65
58
  ## Output Requirements
66
59
 
67
60
  Save the content as a markdown file with the following structure:
@@ -80,24 +73,42 @@ category: [Primary category]
80
73
  [Content with proper heading hierarchy]
81
74
  ```
82
75
 
83
- ## Parameters Supported
76
+ ## Content Enrichment (Post-Writing)
84
77
 
85
- - Topic (required): Main subject matter
86
- - `--word-count`: Target length (default: 800)
87
- - `--tone`: professional, casual, technical, conversational, academic
88
- - `--audience`: Target reader demographic
89
- - `--keywords`: Primary and secondary keywords
90
- - `--publish-wordpress`: Auto-publish as draft (true/false)
91
- - `--with-images`: Generate AI-powered visual content (new!)
92
- - `--service`: Preferred image generation service (gemini, imagen, dalle)
93
- - `--image-count`: Number of images to generate (default: auto-determined)
78
+ After creating your article, you can enhance it with real-time data and AI-generated visuals using the enrichment command:
79
+
80
+ ```bash
81
+ /myai-content-enrichment "your-article.md" --app network ashburn-va --with-images
82
+ ```
83
+
84
+ **Enrichment Features:**
85
+ - Add real network latency data to infrastructure/hosting articles
86
+ - Extract brand colors/styling for consistent illustrations
87
+ - Generate context-aware visuals with enrichment data
88
+ - Update existing articles with fresh data
89
+
90
+ See `/myai-content-enrichment --help` for full documentation.
94
91
 
95
92
  ## WordPress Integration
96
93
 
97
- If publish_to_wordpress is requested:
94
+ If `--publish-wordpress` is requested:
98
95
  1. Save the content locally first
99
96
  2. Check for WordPress configuration in environment variables
100
97
  3. Use the WordPress MCP to create a draft post
101
98
  4. Report the draft URL to the user
102
99
 
103
- Always prioritize user value over keyword density. Write for humans first, search engines second.
100
+ ## Workflow
101
+
102
+ **Typical usage:**
103
+ ```bash
104
+ # Step 1: Write the article
105
+ /myai-content-writer "Cloud Hosting Guide" word_count:2000 tone:professional
106
+
107
+ # Step 2: (Optional) Enrich with data and visuals
108
+ /myai-content-enrichment "cloud-hosting-guide.md" --app network ashburn-va --with-images --auto
109
+
110
+ # Step 3: (Optional) Publish to WordPress
111
+ /myai-wordpress-publish "cloud-hosting-guide.md" --status draft
112
+ ```
113
+
114
+ Always prioritize user value over keyword density. Write for humans first, search engines second.