myaidev-method 0.2.5 → 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 +161 -70
  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