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,147 @@
1
+ ---
2
+ name: visual-generator
3
+ description: Generate high-quality images and videos using AI APIs (Gemini, Imagen, DALL-E, FLUX, Veo)
4
+ argument-hint: [prompt] [--type=hero] [--service=gemini]
5
+ allowed-tools: [Read, Write, Bash, Task]
6
+ user-invocable: true
7
+ category: visual
8
+ version: 1.0.0
9
+ platforms: [claude-code, gemini-cli, codex-cli]
10
+ ---
11
+
12
+ # Visual Generator Skill
13
+
14
+ Generate high-quality images and videos for content creation using AI generation APIs (Google Gemini Flash, Imagen 3, DALL-E 3, FLUX 2 Pro, Veo 3).
15
+
16
+ ## Capabilities
17
+
18
+ - Hero images for articles and landing pages
19
+ - Technical diagrams and architecture illustrations
20
+ - Infographics (data, process, comparison, timeline)
21
+ - Screenshots and UI mockups
22
+ - Video content for demos and tutorials
23
+
24
+ ## Supported Services
25
+
26
+ | Service | Type | Cost | Best For |
27
+ |---------|------|------|----------|
28
+ | Gemini 2.5 Flash | Image | $0.02 | Fast, diagrams, general use |
29
+ | Imagen 3 | Image | $0.03 | Premium quality heroes |
30
+ | DALL-E 3 | Image | $0.04-0.12 | Creative, artistic |
31
+ | GPT Image 1.5 | Image | $0.02 | Text-heavy visuals |
32
+ | FLUX 2 Pro | Image | $0.03 | Detailed illustrations |
33
+ | Veo 3 | Video | $0.10 | Product demos, tutorials |
34
+
35
+ ## Image Types
36
+
37
+ | Type | Description | Recommended Service |
38
+ |------|-------------|---------------------|
39
+ | `hero` | Article header, main theme | FLUX 2 Pro / Imagen |
40
+ | `illustration` | Abstract concepts, metaphors | FLUX 2 Pro |
41
+ | `diagram` | Technical workflows, architecture | Gemini |
42
+ | `screenshot` | UI mockups, interface designs | GPT Image 1.5 |
43
+ | `infographic-data` | Statistics, metrics, charts | GPT Image 1.5 |
44
+ | `infographic-process` | Step flows, workflows | FLUX 2 Pro |
45
+ | `infographic-comparison` | Side-by-side comparisons | GPT Image 1.5 |
46
+ | `infographic-timeline` | Chronological events | FLUX 2 Pro |
47
+ | `architecture-diagram` | System design, tech stacks | Gemini |
48
+ | `flowchart` | Decision trees, processes | Gemini |
49
+ | `sequence-diagram` | API/service interactions | Gemini |
50
+ | `video` | Product demos, tutorials | Veo 3 |
51
+
52
+ ## Prerequisites
53
+
54
+ - At least one API key configured:
55
+ - `GOOGLE_API_KEY` (for Gemini, Imagen, Veo)
56
+ - `OPENAI_API_KEY` (for DALL-E, GPT Image)
57
+ - `FAL_KEY` (for FLUX 2 Pro)
58
+
59
+ Run `/myai-configure visual` to set up API keys.
60
+
61
+ ## Process
62
+
63
+ 1. **Configuration Check**: Verify API keys are configured
64
+ 2. **Requirements Gathering**: Collect prompt, type, and preferences
65
+ 3. **Cost Estimation**: Show estimated cost and check budget
66
+ 4. **Generation**: Generate image/video using selected service
67
+ 5. **Asset Management**: Save to organized directory structure
68
+ 6. **Markdown Reference**: Return embed code for content
69
+
70
+ ## File Organization
71
+
72
+ ```
73
+ content-assets/
74
+ ├── images/
75
+ │ └── YYYY-MM-DD/
76
+ │ └── {type}-{description}-{id}.png
77
+ └── videos/
78
+ └── YYYY-MM-DD/
79
+ └── video-{description}-{id}.mp4
80
+ ```
81
+
82
+ ## Parameters
83
+
84
+ | Parameter | Description | Default |
85
+ |-----------|-------------|---------|
86
+ | `prompt` | What the image/video should depict | Required |
87
+ | `--type` | Image type (see table above) | hero |
88
+ | `--service` | Preferred generation service | auto |
89
+ | `--quality` | low, medium, high | medium |
90
+ | `--size` | 1024x1024, 1792x1024, 1024x1792 | 1024x1024 |
91
+ | `--description` | Short description for filename | auto |
92
+
93
+ ## Budget Management
94
+
95
+ The skill tracks daily and monthly spending:
96
+ - Default daily budget: $5.00
97
+ - Default monthly budget: $50.00
98
+
99
+ Configure limits in `.env`:
100
+ ```
101
+ VISUAL_DAILY_BUDGET=10.00
102
+ VISUAL_MONTHLY_BUDGET=100.00
103
+ ```
104
+
105
+ ## HTML Conversion Alternative
106
+
107
+ For data-driven visuals requiring pixel-perfect accuracy, use HTML conversion instead of AI generation:
108
+
109
+ | Use Case | Tool |
110
+ |----------|------|
111
+ | Exact numbers/data | HTML Conversion |
112
+ | Precise text labels | HTML/D2 Conversion |
113
+ | Charts and graphs | HTML Conversion |
114
+ | Creative/artistic | AI Generation |
115
+
116
+ ## Example Usage
117
+
118
+ ```bash
119
+ # Basic hero image
120
+ /myaidev-method:generate-visual "Modern developer workspace" --type=hero
121
+
122
+ # Technical diagram
123
+ /myaidev-method:generate-visual "Microservices architecture with API gateway" --type=architecture-diagram --service=gemini
124
+
125
+ # Data infographic
126
+ /myaidev-method:generate-visual "5 Key API Metrics: Latency <50ms, Uptime 99.99%" --type=infographic-data --service=gpt-image-1.5
127
+
128
+ # Video content
129
+ /myaidev-method:generate-visual "Product demo showing login flow" --type=video --service=veo3
130
+
131
+ # Legacy command
132
+ /myai-generate-visual "Abstract AI concept" --type=illustration
133
+ ```
134
+
135
+ ## Integration
136
+
137
+ - Works with `/myaidev-method:content-writer` via `--with-images` flag
138
+ - Automatic asset organization and cost tracking
139
+ - Markdown reference generation for easy embedding
140
+
141
+ ## Error Handling
142
+
143
+ - Rate limiting: Wait 60 seconds and retry, or switch service
144
+ - Budget exceeded: Shows usage and suggests increasing limits
145
+ - API errors: Provides helpful guidance and alternatives
146
+
147
+ Always prioritize user experience, cost transparency, and quality results.
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: wordpress-publisher
3
+ description: Publish and manage content on WordPress sites with full REST API integration
4
+ argument-hint: [file.md] [--status=draft] [--category=blog]
5
+ allowed-tools: [Read, Write, Bash, mcp__myaidev__wp_*]
6
+ user-invocable: true
7
+ category: publishing
8
+ version: 1.0.0
9
+ platforms: [claude-code, gemini-cli, codex-cli]
10
+ ---
11
+
12
+ # WordPress Publisher Skill
13
+
14
+ Publish and manage content on WordPress sites using the WordPress REST API with session management and full MCP integration.
15
+
16
+ ## Capabilities
17
+
18
+ - Publish markdown content as WordPress posts/pages
19
+ - Create drafts for review before publishing
20
+ - Manage categories, tags, and featured images
21
+ - Update existing posts
22
+ - Session management for secure API access
23
+ - Health checks and connection validation
24
+
25
+ ## Prerequisites
26
+
27
+ Configure WordPress credentials:
28
+
29
+ ```bash
30
+ /myai-configure wordpress
31
+ ```
32
+
33
+ Or set environment variables:
34
+ ```
35
+ WORDPRESS_URL=https://your-site.com
36
+ WORDPRESS_USERNAME=your-username
37
+ WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
38
+ ```
39
+
40
+ ### Creating an Application Password
41
+
42
+ 1. Log into WordPress admin
43
+ 2. Go to Users → Profile
44
+ 3. Scroll to "Application Passwords"
45
+ 4. Enter a name (e.g., "MyAIDev Method")
46
+ 5. Click "Add New Application Password"
47
+ 6. Copy the generated password (shown only once)
48
+
49
+ ## MCP Tools Available
50
+
51
+ | Tool | Description |
52
+ |------|-------------|
53
+ | `wp_session_create` | Create authenticated session |
54
+ | `wp_health_check` | Verify connection and authentication |
55
+ | `wp_create_post` | Create new post from markdown |
56
+ | `wp_update_post` | Update existing post |
57
+ | `wp_get_posts` | List posts with filters |
58
+ | `wp_get_categories` | Get available categories |
59
+ | `wp_get_tags` | Get available tags |
60
+ | `wp_upload_media` | Upload images/media |
61
+ | `wp_memory_store` | Store session data |
62
+
63
+ ## Process
64
+
65
+ 1. **Session Creation**: Authenticate with WordPress
66
+ 2. **Content Parsing**: Extract frontmatter and content from markdown
67
+ 3. **Media Upload**: Upload any referenced images
68
+ 4. **Post Creation**: Create post via REST API
69
+ 5. **Verification**: Confirm successful publication
70
+ 6. **URL Return**: Provide the published/draft URL
71
+
72
+ ## Markdown Format
73
+
74
+ Content should include frontmatter:
75
+
76
+ ```markdown
77
+ ---
78
+ title: Your Post Title
79
+ meta_description: SEO description (optional)
80
+ slug: url-friendly-slug (optional)
81
+ category: Blog (optional)
82
+ tags: [tag1, tag2] (optional)
83
+ featured_image: ./path/to/image.png (optional)
84
+ ---
85
+
86
+ # Your Post Title
87
+
88
+ Your content here...
89
+ ```
90
+
91
+ ## Parameters
92
+
93
+ | Parameter | Description | Default |
94
+ |-----------|-------------|---------|
95
+ | `file` | Path to markdown file | Required |
96
+ | `--status` | draft, publish, pending, private | draft |
97
+ | `--category` | Post category | Uncategorized |
98
+ | `--tags` | Comma-separated tags | none |
99
+ | `--author` | Author ID | current user |
100
+ | `--featured-image` | Path to featured image | none |
101
+
102
+ ## Example Usage
103
+
104
+ ```bash
105
+ # Publish as draft
106
+ /myaidev-method:wordpress-publish "./content/my-article.md" --status=draft
107
+
108
+ # Publish immediately
109
+ /myaidev-method:wordpress-publish "./content/my-article.md" --status=publish --category=tutorials
110
+
111
+ # With featured image
112
+ /myaidev-method:wordpress-publish "./content/my-article.md" --featured-image="./images/hero.png"
113
+
114
+ # Legacy command
115
+ /myai-wordpress-publish "./content/my-article.md"
116
+ ```
117
+
118
+ ## Integration
119
+
120
+ - Works with `/myaidev-method:content-writer` via `--publish-wordpress` flag
121
+ - Works with `/myaidev-method:coordinate-content` for batch publishing
122
+ - Supports content verification before publishing
123
+
124
+ ## Gutenberg Block Support
125
+
126
+ The publisher automatically converts markdown to Gutenberg blocks:
127
+
128
+ - Headings → `core/heading`
129
+ - Paragraphs → `core/paragraph`
130
+ - Code blocks → `core/code`
131
+ - Images → `core/image`
132
+ - Lists → `core/list`
133
+ - Blockquotes → `core/quote`
134
+ - Tables → `core/table`
135
+
136
+ ## Error Handling
137
+
138
+ | Error | Solution |
139
+ |-------|----------|
140
+ | 401 Unauthorized | Check credentials, regenerate app password |
141
+ | 403 Forbidden | Verify user has publish_posts capability |
142
+ | Connection refused | Check WordPress URL and server status |
143
+ | Media upload failed | Check file permissions and upload limits |
144
+
145
+ ## Security Notes
146
+
147
+ - Never commit credentials to version control
148
+ - Use application passwords instead of main password
149
+ - Store credentials in `.env` file (add to `.gitignore`)
150
+ - Use HTTPS for all WordPress connections