myaidev-method 0.2.4 → 0.2.6

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 (55) hide show
  1. package/USER_GUIDE.md +389 -8
  2. package/bin/cli.js +165 -30
  3. package/package.json +1 -1
  4. package/src/lib/ascii-banner.js +100 -0
  5. package/src/templates/claude/commands/myai-deploy-dev.md +500 -0
  6. package/src/templates/claude/commands/myai-deploy-prod.md +837 -0
  7. package/src/templates/claude/commands/myai-deploy-staging.md +331 -0
  8. package/src/templates/claude/commands/myai-git-hotfix.md +957 -0
  9. package/src/templates/claude/commands/myai-git-pr.md +200 -0
  10. package/src/templates/claude/commands/myai-git-release.md +806 -0
  11. package/src/templates/claude/commands/myai-git-sync.md +796 -0
  12. package/src/templates/codex/commands/myai-astro-publish.md +51 -0
  13. package/src/templates/codex/commands/myai-configure.md +185 -0
  14. package/src/templates/codex/commands/myai-content-writer.md +73 -0
  15. package/src/templates/codex/commands/myai-coolify-deploy.md +159 -0
  16. package/src/templates/codex/commands/myai-deploy-dev.md +379 -0
  17. package/src/templates/codex/commands/myai-deploy-prod.md +431 -0
  18. package/src/templates/codex/commands/myai-deploy-staging.md +275 -0
  19. package/src/templates/codex/commands/myai-dev-architect.md +69 -0
  20. package/src/templates/codex/commands/myai-dev-code.md +82 -0
  21. package/src/templates/codex/commands/myai-dev-docs.md +83 -0
  22. package/src/templates/codex/commands/myai-dev-review.md +85 -0
  23. package/src/templates/codex/commands/myai-dev-test.md +84 -0
  24. package/src/templates/codex/commands/myai-docusaurus-publish.md +42 -0
  25. package/src/templates/codex/commands/myai-git-hotfix.md +512 -0
  26. package/src/templates/codex/commands/myai-git-pr.md +196 -0
  27. package/src/templates/codex/commands/myai-git-release.md +516 -0
  28. package/src/templates/codex/commands/myai-git-sync.md +517 -0
  29. package/src/templates/codex/commands/myai-mintlify-publish.md +42 -0
  30. package/src/templates/codex/commands/myai-payloadcms-publish.md +42 -0
  31. package/src/templates/codex/commands/myai-sparc-workflow.md +185 -0
  32. package/src/templates/codex/commands/myai-wordpress-admin.md +143 -0
  33. package/src/templates/codex/commands/myai-wordpress-publish.md +66 -0
  34. package/src/templates/gemini/commands/myai-astro-publish.toml +76 -0
  35. package/src/templates/gemini/commands/myai-configure.toml +188 -0
  36. package/src/templates/gemini/commands/myai-content-writer.toml +76 -0
  37. package/src/templates/gemini/commands/myai-coolify-deploy.toml +138 -0
  38. package/src/templates/gemini/commands/myai-deploy-dev.toml +379 -0
  39. package/src/templates/gemini/commands/myai-deploy-prod.toml +438 -0
  40. package/src/templates/gemini/commands/myai-deploy-staging.toml +275 -0
  41. package/src/templates/gemini/commands/myai-dev-architect.toml +64 -0
  42. package/src/templates/gemini/commands/myai-dev-code.toml +75 -0
  43. package/src/templates/gemini/commands/myai-dev-docs.toml +76 -0
  44. package/src/templates/gemini/commands/myai-dev-review.toml +78 -0
  45. package/src/templates/gemini/commands/myai-dev-test.toml +77 -0
  46. package/src/templates/gemini/commands/myai-docusaurus-publish.toml +63 -0
  47. package/src/templates/gemini/commands/myai-git-hotfix.toml +953 -0
  48. package/src/templates/gemini/commands/myai-git-pr.toml +196 -0
  49. package/src/templates/gemini/commands/myai-git-release.toml +802 -0
  50. package/src/templates/gemini/commands/myai-git-sync.toml +792 -0
  51. package/src/templates/gemini/commands/myai-mintlify-publish.toml +67 -0
  52. package/src/templates/gemini/commands/myai-payloadcms-publish.toml +59 -0
  53. package/src/templates/gemini/commands/myai-sparc-workflow.toml +47 -0
  54. package/src/templates/gemini/commands/myai-wordpress-admin.toml +143 -0
  55. package/src/templates/gemini/commands/myai-wordpress-publish.toml +77 -0
