myaidev-method 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/USER_GUIDE.md +755 -0
- package/package.json +2 -1
package/USER_GUIDE.md
ADDED
|
@@ -0,0 +1,755 @@
|
|
|
1
|
+
# MyAIDev Method - User Guide
|
|
2
|
+
|
|
3
|
+
> **🎯 Complete guide to customizing and using your AI CLI agents**
|
|
4
|
+
|
|
5
|
+
This guide covers everything you need to know about using, customizing, and extending the MyAIDev Method package after installation.
|
|
6
|
+
|
|
7
|
+
## 📋 Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Quick Start](#quick-start)
|
|
10
|
+
- [Understanding the Structure](#understanding-the-structure)
|
|
11
|
+
- [Customizing Agents](#customizing-agents)
|
|
12
|
+
- [Managing Commands](#managing-commands)
|
|
13
|
+
- [WordPress Integration](#wordpress-integration)
|
|
14
|
+
- [SSH Configuration](#ssh-configuration)
|
|
15
|
+
- [Agent Management](#agent-management)
|
|
16
|
+
- [Troubleshooting](#troubleshooting)
|
|
17
|
+
- [Advanced Usage](#advanced-usage)
|
|
18
|
+
- [Best Practices](#best-practices)
|
|
19
|
+
|
|
20
|
+
## 🚀 Quick Start
|
|
21
|
+
|
|
22
|
+
After installing with `npx myaidev-method init --claude`, you'll have a `.claude` folder in your project:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
.claude/
|
|
26
|
+
├── commands/ # Slash commands
|
|
27
|
+
├── agents/ # AI agent definitions
|
|
28
|
+
├── mcp/ # MCP integrations
|
|
29
|
+
└── CLAUDE.md # Project configuration
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Immediate Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Create professional content
|
|
36
|
+
/myai-content-writer "10 Best Remote Work Tips"
|
|
37
|
+
|
|
38
|
+
# WordPress administration
|
|
39
|
+
/myai-wordpress-admin health-check
|
|
40
|
+
|
|
41
|
+
# Manage agents and settings
|
|
42
|
+
/myai-configure agents --list
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 🏗️ Understanding the Structure
|
|
46
|
+
|
|
47
|
+
### Commands Directory (`.claude/commands/`)
|
|
48
|
+
|
|
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
|
|
53
|
+
- `myai-wordpress-publish.md` - WordPress publishing
|
|
54
|
+
- `myai-configure.md` - Configuration management
|
|
55
|
+
|
|
56
|
+
### Agents Directory (`.claude/agents/`)
|
|
57
|
+
|
|
58
|
+
Contains AI agent definitions with specialized prompts:
|
|
59
|
+
|
|
60
|
+
- `content-writer.md` - Professional content creator
|
|
61
|
+
- `wordpress-admin.md` - WordPress administrator
|
|
62
|
+
|
|
63
|
+
### File Format
|
|
64
|
+
|
|
65
|
+
All commands and agents use Markdown with YAML frontmatter:
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
---
|
|
69
|
+
name: agent-name
|
|
70
|
+
description: Brief description
|
|
71
|
+
tools: Read, Write, Edit, WebSearch, WebFetch, Task
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
# Agent prompt content goes here...
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 🎨 Customizing Agents
|
|
78
|
+
|
|
79
|
+
### Method 1: Direct File Editing
|
|
80
|
+
|
|
81
|
+
**For immediate customization in your current project:**
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Edit the content writer agent
|
|
85
|
+
nano .claude/agents/content-writer.md
|
|
86
|
+
# or
|
|
87
|
+
code .claude/agents/content-writer.md
|
|
88
|
+
|
|
89
|
+
# Restart Claude Code to load changes
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Method 2: Replace with Custom File
|
|
93
|
+
|
|
94
|
+
**If you have a complete custom prompt file:**
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Always backup first
|
|
98
|
+
cp .claude/agents/content-writer.md .claude/agents/content-writer.md.backup
|
|
99
|
+
|
|
100
|
+
# Replace with your custom file
|
|
101
|
+
cp your-custom-prompt.md .claude/agents/content-writer.md
|
|
102
|
+
|
|
103
|
+
# Restart Claude Code
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Method 3: Using Configuration Commands
|
|
107
|
+
|
|
108
|
+
**Safe editing with built-in tools:**
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Create backup before editing
|
|
112
|
+
/myai-configure agents --backup content-writer
|
|
113
|
+
|
|
114
|
+
# Edit the agent
|
|
115
|
+
/myai-configure agents --edit content-writer
|
|
116
|
+
|
|
117
|
+
# Validate changes
|
|
118
|
+
/myai-configure agents --validate content-writer
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Method 4: Update Source for All Future Installations
|
|
122
|
+
|
|
123
|
+
**To modify the default prompt for new installations:**
|
|
124
|
+
|
|
125
|
+
1. **Update the source template**:
|
|
126
|
+
```bash
|
|
127
|
+
# Edit the template file
|
|
128
|
+
nano src/templates/claude/agents/content-writer.md
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
2. **Publish update**:
|
|
132
|
+
```bash
|
|
133
|
+
# Bump version
|
|
134
|
+
npm version patch # 0.0.1 → 0.0.2
|
|
135
|
+
|
|
136
|
+
# Publish
|
|
137
|
+
npm publish
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## ✏️ Agent Customization Examples
|
|
141
|
+
|
|
142
|
+
### Example 1: Technical Documentation Writer
|
|
143
|
+
|
|
144
|
+
```markdown
|
|
145
|
+
---
|
|
146
|
+
name: content-writer
|
|
147
|
+
description: Technical documentation specialist for developer content
|
|
148
|
+
tools: Read, Write, Edit, WebSearch, WebFetch, Task, Grep, Glob
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
You are a technical documentation writer specializing in developer-focused content.
|
|
152
|
+
|
|
153
|
+
## Writing Style
|
|
154
|
+
- Use clear, concise technical language
|
|
155
|
+
- Include code examples where appropriate
|
|
156
|
+
- Structure content for easy scanning by developers
|
|
157
|
+
- Focus on practical implementation details
|
|
158
|
+
|
|
159
|
+
## Custom Requirements
|
|
160
|
+
- Always include code snippets when relevant
|
|
161
|
+
- Add "Prerequisites" section for technical tutorials
|
|
162
|
+
- Include "Troubleshooting" sections
|
|
163
|
+
- Reference official documentation sources
|
|
164
|
+
|
|
165
|
+
## Output Format
|
|
166
|
+
Create content with:
|
|
167
|
+
- Step-by-step instructions
|
|
168
|
+
- Code examples with syntax highlighting
|
|
169
|
+
- API reference links
|
|
170
|
+
- Common pitfalls and solutions
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Example 2: Marketing Content Writer
|
|
174
|
+
|
|
175
|
+
```markdown
|
|
176
|
+
---
|
|
177
|
+
name: content-writer
|
|
178
|
+
description: Marketing content specialist focused on conversion
|
|
179
|
+
tools: Read, Write, Edit, WebSearch, WebFetch, Task
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
You are a marketing content writer specializing in conversion-focused copy.
|
|
183
|
+
|
|
184
|
+
## Brand Voice
|
|
185
|
+
- Conversational and approachable
|
|
186
|
+
- Benefits-focused messaging
|
|
187
|
+
- Strong calls-to-action
|
|
188
|
+
- Customer pain point awareness
|
|
189
|
+
|
|
190
|
+
## Content Types
|
|
191
|
+
- Landing page copy
|
|
192
|
+
- Email marketing content
|
|
193
|
+
- Social media posts
|
|
194
|
+
- Product descriptions
|
|
195
|
+
|
|
196
|
+
## SEO Focus
|
|
197
|
+
- High-converting keywords
|
|
198
|
+
- Local SEO optimization
|
|
199
|
+
- Featured snippet targeting
|
|
200
|
+
- User intent matching
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Example 3: Industry-Specific Writer
|
|
204
|
+
|
|
205
|
+
```markdown
|
|
206
|
+
---
|
|
207
|
+
name: content-writer
|
|
208
|
+
description: Healthcare content writer with medical expertise
|
|
209
|
+
tools: Read, Write, Edit, WebSearch, WebFetch, Task
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
You are a healthcare content writer with deep medical knowledge.
|
|
213
|
+
|
|
214
|
+
## Compliance Requirements
|
|
215
|
+
- HIPAA compliance awareness
|
|
216
|
+
- Medical accuracy verification
|
|
217
|
+
- Proper medical terminology
|
|
218
|
+
- Citation of peer-reviewed sources
|
|
219
|
+
|
|
220
|
+
## Content Guidelines
|
|
221
|
+
- Patient-friendly language
|
|
222
|
+
- Evidence-based information
|
|
223
|
+
- Professional medical tone
|
|
224
|
+
- Accessibility considerations
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
## ⚙️ Managing Commands
|
|
228
|
+
|
|
229
|
+
### Viewing Available Commands
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# List all commands
|
|
233
|
+
/myai-configure agents --list
|
|
234
|
+
|
|
235
|
+
# Show command details
|
|
236
|
+
ls -la .claude/commands/
|
|
237
|
+
|
|
238
|
+
# View specific command
|
|
239
|
+
cat .claude/commands/myai-content-writer.md
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Customizing Commands
|
|
243
|
+
|
|
244
|
+
Edit command files to modify behavior:
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Edit content writer command
|
|
248
|
+
nano .claude/commands/myai-content-writer.md
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Example command customization:**
|
|
252
|
+
|
|
253
|
+
```markdown
|
|
254
|
+
---
|
|
255
|
+
name: myai-content-writer
|
|
256
|
+
description: Create technical blog posts with code examples
|
|
257
|
+
tools: Read, Write, Edit, WebSearch, WebFetch, Task, Grep, Glob
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
Create technical blog posts based on the topic: $ARGUMENTS
|
|
261
|
+
|
|
262
|
+
## Requirements
|
|
263
|
+
- Include practical code examples
|
|
264
|
+
- Add "Prerequisites" section
|
|
265
|
+
- Provide GitHub repository links
|
|
266
|
+
- Include troubleshooting section
|
|
267
|
+
|
|
268
|
+
## Output Format
|
|
269
|
+
Save as markdown with:
|
|
270
|
+
- Technical accuracy
|
|
271
|
+
- Step-by-step tutorials
|
|
272
|
+
- Copy-paste ready code
|
|
273
|
+
- Real-world applications
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Creating New Commands
|
|
277
|
+
|
|
278
|
+
1. **Create new command file**:
|
|
279
|
+
```bash
|
|
280
|
+
nano .claude/commands/myai-code-reviewer.md
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
2. **Add command definition**:
|
|
284
|
+
```markdown
|
|
285
|
+
---
|
|
286
|
+
name: myai-code-reviewer
|
|
287
|
+
description: Professional code review and analysis
|
|
288
|
+
tools: Read, Write, Edit, Grep, Glob, Task
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
Review the code specified in $ARGUMENTS and provide:
|
|
292
|
+
- Security analysis
|
|
293
|
+
- Performance recommendations
|
|
294
|
+
- Best practice suggestions
|
|
295
|
+
- Refactoring opportunities
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
3. **Restart Claude Code** to load the new command
|
|
299
|
+
|
|
300
|
+
## 🔌 WordPress Integration
|
|
301
|
+
|
|
302
|
+
### Initial Setup
|
|
303
|
+
|
|
304
|
+
1. **Create environment file**:
|
|
305
|
+
```bash
|
|
306
|
+
cp .env.example .env
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
2. **Configure WordPress credentials**:
|
|
310
|
+
```bash
|
|
311
|
+
# Edit .env file
|
|
312
|
+
WORDPRESS_URL=https://your-site.com
|
|
313
|
+
WORDPRESS_USERNAME=your-username
|
|
314
|
+
WORDPRESS_APP_PASSWORD=your-app-password
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
3. **Create Application Password**:
|
|
318
|
+
- Go to WordPress Admin → Users → Your Profile
|
|
319
|
+
- Find "Application Passwords" section
|
|
320
|
+
- Enter name and click "Add New"
|
|
321
|
+
- Copy the generated password
|
|
322
|
+
|
|
323
|
+
### WordPress Commands
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
# Test connection
|
|
327
|
+
/myai-wordpress-admin health-check
|
|
328
|
+
|
|
329
|
+
# Security operations
|
|
330
|
+
/myai-wordpress-admin security-scan
|
|
331
|
+
/myai-wordpress-admin malware-check
|
|
332
|
+
/myai-wordpress-admin user-audit
|
|
333
|
+
|
|
334
|
+
# Performance optimization
|
|
335
|
+
/myai-wordpress-admin speed-test --detailed
|
|
336
|
+
/myai-wordpress-admin database-optimize
|
|
337
|
+
/myai-wordpress-admin cache-setup
|
|
338
|
+
|
|
339
|
+
# Content management
|
|
340
|
+
/myai-wordpress-publish "article.md" --status draft
|
|
341
|
+
/myai-content-writer "Blog Post Title" --publish_to_wordpress true
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### WordPress Configuration Options
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
# Configure WordPress settings
|
|
348
|
+
/myai-configure wordpress
|
|
349
|
+
|
|
350
|
+
# Set default publishing options
|
|
351
|
+
/myai-configure defaults
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
## 💻 SSH Configuration
|
|
355
|
+
|
|
356
|
+
### Setup Options
|
|
357
|
+
|
|
358
|
+
#### Option 1: Use Existing SSH Keys (Recommended)
|
|
359
|
+
|
|
360
|
+
If you already have SSH configured:
|
|
361
|
+
|
|
362
|
+
```bash
|
|
363
|
+
# Test existing SSH
|
|
364
|
+
ssh user@your-server
|
|
365
|
+
|
|
366
|
+
# Use in WordPress admin (automatic)
|
|
367
|
+
/myai-wordpress-admin security-scan
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
#### Option 2: Specify SSH Details
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
# Add to .env file
|
|
374
|
+
SSH_HOST=your-server-ip
|
|
375
|
+
SSH_USERNAME=your-ssh-username
|
|
376
|
+
SSH_KEY_PATH=/path/to/private/key
|
|
377
|
+
WORDPRESS_PATH=/var/www/html
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
#### Option 3: SSH Config File
|
|
381
|
+
|
|
382
|
+
Configure in `~/.ssh/config`:
|
|
383
|
+
|
|
384
|
+
```
|
|
385
|
+
Host wordpress-server
|
|
386
|
+
HostName your-server-ip
|
|
387
|
+
User your-username
|
|
388
|
+
IdentityFile ~/.ssh/your-key
|
|
389
|
+
Port 22
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Then set: `SSH_HOST=wordpress-server`
|
|
393
|
+
|
|
394
|
+
### SSH-Enabled Operations
|
|
395
|
+
|
|
396
|
+
When SSH is available:
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
# Server-level security
|
|
400
|
+
/myai-wordpress-admin file-permissions
|
|
401
|
+
/myai-wordpress-admin malware-check
|
|
402
|
+
|
|
403
|
+
# Performance monitoring
|
|
404
|
+
/myai-wordpress-admin resource-monitor
|
|
405
|
+
/myai-wordpress-admin error-analysis
|
|
406
|
+
|
|
407
|
+
# Backup operations
|
|
408
|
+
/myai-wordpress-admin backup-create
|
|
409
|
+
/myai-wordpress-admin backup-verify
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
## 🛠️ Agent Management
|
|
413
|
+
|
|
414
|
+
### Using Configuration Commands
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
# List all agents
|
|
418
|
+
/myai-configure agents --list
|
|
419
|
+
|
|
420
|
+
# Check agent status
|
|
421
|
+
/myai-configure agents --status
|
|
422
|
+
|
|
423
|
+
# Validate specific agent
|
|
424
|
+
/myai-configure agents --validate content-writer
|
|
425
|
+
|
|
426
|
+
# Create backup
|
|
427
|
+
/myai-configure agents --backup wordpress-admin
|
|
428
|
+
|
|
429
|
+
# Edit agent safely
|
|
430
|
+
/myai-configure agents --edit content-writer
|
|
431
|
+
|
|
432
|
+
# Restore from backup
|
|
433
|
+
/myai-configure agents --restore content-writer
|
|
434
|
+
|
|
435
|
+
# Show agent tools
|
|
436
|
+
/myai-configure agents --tools wordpress-admin
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Manual Agent Management
|
|
440
|
+
|
|
441
|
+
```bash
|
|
442
|
+
# View agent details
|
|
443
|
+
cat .claude/agents/content-writer.md
|
|
444
|
+
|
|
445
|
+
# List all agents
|
|
446
|
+
ls -la .claude/agents/
|
|
447
|
+
|
|
448
|
+
# Check modification dates
|
|
449
|
+
ls -lt .claude/agents/
|
|
450
|
+
|
|
451
|
+
# Create manual backup
|
|
452
|
+
cp .claude/agents/content-writer.md backups/content-writer-$(date +%Y%m%d).md
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### Agent Validation
|
|
456
|
+
|
|
457
|
+
Before using modified agents:
|
|
458
|
+
|
|
459
|
+
1. **Check YAML syntax**:
|
|
460
|
+
```bash
|
|
461
|
+
head -10 .claude/agents/content-writer.md
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
2. **Validate required fields**:
|
|
465
|
+
- `name`: Agent identifier
|
|
466
|
+
- `description`: Brief description
|
|
467
|
+
- `tools`: Available tools list
|
|
468
|
+
|
|
469
|
+
3. **Test functionality**:
|
|
470
|
+
```bash
|
|
471
|
+
/myai-configure agents --validate content-writer
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
## 🔍 Troubleshooting
|
|
475
|
+
|
|
476
|
+
### Common Issues
|
|
477
|
+
|
|
478
|
+
#### Commands Not Appearing
|
|
479
|
+
|
|
480
|
+
**Problem**: Custom commands don't show in `/` menu.
|
|
481
|
+
|
|
482
|
+
**Solutions**:
|
|
483
|
+
```bash
|
|
484
|
+
# Check file location
|
|
485
|
+
ls .claude/commands/
|
|
486
|
+
|
|
487
|
+
# Verify YAML syntax
|
|
488
|
+
head -5 .claude/commands/myai-content-writer.md
|
|
489
|
+
|
|
490
|
+
# Check file permissions
|
|
491
|
+
chmod 644 .claude/commands/*.md
|
|
492
|
+
|
|
493
|
+
# Restart Claude Code
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
#### WordPress Connection Issues
|
|
497
|
+
|
|
498
|
+
**Problem**: Cannot connect to WordPress.
|
|
499
|
+
|
|
500
|
+
**Solutions**:
|
|
501
|
+
```bash
|
|
502
|
+
# Test WordPress API manually
|
|
503
|
+
curl -u "username:app-password" "https://your-site.com/wp-json/wp/v2/users/me"
|
|
504
|
+
|
|
505
|
+
# Check environment variables
|
|
506
|
+
cat .env
|
|
507
|
+
|
|
508
|
+
# Verify WordPress settings
|
|
509
|
+
/myai-configure wordpress
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
#### SSH Authentication Problems
|
|
513
|
+
|
|
514
|
+
**Problem**: SSH operations fail.
|
|
515
|
+
|
|
516
|
+
**Solutions**:
|
|
517
|
+
```bash
|
|
518
|
+
# Test SSH manually
|
|
519
|
+
ssh user@your-server
|
|
520
|
+
|
|
521
|
+
# Check SSH configuration
|
|
522
|
+
cat ~/.ssh/config
|
|
523
|
+
|
|
524
|
+
# Verify key permissions
|
|
525
|
+
chmod 600 ~/.ssh/id_rsa
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
#### Agent Not Working
|
|
529
|
+
|
|
530
|
+
**Problem**: Agent behavior doesn't match expectations.
|
|
531
|
+
|
|
532
|
+
**Solutions**:
|
|
533
|
+
```bash
|
|
534
|
+
# Check agent file
|
|
535
|
+
cat .claude/agents/content-writer.md
|
|
536
|
+
|
|
537
|
+
# Validate YAML frontmatter
|
|
538
|
+
/myai-configure agents --validate content-writer
|
|
539
|
+
|
|
540
|
+
# Restart Claude Code
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### Debug Mode
|
|
544
|
+
|
|
545
|
+
Enable detailed logging:
|
|
546
|
+
|
|
547
|
+
```bash
|
|
548
|
+
# Add to .env file
|
|
549
|
+
DEBUG=true
|
|
550
|
+
VERBOSE_LOGGING=true
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
### Log Files
|
|
554
|
+
|
|
555
|
+
Check logs for errors:
|
|
556
|
+
|
|
557
|
+
```bash
|
|
558
|
+
# View recent errors
|
|
559
|
+
tail -f ~/.claude/logs/errors.log
|
|
560
|
+
|
|
561
|
+
# Check command execution
|
|
562
|
+
tail -f ~/.claude/logs/commands.log
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
## 🚀 Advanced Usage
|
|
566
|
+
|
|
567
|
+
### Creating Custom Agent Workflows
|
|
568
|
+
|
|
569
|
+
**Multi-step content creation:**
|
|
570
|
+
|
|
571
|
+
```bash
|
|
572
|
+
# 1. Research and outline
|
|
573
|
+
/myai-content-writer "Topic Research" --research_only true
|
|
574
|
+
|
|
575
|
+
# 2. Create content
|
|
576
|
+
/myai-content-writer "Full Article" --outline_from research.md
|
|
577
|
+
|
|
578
|
+
# 3. WordPress optimization
|
|
579
|
+
/myai-wordpress-admin seo-analyze --content article.md
|
|
580
|
+
|
|
581
|
+
# 4. Publish
|
|
582
|
+
/myai-wordpress-publish article.md --status publish
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
### Batch Operations
|
|
586
|
+
|
|
587
|
+
**Process multiple files:**
|
|
588
|
+
|
|
589
|
+
```bash
|
|
590
|
+
# Create multiple articles
|
|
591
|
+
for topic in "Topic 1" "Topic 2" "Topic 3"; do
|
|
592
|
+
/myai-content-writer "$topic" --auto_save true
|
|
593
|
+
done
|
|
594
|
+
|
|
595
|
+
# Batch WordPress health checks
|
|
596
|
+
/myai-wordpress-admin health-check --comprehensive --schedule daily
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### Integration with CI/CD
|
|
600
|
+
|
|
601
|
+
**Automated content workflows:**
|
|
602
|
+
|
|
603
|
+
```bash
|
|
604
|
+
# In your CI/CD pipeline
|
|
605
|
+
npx myaidev-method init --claude
|
|
606
|
+
/myai-content-writer "Weekly Newsletter" --template newsletter.md
|
|
607
|
+
/myai-wordpress-publish newsletter.md --schedule "next monday"
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### Custom Environment Configurations
|
|
611
|
+
|
|
612
|
+
**Development vs Production:**
|
|
613
|
+
|
|
614
|
+
```bash
|
|
615
|
+
# .env.development
|
|
616
|
+
WORDPRESS_URL=https://staging.yoursite.com
|
|
617
|
+
DEBUG=true
|
|
618
|
+
|
|
619
|
+
# .env.production
|
|
620
|
+
WORDPRESS_URL=https://yoursite.com
|
|
621
|
+
DEBUG=false
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
## ✨ Best Practices
|
|
625
|
+
|
|
626
|
+
### Agent Customization
|
|
627
|
+
|
|
628
|
+
1. **Always backup before editing**:
|
|
629
|
+
```bash
|
|
630
|
+
/myai-configure agents --backup content-writer
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
2. **Test in development first**:
|
|
634
|
+
```bash
|
|
635
|
+
# Test with sample content
|
|
636
|
+
/myai-content-writer "Test Article" --draft_mode true
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
3. **Version control your customizations**:
|
|
640
|
+
```bash
|
|
641
|
+
git add .claude/
|
|
642
|
+
git commit -m "Customize content writer for technical docs"
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
4. **Document your changes**:
|
|
646
|
+
```bash
|
|
647
|
+
# Add comments to your agent files
|
|
648
|
+
echo "# Custom modifications for technical content" >> .claude/agents/content-writer.md
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### Security
|
|
652
|
+
|
|
653
|
+
1. **Secure your .env file**:
|
|
654
|
+
```bash
|
|
655
|
+
chmod 600 .env
|
|
656
|
+
echo ".env" >> .gitignore
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
2. **Use strong WordPress Application Passwords**
|
|
660
|
+
|
|
661
|
+
3. **Limit SSH access**:
|
|
662
|
+
```bash
|
|
663
|
+
# Use specific SSH keys
|
|
664
|
+
SSH_KEY_PATH=/path/to/dedicated/key
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
4. **Regular security audits**:
|
|
668
|
+
```bash
|
|
669
|
+
/myai-wordpress-admin security-scan --comprehensive
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
### Performance
|
|
673
|
+
|
|
674
|
+
1. **Monitor resource usage**:
|
|
675
|
+
```bash
|
|
676
|
+
/myai-wordpress-admin resource-monitor
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
2. **Regular maintenance**:
|
|
680
|
+
```bash
|
|
681
|
+
/myai-wordpress-admin database-optimize --weekly
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
3. **Cache optimization**:
|
|
685
|
+
```bash
|
|
686
|
+
/myai-wordpress-admin cache-setup --type redis
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
### Content Quality
|
|
690
|
+
|
|
691
|
+
1. **Consistent style guides**:
|
|
692
|
+
- Define brand voice in agent prompts
|
|
693
|
+
- Include specific formatting requirements
|
|
694
|
+
- Add industry-specific terminology
|
|
695
|
+
|
|
696
|
+
2. **Quality checks**:
|
|
697
|
+
```bash
|
|
698
|
+
# Validate content before publishing
|
|
699
|
+
/myai-configure agents --validate content-writer
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
3. **A/B testing**:
|
|
703
|
+
- Create multiple agent variants
|
|
704
|
+
- Test different approaches
|
|
705
|
+
- Measure engagement metrics
|
|
706
|
+
|
|
707
|
+
### Collaboration
|
|
708
|
+
|
|
709
|
+
1. **Team configurations**:
|
|
710
|
+
```bash
|
|
711
|
+
# Share agent configurations
|
|
712
|
+
git add .claude/agents/
|
|
713
|
+
git commit -m "Team content writer configuration"
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
2. **Documentation**:
|
|
717
|
+
```bash
|
|
718
|
+
# Document custom workflows
|
|
719
|
+
echo "## Team Workflow" >> .claude/CLAUDE.md
|
|
720
|
+
```
|
|
721
|
+
|
|
722
|
+
3. **Code reviews for agent changes**:
|
|
723
|
+
- Review prompt modifications
|
|
724
|
+
- Test agent behavior
|
|
725
|
+
- Validate output quality
|
|
726
|
+
|
|
727
|
+
## 📚 Additional Resources
|
|
728
|
+
|
|
729
|
+
### Learning More
|
|
730
|
+
|
|
731
|
+
- **Claude Code Documentation**: Official Claude Code docs
|
|
732
|
+
- **WordPress REST API**: https://developer.wordpress.org/rest-api/
|
|
733
|
+
- **Markdown Guide**: https://www.markdownguide.org/
|
|
734
|
+
- **YAML Syntax**: https://yaml.org/spec/
|
|
735
|
+
|
|
736
|
+
### Community
|
|
737
|
+
|
|
738
|
+
- **GitHub Issues**: Report bugs and request features
|
|
739
|
+
- **Discussions**: Share configurations and tips
|
|
740
|
+
- **Examples**: Browse community agent configurations
|
|
741
|
+
|
|
742
|
+
### Support
|
|
743
|
+
|
|
744
|
+
If you encounter issues:
|
|
745
|
+
|
|
746
|
+
1. **Check this guide** for troubleshooting steps
|
|
747
|
+
2. **Review error logs** for specific issues
|
|
748
|
+
3. **Test components individually** (WordPress, SSH, agents)
|
|
749
|
+
4. **Create GitHub issues** for bugs or feature requests
|
|
750
|
+
|
|
751
|
+
---
|
|
752
|
+
|
|
753
|
+
**Happy customizing!** 🚀
|
|
754
|
+
|
|
755
|
+
Remember: The power of MyAIDev Method lies in its customizability. Don't hesitate to experiment with different agent configurations to find what works best for your workflow.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myaidev-method",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "AI CLI tools package with custom subagents and MCP integrations for Claude Code, Gemini CLI, and more",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"bin/",
|
|
51
51
|
"src/",
|
|
52
52
|
"README.md",
|
|
53
|
+
"USER_GUIDE.md",
|
|
53
54
|
"LICENSE",
|
|
54
55
|
".env.example"
|
|
55
56
|
],
|