myaidev-method 0.2.5 → 0.2.7
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/USER_GUIDE.md +630 -8
- package/bin/cli.js +161 -70
- package/package.json +1 -1
- package/src/lib/ascii-banner.js +100 -0
- package/src/templates/claude/commands/myai-deploy-dev.md +500 -0
- package/src/templates/claude/commands/myai-deploy-prod.md +837 -0
- package/src/templates/claude/commands/myai-deploy-staging.md +331 -0
- package/src/templates/claude/commands/myai-git-hotfix.md +957 -0
- package/src/templates/claude/commands/myai-git-pr.md +200 -0
- package/src/templates/claude/commands/myai-git-release.md +806 -0
- package/src/templates/claude/commands/myai-git-sync.md +796 -0
- package/src/templates/codex/commands/myai-astro-publish.md +51 -0
- package/src/templates/codex/commands/myai-configure.md +185 -0
- package/src/templates/codex/commands/myai-content-writer.md +73 -0
- package/src/templates/codex/commands/myai-coolify-deploy.md +159 -0
- package/src/templates/codex/commands/myai-deploy-dev.md +379 -0
- package/src/templates/codex/commands/myai-deploy-prod.md +431 -0
- package/src/templates/codex/commands/myai-deploy-staging.md +275 -0
- package/src/templates/codex/commands/myai-dev-architect.md +69 -0
- package/src/templates/codex/commands/myai-dev-code.md +82 -0
- package/src/templates/codex/commands/myai-dev-docs.md +83 -0
- package/src/templates/codex/commands/myai-dev-review.md +85 -0
- package/src/templates/codex/commands/myai-dev-test.md +84 -0
- package/src/templates/codex/commands/myai-docusaurus-publish.md +42 -0
- package/src/templates/codex/commands/myai-git-hotfix.md +512 -0
- package/src/templates/codex/commands/myai-git-pr.md +196 -0
- package/src/templates/codex/commands/myai-git-release.md +516 -0
- package/src/templates/codex/commands/myai-git-sync.md +517 -0
- package/src/templates/codex/commands/myai-mintlify-publish.md +42 -0
- package/src/templates/codex/commands/myai-payloadcms-publish.md +42 -0
- package/src/templates/codex/commands/myai-sparc-workflow.md +185 -0
- package/src/templates/codex/commands/myai-wordpress-admin.md +143 -0
- package/src/templates/codex/commands/myai-wordpress-publish.md +66 -0
- package/src/templates/gemini/commands/myai-astro-publish.toml +76 -0
- package/src/templates/gemini/commands/myai-configure.toml +188 -0
- package/src/templates/gemini/commands/myai-content-writer.toml +76 -0
- package/src/templates/gemini/commands/myai-coolify-deploy.toml +138 -0
- package/src/templates/gemini/commands/myai-deploy-dev.toml +379 -0
- package/src/templates/gemini/commands/myai-deploy-prod.toml +438 -0
- package/src/templates/gemini/commands/myai-deploy-staging.toml +275 -0
- package/src/templates/gemini/commands/myai-dev-architect.toml +64 -0
- package/src/templates/gemini/commands/myai-dev-code.toml +75 -0
- package/src/templates/gemini/commands/myai-dev-docs.toml +76 -0
- package/src/templates/gemini/commands/myai-dev-review.toml +78 -0
- package/src/templates/gemini/commands/myai-dev-test.toml +77 -0
- package/src/templates/gemini/commands/myai-docusaurus-publish.toml +63 -0
- package/src/templates/gemini/commands/myai-git-hotfix.toml +953 -0
- package/src/templates/gemini/commands/myai-git-pr.toml +196 -0
- package/src/templates/gemini/commands/myai-git-release.toml +802 -0
- package/src/templates/gemini/commands/myai-git-sync.toml +792 -0
- package/src/templates/gemini/commands/myai-mintlify-publish.toml +67 -0
- package/src/templates/gemini/commands/myai-payloadcms-publish.toml +59 -0
- package/src/templates/gemini/commands/myai-sparc-workflow.toml +47 -0
- package/src/templates/gemini/commands/myai-wordpress-admin.toml +143 -0
- 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,54 @@ 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
|
|
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
|
+
███╗ ███╗███████╗████████╗██╗ ██╗ ██████╗ ██████╗
|
|
36
|
+
████╗ ████║██╔════╝╚══██╔══╝██║ ██║██╔═══██╗██╔══██╗
|
|
37
|
+
██╔████╔██║█████╗ ██║ ███████║██║ ██║██║ ██║
|
|
38
|
+
██║╚██╔╝██║██╔══╝ ██║ ██╔══██║██║ ██║██║ ██║
|
|
39
|
+
██║ ╚═╝ ██║███████╗ ██║ ██║ ██║╚██████╔╝██████╔╝
|
|
40
|
+
╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
|
|
41
|
+
|
|
42
|
+
╔══════════════════════════════════════════════════════════════════════════╗
|
|
43
|
+
║ SPARC Methodology - Systematic Software Development Framework ║
|
|
44
|
+
╚══════════════════════════════════════════════════════════════════════════╝
|
|
45
|
+
|
|
46
|
+
S │ 📋 Specification
|
|
47
|
+
Define requirements and system boundaries
|
|
48
|
+
→ Clear goals, constraints, and success criteria
|
|
49
|
+
|
|
50
|
+
P │ 🔄 Pseudocode
|
|
51
|
+
Plan implementation approach
|
|
52
|
+
→ Algorithm design and logic flow
|
|
53
|
+
|
|
54
|
+
A │ 🏗️ Architecture
|
|
55
|
+
Design system structure and components
|
|
56
|
+
→ APIs, data models, and service layers
|
|
57
|
+
|
|
58
|
+
R │ ⚡ Refinement
|
|
59
|
+
Implement with SOLID principles and testing
|
|
60
|
+
→ Clean code, security, and performance
|
|
61
|
+
|
|
62
|
+
C │ 🎯 Completion
|
|
63
|
+
Documentation and deployment preparation
|
|
64
|
+
→ User guides, API docs, and CI/CD setup
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
You'll have a `.claude` folder in your project:
|
|
23
68
|
|
|
24
69
|
```
|
|
25
70
|
.claude/
|
|
26
|
-
├── commands/ # Slash commands
|
|
27
|
-
├── agents/ # AI agent definitions
|
|
71
|
+
├── commands/ # Slash commands (22 total)
|
|
72
|
+
├── agents/ # AI agent definitions (7 total)
|
|
28
73
|
├── mcp/ # MCP integrations
|
|
29
74
|
└── CLAUDE.md # Project configuration
|
|
30
75
|
```
|
|
@@ -32,9 +77,16 @@ After installing with `npx myaidev-method init --claude`, you'll have a `.claude
|
|
|
32
77
|
### Immediate Usage
|
|
33
78
|
|
|
34
79
|
```bash
|
|
80
|
+
# SPARC Development Workflow
|
|
81
|
+
/myai-sparc-workflow "Build user authentication system"
|
|
82
|
+
|
|
35
83
|
# Create professional content
|
|
36
84
|
/myai-content-writer "10 Best Remote Work Tips"
|
|
37
85
|
|
|
86
|
+
# Git & CI/CD
|
|
87
|
+
/myai-git-pr "Add authentication feature"
|
|
88
|
+
/myai-deploy-staging
|
|
89
|
+
|
|
38
90
|
# WordPress administration
|
|
39
91
|
/myai-wordpress-admin health-check
|
|
40
92
|
|
|
@@ -46,17 +98,50 @@ After installing with `npx myaidev-method init --claude`, you'll have a `.claude
|
|
|
46
98
|
|
|
47
99
|
### Commands Directory (`.claude/commands/`)
|
|
48
100
|
|
|
49
|
-
Contains slash commands that appear in your Claude Code interface:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- `myai-
|
|
101
|
+
Contains 22 slash commands that appear in your Claude Code interface:
|
|
102
|
+
|
|
103
|
+
**SPARC Development:**
|
|
104
|
+
- `myai-sparc-workflow.md` - Complete 5-phase SPARC workflow
|
|
105
|
+
- `myai-dev-architect.md` - Architecture design phase
|
|
106
|
+
- `myai-dev-code.md` - Implementation phase
|
|
107
|
+
- `myai-dev-test.md` - Testing phase
|
|
108
|
+
- `myai-dev-review.md` - Code review phase
|
|
109
|
+
- `myai-dev-docs.md` - Documentation phase
|
|
110
|
+
|
|
111
|
+
**Git & CI/CD:**
|
|
112
|
+
- `myai-git-pr.md` - Create and manage Pull Requests
|
|
113
|
+
- `myai-git-release.md` - Semantic versioning and releases
|
|
114
|
+
- `myai-git-sync.md` - Branch synchronization
|
|
115
|
+
- `myai-git-hotfix.md` - Emergency hotfix procedures
|
|
116
|
+
- `myai-deploy-dev.md` - Development environment deployment
|
|
117
|
+
- `myai-deploy-staging.md` - Staging environment deployment
|
|
118
|
+
- `myai-deploy-prod.md` - Production deployment (blue-green, canary, rolling)
|
|
119
|
+
|
|
120
|
+
**Content & Publishing:**
|
|
121
|
+
- `myai-content-writer.md` - Content creation
|
|
53
122
|
- `myai-wordpress-publish.md` - WordPress publishing
|
|
123
|
+
- `myai-wordpress-admin.md` - WordPress administration
|
|
124
|
+
- `myai-payloadcms-publish.md` - PayloadCMS publishing
|
|
125
|
+
- `myai-docusaurus-publish.md` - Docusaurus documentation
|
|
126
|
+
- `myai-mintlify-publish.md` - Mintlify documentation
|
|
127
|
+
- `myai-astro-publish.md` - Astro site publishing
|
|
128
|
+
|
|
129
|
+
**Infrastructure:**
|
|
130
|
+
- `myai-coolify-deploy.md` - Coolify deployment automation
|
|
54
131
|
- `myai-configure.md` - Configuration management
|
|
55
132
|
|
|
56
133
|
### Agents Directory (`.claude/agents/`)
|
|
57
134
|
|
|
58
|
-
Contains AI agent definitions with specialized prompts:
|
|
135
|
+
Contains 7 AI agent definitions with specialized prompts:
|
|
136
|
+
|
|
137
|
+
**Development Agents:**
|
|
138
|
+
- `architect.md` - System architecture and design specialist
|
|
139
|
+
- `coder.md` - Implementation and coding expert
|
|
140
|
+
- `tester.md` - Testing and quality assurance specialist
|
|
141
|
+
- `reviewer.md` - Code review and quality analysis
|
|
142
|
+
- `documenter.md` - Technical documentation specialist
|
|
59
143
|
|
|
144
|
+
**Content Agents:**
|
|
60
145
|
- `content-writer.md` - Professional content creator
|
|
61
146
|
- `wordpress-admin.md` - WordPress administrator
|
|
62
147
|
|
|
@@ -74,6 +159,321 @@ tools: Read, Write, Edit, WebSearch, WebFetch, Task
|
|
|
74
159
|
# Agent prompt content goes here...
|
|
75
160
|
```
|
|
76
161
|
|
|
162
|
+
## 🏗️ SPARC Development Workflow
|
|
163
|
+
|
|
164
|
+
The SPARC methodology provides a systematic approach to software development with 5 phases:
|
|
165
|
+
|
|
166
|
+
**S**pecification → **P**seudocode → **A**rchitecture → **R**efinement → **C**ompletion
|
|
167
|
+
|
|
168
|
+
### Complete SPARC Workflow
|
|
169
|
+
|
|
170
|
+
Run the entire 5-phase workflow:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
/myai-sparc-workflow "Build user authentication with JWT and OAuth"
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
This executes all phases sequentially:
|
|
177
|
+
1. **Specification** - Requirements analysis and system boundaries
|
|
178
|
+
2. **Pseudocode** - Algorithm design and logic planning
|
|
179
|
+
3. **Architecture** - System structure, APIs, and data models
|
|
180
|
+
4. **Refinement** - Implementation with SOLID principles and testing
|
|
181
|
+
5. **Completion** - Documentation and deployment preparation
|
|
182
|
+
|
|
183
|
+
### Individual Phase Commands
|
|
184
|
+
|
|
185
|
+
For more control, run phases individually:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Phase 1: Architecture Design
|
|
189
|
+
/myai-dev-architect "Design microservices architecture for e-commerce platform"
|
|
190
|
+
|
|
191
|
+
# Phase 2: Implementation
|
|
192
|
+
/myai-dev-code "Implement user authentication service"
|
|
193
|
+
|
|
194
|
+
# Phase 3: Testing
|
|
195
|
+
/myai-dev-test "Create comprehensive test suite with 80%+ coverage"
|
|
196
|
+
|
|
197
|
+
# Phase 4: Code Review
|
|
198
|
+
/myai-dev-review "Review authentication implementation for security"
|
|
199
|
+
|
|
200
|
+
# Phase 5: Documentation
|
|
201
|
+
/myai-dev-docs "Generate API documentation and user guides"
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### SPARC Quality Standards
|
|
205
|
+
|
|
206
|
+
All phases adhere to these standards:
|
|
207
|
+
|
|
208
|
+
- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
|
|
209
|
+
- **Clean Code**: DRY (Don't Repeat Yourself), KISS (Keep It Simple), YAGNI (You Aren't Gonna Need It)
|
|
210
|
+
- **Security**: OWASP Top 10 compliance
|
|
211
|
+
- **Testing**: 80%+ critical path coverage, 60%+ overall coverage
|
|
212
|
+
- **Performance**: <200ms API responses, <50ms database queries
|
|
213
|
+
|
|
214
|
+
### SPARC Output Structure
|
|
215
|
+
|
|
216
|
+
All phases output to `.myaidev-method/sparc/` directory:
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
.myaidev-method/sparc/
|
|
220
|
+
├── architecture.md # Phase 1: System design
|
|
221
|
+
├── pseudocode/ # Phase 2: Algorithm plans
|
|
222
|
+
├── code-output/ # Phase 4: Implementation
|
|
223
|
+
├── test-results/ # Phase 3: Test suites
|
|
224
|
+
├── review-report.md # Phase 4: Quality analysis
|
|
225
|
+
└── documentation/ # Phase 5: API docs & guides
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## 🔄 Git & CI/CD Workflows
|
|
229
|
+
|
|
230
|
+
Complete Git operations and deployment automation commands:
|
|
231
|
+
|
|
232
|
+
### Pull Request Workflow
|
|
233
|
+
|
|
234
|
+
Create professional pull requests with GitHub CLI integration:
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
# Create PR from current branch
|
|
238
|
+
/myai-git-pr "Add user authentication feature"
|
|
239
|
+
|
|
240
|
+
# The command will:
|
|
241
|
+
# - Analyze all commits since branch diverged
|
|
242
|
+
# - Generate comprehensive PR description
|
|
243
|
+
# - Create PR with gh CLI
|
|
244
|
+
# - Include testing checklist and deployment notes
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**PR Description Template includes:**
|
|
248
|
+
- Summary of changes
|
|
249
|
+
- Type of change (feature/fix/breaking)
|
|
250
|
+
- Testing checklist
|
|
251
|
+
- Code review checklist
|
|
252
|
+
- Related issues
|
|
253
|
+
- Screenshots (if applicable)
|
|
254
|
+
- Deployment notes
|
|
255
|
+
|
|
256
|
+
### Branch Synchronization
|
|
257
|
+
|
|
258
|
+
Keep your branches in sync across the development workflow:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
# Sync all branches
|
|
262
|
+
/myai-git-sync
|
|
263
|
+
|
|
264
|
+
# Features:
|
|
265
|
+
# - Status overview of all branches
|
|
266
|
+
# - Sync dev → staging → production
|
|
267
|
+
# - Conflict resolution helper
|
|
268
|
+
# - Branch cleanup (merged branches)
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Release Management
|
|
272
|
+
|
|
273
|
+
Automated semantic versioning and changelog generation:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
# Create new release
|
|
277
|
+
/myai-git-release
|
|
278
|
+
|
|
279
|
+
# Automatically:
|
|
280
|
+
# - Determines version bump (major/minor/patch)
|
|
281
|
+
# - Generates changelog from conventional commits
|
|
282
|
+
# - Creates GitHub release
|
|
283
|
+
# - Uploads assets with checksums
|
|
284
|
+
# - Publishes to npm (if configured)
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Version Bump Detection:**
|
|
288
|
+
- `BREAKING CHANGE` → major version (1.0.0 → 2.0.0)
|
|
289
|
+
- `feat:` commits → minor version (1.0.0 → 1.1.0)
|
|
290
|
+
- `fix:` commits → patch version (1.0.0 → 1.0.1)
|
|
291
|
+
|
|
292
|
+
### Emergency Hotfix Procedures
|
|
293
|
+
|
|
294
|
+
Fast-track critical bug fixes to production:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
# Emergency hotfix workflow
|
|
298
|
+
/myai-git-hotfix
|
|
299
|
+
|
|
300
|
+
# Includes:
|
|
301
|
+
# - Emergency assessment & incident tracking
|
|
302
|
+
# - Multiple fix application methods
|
|
303
|
+
# - Fast-track testing
|
|
304
|
+
# - Emergency approval gate
|
|
305
|
+
# - Post-mortem report generation
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Deployment Commands
|
|
309
|
+
|
|
310
|
+
Deploy to different environments with appropriate safety levels:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
# Development deployment (fast iteration)
|
|
314
|
+
/myai-deploy-dev
|
|
315
|
+
|
|
316
|
+
# Staging deployment (pre-production testing)
|
|
317
|
+
/myai-deploy-staging
|
|
318
|
+
|
|
319
|
+
# Production deployment (multiple strategies)
|
|
320
|
+
/myai-deploy-prod
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**Development Deployment:**
|
|
324
|
+
- Fast deployment with hot-reload support
|
|
325
|
+
- Docker, Docker Compose, or rsync methods
|
|
326
|
+
- Auto-deploy via GitHub Actions
|
|
327
|
+
|
|
328
|
+
**Staging Deployment:**
|
|
329
|
+
- Pre-flight checks and tests
|
|
330
|
+
- Coolify or Docker deployment
|
|
331
|
+
- Health checks and smoke tests
|
|
332
|
+
- Rollback procedures
|
|
333
|
+
|
|
334
|
+
**Production Deployment:**
|
|
335
|
+
- Strict approval gates and backup points
|
|
336
|
+
- Multiple strategies:
|
|
337
|
+
- **Blue-Green**: Zero-downtime deployment
|
|
338
|
+
- **Canary**: Gradual rollout (10% → 50% → 100%)
|
|
339
|
+
- **Rolling**: Sequential instance updates
|
|
340
|
+
- Comprehensive monitoring and rollback
|
|
341
|
+
|
|
342
|
+
### Deployment Methods
|
|
343
|
+
|
|
344
|
+
All deployment commands support:
|
|
345
|
+
|
|
346
|
+
**Coolify API:**
|
|
347
|
+
```bash
|
|
348
|
+
# Configure Coolify credentials
|
|
349
|
+
COOLIFY_URL=https://coolify.your-server.com
|
|
350
|
+
COOLIFY_API_TOKEN=your_api_token
|
|
351
|
+
COOLIFY_STAGING_APP_ID=your_app_id
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
**Docker:**
|
|
355
|
+
```bash
|
|
356
|
+
# Docker deployment
|
|
357
|
+
DOCKER_REGISTRY=registry.your-domain.com
|
|
358
|
+
STAGING_IMAGE_TAG=staging
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
**Docker Compose:**
|
|
362
|
+
```bash
|
|
363
|
+
# Deploy with compose
|
|
364
|
+
ssh staging-server 'cd /opt/app && docker-compose up -d'
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### CI/CD Notifications
|
|
368
|
+
|
|
369
|
+
Deployment commands support notifications:
|
|
370
|
+
|
|
371
|
+
```bash
|
|
372
|
+
# Slack notifications
|
|
373
|
+
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK
|
|
374
|
+
|
|
375
|
+
# Discord notifications
|
|
376
|
+
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR/WEBHOOK
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
## 🌐 Multi-Platform Support
|
|
380
|
+
|
|
381
|
+
MyAIDev Method supports three AI CLI platforms with feature parity:
|
|
382
|
+
|
|
383
|
+
### Claude Code (Default)
|
|
384
|
+
|
|
385
|
+
Uses `.claude/` directory structure:
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
# Initialize for Claude Code
|
|
389
|
+
npx myaidev-method@latest init --claude
|
|
390
|
+
|
|
391
|
+
# Structure
|
|
392
|
+
.claude/
|
|
393
|
+
├── commands/ # Markdown with YAML frontmatter
|
|
394
|
+
│ └── myai-*.md # Uses $ARGUMENTS placeholder
|
|
395
|
+
├── agents/
|
|
396
|
+
├── mcp/
|
|
397
|
+
└── CLAUDE.md
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
### Gemini CLI
|
|
401
|
+
|
|
402
|
+
Uses `.gemini/` directory with TOML format:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
# Initialize for Gemini CLI
|
|
406
|
+
npx myaidev-method@latest init --gemini
|
|
407
|
+
|
|
408
|
+
# Structure
|
|
409
|
+
.gemini/
|
|
410
|
+
├── commands/ # TOML format
|
|
411
|
+
│ └── myai-*.toml # Uses {{args}} placeholder
|
|
412
|
+
└── README.md
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
**Gemini Command Format:**
|
|
416
|
+
```toml
|
|
417
|
+
prompt = """
|
|
418
|
+
You are a specialist in...
|
|
419
|
+
|
|
420
|
+
Task: {{args}}
|
|
421
|
+
|
|
422
|
+
## Workflow
|
|
423
|
+
...
|
|
424
|
+
"""
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### OpenCode (Codex)
|
|
428
|
+
|
|
429
|
+
Uses `.opencode/` directory with simple Markdown:
|
|
430
|
+
|
|
431
|
+
```bash
|
|
432
|
+
# Initialize for OpenCode
|
|
433
|
+
npx myaidev-method@latest init --opencode
|
|
434
|
+
|
|
435
|
+
# Structure
|
|
436
|
+
.opencode/
|
|
437
|
+
├── commands/ # Simple Markdown (no frontmatter)
|
|
438
|
+
│ └── myai-*.md # Uses $ARGUMENTS placeholder
|
|
439
|
+
└── README.md
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
**OpenCode Command Format:**
|
|
443
|
+
```markdown
|
|
444
|
+
# Command Description
|
|
445
|
+
|
|
446
|
+
You are a specialist in...
|
|
447
|
+
|
|
448
|
+
Task: $ARGUMENTS
|
|
449
|
+
|
|
450
|
+
## Workflow
|
|
451
|
+
...
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### Platform Feature Parity
|
|
455
|
+
|
|
456
|
+
All 22 commands are available on all platforms:
|
|
457
|
+
- ✅ Claude Code: 22 commands + 7 agents
|
|
458
|
+
- ✅ Gemini CLI: 22 commands (TOML format)
|
|
459
|
+
- ✅ OpenCode: 22 commands (simple Markdown)
|
|
460
|
+
|
|
461
|
+
### Switching Platforms
|
|
462
|
+
|
|
463
|
+
You can initialize for multiple platforms in the same project:
|
|
464
|
+
|
|
465
|
+
```bash
|
|
466
|
+
# Initialize all platforms
|
|
467
|
+
npx myaidev-method@latest init --claude
|
|
468
|
+
npx myaidev-method@latest init --gemini
|
|
469
|
+
npx myaidev-method@latest init --opencode
|
|
470
|
+
|
|
471
|
+
# Result: All three directories exist
|
|
472
|
+
.claude/
|
|
473
|
+
.gemini/
|
|
474
|
+
.opencode/
|
|
475
|
+
```
|
|
476
|
+
|
|
77
477
|
## 🎨 Customizing Agents
|
|
78
478
|
|
|
79
479
|
### Method 1: Direct File Editing
|
|
@@ -640,6 +1040,228 @@ tail -f ~/.claude/logs/commands.log
|
|
|
640
1040
|
/myai-wordpress-publish article.md --status publish
|
|
641
1041
|
```
|
|
642
1042
|
|
|
1043
|
+
### 📝 Complete Content Creation Pipeline Examples
|
|
1044
|
+
|
|
1045
|
+
#### Example 1: Technical Blog Post Pipeline
|
|
1046
|
+
|
|
1047
|
+
**Full workflow from research to multi-platform publishing:**
|
|
1048
|
+
|
|
1049
|
+
```bash
|
|
1050
|
+
# Step 1: Research and planning
|
|
1051
|
+
/myai-content-writer "Complete Guide to Docker Containerization" --research_phase true
|
|
1052
|
+
# Output: research-docker-guide.md with sources, outline, and key points
|
|
1053
|
+
|
|
1054
|
+
# Step 2: Create comprehensive content
|
|
1055
|
+
/myai-content-writer "Docker Containerization Guide" --technical_depth advanced --include_code_examples true
|
|
1056
|
+
# Output: docker-guide.md with full article, code snippets, and examples
|
|
1057
|
+
|
|
1058
|
+
# Step 3: Platform-specific optimization
|
|
1059
|
+
/myai-content-writer "Optimize for platforms" --source docker-guide.md --platforms "wordpress,docusaurus,medium"
|
|
1060
|
+
# Output:
|
|
1061
|
+
# - docker-guide-wordpress.md (SEO optimized, WP formatting)
|
|
1062
|
+
# - docker-guide-docusaurus.md (technical docs format)
|
|
1063
|
+
# - docker-guide-medium.md (Medium-friendly formatting)
|
|
1064
|
+
|
|
1065
|
+
# Step 4: Multi-platform publishing
|
|
1066
|
+
/myai-wordpress-publish "docker-guide-wordpress.md" --status publish --category "Tutorials"
|
|
1067
|
+
/myai-docusaurus-publish "docker-guide-docusaurus.md" --section "guides" --sidebar_position 3
|
|
1068
|
+
/myai-medium-publish "docker-guide-medium.md" --tags "docker,devops,containers"
|
|
1069
|
+
```
|
|
1070
|
+
|
|
1071
|
+
#### Example 2: Product Launch Content Campaign
|
|
1072
|
+
|
|
1073
|
+
**Coordinated content across multiple channels:**
|
|
1074
|
+
|
|
1075
|
+
```bash
|
|
1076
|
+
# Step 1: Campaign planning
|
|
1077
|
+
/myai-content-writer "Product Launch Campaign: AI Code Assistant" --campaign_planning true
|
|
1078
|
+
# Output: campaign-plan.md with content calendar and platform strategy
|
|
1079
|
+
|
|
1080
|
+
# Step 2: Create core content pieces
|
|
1081
|
+
/myai-content-writer "AI Code Assistant Features" --content_type "feature_overview" --target_audience "developers"
|
|
1082
|
+
/myai-content-writer "Getting Started Guide" --content_type "tutorial" --difficulty "beginner"
|
|
1083
|
+
/myai-content-writer "Advanced Use Cases" --content_type "case_studies" --include_examples true
|
|
1084
|
+
|
|
1085
|
+
# Step 3: Platform-specific adaptations
|
|
1086
|
+
# Landing page content
|
|
1087
|
+
/myai-content-writer "Landing Page Copy" --source "feature-overview.md" --conversion_focused true --cta "Start Free Trial"
|
|
1088
|
+
|
|
1089
|
+
# Documentation site
|
|
1090
|
+
/myai-docusaurus-publish "getting-started.md" --section "quickstart" --add_navigation true
|
|
1091
|
+
/myai-docusaurus-publish "advanced-use-cases.md" --section "examples" --add_code_samples true
|
|
1092
|
+
|
|
1093
|
+
# Blog posts
|
|
1094
|
+
/myai-wordpress-publish "feature-overview.md" --status publish --category "Product Updates"
|
|
1095
|
+
/myai-astro-publish "getting-started.md" --collection "tutorials" --featured true
|
|
1096
|
+
|
|
1097
|
+
# Social media content
|
|
1098
|
+
/myai-content-writer "Social Media Posts" --source "feature-overview.md" --platforms "twitter,linkedin" --post_count 5
|
|
1099
|
+
```
|
|
1100
|
+
|
|
1101
|
+
#### Example 3: Educational Content Series
|
|
1102
|
+
|
|
1103
|
+
**Multi-part series across documentation platforms:**
|
|
1104
|
+
|
|
1105
|
+
```bash
|
|
1106
|
+
# Step 1: Series planning
|
|
1107
|
+
/myai-content-writer "Web Development Fundamentals Series" --series_planning true --parts 10
|
|
1108
|
+
# Output: series-plan.md with episode breakdown and learning objectives
|
|
1109
|
+
|
|
1110
|
+
# Step 2: Create individual parts
|
|
1111
|
+
for i in {1..10}; do
|
|
1112
|
+
/myai-content-writer "Web Dev Part $i" --series "fundamentals" --part_number $i --previous_context "series-plan.md"
|
|
1113
|
+
done
|
|
1114
|
+
|
|
1115
|
+
# Step 3: Multi-platform publishing
|
|
1116
|
+
# Documentation sites
|
|
1117
|
+
/myai-docusaurus-publish "web-dev-part-*.md" --collection "tutorial-series" --auto_navigation true
|
|
1118
|
+
/myai-mintlify-publish "web-dev-part-*.md" --group "fundamentals" --sequential_order true
|
|
1119
|
+
|
|
1120
|
+
# Blog platforms
|
|
1121
|
+
for file in web-dev-part-*.md; do
|
|
1122
|
+
/myai-wordpress-publish "$file" --status publish --series "Web Dev Fundamentals"
|
|
1123
|
+
/myai-astro-publish "$file" --collection "education" --tags "webdev,tutorial"
|
|
1124
|
+
done
|
|
1125
|
+
|
|
1126
|
+
# Create series index
|
|
1127
|
+
/myai-content-writer "Series Index Page" --series_summary "fundamentals" --include_progress_tracker true
|
|
1128
|
+
/myai-docusaurus-publish "series-index.md" --as_landing_page true
|
|
1129
|
+
```
|
|
1130
|
+
|
|
1131
|
+
#### Example 4: API Documentation Pipeline
|
|
1132
|
+
|
|
1133
|
+
**Technical documentation with code examples:**
|
|
1134
|
+
|
|
1135
|
+
```bash
|
|
1136
|
+
# Step 1: API analysis and planning
|
|
1137
|
+
/myai-dev-docs "Analyze REST API" --source "api-spec.yaml" --generate_examples true
|
|
1138
|
+
# Output: api-analysis.md with endpoints, parameters, and usage patterns
|
|
1139
|
+
|
|
1140
|
+
# Step 2: Create comprehensive documentation
|
|
1141
|
+
/myai-content-writer "REST API Documentation" --technical_writing true --include_curl_examples true --source "api-analysis.md"
|
|
1142
|
+
# Output: api-docs.md with detailed endpoint documentation
|
|
1143
|
+
|
|
1144
|
+
# Step 3: Platform-specific formatting
|
|
1145
|
+
/myai-content-writer "Format for platforms" --source "api-docs.md" --platforms "mintlify,docusaurus,postman"
|
|
1146
|
+
# Output:
|
|
1147
|
+
# - api-docs-mintlify.md (Mintlify-optimized with interactive examples)
|
|
1148
|
+
# - api-docs-docusaurus.md (Docusaurus format with sidebar navigation)
|
|
1149
|
+
# - api-collection.json (Postman collection for testing)
|
|
1150
|
+
|
|
1151
|
+
# Step 4: Multi-platform publishing
|
|
1152
|
+
/myai-mintlify-publish "api-docs-mintlify.md" --section "api-reference" --interactive_examples true
|
|
1153
|
+
/myai-docusaurus-publish "api-docs-docusaurus.md" --section "api" --add_try_it_buttons true
|
|
1154
|
+
|
|
1155
|
+
# Step 5: Generate SDK documentation
|
|
1156
|
+
/myai-dev-docs "Generate SDK Examples" --languages "javascript,python,curl" --source "api-docs.md"
|
|
1157
|
+
/myai-docusaurus-publish "sdk-examples.md" --section "sdks" --code_tabs true
|
|
1158
|
+
```
|
|
1159
|
+
|
|
1160
|
+
#### Example 5: Content Localization Pipeline
|
|
1161
|
+
|
|
1162
|
+
**Multi-language content creation and publishing:**
|
|
1163
|
+
|
|
1164
|
+
```bash
|
|
1165
|
+
# Step 1: Create master content
|
|
1166
|
+
/myai-content-writer "Product Features Guide" --master_content true --localization_ready true
|
|
1167
|
+
# Output: features-guide-en.md (English master version)
|
|
1168
|
+
|
|
1169
|
+
# Step 2: Localize content
|
|
1170
|
+
/myai-content-writer "Localize content" --source "features-guide-en.md" --target_languages "es,fr,de,ja"
|
|
1171
|
+
# Output: features-guide-es.md, features-guide-fr.md, etc.
|
|
1172
|
+
|
|
1173
|
+
# Step 3: Platform-specific publishing by language
|
|
1174
|
+
# WordPress multisite
|
|
1175
|
+
/myai-wordpress-publish "features-guide-en.md" --site "main" --language "en"
|
|
1176
|
+
/myai-wordpress-publish "features-guide-es.md" --site "es" --language "es"
|
|
1177
|
+
/myai-wordpress-publish "features-guide-fr.md" --site "fr" --language "fr"
|
|
1178
|
+
|
|
1179
|
+
# Docusaurus i18n
|
|
1180
|
+
/myai-docusaurus-publish "features-guide-en.md" --locale "en" --section "guides"
|
|
1181
|
+
/myai-docusaurus-publish "features-guide-es.md" --locale "es" --section "guides"
|
|
1182
|
+
/myai-docusaurus-publish "features-guide-fr.md" --locale "fr" --section "guides"
|
|
1183
|
+
|
|
1184
|
+
# Create language switcher
|
|
1185
|
+
/myai-content-writer "Language Navigation" --available_languages "en,es,fr,de,ja" --current_page "features-guide"
|
|
1186
|
+
```
|
|
1187
|
+
|
|
1188
|
+
### 🔄 Content Workflow Automation
|
|
1189
|
+
|
|
1190
|
+
#### Automated Content Calendar
|
|
1191
|
+
|
|
1192
|
+
```bash
|
|
1193
|
+
# Weekly content automation
|
|
1194
|
+
/myai-content-writer "Weekly Tech News Roundup" --auto_schedule "every monday" --sources "hackernews,techcrunch"
|
|
1195
|
+
/myai-wordpress-publish "weekly-roundup.md" --schedule "monday 9am" --category "News"
|
|
1196
|
+
|
|
1197
|
+
# Monthly feature highlights
|
|
1198
|
+
/myai-content-writer "Monthly Product Updates" --template "product-updates.md" --auto_generate "monthly"
|
|
1199
|
+
/myai-docusaurus-publish "product-updates.md" --section "changelog" --auto_date true
|
|
1200
|
+
```
|
|
1201
|
+
|
|
1202
|
+
#### Content Repurposing Pipeline
|
|
1203
|
+
|
|
1204
|
+
```bash
|
|
1205
|
+
# Transform long-form content into multiple formats
|
|
1206
|
+
/myai-content-writer "Repurpose Content" --source "comprehensive-guide.md" --formats "summary,social,newsletter,slides"
|
|
1207
|
+
# Output:
|
|
1208
|
+
# - guide-summary.md (executive summary)
|
|
1209
|
+
# - guide-social.md (social media posts)
|
|
1210
|
+
# - guide-newsletter.md (email newsletter format)
|
|
1211
|
+
# - guide-slides.md (presentation outline)
|
|
1212
|
+
|
|
1213
|
+
# Publish across platforms
|
|
1214
|
+
/myai-wordpress-publish "guide-summary.md" --category "Summaries"
|
|
1215
|
+
/myai-astro-publish "guide-newsletter.md" --collection "newsletter"
|
|
1216
|
+
/myai-content-writer "Create Slide Deck" --source "guide-slides.md" --export_format "reveal.js"
|
|
1217
|
+
```
|
|
1218
|
+
|
|
1219
|
+
### 📊 Content Performance Tracking
|
|
1220
|
+
|
|
1221
|
+
#### Analytics Integration
|
|
1222
|
+
|
|
1223
|
+
```bash
|
|
1224
|
+
# Content performance analysis
|
|
1225
|
+
/myai-wordpress-admin analytics-report --content "docker-guide" --metrics "views,engagement,conversions"
|
|
1226
|
+
/myai-content-writer "Performance Report" --source "analytics-data.json" --recommendations true
|
|
1227
|
+
|
|
1228
|
+
# A/B testing setup
|
|
1229
|
+
/myai-content-writer "Create Variants" --source "landing-page.md" --variants 3 --test_elements "headline,cta"
|
|
1230
|
+
/myai-wordpress-publish "landing-page-variant-a.md" --ab_test "group_a"
|
|
1231
|
+
/myai-wordpress-publish "landing-page-variant-b.md" --ab_test "group_b"
|
|
1232
|
+
```
|
|
1233
|
+
|
|
1234
|
+
### 🎯 Platform-Specific Best Practices
|
|
1235
|
+
|
|
1236
|
+
#### WordPress Optimization
|
|
1237
|
+
|
|
1238
|
+
```bash
|
|
1239
|
+
# SEO-optimized WordPress content
|
|
1240
|
+
/myai-content-writer "SEO Article" --target_keyword "docker tutorial" --seo_optimized true
|
|
1241
|
+
/myai-wordpress-admin seo-analyze --content "seo-article.md" --suggestions true
|
|
1242
|
+
/myai-wordpress-publish "seo-article.md" --yoast_optimization true --featured_image "auto"
|
|
1243
|
+
```
|
|
1244
|
+
|
|
1245
|
+
#### Technical Documentation (Docusaurus/Mintlify)
|
|
1246
|
+
|
|
1247
|
+
```bash
|
|
1248
|
+
# Interactive documentation
|
|
1249
|
+
/myai-content-writer "Interactive Guide" --platform "docusaurus" --interactive_elements true
|
|
1250
|
+
/myai-docusaurus-publish "interactive-guide.md" --add_live_editor true --code_playground true
|
|
1251
|
+
|
|
1252
|
+
# API reference with examples
|
|
1253
|
+
/myai-content-writer "API Reference" --platform "mintlify" --openapi_spec "api.yaml"
|
|
1254
|
+
/myai-mintlify-publish "api-reference.md" --interactive_examples true --try_it_buttons true
|
|
1255
|
+
```
|
|
1256
|
+
|
|
1257
|
+
#### Static Site Publishing (Astro)
|
|
1258
|
+
|
|
1259
|
+
```bash
|
|
1260
|
+
# Performance-optimized content
|
|
1261
|
+
/myai-content-writer "Performance Guide" --platform "astro" --image_optimization true
|
|
1262
|
+
/myai-astro-publish "performance-guide.md" --optimize_images true --generate_sitemap true --rss_feed true
|
|
1263
|
+
```
|
|
1264
|
+
|
|
643
1265
|
### Batch Operations
|
|
644
1266
|
|
|
645
1267
|
**Process multiple files:**
|