myaidev-method 0.2.22 → 0.2.24-1

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 (59) hide show
  1. package/USER_GUIDE.md +453 -48
  2. package/bin/cli.js +236 -38
  3. package/content-rules.example.md +80 -0
  4. package/dist/mcp/mcp-launcher.js +237 -0
  5. package/dist/server/.tsbuildinfo +1 -1
  6. package/dist/server/auth/layers.d.ts +1 -1
  7. package/dist/server/auth/services/AuthService.d.ts +1 -1
  8. package/dist/server/auth/services/TokenService.js.map +1 -1
  9. package/dist/server/auth/services/example.d.ts +5 -5
  10. package/package.json +22 -17
  11. package/src/config/workflows.js +28 -44
  12. package/src/index.js +21 -8
  13. package/src/lib/ascii-banner.js +214 -0
  14. package/src/lib/config-manager.js +470 -0
  15. package/src/lib/content-generator.js +427 -0
  16. package/src/lib/html-conversion-utils.js +843 -0
  17. package/src/lib/seo-optimizer.js +515 -0
  18. package/src/lib/update-manager.js +2 -1
  19. package/src/lib/visual-config-utils.js +321 -295
  20. package/src/lib/visual-generation-utils.js +1000 -811
  21. package/src/lib/wordpress-client.js +633 -0
  22. package/src/lib/workflow-installer.js +3 -3
  23. package/src/scripts/configure-wordpress-mcp.js +8 -3
  24. package/src/scripts/generate-visual-cli.js +365 -235
  25. package/src/scripts/html-conversion-cli.js +526 -0
  26. package/src/scripts/init/configure.js +436 -0
  27. package/src/scripts/init/install.js +460 -0
  28. package/src/scripts/ping.js +250 -0
  29. package/src/scripts/utils/file-utils.js +404 -0
  30. package/src/scripts/utils/logger.js +300 -0
  31. package/src/scripts/utils/write-content.js +293 -0
  32. package/src/scripts/wordpress/publish-to-wordpress.js +165 -0
  33. package/src/server/auth/services/TokenService.ts +1 -1
  34. package/src/templates/claude/agents/content-rules-setup.md +657 -0
  35. package/src/templates/claude/agents/content-writer.md +328 -1
  36. package/src/templates/claude/agents/visual-content-generator.md +311 -8
  37. package/src/templates/claude/commands/myai-configure.md +1 -1
  38. package/src/templates/claude/commands/myai-content-rules-setup.md +204 -0
  39. package/src/templates/claude/commands/myai-convert-html.md +186 -0
  40. package/src/templates/codex/commands/myai-content-rules-setup.md +85 -0
  41. package/src/templates/diagrams/architecture.d2 +52 -0
  42. package/src/templates/diagrams/flowchart.d2 +42 -0
  43. package/src/templates/diagrams/sequence.d2 +47 -0
  44. package/src/templates/docs/content-creation-guide.md +164 -0
  45. package/src/templates/docs/deployment-guide.md +336 -0
  46. package/src/templates/docs/visual-generation-guide.md +248 -0
  47. package/src/templates/docs/wordpress-publishing-guide.md +208 -0
  48. package/src/templates/gemini/commands/myai-content-rules-setup.toml +57 -0
  49. package/src/templates/infographics/comparison-table.html +347 -0
  50. package/src/templates/infographics/data-chart.html +268 -0
  51. package/src/templates/infographics/process-flow.html +365 -0
  52. package/.claude/mcp/sparc-orchestrator-server.js +0 -607
  53. package/.claude/mcp/wordpress-server.js +0 -1277
  54. package/src/agents/content-writer-prompt.md +0 -164
  55. package/src/agents/content-writer.json +0 -70
  56. package/src/templates/claude/mcp_config.json +0 -74
  57. package/src/templates/claude/slash_commands.json +0 -166
  58. package/src/templates/scripts/configure-wordpress-mcp.js +0 -181
  59. /package/src/scripts/{wordpress-health-check.js → wordpress/wordpress-health-check.js} +0 -0