package/USER_GUIDE.md CHANGED
@@ -8,6 +8,9 @@ This guide covers everything you need to know about using, customizing, and exte
8
8
 
9
9
  - [Quick Start](#quick-start)
10
10
  - [Understanding the Structure](#understanding-the-structure)
11
+ - [SPARC Development Workflow](#sparc-development-workflow)
12
+ - [Git & CI/CD Workflows](#git--cicd-workflows)
13
+ - [Multi-Platform Support](#multi-platform-support)
11
14
  - [Customizing Agents](#customizing-agents)
12
15
  - [Managing Commands](#managing-commands)
13
16
  - [WordPress Integration](#wordpress-integration)
@@ -19,12 +22,35 @@ This guide covers everything you need to know about using, customizing, and exte
19
22
 
20
23
  ## 🚀 Quick Start
21
24
 
22
- After installing with `npx myaidev-method init --claude`, you'll have a `.claude` folder in your project:
25
+ After installing with `npx myaidev-method@latest init --claude`, you'll see the MyAIDev Method banner and SPARC methodology breakdown:
26
+
27
+ ```
28
+ ███╗ ███╗██╗ ██╗ █████╗ ██╗██████╗ ███████╗██╗ ██╗
29
+ ████╗ ████║╚██╗ ██╔╝██╔══██╗██║██╔══██╗██╔════╝██║ ██║
30
+ ...
31
+ ███╗ ███╗███████╗████████╗██╗ ██╗Օ ██████╗ ██████╗
32
+ ...
33
+
34
+ ╔══════════════════════════════════════════════════════════════════════════╗
35
+ ║ SPARC Methodology - Systematic Software Development Framework ║
36
+ ╚══════════════════════════════════════════════════════════════════════════╝
37
+
38
+ S │ 📋 Specification
39
+ Define requirements and system boundaries
40
+ → Clear goals, constraints, and success criteria
41
+
42
+ P │ 🔄 Pseudocode
43
+ Plan implementation approach
44
+ → Algorithm design and logic flow
45
+ ...
46
+ ```
47
+
48
+ You'll have a `.claude` folder in your project:
23
49
 
24
50
  ```
25
51
  .claude/
26
- ├── commands/ # Slash commands
27
- ├── agents/ # AI agent definitions
52
+ ├── commands/ # Slash commands (22 total)
53
+ ├── agents/ # AI agent definitions (7 total)
28
54
  ├── mcp/ # MCP integrations
29
55
  └── CLAUDE.md # Project configuration
30
56
  ```
@@ -32,9 +58,16 @@ After installing with `npx myaidev-method init --claude`, you'll have a `.claude
32
58
  ### Immediate Usage
33
59
 
34
60
  ```bash
61
+ # SPARC Development Workflow
62
+ /myai-sparc-workflow "Build user authentication system"
63
+
35
64
  # Create professional content
36
65
  /myai-content-writer "10 Best Remote Work Tips"
37
66
 
67
+ # Git & CI/CD
68
+ /myai-git-pr "Add authentication feature"
69
+ /myai-deploy-staging
70
+
38
71
  # WordPress administration
39
72
  /myai-wordpress-admin health-check
40
73
 
@@ -46,17 +79,50 @@ After installing with `npx myaidev-method init --claude`, you'll have a `.claude
46
79
 
47
80
  ### Commands Directory (`.claude/commands/`)
48
81
 
49
- Contains slash commands that appear in your Claude Code interface:
50
-
51
- - `myai-content-writer.md` - Content creation command
52
- - `myai-wordpress-admin.md` - WordPress administration
82
+ Contains 22 slash commands that appear in your Claude Code interface:
83
+
84
+ **SPARC Development:**
85
+ - `myai-sparc-workflow.md` - Complete 5-phase SPARC workflow
86
+ - `myai-dev-architect.md` - Architecture design phase
87
+ - `myai-dev-code.md` - Implementation phase
88
+ - `myai-dev-test.md` - Testing phase
89
+ - `myai-dev-review.md` - Code review phase
90
+ - `myai-dev-docs.md` - Documentation phase
91
+
92
+ **Git & CI/CD:**
93
+ - `myai-git-pr.md` - Create and manage Pull Requests
94
+ - `myai-git-release.md` - Semantic versioning and releases
95
+ - `myai-git-sync.md` - Branch synchronization
96
+ - `myai-git-hotfix.md` - Emergency hotfix procedures
97
+ - `myai-deploy-dev.md` - Development environment deployment
98
+ - `myai-deploy-staging.md` - Staging environment deployment
99
+ - `myai-deploy-prod.md` - Production deployment (blue-green, canary, rolling)
100
+
101
+ **Content & Publishing:**
102
+ - `myai-content-writer.md` - Content creation
53
103
  - `myai-wordpress-publish.md` - WordPress publishing
104
+ - `myai-wordpress-admin.md` - WordPress administration
105
+ - `myai-payloadcms-publish.md` - PayloadCMS publishing
106
+ - `myai-docusaurus-publish.md` - Docusaurus documentation
107
+ - `myai-mintlify-publish.md` - Mintlify documentation
108
+ - `myai-astro-publish.md` - Astro site publishing
109
+
110
+ **Infrastructure:**
111
+ - `myai-coolify-deploy.md` - Coolify deployment automation
54
112
  - `myai-configure.md` - Configuration management
55
113
 
56
114
  ### Agents Directory (`.claude/agents/`)
57
115
 
58
- Contains AI agent definitions with specialized prompts:
116
+ Contains 7 AI agent definitions with specialized prompts:
59
117
 
118
+ **Development Agents:**
119
+ - `architect.md` - System architecture and design specialist
120
+ - `coder.md` - Implementation and coding expert
121
+ - `tester.md` - Testing and quality assurance specialist
122
+ - `reviewer.md` - Code review and quality analysis
123
+ - `documenter.md` - Technical documentation specialist
124
+
125
+ **Content Agents:**
60
126
  - `content-writer.md` - Professional content creator
61
127
  - `wordpress-admin.md` - WordPress administrator
62
128
 
@@ -74,6 +140,321 @@ tools: Read, Write, Edit, WebSearch, WebFetch, Task
74
140
  # Agent prompt content goes here...
75
141
  ```
76
142
 
143
+ ## 🏗️ SPARC Development Workflow
144
+
145
+ The SPARC methodology provides a systematic approach to software development with 5 phases:
146
+
147
+ **S**pecification → **P**seudocode → **A**rchitecture → **R**efinement → **C**ompletion
148
+
149
+ ### Complete SPARC Workflow
150
+
151
+ Run the entire 5-phase workflow:
152
+
153
+ ```bash
154
+ /myai-sparc-workflow "Build user authentication with JWT and OAuth"
155
+ ```
156
+
157
+ This executes all phases sequentially:
158
+ 1. **Specification** - Requirements analysis and system boundaries
159
+ 2. **Pseudocode** - Algorithm design and logic planning
160
+ 3. **Architecture** - System structure, APIs, and data models
161
+ 4. **Refinement** - Implementation with SOLID principles and testing
162
+ 5. **Completion** - Documentation and deployment preparation
163
+
164
+ ### Individual Phase Commands
165
+
166
+ For more control, run phases individually:
167
+
168
+ ```bash
169
+ # Phase 1: Architecture Design
170
+ /myai-dev-architect "Design microservices architecture for e-commerce platform"
171
+
172
+ # Phase 2: Implementation
173
+ /myai-dev-code "Implement user authentication service"
174
+
175
+ # Phase 3: Testing
176
+ /myai-dev-test "Create comprehensive test suite with 80%+ coverage"
177
+
178
+ # Phase 4: Code Review
179
+ /myai-dev-review "Review authentication implementation for security"
180
+
181
+ # Phase 5: Documentation
182
+ /myai-dev-docs "Generate API documentation and user guides"
183
+ ```
184
+
185
+ ### SPARC Quality Standards
186
+
187
+ All phases adhere to these standards:
188
+
189
+ - **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
190
+ - **Clean Code**: DRY (Don't Repeat Yourself), KISS (Keep It Simple), YAGNI (You Aren't Gonna Need It)
191
+ - **Security**: OWASP Top 10 compliance
192
+ - **Testing**: 80%+ critical path coverage, 60%+ overall coverage
193
+ - **Performance**: <200ms API responses, <50ms database queries
194
+
195
+ ### SPARC Output Structure
196
+
197
+ All phases output to `.myaidev-method/sparc/` directory:
198
+
199
+ ```
200
+ .myaidev-method/sparc/
201
+ ├── architecture.md # Phase 1: System design
202
+ ├── pseudocode/ # Phase 2: Algorithm plans
203
+ ├── code-output/ # Phase 4: Implementation
204
+ ├── test-results/ # Phase 3: Test suites
205
+ ├── review-report.md # Phase 4: Quality analysis
206
+ └── documentation/ # Phase 5: API docs & guides
207
+ ```
208
+
209
+ ## 🔄 Git & CI/CD Workflows
210
+
211
+ Complete Git operations and deployment automation commands:
212
+
213
+ ### Pull Request Workflow
214
+
215
+ Create professional pull requests with GitHub CLI integration:
216
+
217
+ ```bash
218
+ # Create PR from current branch
219
+ /myai-git-pr "Add user authentication feature"
220
+
221
+ # The command will:
222
+ # - Analyze all commits since branch diverged
223
+ # - Generate comprehensive PR description
224
+ # - Create PR with gh CLI
225
+ # - Include testing checklist and deployment notes
226
+ ```
227
+
228
+ **PR Description Template includes:**
229
+ - Summary of changes
230
+ - Type of change (feature/fix/breaking)
231
+ - Testing checklist
232
+ - Code review checklist
233
+ - Related issues
234
+ - Screenshots (if applicable)
235
+ - Deployment notes
236
+
237
+ ### Branch Synchronization
238
+
239
+ Keep your branches in sync across the development workflow:
240
+
241
+ ```bash
242
+ # Sync all branches
243
+ /myai-git-sync
244
+
245
+ # Features:
246
+ # - Status overview of all branches
247
+ # - Sync dev → staging → production
248
+ # - Conflict resolution helper
249
+ # - Branch cleanup (merged branches)
250
+ ```
251
+
252
+ ### Release Management
253
+
254
+ Automated semantic versioning and changelog generation:
255
+
256
+ ```bash
257
+ # Create new release
258
+ /myai-git-release
259
+
260
+ # Automatically:
261
+ # - Determines version bump (major/minor/patch)
262
+ # - Generates changelog from conventional commits
263
+ # - Creates GitHub release
264
+ # - Uploads assets with checksums
265
+ # - Publishes to npm (if configured)
266
+ ```
267
+
268
+ **Version Bump Detection:**
269
+ - `BREAKING CHANGE` → major version (1.0.0 → 2.0.0)
270
+ - `feat:` commits → minor version (1.0.0 → 1.1.0)
271
+ - `fix:` commits → patch version (1.0.0 → 1.0.1)
272
+
273
+ ### Emergency Hotfix Procedures
274
+
275
+ Fast-track critical bug fixes to production:
276
+
277
+ ```bash
278
+ # Emergency hotfix workflow
279
+ /myai-git-hotfix
280
+
281
+ # Includes:
282
+ # - Emergency assessment & incident tracking
283
+ # - Multiple fix application methods
284
+ # - Fast-track testing
285
+ # - Emergency approval gate
286
+ # - Post-mortem report generation
287
+ ```
288
+
289
+ ### Deployment Commands
290
+
291
+ Deploy to different environments with appropriate safety levels:
292
+
293
+ ```bash
294
+ # Development deployment (fast iteration)
295
+ /myai-deploy-dev
296
+
297
+ # Staging deployment (pre-production testing)
298
+ /myai-deploy-staging
299
+
300
+ # Production deployment (multiple strategies)
301
+ /myai-deploy-prod
302
+ ```
303
+
304
+ **Development Deployment:**
305
+ - Fast deployment with hot-reload support
306
+ - Docker, Docker Compose, or rsync methods
307
+ - Auto-deploy via GitHub Actions
308
+
309
+ **Staging Deployment:**
310
+ - Pre-flight checks and tests
311
+ - Coolify or Docker deployment
312
+ - Health checks and smoke tests
313
+ - Rollback procedures
314
+
315
+ **Production Deployment:**
316
+ - Strict approval gates and backup points
317
+ - Multiple strategies:
318
+ - **Blue-Green**: Zero-downtime deployment
319
+ - **Canary**: Gradual rollout (10% → 50% → 100%)
320
+ - **Rolling**: Sequential instance updates
321
+ - Comprehensive monitoring and rollback
322
+
323
+ ### Deployment Methods
324
+
325
+ All deployment commands support:
326
+
327
+ **Coolify API:**
328
+ ```bash
329
+ # Configure Coolify credentials
330
+ COOLIFY_URL=https://coolify.your-server.com
331
+ COOLIFY_API_TOKEN=your_api_token
332
+ COOLIFY_STAGING_APP_ID=your_app_id
333
+ ```
334
+
335
+ **Docker:**
336
+ ```bash
337
+ # Docker deployment
338
+ DOCKER_REGISTRY=registry.your-domain.com
339
+ STAGING_IMAGE_TAG=staging
340
+ ```
341
+
342
+ **Docker Compose:**
343
+ ```bash
344
+ # Deploy with compose
345
+ ssh staging-server 'cd /opt/app && docker-compose up -d'
346
+ ```
347
+
348
+ ### CI/CD Notifications
349
+
350
+ Deployment commands support notifications:
351
+
352
+ ```bash
353
+ # Slack notifications
354
+ SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK
355
+
356
+ # Discord notifications
357
+ DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR/WEBHOOK
358
+ ```
359
+
360
+ ## 🌐 Multi-Platform Support
361
+
362
+ MyAIDev Method supports three AI CLI platforms with feature parity:
363
+
364
+ ### Claude Code (Default)
365
+
366
+ Uses `.claude/` directory structure:
367
+
368
+ ```bash
369
+ # Initialize for Claude Code
370
+ npx myaidev-method@latest init --claude
371
+
372
+ # Structure
373
+ .claude/
374
+ ├── commands/ # Markdown with YAML frontmatter
375
+ │ └── myai-*.md # Uses $ARGUMENTS placeholder
376
+ ├── agents/
377
+ ├── mcp/
378
+ └── CLAUDE.md
379
+ ```
380
+
381
+ ### Gemini CLI
382
+
383
+ Uses `.gemini/` directory with TOML format:
384
+
385
+ ```bash
386
+ # Initialize for Gemini CLI
387
+ npx myaidev-method@latest init --gemini
388
+
389
+ # Structure
390
+ .gemini/
391
+ ├── commands/ # TOML format
392
+ │ └── myai-*.toml # Uses {{args}} placeholder
393
+ └── README.md
394
+ ```
395
+
396
+ **Gemini Command Format:**
397
+ ```toml
398
+ prompt = """
399
+ You are a specialist in...
400
+
401
+ Task: {{args}}
402
+
403
+ ## Workflow
404
+ ...
405
+ """
406
+ ```
407
+
408
+ ### OpenCode (Codex)
409
+
410
+ Uses `.opencode/` directory with simple Markdown:
411
+
412
+ ```bash
413
+ # Initialize for OpenCode
414
+ npx myaidev-method@latest init --opencode
415
+
416
+ # Structure
417
+ .opencode/
418
+ ├── commands/ # Simple Markdown (no frontmatter)
419
+ │ └── myai-*.md # Uses $ARGUMENTS placeholder
420
+ └── README.md
421
+ ```
422
+
423
+ **OpenCode Command Format:**
424
+ ```markdown
425
+ # Command Description
426
+
427
+ You are a specialist in...
428
+
429
+ Task: $ARGUMENTS
430
+
431
+ ## Workflow
432
+ ...
433
+ ```
434
+
435
+ ### Platform Feature Parity
436
+
437
+ All 22 commands are available on all platforms:
438
+ - ✅ Claude Code: 22 commands + 7 agents
439
+ - ✅ Gemini CLI: 22 commands (TOML format)
440
+ - ✅ OpenCode: 22 commands (simple Markdown)
441
+
442
+ ### Switching Platforms
443
+
444
+ You can initialize for multiple platforms in the same project:
445
+
446
+ ```bash
447
+ # Initialize all platforms
448
+ npx myaidev-method@latest init --claude
449
+ npx myaidev-method@latest init --gemini
450
+ npx myaidev-method@latest init --opencode
451
+
452
+ # Result: All three directories exist
453
+ .claude/
454
+ .gemini/
455
+ .opencode/
456
+ ```
457
+
77
458
  ## 🎨 Customizing Agents
78
459
 
79
460
  ### Method 1: Direct File Editing
package/bin/cli.js CHANGED
@@ -7,13 +7,14 @@ import fs from 'fs-extra';
7
7
  import path from 'path';
8
8
  import { fileURLToPath } from 'url';
9
9
  import inquirer from 'inquirer';
10
+ import { getASCIIBanner, getSPARCBreakdown, getInitSuccessMessage } from '../src/lib/ascii-banner.js';
10
11
 
11
12
  const __filename = fileURLToPath(import.meta.url);
12
13
  const __dirname = path.dirname(__filename);
13
14
 
14
15
  program
15
- .version('0.2.2')
16
- .description('AI CLI tools package with custom subagents and MCP integrations');
16
+ .version('0.2.5')
17
+ .description('MyAIDev Method - Comprehensive development framework with SPARC methodology');
17
18
 
18
19
  program
19
20
  .command('init')
@@ -64,8 +65,12 @@ program
64
65
  }
65
66
 
66
67
  spinner.succeed(chalk.green(`Successfully initialized ${cliType} configuration!`));
67
-
68
- console.log('\n' + chalk.cyan('🎉 You\'re all set! Here\'s how to get started:'));
68
+
69
+ // Display ASCII banner and SPARC methodology
70
+ console.log(getASCIIBanner());
71
+ console.log(getSPARCBreakdown());
72
+ console.log(getInitSuccessMessage(cliType));
73
+
69
74
  if (cliType === 'claude') {
70
75
  console.log(chalk.green('\n🏗️ SPARC Development Workflow (Systematic Software Development):'));
71
76
  console.log(chalk.gray(' • Complete: /myai-sparc-workflow "Build authentication system"'));
@@ -85,8 +90,14 @@ program
85
90
  console.log(chalk.gray(' • Mintlify: /myai-mintlify-publish "docs.mdx"'));
86
91
  console.log(chalk.gray(' • Astro: /myai-astro-publish "post.md"'));
87
92
 
88
- console.log(chalk.blue('\n🚀 Deploy applications:'));
89
- console.log(chalk.gray(' • Coolify: /myai-coolify-deploy'));
93
+ console.log(chalk.blue('\n🚀 Git & CI/CD Workflow:'));
94
+ console.log(chalk.gray(' • Pull Requests: /myai-git-pr "Add user feature"'));
95
+ console.log(chalk.gray(' • Releases: /myai-git-release'));
96
+ console.log(chalk.gray(' • Sync Branches: /myai-git-sync'));
97
+ console.log(chalk.gray(' • Hotfixes: /myai-git-hotfix'));
98
+ console.log(chalk.gray(' • Deploy Dev: /myai-deploy-dev'));
99
+ console.log(chalk.gray(' • Deploy Staging: /myai-deploy-staging'));
100
+ console.log(chalk.gray(' • Deploy Prod: /myai-deploy-prod'));
90
101
 
91
102
  console.log(chalk.cyan('\n⚙️ Configure platforms:'));
92
103
  console.log(chalk.gray(' • Run /myai-configure for guided setup'));
@@ -99,13 +110,11 @@ program
99
110
  console.log(chalk.gray(' • PUBLISHING_GUIDE.md - Multi-platform publishing'));
100
111
  console.log(chalk.gray(' • COOLIFY_DEPLOYMENT.md - Application deployment'));
101
112
  console.log(chalk.gray(' • WORDPRESS_ADMIN_SCRIPTS.md - WordPress utilities'));
102
- console.log(chalk.gray(' • TECHNICAL_ARCHITECTURE.md - Developer guide'));
103
113
 
104
114
  console.log(chalk.magenta('\n🔧 MCP Server Integration (Optional Advanced Features):'));
105
115
  console.log(chalk.gray(' • SPARC Orchestrator: Workflow automation with MCP tools'));
106
116
  console.log(chalk.gray(' • Chrome DevTools: Browser testing and debugging'));
107
117
  console.log(chalk.gray(' • WordPress MCP: Enhanced WordPress API operations'));
108
- console.log(chalk.gray(' • Add to Claude Code MCP settings to enable'));
109
118
 
110
119
  console.log(chalk.magenta('\n💡 Quick tips:'));
111
120
  console.log(chalk.gray(' • SPARC workflow: Architecture → Code → Test → Review → Docs'));
@@ -309,31 +318,157 @@ This configuration follows Claude Code's official standards for custom commands
309
318
  async function setupGemini(projectDir) {
310
319
  // Setup Gemini-specific configuration
311
320
  const geminiDir = path.join(projectDir, '.gemini');
312
- await fs.ensureDir(geminiDir);
313
-
314
- // Add Gemini-specific files here when specifications are available
315
- const geminiConfig = {
316
- version: '1.0.0',
317
- agents: ['content-writer'],
318
- integrations: ['wordpress']
319
- };
320
-
321
- await fs.writeJSON(path.join(geminiDir, 'config.json'), geminiConfig, { spaces: 2 });
321
+ const commandsDir = path.join(geminiDir, 'commands');
322
+ await fs.ensureDir(commandsDir);
323
+
324
+ // Copy all Gemini command files (.toml format)
325
+ const templateCommandsDir = path.join(__dirname, '..', 'src', 'templates', 'gemini', 'commands');
326
+ if (await fs.pathExists(templateCommandsDir)) {
327
+ const commandFiles = await fs.readdir(templateCommandsDir);
328
+ for (const file of commandFiles) {
329
+ if (file.endsWith('.toml')) {
330
+ await fs.copy(
331
+ path.join(templateCommandsDir, file),
332
+ path.join(commandsDir, file)
333
+ );
334
+ }
335
+ }
336
+ }
337
+
338
+ // Create Gemini README
339
+ const geminiReadme = `# Gemini CLI Configuration
340
+
341
+ This project uses the MyAIDev Method package for AI-assisted development with Gemini.
342
+
343
+ ## Available Commands
344
+
345
+ All commands are located in \`.gemini/commands/\` and use TOML format.
346
+
347
+ ### SPARC Development Workflow
348
+ - \`/myai-sparc-workflow\` - Complete 5-phase SPARC workflow
349
+ - \`/myai-dev-architect\` - Design system architecture
350
+ - \`/myai-dev-code\` - Implement features with SOLID principles
351
+ - \`/myai-dev-test\` - Create comprehensive tests
352
+ - \`/myai-dev-review\` - Code quality and security review
353
+ - \`/myai-dev-docs\` - Generate documentation
354
+
355
+ ### Git & CI/CD Workflow
356
+ - \`/myai-git-pr\` - Create and manage GitHub Pull Requests
357
+ - \`/myai-git-release\` - Create releases with semantic versioning
358
+ - \`/myai-git-sync\` - Sync and manage branches
359
+ - \`/myai-git-hotfix\` - Create and deploy emergency hotfixes
360
+ - \`/myai-deploy-dev\` - Deploy to development environment
361
+ - \`/myai-deploy-staging\` - Deploy to staging environment
362
+ - \`/myai-deploy-prod\` - Deploy to production environment
363
+
364
+ ### Content & Publishing
365
+ - \`/myai-content-writer\` - Create SEO-optimized content
366
+ - \`/myai-wordpress-publish\` - Publish to WordPress
367
+ - \`/myai-payloadcms-publish\` - Publish to PayloadCMS
368
+ - \`/myai-docusaurus-publish\` - Publish to Docusaurus
369
+ - \`/myai-mintlify-publish\` - Publish to Mintlify
370
+ - \`/myai-astro-publish\` - Publish to Astro
371
+
372
+ ### Administration
373
+ - \`/myai-coolify-deploy\` - Deploy to Coolify
374
+ - \`/myai-wordpress-admin\` - WordPress administration
375
+ - \`/myai-configure\` - Configure settings
376
+
377
+ ## Usage
378
+
379
+ \`\`\`bash
380
+ # Execute a command with arguments
381
+ /myai-dev-architect "Design authentication system"
382
+ /myai-git-pr "Add user profile feature"
383
+ /myai-deploy-staging
384
+
385
+ # Commands support the {{args}} placeholder
386
+ \`\`\`
387
+
388
+ ## Documentation
389
+
390
+ For full documentation, see the USER_GUIDE.md in your project root.
391
+ `;
392
+
393
+ await fs.writeFile(path.join(geminiDir, 'README.md'), geminiReadme);
322
394
  }
323
395
 
324
396
  async function setupCodex(projectDir) {
325
- // Setup Codex-specific configuration
326
- const codexDir = path.join(projectDir, '.codex');
327
- await fs.ensureDir(codexDir);
328
-
329
- // Add Codex-specific files here when specifications are available
330
- const codexConfig = {
331
- version: '1.0.0',
332
- agents: ['content-writer'],
333
- integrations: ['wordpress']
334
- };
335
-
336
- await fs.writeJSON(path.join(codexDir, 'config.json'), codexConfig, { spaces: 2 });
397
+ // Setup Codex/OpenCode-specific configuration
398
+ const codexDir = path.join(projectDir, '.opencode');
399
+ const commandsDir = path.join(codexDir, 'commands');
400
+ await fs.ensureDir(commandsDir);
401
+
402
+ // Copy all Codex/OpenCode command files (.md format)
403
+ const templateCommandsDir = path.join(__dirname, '..', 'src', 'templates', 'codex', 'commands');
404
+ if (await fs.pathExists(templateCommandsDir)) {
405
+ const commandFiles = await fs.readdir(templateCommandsDir);
406
+ for (const file of commandFiles) {
407
+ if (file.endsWith('.md')) {
408
+ await fs.copy(
409
+ path.join(templateCommandsDir, file),
410
+ path.join(commandsDir, file)
411
+ );
412
+ }
413
+ }
414
+ }
415
+
416
+ // Create OpenCode README
417
+ const opencodeReadme = `# OpenCode Configuration
418
+
419
+ This project uses the MyAIDev Method package for AI-assisted development with OpenCode.
420
+
421
+ ## Available Commands
422
+
423
+ All commands are located in \`.opencode/commands/\` and use Markdown format.
424
+
425
+ ### SPARC Development Workflow
426
+ - \`/myai-sparc-workflow\` - Complete 5-phase SPARC workflow
427
+ - \`/myai-dev-architect\` - Design system architecture
428
+ - \`/myai-dev-code\` - Implement features with SOLID principles
429
+ - \`/myai-dev-test\` - Create comprehensive tests
430
+ - \`/myai-dev-review\` - Code quality and security review
431
+ - \`/myai-dev-docs\` - Generate documentation
432
+
433
+ ### Git & CI/CD Workflow
434
+ - \`/myai-git-pr\` - Create and manage GitHub Pull Requests
435
+ - \`/myai-git-release\` - Create releases with semantic versioning
436
+ - \`/myai-git-sync\` - Sync and manage branches
437
+ - \`/myai-git-hotfix\` - Create and deploy emergency hotfixes
438
+ - \`/myai-deploy-dev\` - Deploy to development environment
439
+ - \`/myai-deploy-staging\` - Deploy to staging environment
440
+ - \`/myai-deploy-prod\` - Deploy to production environment
441
+
442
+ ### Content & Publishing
443
+ - \`/myai-content-writer\` - Create SEO-optimized content
444
+ - \`/myai-wordpress-publish\` - Publish to WordPress
445
+ - \`/myai-payloadcms-publish\` - Publish to PayloadCMS
446
+ - \`/myai-docusaurus-publish\` - Publish to Docusaurus
447
+ - \`/myai-mintlify-publish\` - Publish to Mintlify
448
+ - \`/myai-astro-publish\` - Publish to Astro
449
+
450
+ ### Administration
451
+ - \`/myai-coolify-deploy\` - Deploy to Coolify
452
+ - \`/myai-wordpress-admin\` - WordPress administration
453
+ - \`/myai-configure\` - Configure settings
454
+
455
+ ## Usage
456
+
457
+ \`\`\`bash
458
+ # Execute a command with arguments
459
+ /myai-dev-architect "Design authentication system"
460
+ /myai-git-pr "Add user profile feature"
461
+ /myai-deploy-staging
462
+
463
+ # Commands support the $ARGUMENTS placeholder
464
+ \`\`\`
465
+
466
+ ## Documentation
467
+
468
+ For full documentation, see the USER_GUIDE.md in your project root.
469
+ `;
470
+
471
+ await fs.writeFile(path.join(codexDir, 'README.md'), opencodeReadme);
337
472
  }
338
473
 
339
474
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myaidev-method",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Comprehensive development framework with SPARC methodology for AI-assisted software development, multi-platform publishing (WordPress, PayloadCMS, Astro, Docusaurus, Mintlify), and Coolify deployment",
5
5
  "mcpName": "io.github.myaione/myaidev-method",
6
6
  "main": "src/index.js",