myaidev-method 0.2.11 → 0.2.15
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/.claude/CLAUDE.md +46 -0
- package/.claude/agents/content-production-coordinator.md +111 -0
- package/.claude/agents/proprietary-content-verifier.md +96 -0
- package/.claude/agents/visual-content-generator.md +520 -0
- package/.claude/commands/myai-coordinate-content.md +136 -0
- package/.claude/settings.local.json +3 -2
- package/.env.example +33 -0
- package/CHANGELOG.md +228 -0
- package/CONTENT_CREATION_GUIDE.md +3399 -0
- package/DEVELOPER_USE_CASES.md +2085 -0
- package/README.md +234 -2
- package/USER_GUIDE.md +156 -0
- package/VISUAL_GENERATION_FILE_ORGANIZATION.md +105 -0
- package/bin/cli.js +222 -0
- package/package.json +19 -3
- package/src/lib/asset-management.js +532 -0
- package/src/lib/update-manager.js +385 -0
- package/src/lib/visual-config-utils.js +424 -0
- package/src/lib/visual-generation-utils.js +668 -0
- package/src/scripts/configure-visual-apis.js +413 -0
- package/src/scripts/generate-visual-cli.js +279 -0
- package/src/templates/claude/agents/content-production-coordinator.md +111 -0
- package/src/templates/claude/agents/content-writer.md +209 -4
- package/src/templates/claude/agents/proprietary-content-verifier.md +96 -0
- package/src/templates/claude/agents/visual-content-generator.md +520 -0
- package/src/templates/claude/commands/myai-content-writer.md +33 -8
- package/src/templates/claude/commands/myai-coordinate-content.md +136 -0
- package/src/templates/claude/commands/myai-generate-visual.md +318 -0
- package/src/templates/codex/commands/myai-generate-visual.md +307 -0
- package/src/templates/gemini/commands/myai-generate-visual.md +200 -0
package/README.md
CHANGED
|
@@ -29,9 +29,12 @@ The **MyAIDev Method** is a complete development framework for AI CLI tools (Cla
|
|
|
29
29
|
- [Features](#features)
|
|
30
30
|
- [Installation](#installation)
|
|
31
31
|
- [Quick Start](#quick-start)
|
|
32
|
+
- [Updating](#updating)
|
|
33
|
+
- [Developer Use Cases](#developer-use-cases)
|
|
32
34
|
- [SPARC Development Workflow](#sparc-development-workflow)
|
|
33
35
|
- [Development Agents](#development-agents)
|
|
34
36
|
- [Content & Publishing Agents](#content--publishing-agents)
|
|
37
|
+
- [Visual Content Generation](#visual-content-generation)
|
|
35
38
|
- [Slash Commands](#slash-commands)
|
|
36
39
|
- [MCP Server Integration](#mcp-server-integration)
|
|
37
40
|
- [Configuration](#configuration)
|
|
@@ -60,11 +63,21 @@ The **MyAIDev Method** is a complete development framework for AI CLI tools (Cla
|
|
|
60
63
|
- **File-Based Workflow**: Sequential agent coordination with `.myaidev-method/sparc/` outputs
|
|
61
64
|
|
|
62
65
|
### 📝 Content & Publishing
|
|
63
|
-
- **Content Writer Agent**: Professional SEO-optimized content creation
|
|
66
|
+
- **Content Writer Agent**: Professional SEO-optimized content creation with optional AI-generated visuals
|
|
64
67
|
- **Multi-Platform Publishing**: WordPress, PayloadCMS, Docusaurus, Mintlify, Astro
|
|
65
68
|
- **Git-Based Workflows**: Automated publishing for static site generators
|
|
66
69
|
- **WordPress Admin Agent**: Security, performance, health monitoring, and administration
|
|
67
70
|
|
|
71
|
+
### 🎨 Visual Content Generation (New in v0.2.14!)
|
|
72
|
+
- **AI-Powered Image Generation**: Google Gemini 2.5 Flash, Imagen 3, OpenAI DALL-E 3
|
|
73
|
+
- **AI-Powered Video Generation**: Google Veo 2 (up to 8 seconds, 720p)
|
|
74
|
+
- **Multi-Platform Support**: Works with Claude Code, Gemini CLI, and Codex CLI
|
|
75
|
+
- **Budget Management**: Daily/monthly limits, cost tracking, and warnings
|
|
76
|
+
- **Smart Service Selection**: Automatic service selection based on content type
|
|
77
|
+
- **Content Integration**: Generate images during content creation with `--with-images` flag
|
|
78
|
+
- **Cost-Effective**: Starting at $0.02/image (Gemini Flash)
|
|
79
|
+
- **Organized Storage**: Automatic file organization by date in `content-assets/`
|
|
80
|
+
|
|
68
81
|
### 🚀 Deployment & Infrastructure
|
|
69
82
|
- **Coolify Integration**: Self-hosted PaaS deployment and orchestration
|
|
70
83
|
- **RamNode Optimized**: Deployment patterns optimized for RamNode.com infrastructure
|
|
@@ -134,6 +147,83 @@ npx myaidev-method@latest init
|
|
|
134
147
|
/myai-wordpress-admin health-check
|
|
135
148
|
```
|
|
136
149
|
|
|
150
|
+
## 🔄 Updating
|
|
151
|
+
|
|
152
|
+
Keep your MyAIDev Method installation up to date with the latest features and bug fixes:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# Interactive update (recommended) - prompts for conflicts
|
|
156
|
+
npx myaidev-method@latest update --claude
|
|
157
|
+
|
|
158
|
+
# Force update - overwrites all files
|
|
159
|
+
npx myaidev-method@latest update --claude --force
|
|
160
|
+
|
|
161
|
+
# Preview changes without updating
|
|
162
|
+
npx myaidev-method@latest update --claude --dry-run
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The update command:
|
|
166
|
+
- ✅ Detects your current version
|
|
167
|
+
- ✅ Updates commands, agents, scripts, and documentation
|
|
168
|
+
- ✅ Preserves your customizations (interactive conflict resolution)
|
|
169
|
+
- ✅ Creates automatic backups before updating
|
|
170
|
+
- ✅ Installs updated dependencies
|
|
171
|
+
|
|
172
|
+
See [USER_GUIDE.md - Updating Section](USER_GUIDE.md#-updating-myaidev-method) for detailed update instructions and best practices.
|
|
173
|
+
|
|
174
|
+
## 💡 Developer Use Cases
|
|
175
|
+
|
|
176
|
+
**New!** See real-world scenarios demonstrating how MyAIDev Method supercharges development workflows:
|
|
177
|
+
|
|
178
|
+
📖 **[DEVELOPER_USE_CASES.md](DEVELOPER_USE_CASES.md)** - Comprehensive guide featuring:
|
|
179
|
+
|
|
180
|
+
- **Full-Stack SaaS Development**: Build production-ready apps in days instead of weeks
|
|
181
|
+
- **Microservices Refactoring**: Zero-downtime migrations with systematic strategies
|
|
182
|
+
- **Technical Content Pipeline**: 4x content output with multi-platform publishing
|
|
183
|
+
- **Database Migrations**: Safe migrations with rollback capabilities
|
|
184
|
+
- **Team Collaboration**: Automated code reviews and knowledge bases
|
|
185
|
+
- **ROI Analysis**: Real productivity metrics and time savings
|
|
186
|
+
|
|
187
|
+
**Examples with Time Savings**:
|
|
188
|
+
- Full-stack feature: 120 hours → 24 hours (80% faster)
|
|
189
|
+
- Technical blog post: 12 hours → 2-3 hours (75% faster)
|
|
190
|
+
- Code review: 45 minutes → 10 minutes (78% faster)
|
|
191
|
+
- Developer onboarding: 2 weeks → 2 days (90% faster)
|
|
192
|
+
|
|
193
|
+
Each use case includes:
|
|
194
|
+
- Traditional vs MyAIDev approach comparison
|
|
195
|
+
- Complete code examples and commands
|
|
196
|
+
- Quantified time savings and quality improvements
|
|
197
|
+
- Integration patterns and best practices
|
|
198
|
+
|
|
199
|
+
## 📝 Content Creation for Marketers
|
|
200
|
+
|
|
201
|
+
**New!** Discover how marketers and content creators can leverage MyAIDev Method for efficient, high-quality content production:
|
|
202
|
+
|
|
203
|
+
📖 **[CONTENT_CREATION_GUIDE.md](CONTENT_CREATION_GUIDE.md)** - Complete marketing workflow guide featuring:
|
|
204
|
+
|
|
205
|
+
- **4-Phase Content Pipeline**: Ideation → Generation → Publishing → Optimization
|
|
206
|
+
- **AI Content Generation**: Professional blog posts, tutorials, case studies, and technical content
|
|
207
|
+
- **Multi-Platform Publishing**: WordPress, PayloadCMS, LinkedIn, email newsletters in one workflow
|
|
208
|
+
- **Hub-and-Spoke Distribution**: Single content piece adapted for multiple channels
|
|
209
|
+
- **SEO Optimization**: Keyword research, LSI integration, meta descriptions
|
|
210
|
+
- **Where AI Excels vs Human Input**: Clear guidance on AI capabilities and limitations
|
|
211
|
+
- **8 Common Pitfalls**: Detailed explanations and solutions to avoid content marketing mistakes
|
|
212
|
+
|
|
213
|
+
**Examples with Time Savings**:
|
|
214
|
+
- Blog post (2,500 words): 12 hours → 2-3 hours (75% faster)
|
|
215
|
+
- Technical tutorial series: 40 hours → 8 hours (80% faster)
|
|
216
|
+
- Multi-platform distribution: 6 hours → 30 minutes (92% faster)
|
|
217
|
+
- SEO research and optimization: 4 hours → 45 minutes (81% faster)
|
|
218
|
+
|
|
219
|
+
**Content Templates Included**:
|
|
220
|
+
- Long-form educational blog posts
|
|
221
|
+
- Technical tutorials with code examples
|
|
222
|
+
- Product announcements and release notes
|
|
223
|
+
- Case studies with metrics and results
|
|
224
|
+
- LinkedIn thought leadership articles
|
|
225
|
+
- Email newsletters
|
|
226
|
+
|
|
137
227
|
## 🏗️ SPARC Development Workflow
|
|
138
228
|
|
|
139
229
|
The **MyAIDev Method** implements the **SPARC methodology** - a systematic 5-phase approach to software development inspired by [GitHub Spec-Kit](https://github.com/github/spec-kit) patterns for agentic software development.
|
|
@@ -480,18 +570,129 @@ Self-hosted PaaS deployment for applications.
|
|
|
480
570
|
- Resource management
|
|
481
571
|
- Multi-environment support
|
|
482
572
|
|
|
573
|
+
## 🎨 Visual Content Generation
|
|
574
|
+
|
|
575
|
+
**New in v0.2.14!** Generate AI-powered images and videos for your content using Google AI (Gemini, Imagen, Veo) and OpenAI (DALL-E) services.
|
|
576
|
+
|
|
577
|
+
### Features
|
|
578
|
+
|
|
579
|
+
- **Image Generation**: Google Gemini 2.5 Flash ($0.02), Imagen 3 ($0.03), DALL-E 3 ($0.04-0.12)
|
|
580
|
+
- **Video Generation**: Google Veo 2 ($0.10 for up to 8 seconds, 720p)
|
|
581
|
+
- **Multi-Platform**: Works with Claude Code, Gemini CLI, and Codex CLI
|
|
582
|
+
- **Budget Management**: Daily/monthly limits, cost tracking, and warnings
|
|
583
|
+
- **Smart Organization**: Automatic file storage by date in `content-assets/`
|
|
584
|
+
- **Content Integration**: Generate images during content creation with `--with-images` flag
|
|
585
|
+
|
|
586
|
+
### Setup
|
|
587
|
+
|
|
588
|
+
1. **Configure Visual APIs** (one-time setup):
|
|
589
|
+
```bash
|
|
590
|
+
# Claude Code
|
|
591
|
+
/myai-configure visual
|
|
592
|
+
|
|
593
|
+
# Gemini CLI / Codex CLI
|
|
594
|
+
npm run configure:visual
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
2. **Follow the interactive wizard** to set up:
|
|
598
|
+
- Google AI API key (for Gemini, Imagen, Veo)
|
|
599
|
+
- OpenAI API key (for DALL-E)
|
|
600
|
+
- Default service preference
|
|
601
|
+
- Daily and monthly budget limits
|
|
602
|
+
|
|
603
|
+
### Usage
|
|
604
|
+
|
|
605
|
+
#### Claude Code
|
|
606
|
+
```bash
|
|
607
|
+
# Generate a hero image
|
|
608
|
+
/myai-generate-visual "Modern developer workspace with dual monitors"
|
|
609
|
+
|
|
610
|
+
# Generate with specific service
|
|
611
|
+
/myai-generate-visual "AI concept illustration" --service dalle --type illustration
|
|
612
|
+
|
|
613
|
+
# Generate diagram
|
|
614
|
+
/myai-generate-visual "Microservices architecture" --type diagram --service gemini
|
|
615
|
+
|
|
616
|
+
# Create content with images
|
|
617
|
+
/myai-content-writer "Best Practices for Remote Work" --with-images
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
#### Gemini CLI / Codex CLI
|
|
621
|
+
```bash
|
|
622
|
+
# Generate a hero image
|
|
623
|
+
npm run generate-visual "Modern developer workspace"
|
|
624
|
+
|
|
625
|
+
# Generate with options
|
|
626
|
+
npm run generate-visual "System architecture" -- --type=diagram --service=gemini
|
|
627
|
+
|
|
628
|
+
# Configure visual APIs
|
|
629
|
+
npm run configure:visual
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### Service Comparison
|
|
633
|
+
|
|
634
|
+
| Service | Speed | Cost | Quality | Best For |
|
|
635
|
+
|---------|-------|------|---------|----------|
|
|
636
|
+
| **Gemini 2.5 Flash** | ⚡⚡⚡ | $0.02 | Good | Quick hero images, diagrams, high volume |
|
|
637
|
+
| **Imagen 3** | ⚡⚡ | $0.03 | Excellent | Premium hero images, high-quality visuals |
|
|
638
|
+
| **DALL-E 3** | ⚡⚡ | $0.04-0.12 | Excellent | Creative illustrations, detailed designs |
|
|
639
|
+
| **Veo 2** | ⚡ | $0.10 | Good | Product demos, short videos |
|
|
640
|
+
|
|
641
|
+
### Image Types
|
|
642
|
+
|
|
643
|
+
- `hero` - Article header images (recommended: 1792x1024)
|
|
644
|
+
- `illustration` - Abstract concepts and metaphors
|
|
645
|
+
- `diagram` - Technical workflows and architecture
|
|
646
|
+
- `screenshot` - UI mockups and interface designs
|
|
647
|
+
- `video` - Product demos and tutorials (Veo 2 only)
|
|
648
|
+
|
|
649
|
+
### Budget Management
|
|
650
|
+
|
|
651
|
+
The system automatically tracks costs and enforces budget limits:
|
|
652
|
+
- **Daily Budget**: Configurable limit (default: $5.00)
|
|
653
|
+
- **Monthly Budget**: Configurable limit (default: $50.00)
|
|
654
|
+
- **Warning Threshold**: Alert at 80% usage
|
|
655
|
+
- **Usage Tracking**: Stored in `.visual-usage-stats.json`
|
|
656
|
+
|
|
657
|
+
### File Organization
|
|
658
|
+
|
|
659
|
+
Generated files are automatically organized by date:
|
|
660
|
+
```
|
|
661
|
+
content-assets/
|
|
662
|
+
├── images/
|
|
663
|
+
│ └── 2025-11-19/
|
|
664
|
+
│ ├── hero-workspace-123456.png
|
|
665
|
+
│ └── diagram-architecture-234567.png
|
|
666
|
+
└── videos/
|
|
667
|
+
└── 2025-11-19/
|
|
668
|
+
└── video-demo-345678.mp4
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
### Documentation
|
|
672
|
+
|
|
673
|
+
For comprehensive documentation, see:
|
|
674
|
+
- **VISUAL_CONTENT_GENERATION_GUIDE.md** - Complete user guide
|
|
675
|
+
- **VISUAL_GENERATION_FILE_ORGANIZATION.md** - File structure details
|
|
676
|
+
- **CONTENT_CREATION_GUIDE.md** - Content workflow integration
|
|
677
|
+
|
|
483
678
|
## 🎯 Slash Commands
|
|
484
679
|
|
|
485
680
|
### `/myai-content-writer`
|
|
486
|
-
Create professional, SEO-optimized content.
|
|
681
|
+
Create professional, SEO-optimized content with optional AI-generated visuals.
|
|
487
682
|
|
|
488
683
|
```bash
|
|
489
684
|
# Basic usage
|
|
490
685
|
/myai-content-writer "Best Practices for Remote Work"
|
|
491
686
|
|
|
687
|
+
# With AI-generated images (new!)
|
|
688
|
+
/myai-content-writer "Best Practices for Remote Work" --with-images
|
|
689
|
+
|
|
492
690
|
# With parameters
|
|
493
691
|
/myai-content-writer "AI in Healthcare" --word_count 1500 --tone technical --audience "healthcare professionals"
|
|
494
692
|
|
|
693
|
+
# With images and specific service
|
|
694
|
+
/myai-content-writer "Microservices Guide" --with-images --service gemini
|
|
695
|
+
|
|
495
696
|
# With WordPress publishing
|
|
496
697
|
/myai-content-writer "Summer Garden Tips" --publish_to_wordpress true
|
|
497
698
|
```
|
|
@@ -503,6 +704,37 @@ Create professional, SEO-optimized content.
|
|
|
503
704
|
- `audience`: Target reader demographic
|
|
504
705
|
- `seo_keywords`: Array of keywords for optimization
|
|
505
706
|
- `publish_to_wordpress`: Auto-publish as draft (true/false)
|
|
707
|
+
- `--with-images`: Generate AI-powered images (new!)
|
|
708
|
+
- `--service`: Preferred image service (gemini, imagen, dalle)
|
|
709
|
+
|
|
710
|
+
### `/myai-generate-visual`
|
|
711
|
+
Generate AI-powered images and videos for content.
|
|
712
|
+
|
|
713
|
+
```bash
|
|
714
|
+
# Generate a hero image (auto-selects best service)
|
|
715
|
+
/myai-generate-visual "Modern developer workspace with dual monitors"
|
|
716
|
+
|
|
717
|
+
# Generate with specific service
|
|
718
|
+
/myai-generate-visual "AI concept illustration" --service dalle --type illustration
|
|
719
|
+
|
|
720
|
+
# Generate diagram
|
|
721
|
+
/myai-generate-visual "Microservices architecture" --type diagram --service gemini
|
|
722
|
+
|
|
723
|
+
# Generate HD image
|
|
724
|
+
/myai-generate-visual "Product mockup" --quality hd --size 1792x1024
|
|
725
|
+
|
|
726
|
+
# Generate video (Veo 2)
|
|
727
|
+
/myai-generate-visual "Product demo walkthrough" --type video --service veo
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
**Parameters:**
|
|
731
|
+
- `prompt` (required): Description of the image/video to generate
|
|
732
|
+
- `--type`: Image type (hero, illustration, diagram, screenshot, video)
|
|
733
|
+
- `--service`: Preferred service (gemini, imagen, dalle, veo)
|
|
734
|
+
- `--quality`: Quality level (standard, hd)
|
|
735
|
+
- `--size`: Image dimensions (1024x1024, 1792x1024, 1024x1792)
|
|
736
|
+
|
|
737
|
+
**Prerequisites:** Run `/myai-configure visual` first to set up API keys and budgets.
|
|
506
738
|
|
|
507
739
|
### `/myai-wordpress-admin`
|
|
508
740
|
Comprehensive WordPress site administration.
|
package/USER_GUIDE.md
CHANGED
|
@@ -7,6 +7,7 @@ This guide covers everything you need to know about using, customizing, and exte
|
|
|
7
7
|
## 📋 Table of Contents
|
|
8
8
|
|
|
9
9
|
- [Quick Start](#quick-start)
|
|
10
|
+
- [Updating MyAIDev Method](#-updating-myaidev-method)
|
|
10
11
|
- [Understanding the Structure](#understanding-the-structure)
|
|
11
12
|
- [👤 User Pathways](#-user-pathways)
|
|
12
13
|
- [Content Creator Pathway](#content-creator-pathway)
|
|
@@ -98,6 +99,161 @@ You'll have a `.claude` folder in your project:
|
|
|
98
99
|
/myai-configure agents --list
|
|
99
100
|
```
|
|
100
101
|
|
|
102
|
+
## 🔄 Updating MyAIDev Method
|
|
103
|
+
|
|
104
|
+
The MyAIDev Method package receives regular updates with new features, bug fixes, and improved agents. Keep your installation up to date to access the latest capabilities.
|
|
105
|
+
|
|
106
|
+
### Checking for Updates
|
|
107
|
+
|
|
108
|
+
Your current installation version is stored in `.claude/.myaidev-version`. When new versions are published to npm, you can update using the dedicated update command.
|
|
109
|
+
|
|
110
|
+
### Running Updates
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Interactive update (recommended) - prompts for conflicts
|
|
114
|
+
npx myaidev-method@latest update --claude
|
|
115
|
+
|
|
116
|
+
# Force update - overwrites all files without prompting
|
|
117
|
+
npx myaidev-method@latest update --claude --force
|
|
118
|
+
|
|
119
|
+
# Preview changes - see what would be updated without making changes
|
|
120
|
+
npx myaidev-method@latest update --claude --dry-run
|
|
121
|
+
|
|
122
|
+
# Verbose output - show detailed progress
|
|
123
|
+
npx myaidev-method@latest update --claude --verbose
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### What Gets Updated
|
|
127
|
+
|
|
128
|
+
The update command updates all MyAIDev Method components:
|
|
129
|
+
|
|
130
|
+
- ✅ **Slash commands** (`.claude/commands/`) - New commands and improvements
|
|
131
|
+
- ✅ **Agent definitions** (`.claude/agents/`) - Enhanced prompts and capabilities
|
|
132
|
+
- ✅ **Executable scripts** (`.myaidev-method/scripts/`) - Bug fixes and new features
|
|
133
|
+
- ✅ **Utility libraries** (`.myaidev-method/lib/`) - Helper functions and utilities
|
|
134
|
+
- ✅ **Documentation files** (`USER_GUIDE.md`, `PUBLISHING_GUIDE.md`, etc.) - Updated guides
|
|
135
|
+
- ✅ **MCP configurations** (`.claude/mcp/`) - Server configurations and integrations
|
|
136
|
+
- ✅ **Dependencies** (`.myaidev-method/package.json`) - npm package updates
|
|
137
|
+
|
|
138
|
+
### Handling Customizations
|
|
139
|
+
|
|
140
|
+
If you've customized agents or commands, the update process intelligently handles conflicts:
|
|
141
|
+
|
|
142
|
+
1. **Detection**: The update command detects which files you've modified
|
|
143
|
+
2. **Diff Display**: Shows you the differences between your version and the new version
|
|
144
|
+
3. **User Choice**: You decide what to do for each modified file:
|
|
145
|
+
- **Keep current** - Skip this update, preserve your customizations
|
|
146
|
+
- **Use new version** - Overwrite with the latest version
|
|
147
|
+
- **View diff** - See detailed line-by-line differences
|
|
148
|
+
- **Keep + backup** - Update to new version and save your current version as `.bak`
|
|
149
|
+
|
|
150
|
+
Example update session:
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
$ npx myaidev-method@latest update --claude
|
|
154
|
+
|
|
155
|
+
🔍 Detecting MyAIDev Method installation...
|
|
156
|
+
|
|
157
|
+
✓ Found claude installation
|
|
158
|
+
Current version: 0.2.11
|
|
159
|
+
Latest version: 0.2.12
|
|
160
|
+
|
|
161
|
+
⚠️ This will update your MyAIDev Method installation
|
|
162
|
+
Modified files will require your confirmation
|
|
163
|
+
|
|
164
|
+
? Continue with update? Yes
|
|
165
|
+
|
|
166
|
+
💾 Creating backup...
|
|
167
|
+
✓ Backup created at: .myaidev-method-backup-2025-11-10T20-59-00
|
|
168
|
+
|
|
169
|
+
📦 Updating components...
|
|
170
|
+
|
|
171
|
+
Commands:
|
|
172
|
+
➕ myai-new-feature.md (new)
|
|
173
|
+
✓ myai-git-pr.md (unchanged)
|
|
174
|
+
|
|
175
|
+
Agents:
|
|
176
|
+
📝 content-writer.md has been modified
|
|
177
|
+
? What would you like to do?
|
|
178
|
+
❯ Keep current version (skip update)
|
|
179
|
+
Use new version (overwrite)
|
|
180
|
+
View diff
|
|
181
|
+
Keep current + backup (.bak)
|
|
182
|
+
|
|
183
|
+
✅ payloadcms-publish.md (updated)
|
|
184
|
+
|
|
185
|
+
Scripts:
|
|
186
|
+
✅ payloadcms-publish.js (updated)
|
|
187
|
+
✅ coolify-deploy-app.js (updated)
|
|
188
|
+
|
|
189
|
+
═══════════════════════════════════════
|
|
190
|
+
Update Summary
|
|
191
|
+
═══════════════════════════════════════
|
|
192
|
+
✅ Updated: 5 files
|
|
193
|
+
➕ Added: 2 new files
|
|
194
|
+
⏭️ Skipped: 1 files (kept current)
|
|
195
|
+
═══════════════════════════════════════
|
|
196
|
+
|
|
197
|
+
✅ Successfully updated to v0.2.12
|
|
198
|
+
Backup available at: .myaidev-method-backup-2025-11-10T20-59-00
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Safety Features
|
|
202
|
+
|
|
203
|
+
**Automatic Backups**: Before making any changes, the update command creates a complete backup:
|
|
204
|
+
```
|
|
205
|
+
.myaidev-method-backup-{timestamp}/
|
|
206
|
+
├── .claude/
|
|
207
|
+
├── .myaidev-method/
|
|
208
|
+
└── *.md (documentation files)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Dry Run Mode**: Preview all changes without modifying any files:
|
|
212
|
+
```bash
|
|
213
|
+
npx myaidev-method@latest update --claude --dry-run
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Version Tracking**: The update command checks your current version and only proceeds if an update is available.
|
|
217
|
+
|
|
218
|
+
### Best Practices
|
|
219
|
+
|
|
220
|
+
1. **Review Release Notes**: Check the [CHANGELOG.md](CHANGELOG.md) before updating
|
|
221
|
+
2. **Use Dry Run**: Preview changes with `--dry-run` before actual update
|
|
222
|
+
3. **Backup Custom Work**: If you have heavily customized agents, create manual backups
|
|
223
|
+
4. **Update Regularly**: Stay current with latest features and security fixes
|
|
224
|
+
5. **Test After Update**: Verify your workflows still function as expected
|
|
225
|
+
|
|
226
|
+
### Troubleshooting Updates
|
|
227
|
+
|
|
228
|
+
**Update command not found**:
|
|
229
|
+
```bash
|
|
230
|
+
# Ensure you're using the latest package
|
|
231
|
+
npx myaidev-method@latest --version
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**No installation detected**:
|
|
235
|
+
```bash
|
|
236
|
+
# Verify installation exists
|
|
237
|
+
ls -la .claude
|
|
238
|
+
|
|
239
|
+
# Reinstall if needed
|
|
240
|
+
npx myaidev-method@latest init --claude
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
**Dependency installation fails**:
|
|
244
|
+
```bash
|
|
245
|
+
# Manually install dependencies
|
|
246
|
+
cd .myaidev-method
|
|
247
|
+
npm install
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Want to rollback an update**:
|
|
251
|
+
```bash
|
|
252
|
+
# Restore from backup
|
|
253
|
+
rm -rf .claude .myaidev-method *.md
|
|
254
|
+
cp -r .myaidev-method-backup-{timestamp}/* .
|
|
255
|
+
```
|
|
256
|
+
|
|
101
257
|
## 🏗️ Understanding the Structure
|
|
102
258
|
|
|
103
259
|
### Commands Directory (`.claude/commands/`)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Visual Generation Feature - File Organization
|
|
2
|
+
|
|
3
|
+
## Directory Structure Explanation
|
|
4
|
+
|
|
5
|
+
### Source Templates (Distribution Files)
|
|
6
|
+
These are the **source files** that get distributed via npm and installed when users run `npx myaidev-method init`:
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
src/templates/
|
|
10
|
+
├── claude/
|
|
11
|
+
│ ├── agents/ ← Agent templates for Claude Code
|
|
12
|
+
│ │ ├── content-writer.md
|
|
13
|
+
│ │ ├── visual-content-generator.md ✅ ADDED
|
|
14
|
+
│ │ └── ...
|
|
15
|
+
│ └── commands/ ← Command templates for Claude Code
|
|
16
|
+
│ ├── myai-content-writer.md
|
|
17
|
+
│ ├── myai-generate-visual.md 📝 TO ADD
|
|
18
|
+
│ └── ...
|
|
19
|
+
├── gemini/
|
|
20
|
+
│ └── commands/ ← Command templates for Gemini CLI
|
|
21
|
+
│ └── myai-generate-visual.md 📝 TO ADD
|
|
22
|
+
└── codex/
|
|
23
|
+
└── commands/ ← Command templates for Codex CLI
|
|
24
|
+
└── myai-generate-visual.md 📝 TO ADD
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Runtime/Development (.claude folder)
|
|
28
|
+
This is the **runtime directory** for the current project only (not distributed):
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
.claude/
|
|
32
|
+
├── agents/ ← Installed agents (copied from templates)
|
|
33
|
+
│ ├── content-writer.md
|
|
34
|
+
│ ├── visual-content-generator.md ✅ EXISTS (local dev)
|
|
35
|
+
│ └── ...
|
|
36
|
+
└── commands/ ← Installed commands (copied from templates)
|
|
37
|
+
└── ...
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## How Installation Works
|
|
41
|
+
|
|
42
|
+
When users run `npx myaidev-method init --claude`:
|
|
43
|
+
|
|
44
|
+
1. Script reads from: `src/templates/claude/agents/`
|
|
45
|
+
2. Copies files to: `PROJECT_DIR/.claude/agents/`
|
|
46
|
+
3. Result: User gets all agents in their project
|
|
47
|
+
|
|
48
|
+
**Key Point:** Files in `.claude/` are local development only. To distribute to users, files must be in `src/templates/`
|
|
49
|
+
|
|
50
|
+
## Files Created So Far
|
|
51
|
+
|
|
52
|
+
### ✅ Completed (Correct Location)
|
|
53
|
+
|
|
54
|
+
**JavaScript Utilities** (in `src/lib/` - distributed via package.json):
|
|
55
|
+
- `src/lib/visual-generation-utils.js` ✅
|
|
56
|
+
- `src/lib/asset-management.js` ✅
|
|
57
|
+
- `src/lib/visual-config-utils.js` ✅
|
|
58
|
+
|
|
59
|
+
**Agents** (in templates):
|
|
60
|
+
- `src/templates/claude/agents/visual-content-generator.md` ✅
|
|
61
|
+
|
|
62
|
+
### 📝 Still Need to Create
|
|
63
|
+
|
|
64
|
+
**Commands** (need to create in templates for all 3 platforms):
|
|
65
|
+
- `src/templates/claude/commands/myai-generate-visual.md`
|
|
66
|
+
- `src/templates/gemini/commands/myai-generate-visual.md`
|
|
67
|
+
- `src/templates/codex/commands/myai-generate-visual.md`
|
|
68
|
+
|
|
69
|
+
**Configuration Script**:
|
|
70
|
+
- `src/scripts/configure-visual-apis.js`
|
|
71
|
+
|
|
72
|
+
**Updates Needed**:
|
|
73
|
+
- `src/templates/claude/agents/content-writer.md` (add --with-images support)
|
|
74
|
+
- `src/templates/claude/commands/myai-content-writer.md` (document new flag)
|
|
75
|
+
- `src/templates/claude/commands/myai-configure.md` (add visual option)
|
|
76
|
+
- Similar updates for gemini and codex templates
|
|
77
|
+
|
|
78
|
+
**Package Files**:
|
|
79
|
+
- `.env.example`
|
|
80
|
+
- `.gitignore`
|
|
81
|
+
- `package.json`
|
|
82
|
+
|
|
83
|
+
**Documentation**:
|
|
84
|
+
- `VISUAL_CONTENT_GENERATION_GUIDE.md`
|
|
85
|
+
- Update `CONTENT_CREATION_GUIDE.md`
|
|
86
|
+
- Update `README.md`
|
|
87
|
+
|
|
88
|
+
## Action Plan
|
|
89
|
+
|
|
90
|
+
1. ✅ Core utilities in `src/lib/` (DONE)
|
|
91
|
+
2. ✅ Agent template in `src/templates/claude/agents/` (DONE)
|
|
92
|
+
3. Create command templates for all 3 platforms
|
|
93
|
+
4. Create configuration script
|
|
94
|
+
5. Update existing templates
|
|
95
|
+
6. Update documentation
|
|
96
|
+
7. Update package.json
|
|
97
|
+
|
|
98
|
+
## Platform Support
|
|
99
|
+
|
|
100
|
+
We support 3 CLI platforms:
|
|
101
|
+
- **Claude Code**: Full support with .claude/ structure
|
|
102
|
+
- **Gemini CLI**: Commands only (no agents yet per their structure)
|
|
103
|
+
- **Codex CLI**: Commands only (no agents yet per their structure)
|
|
104
|
+
|
|
105
|
+
For Gemini and Codex, we focus on commands that can call the JavaScript utilities directly.
|