package/USER_GUIDE.md CHANGED
@@ -7,6 +7,7 @@ This guide covers everything you need to know about using, customizing, and exte
7
7
  ## 📋 Table of Contents
8
8
 
9
9
  - [Quick Start](#quick-start)
10
+ - [System Configuration](#-system-configuration)
10
11
  - [Updating MyAIDev Method](#-updating-myaidev-method)
11
12
  - [Understanding the Structure](#understanding-the-structure)
12
13
  - [👤 User Pathways](#-user-pathways)
@@ -19,6 +20,8 @@ This guide covers everything you need to know about using, customizing, and exte
19
20
  - [Managing Commands](#managing-commands)
20
21
  - [WordPress Integration](#wordpress-integration)
21
22
  - [PayloadCMS Integration](#payloadcms-integration)
23
+ - [Visual Generation](#-visual-generation)
24
+ - [Content Rules & Brand Voice](#-content-rules--brand-voice)
22
25
  - [SSH Configuration](#ssh-configuration)
23
26
  - [Agent Management](#agent-management)
24
27
  - [Troubleshooting](#troubleshooting)
@@ -79,6 +82,24 @@ You'll have a `.claude` folder in your project:
79
82
  └── CLAUDE.md # Project configuration
80
83
  ```
81
84
 
85
+ ### First-Time Setup
86
+
87
+ Use the interactive configuration command to set up your environment—no manual `.env` editing required:
88
+
89
+ ```bash
90
+ # Configure WordPress integration
91
+ /myai-configure wordpress
92
+
93
+ # Configure OpenStack (if using VM management)
94
+ /myai-configure openstack
95
+
96
+ # Configure default content settings
97
+ /myai-configure defaults
98
+
99
+ # Set up content rules for brand voice
100
+ /myai-content-rules-setup
101
+ ```
102
+
82
103
  ### Immediate Usage
83
104
 
84
105
  ```bash
@@ -99,6 +120,101 @@ You'll have a `.claude` folder in your project:
99
120
  /myai-configure agents --list
100
121
  ```
101
122
 
123
+ ## ⚙️ System Configuration
124
+
125
+ MyAIDev Method uses the `/myai-configure` command for interactive setup—**no manual `.env` file editing required**. This is the recommended way to configure all integrations.
126
+
127
+ ### Available Configuration Commands
128
+
129
+ | Command | Purpose |
130
+ |---------|---------|
131
+ | `/myai-configure wordpress` | Set up WordPress publishing integration |
132
+ | `/myai-configure openstack` | Configure OpenStack VM management |
133
+ | `/myai-configure defaults` | Set default content settings, visual generation API keys |
134
+ | `/myai-configure agents` | List, validate, backup, and manage agents |
135
+ | `/myai-content-rules-setup` | Interactive brand voice and content rules setup |
136
+
137
+ ### WordPress Configuration
138
+
139
+ ```bash
140
+ /myai-configure wordpress
141
+ ```
142
+
143
+ **What it does:**
144
+ - Prompts for WordPress URL and validates connectivity
145
+ - Guides you through Application Password creation step-by-step
146
+ - Tests the connection before saving
147
+ - Automatically creates `.env` with secure permissions (600)
148
+ - Optionally configures SSH for advanced administration
149
+
150
+ ### OpenStack Configuration
151
+
152
+ ```bash
153
+ /myai-configure openstack
154
+ ```
155
+
156
+ **What it does:**
157
+ - Can import settings from an existing `openrc` file
158
+ - Or prompts for each credential manually
159
+ - Tests connection with `openstack token issue`
160
+ - Optionally sets up default cloud-init scripts
161
+ - Saves all credentials securely to `.env`
162
+
163
+ ### Visual Generation & Defaults
164
+
165
+ ```bash
166
+ /myai-configure defaults
167
+ ```
168
+
169
+ **What it does:**
170
+ - Configures visual generation API keys (Gemini, OpenAI, Replicate)
171
+ - Sets your preferred default visual service
172
+ - Configures default content settings (word count, tone, audience)
173
+
174
+ ### Agent Management
175
+
176
+ ```bash
177
+ # List all agents
178
+ /myai-configure agents --list
179
+
180
+ # Check agent health
181
+ /myai-configure agents --status
182
+
183
+ # Validate specific agent
184
+ /myai-configure agents --validate content-writer
185
+
186
+ # Create backup before editing
187
+ /myai-configure agents --backup content-writer
188
+
189
+ # Show agent capabilities
190
+ /myai-configure agents --tools wordpress-admin
191
+ ```
192
+
193
+ ### Manual Configuration (Alternative)
194
+
195
+ If you prefer manual setup, create a `.env` file in your project root:
196
+
197
+ ```bash
198
+ # WordPress
199
+ WORDPRESS_URL=https://your-site.com
200
+ WORDPRESS_USERNAME=your-username
201
+ WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
202
+
203
+ # Visual Generation (at least one required)
204
+ GEMINI_API_KEY=your-gemini-key
205
+ OPENAI_API_KEY=your-openai-key
206
+ REPLICATE_API_TOKEN=your-replicate-token
207
+ VISUAL_DEFAULT_SERVICE=gemini
208
+
209
+ # OpenStack (optional)
210
+ OS_AUTH_URL=https://cloud.example.com:5000/v3
211
+ OS_USERNAME=your-username
212
+ OS_PASSWORD=your-password
213
+ OS_PROJECT_ID=your-project-id
214
+ ```
215
+
216
+ > ⚠️ **Security**: The `.env` file contains sensitive credentials. Never commit it to version control. The `/myai-configure` commands automatically set secure file permissions (600).
217
+
102
218
  ## 🔄 Updating MyAIDev Method
103
219
 
104
220
  The MyAIDev Method package receives regular updates with new features, bug fixes, and improved agents. Keep your installation up to date to access the latest capabilities.
@@ -389,11 +505,20 @@ done
389
505
 
390
506
  #### Publishing Configuration
391
507
 
392
- Set up your publishing credentials once:
508
+ Set up your publishing credentials once using the interactive configuration:
509
+
510
+ ```bash
511
+ # Configure WordPress (recommended - no manual .env editing)
512
+ /myai-configure wordpress
513
+
514
+ # Configure default content settings
515
+ /myai-configure defaults
516
+ ```
517
+
518
+ **Or manually configure `.env`:**
393
519
 
394
520
  **WordPress**:
395
521
  ```bash
396
- # .env configuration
397
522
  WORDPRESS_URL=https://yoursite.com
398
523
  WORDPRESS_USERNAME=your-username
399
524
  WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
@@ -401,7 +526,6 @@ WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
401
526
 
402
527
  **PayloadCMS**:
403
528
  ```bash
404
- # .env configuration
405
529
  PAYLOADCMS_URL=https://cms.yoursite.com
406
530
  PAYLOADCMS_EMAIL=your-email@example.com
407
531
  PAYLOADCMS_PASSWORD=your-password
@@ -1060,11 +1184,11 @@ cat .claude/commands/myai-content-writer.md
1060
1184
  **Best Practice:** Use `content-rules.md` for content customization instead of editing agents directly.
1061
1185
 
1062
1186
  ```bash
1063
- # Copy the example template
1064
- cp content-rules.example.md content-rules.md
1187
+ # Use interactive setup (recommended)
1188
+ /myai-content-rules-setup
1065
1189
 
1066
- # Edit with your preferences
1067
- nano content-rules.md
1190
+ # Or copy the example template
1191
+ cp content-rules.example.md content-rules.md
1068
1192
  ```
1069
1193
 
1070
1194
  **Why use content-rules.md?**
@@ -1074,41 +1198,7 @@ nano content-rules.md
1074
1198
  - ✅ Project-specific customization
1075
1199
  - ✅ Works even if file doesn't exist
1076
1200
 
1077
- **Example content-rules.md:**
1078
-
1079
- ```markdown
1080
- # Content Generation Rules
1081
-
1082
- ## Brand Voice
1083
- - Use conversational, friendly tone
1084
- - Avoid jargon unless explaining technical concepts
1085
- - Include real-world examples
1086
-
1087
- ## Formatting Preferences
1088
- - Keep paragraphs under 3 sentences
1089
- - Use numbered lists for sequential steps
1090
- - Include code examples for technical content
1091
-
1092
- ## SEO Guidelines
1093
- - Target keyword density: 1-2%
1094
- - Include FAQ section for articles over 1000 words
1095
- - Add "Related Resources" section at the end
1096
-
1097
- ## Required Elements
1098
- - Author bio at the end
1099
- - Call-to-action in conclusion
1100
- - Technical accuracy verification
1101
- ```
1102
-
1103
- **What you can customize:**
1104
- - Brand voice and tone
1105
- - Writing style preferences
1106
- - Formatting guidelines
1107
- - SEO requirements
1108
- - Required/optional content elements
1109
- - Topics to avoid
1110
- - Company-specific terminology
1111
- - Content structure preferences
1201
+ > 📖 **See [Content Rules & Brand Voice](#-content-rules--brand-voice)** for comprehensive documentation on setting up brand voice, writing style, SEO guidelines, and more.
1112
1202
 
1113
1203
  ### Customizing Commands (Advanced)
1114
1204
 
@@ -1172,18 +1262,25 @@ Save as markdown with:
1172
1262
 
1173
1263
  ### Initial Setup
1174
1264
 
1175
- Use the interactive configuration command to set up WordPress:
1265
+ **Option 1: Interactive Setup (Recommended)**
1266
+
1267
+ Use the interactive configuration command—no manual `.env` editing required:
1176
1268
 
1177
1269
  ```bash
1178
1270
  /myai-configure wordpress
1179
1271
  ```
1180
1272
 
1181
- This will guide you through:
1182
- - WordPress site URL
1183
- - Username
1184
- - Application Password creation
1273
+ This guided wizard will:
1274
+ 1. Prompt for your WordPress site URL and validate connectivity
1275
+ 2. Collect your WordPress username
1276
+ 3. Walk you through creating an Application Password with step-by-step instructions
1277
+ 4. Test the connection and verify everything works
1278
+ 5. Automatically save credentials to `.env` with secure permissions (600)
1279
+ 6. Optionally set up SSH for advanced administration features
1280
+
1281
+ **Option 2: Manual `.env` Setup**
1185
1282
 
1186
- **Alternative manual setup**:
1283
+ If you prefer manual configuration:
1187
1284
  1. Create `.env` file in your project root
1188
1285
  2. Add your WordPress credentials:
1189
1286
  ```bash
@@ -1280,6 +1377,314 @@ Content goes here...
1280
1377
  /myai-configure defaults
1281
1378
  ```
1282
1379
 
1380
+ ## 🎨 Visual Generation
1381
+
1382
+ MyAIDev Method includes AI-powered visual generation capabilities for creating images and videos to accompany your content.
1383
+
1384
+ ### Available Services
1385
+
1386
+ | Service | Provider | Best For | API Key Required |
1387
+ |---------|----------|----------|------------------|
1388
+ | **Gemini Nano Banana** | Google | General images, diagrams, infographics | `GEMINI_API_KEY` |
1389
+ | **GPT Image 1.5** | OpenAI | Realistic images, text rendering | `OPENAI_API_KEY` |
1390
+ | **FLUX 2 Pro** | Replicate | Artistic images, creative styles | `REPLICATE_API_TOKEN` |
1391
+ | **Veo 3** | Google | Video generation | `GEMINI_API_KEY` |
1392
+
1393
+ ### Model Strengths & Use Cases
1394
+
1395
+ **Gemini Nano Banana (Google)**
1396
+ - ✅ Excellent text rendering in images
1397
+ - ✅ Great for infographics and data visualizations
1398
+ - ✅ Good balance of quality and speed
1399
+ - ✅ Cost-effective for high volume
1400
+ - Best for: Technical diagrams, infographics, educational content
1401
+
1402
+ **GPT Image 1.5 (OpenAI)**
1403
+ - ✅ Excellent text rendering accuracy
1404
+ - ✅ High-quality realistic images
1405
+ - ✅ Strong prompt following
1406
+ - ✅ Good for complex scenes with text
1407
+ - Best for: Marketing materials, product visuals, detailed illustrations
1408
+
1409
+ **FLUX 2 Pro (Replicate)**
1410
+ - ✅ Exceptional artistic quality
1411
+ - ✅ Unique creative styles
1412
+ - ✅ Great for abstract and artistic imagery
1413
+ - ❌ Less reliable for text in images
1414
+ - Best for: Creative content, artistic blog headers, brand imagery
1415
+
1416
+ **Veo 3 (Google)**
1417
+ - ✅ Video generation capability
1418
+ - ✅ Good for short promotional clips
1419
+ - Best for: Social media videos, product demos, animated content
1420
+
1421
+ ### Service Selection
1422
+
1423
+ The visual generation system automatically selects which service to use based on:
1424
+
1425
+ 1. **Available API Keys**: Only services with valid API keys are considered
1426
+ 2. **User Preference**: Your `VISUAL_DEFAULT_SERVICE` setting takes priority
1427
+ 3. **Fallback**: Uses the first available service if no preference is set
1428
+
1429
+ ### Configuration
1430
+
1431
+ **Option 1: Interactive Setup (Recommended)**
1432
+
1433
+ Use the configure command for guided setup:
1434
+
1435
+ ```bash
1436
+ /myai-configure defaults
1437
+ ```
1438
+
1439
+ This will prompt you to configure:
1440
+ - Visual generation API keys
1441
+ - Default visual service preference
1442
+ - Output directory settings
1443
+
1444
+ **Option 2: Manual `.env` Configuration**
1445
+
1446
+ Add API keys directly to your `.env` file:
1447
+
1448
+ ```bash
1449
+ # Required: At least one of these
1450
+ GEMINI_API_KEY=your-gemini-api-key
1451
+ OPENAI_API_KEY=your-openai-api-key
1452
+ REPLICATE_API_TOKEN=your-replicate-token
1453
+
1454
+ # Optional: Set your preferred default service
1455
+ VISUAL_DEFAULT_SERVICE=gemini # Options: gemini, gpt-image-1.5, flux
1456
+
1457
+ # Optional: Custom output directory (default: ./generated-visuals)
1458
+ VISUAL_OUTPUT_DIR=./my-custom-output-path
1459
+ ```
1460
+
1461
+ ### Usage Examples
1462
+
1463
+ ```bash
1464
+ # Generate image using default/preferred service
1465
+ /myai-content-writer "Blog post about Docker" --generate_visual true
1466
+
1467
+ # Generate specific visual type
1468
+ node .myaidev-method/scripts/generate-visual-cli.js --type infographic-data "Cloud Cost Comparison"
1469
+
1470
+ # Generate with specific service
1471
+ node .myaidev-method/scripts/generate-visual-cli.js --service gpt-image-1.5 "Product feature diagram"
1472
+
1473
+ # Generate video (uses Veo 3)
1474
+ node .myaidev-method/scripts/generate-visual-cli.js --type video "Product demo animation"
1475
+ ```
1476
+
1477
+ ### Visual Types
1478
+
1479
+ | Type | Description | Recommended Service |
1480
+ |------|-------------|---------------------|
1481
+ | `hero` | Blog post header images | Gemini or GPT Image 1.5 |
1482
+ | `infographic-data` | Data visualization | Gemini or GPT Image 1.5 |
1483
+ | `infographic-comparison` | Comparison charts | Gemini or GPT Image 1.5 |
1484
+ | `diagram` | Technical diagrams | Gemini |
1485
+ | `product` | Product imagery | GPT Image 1.5 |
1486
+ | `video` | Short video clips | Veo 3 |
1487
+
1488
+ ### Troubleshooting Visual Generation
1489
+
1490
+ **No services available**:
1491
+ ```bash
1492
+ # Check your API keys are set
1493
+ cat .env | grep -E "(GEMINI|OPENAI|REPLICATE)"
1494
+
1495
+ # Test a specific service
1496
+ node .myaidev-method/scripts/generate-visual-cli.js --service gemini "Test image"
1497
+ ```
1498
+
1499
+ **Service selection not working**:
1500
+ ```bash
1501
+ # Set explicit default service
1502
+ echo "VISUAL_DEFAULT_SERVICE=gemini" >> .env
1503
+ ```
1504
+
1505
+ ## 📝 Content Rules & Brand Voice
1506
+
1507
+ The `content-rules.md` file is a powerful customization system that controls how AI-generated content matches your brand voice, style, and requirements—without modifying agent files.
1508
+
1509
+ ### Why Content Rules Matter
1510
+
1511
+ Content rules provide a **non-destructive** way to customize all content generation:
1512
+
1513
+ | Benefit | Description |
1514
+ |---------|-------------|
1515
+ | **Preserves Updates** | Customize without editing agents—your rules survive package updates |
1516
+ | **Brand Consistency** | Define voice, tone, and style once, apply everywhere |
1517
+ | **Project-Specific** | Each project can have its own content rules |
1518
+ | **Easy to Share** | Version control your brand guidelines with your project |
1519
+ | **Fallback Safe** | Works even if the file doesn't exist (uses sensible defaults) |
1520
+
1521
+ ### Setting Up Content Rules
1522
+
1523
+ **Option 1: Interactive Setup (Recommended)**
1524
+
1525
+ Use the content rules setup command for guided configuration:
1526
+
1527
+ ```bash
1528
+ /myai-content-rules-setup
1529
+ ```
1530
+
1531
+ This interactive wizard will guide you through:
1532
+ 1. **Brand Identity**: Company name, values, mission
1533
+ 2. **Voice & Tone**: Personality, communication style
1534
+ 3. **Writing Style**: Formality, sentence structure, vocabulary
1535
+ 4. **SEO Guidelines**: Keyword density, meta requirements
1536
+ 5. **Formatting**: Structure preferences, visual elements
1537
+ 6. **Audience**: Target demographics and expertise level
1538
+
1539
+ **Option 2: Copy Template**
1540
+
1541
+ ```bash
1542
+ # Copy the example template
1543
+ cp content-rules.example.md content-rules.md
1544
+
1545
+ # Edit with your preferences
1546
+ nano content-rules.md
1547
+ ```
1548
+
1549
+ ### What You Can Customize
1550
+
1551
+ **1. Brand Voice**
1552
+ ```markdown
1553
+ ## Brand Voice
1554
+ - **Personality**: Professional yet approachable
1555
+ - **Values**: Innovation, reliability, simplicity
1556
+ - **Tone**: Confident, helpful, forward-thinking
1557
+ - **Language Style**: Clear, jargon-free unless technical audience
1558
+ ```
1559
+
1560
+ **2. Writing Style**
1561
+ ```markdown
1562
+ ## Writing Style
1563
+ - **Formality**: Semi-formal (conversational but professional)
1564
+ - **Person**: Second person ("you") for tutorials, first plural ("we") for company
1565
+ - **Sentence Length**: Varied, average 15-20 words
1566
+ - **Paragraph Length**: Maximum 3-4 sentences
1567
+ - **Active Voice**: Preferred over passive
1568
+ ```
1569
+
1570
+ **3. SEO Requirements**
1571
+ ```markdown
1572
+ ## SEO Guidelines
1573
+ - **Keyword Density**: 1-2% of total word count
1574
+ - **Meta Description**: 150-160 characters, include primary keyword
1575
+ - **Headers**: Include keywords in H1 and at least one H2
1576
+ - **Internal Links**: Minimum 2-3 per 1000 words
1577
+ - **External Links**: 1-2 authoritative sources per article
1578
+ ```
1579
+
1580
+ **4. Formatting Preferences**
1581
+ ```markdown
1582
+ ## Formatting Rules
1583
+ - **Lists**: Use bullet points for features, numbered for steps
1584
+ - **Code Blocks**: Always include language identifier
1585
+ - **Images**: Include alt text and captions
1586
+ - **Callouts**: Use blockquotes for important notes
1587
+ - **Tables**: Use for comparisons and data presentation
1588
+ ```
1589
+
1590
+ **5. Content Structure**
1591
+ ```markdown
1592
+ ## Structure Guidelines
1593
+ - **Introduction**: Hook + context + article overview (150-200 words)
1594
+ - **Body**: Clear sections with descriptive headers
1595
+ - **Conclusion**: Summary + call-to-action
1596
+ - **FAQ Section**: Include for articles over 1500 words
1597
+ ```
1598
+
1599
+ **6. Topics & Restrictions**
1600
+ ```markdown
1601
+ ## Content Boundaries
1602
+ ### Topics to Emphasize
1603
+ - Product benefits and use cases
1604
+ - Industry best practices
1605
+ - Customer success stories
1606
+
1607
+ ### Topics to Avoid
1608
+ - Competitor comparisons (unless specifically requested)
1609
+ - Speculative pricing
1610
+ - Unverified claims
1611
+ ```
1612
+
1613
+ ### Content Rules in Action
1614
+
1615
+ When you run any content generation command, the system:
1616
+
1617
+ 1. **Checks for `content-rules.md`** in your project root
1618
+ 2. **Parses your customizations** and applies them to generation
1619
+ 3. **Falls back to defaults** for any unspecified settings
1620
+
1621
+ **Example with content rules**:
1622
+ ```bash
1623
+ # With content-rules.md specifying technical voice
1624
+ /myai-content-writer "Docker Container Best Practices"
1625
+
1626
+ # Output will follow your defined:
1627
+ # - Brand voice (e.g., professional, technically accurate)
1628
+ # - Structure (e.g., code examples required)
1629
+ # - SEO guidelines (e.g., specific keyword density)
1630
+ # - Formatting (e.g., numbered steps for procedures)
1631
+ ```
1632
+
1633
+ ### Example content-rules.md
1634
+
1635
+ ```markdown
1636
+ # Content Generation Rules
1637
+
1638
+ ## Brand Identity
1639
+ - **Company**: TechStartup Inc.
1640
+ - **Mission**: Simplifying cloud infrastructure for developers
1641
+ - **Values**: Transparency, developer experience, reliability
1642
+
1643
+ ## Voice & Tone
1644
+ - Professional yet friendly
1645
+ - Technical but accessible
1646
+ - Confident without being arrogant
1647
+ - Helpful and educational
1648
+
1649
+ ## Writing Style
1650
+ - Use "you" when addressing the reader
1651
+ - Keep sentences concise (max 25 words)
1652
+ - Explain jargon on first use
1653
+ - Use analogies for complex concepts
1654
+
1655
+ ## SEO Guidelines
1656
+ - Primary keyword in title and first 100 words
1657
+ - Include 3-5 related secondary keywords
1658
+ - Meta description: 155 characters max
1659
+ - Add FAQ section for articles 1500+ words
1660
+
1661
+ ## Formatting
1662
+ - Start with a compelling hook
1663
+ - Use headers every 300-400 words
1664
+ - Include code examples for technical topics
1665
+ - End with clear call-to-action
1666
+
1667
+ ## Required Elements
1668
+ - Author attribution
1669
+ - Last updated date
1670
+ - Related articles section
1671
+ - Share buttons callout
1672
+
1673
+ ## Restrictions
1674
+ - No competitor mentions by name
1675
+ - No pricing information in blog posts
1676
+ - No unverified performance claims
1677
+ ```
1678
+
1679
+ ### Best Practices for Content Rules
1680
+
1681
+ 1. **Start with the template**: Use `/myai-content-rules-setup` to generate a starting point
1682
+ 2. **Iterate gradually**: Start with basic rules, refine based on output
1683
+ 3. **Be specific**: Vague rules produce inconsistent results
1684
+ 4. **Include examples**: Show what good vs. bad looks like
1685
+ 5. **Version control**: Track changes to your content rules over time
1686
+ 6. **Team alignment**: Share content rules across your team for consistency
1687
+
1283
1688
  ## 💻 SSH Configuration
1284
1689
 
1285
1690
  ### Setup Options