myaidev-method 0.0.8 → 0.2.0
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/.env.example +20 -0
- package/COOLIFY_DEPLOYMENT.md +750 -0
- package/PUBLISHING_GUIDE.md +521 -0
- package/README.md +125 -27
- package/WORDPRESS_ADMIN_SCRIPTS.md +474 -0
- package/package.json +36 -3
- package/src/lib/coolify-utils.js +380 -0
- package/src/lib/payloadcms-utils.js +394 -0
- package/src/lib/report-synthesizer.js +504 -0
- package/src/lib/static-site-utils.js +377 -0
- package/src/lib/wordpress-admin-utils.js +703 -0
- package/src/scripts/astro-publish.js +209 -0
- package/src/scripts/coolify-deploy-app.js +287 -0
- package/src/scripts/coolify-list-resources.js +199 -0
- package/src/scripts/coolify-status.js +97 -0
- package/src/scripts/docusaurus-publish.js +209 -0
- package/src/scripts/init-project.js +91 -0
- package/src/scripts/mintlify-publish.js +205 -0
- package/src/scripts/payloadcms-publish.js +202 -0
- package/src/scripts/test-coolify-deploy.js +47 -0
- package/src/scripts/wordpress-comprehensive-report.js +325 -0
- package/src/scripts/wordpress-health-check.js +175 -0
- package/src/scripts/wordpress-performance-check.js +461 -0
- package/src/scripts/wordpress-security-scan.js +221 -0
- package/src/templates/claude/agents/astro-publish.md +43 -0
- package/src/templates/claude/agents/coolify-deploy.md +563 -0
- package/src/templates/claude/agents/docusaurus-publish.md +42 -0
- package/src/templates/claude/agents/mintlify-publish.md +42 -0
- package/src/templates/claude/agents/payloadcms-publish.md +134 -0
- package/src/templates/claude/commands/myai-astro-publish.md +54 -0
- package/src/templates/claude/commands/myai-coolify-deploy.md +172 -0
- package/src/templates/claude/commands/myai-docusaurus-publish.md +45 -0
- package/src/templates/claude/commands/myai-mintlify-publish.md +45 -0
- package/src/templates/claude/commands/myai-payloadcms-publish.md +45 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
# MyAIDev Method - Publishing Guide
|
|
2
|
+
|
|
3
|
+
Comprehensive guide for publishing content across multiple platforms using MyAIDev Method.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Overview](#overview)
|
|
8
|
+
- [Platform Support](#platform-support)
|
|
9
|
+
- [Quick Start](#quick-start)
|
|
10
|
+
- [Platform-Specific Guides](#platform-specific-guides)
|
|
11
|
+
- [Configuration](#configuration)
|
|
12
|
+
- [Workflows](#workflows)
|
|
13
|
+
- [Troubleshooting](#troubleshooting)
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
MyAIDev Method provides a unified content publishing system that supports:
|
|
18
|
+
|
|
19
|
+
- **API-Based CMS**: WordPress, PayloadCMS
|
|
20
|
+
- **Static Site Generators**: Docusaurus, Mintlify, Astro
|
|
21
|
+
- **Deployment**: Coolify self-hosted PaaS
|
|
22
|
+
|
|
23
|
+
All platforms use a consistent workflow:
|
|
24
|
+
1. Create content (manually or via `/myai-content-writer`)
|
|
25
|
+
2. Configure platform credentials (`/myai-configure`)
|
|
26
|
+
3. Publish content (`/myai-[platform]-publish`)
|
|
27
|
+
|
|
28
|
+
## Platform Support
|
|
29
|
+
|
|
30
|
+
### WordPress
|
|
31
|
+
- **Type**: API-based CMS
|
|
32
|
+
- **Publishing**: REST API with Gutenberg blocks
|
|
33
|
+
- **Auth**: Application Passwords
|
|
34
|
+
- **Status**: Draft, Published
|
|
35
|
+
- **Features**: Categories, tags, featured images
|
|
36
|
+
|
|
37
|
+
### PayloadCMS
|
|
38
|
+
- **Type**: Headless CMS (API-based)
|
|
39
|
+
- **Publishing**: REST API with Lexical rich text
|
|
40
|
+
- **Auth**: JWT tokens or API keys
|
|
41
|
+
- **Status**: Draft, Published
|
|
42
|
+
- **Features**: Custom collections, flexible schemas
|
|
43
|
+
|
|
44
|
+
### Docusaurus
|
|
45
|
+
- **Type**: Static site generator (git-based)
|
|
46
|
+
- **Publishing**: File operations + git workflow
|
|
47
|
+
- **Content**: Docs, Blog, Pages
|
|
48
|
+
- **Features**: Sidebars, versioning, MDX support
|
|
49
|
+
|
|
50
|
+
### Mintlify
|
|
51
|
+
- **Type**: Documentation platform (git-based)
|
|
52
|
+
- **Publishing**: File operations + git workflow + mint.json updates
|
|
53
|
+
- **Content**: MDX documentation
|
|
54
|
+
- **Features**: Automatic navigation, API references, icons
|
|
55
|
+
|
|
56
|
+
### Astro
|
|
57
|
+
- **Type**: Static site generator (git-based)
|
|
58
|
+
- **Publishing**: File operations + git workflow
|
|
59
|
+
- **Content**: Content collections, Pages
|
|
60
|
+
- **Features**: Type-safe frontmatter, image optimization
|
|
61
|
+
|
|
62
|
+
## Quick Start
|
|
63
|
+
|
|
64
|
+
### 1. Install Package
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm install -g myaidev-method
|
|
68
|
+
# or
|
|
69
|
+
npx myaidev-method init
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 2. Configure Platform
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
/myai-configure
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Select your platform and provide credentials.
|
|
79
|
+
|
|
80
|
+
### 3. Create Content
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
/myai-content-writer "How to build a REST API with Node.js"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 4. Publish Content
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# WordPress
|
|
90
|
+
/myai-wordpress-publish "article.md" --status draft
|
|
91
|
+
|
|
92
|
+
# PayloadCMS
|
|
93
|
+
/myai-payloadcms-publish "article.md" --collection posts
|
|
94
|
+
|
|
95
|
+
# Docusaurus
|
|
96
|
+
/myai-docusaurus-publish "article.md" --type docs
|
|
97
|
+
|
|
98
|
+
# Mintlify
|
|
99
|
+
/myai-mintlify-publish "article.md" --nav-section "Guides"
|
|
100
|
+
|
|
101
|
+
# Astro
|
|
102
|
+
/myai-astro-publish "article.md" --collection blog
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Platform-Specific Guides
|
|
106
|
+
|
|
107
|
+
### WordPress Publishing
|
|
108
|
+
|
|
109
|
+
**Configuration** (.env):
|
|
110
|
+
```
|
|
111
|
+
WORDPRESS_URL=https://your-site.com
|
|
112
|
+
WORDPRESS_USERNAME=your-username
|
|
113
|
+
WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Basic Publishing**:
|
|
117
|
+
```bash
|
|
118
|
+
/myai-wordpress-publish "article.md"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**With Options**:
|
|
122
|
+
```bash
|
|
123
|
+
/myai-wordpress-publish "article.md" \
|
|
124
|
+
--status published \
|
|
125
|
+
--categories "Technology,Programming" \
|
|
126
|
+
--tags "nodejs,api,rest"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Features**:
|
|
130
|
+
- Automatic Gutenberg block conversion
|
|
131
|
+
- Featured image upload
|
|
132
|
+
- Category and tag management
|
|
133
|
+
- Draft and publish workflow
|
|
134
|
+
|
|
135
|
+
### PayloadCMS Publishing
|
|
136
|
+
|
|
137
|
+
**Configuration** (.env):
|
|
138
|
+
```
|
|
139
|
+
PAYLOADCMS_URL=https://cms.your-site.com
|
|
140
|
+
PAYLOADCMS_EMAIL=admin@your-site.com
|
|
141
|
+
PAYLOADCMS_PASSWORD=your-password
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Basic Publishing**:
|
|
145
|
+
```bash
|
|
146
|
+
/myai-payloadcms-publish "article.md"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**With Options**:
|
|
150
|
+
```bash
|
|
151
|
+
/myai-payloadcms-publish "article.md" \
|
|
152
|
+
--collection articles \
|
|
153
|
+
--status published \
|
|
154
|
+
--id 67890
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Features**:
|
|
158
|
+
- Markdown to Lexical conversion
|
|
159
|
+
- Custom collections support
|
|
160
|
+
- JWT authentication
|
|
161
|
+
- Document updates by ID
|
|
162
|
+
|
|
163
|
+
### Docusaurus Publishing
|
|
164
|
+
|
|
165
|
+
**Prerequisites**:
|
|
166
|
+
- Docusaurus project with `docusaurus.config.js`
|
|
167
|
+
- Git repository initialized
|
|
168
|
+
|
|
169
|
+
**Configuration** (.env):
|
|
170
|
+
```
|
|
171
|
+
DOCUSAURUS_PROJECT_PATH=./my-docs
|
|
172
|
+
GIT_USER_NAME=Your Name
|
|
173
|
+
GIT_USER_EMAIL=your-email@example.com
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Publishing to Docs**:
|
|
177
|
+
```bash
|
|
178
|
+
/myai-docusaurus-publish "guide.md"
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Publishing to Blog**:
|
|
182
|
+
```bash
|
|
183
|
+
/myai-docusaurus-publish "post.md" --type blog
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Features**:
|
|
187
|
+
- Automatic frontmatter transformation
|
|
188
|
+
- Sidebar configuration
|
|
189
|
+
- Blog date prefixing
|
|
190
|
+
- Git commit and push
|
|
191
|
+
|
|
192
|
+
### Mintlify Publishing
|
|
193
|
+
|
|
194
|
+
**Prerequisites**:
|
|
195
|
+
- Mintlify project with `mint.json`
|
|
196
|
+
- Git repository initialized
|
|
197
|
+
|
|
198
|
+
**Configuration** (.env):
|
|
199
|
+
```
|
|
200
|
+
MINTLIFY_PROJECT_PATH=./docs
|
|
201
|
+
GIT_USER_NAME=Your Name
|
|
202
|
+
GIT_USER_EMAIL=your-email@example.com
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**Basic Publishing**:
|
|
206
|
+
```bash
|
|
207
|
+
/myai-mintlify-publish "guide.mdx"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**With Navigation**:
|
|
211
|
+
```bash
|
|
212
|
+
/myai-mintlify-publish "api-reference.md" \
|
|
213
|
+
--nav-section "API Reference"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Features**:
|
|
217
|
+
- Automatic mint.json updates
|
|
218
|
+
- Navigation section management
|
|
219
|
+
- MDX support
|
|
220
|
+
- Icon customization
|
|
221
|
+
|
|
222
|
+
### Astro Publishing
|
|
223
|
+
|
|
224
|
+
**Prerequisites**:
|
|
225
|
+
- Astro project with `astro.config.mjs`
|
|
226
|
+
- Git repository initialized
|
|
227
|
+
|
|
228
|
+
**Configuration** (.env):
|
|
229
|
+
```
|
|
230
|
+
ASTRO_PROJECT_PATH=./my-site
|
|
231
|
+
GIT_USER_NAME=Your Name
|
|
232
|
+
GIT_USER_EMAIL=your-email@example.com
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Publishing to Collection**:
|
|
236
|
+
```bash
|
|
237
|
+
/myai-astro-publish "article.md" --collection blog
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Publishing to Pages**:
|
|
241
|
+
```bash
|
|
242
|
+
/myai-astro-publish "about.md" --pages
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
**Features**:
|
|
246
|
+
- Content collections support
|
|
247
|
+
- Schema validation
|
|
248
|
+
- Frontmatter transformation (date → pubDate)
|
|
249
|
+
- Draft/published workflow
|
|
250
|
+
|
|
251
|
+
## Configuration
|
|
252
|
+
|
|
253
|
+
### Using /myai-configure
|
|
254
|
+
|
|
255
|
+
Interactive configuration command:
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
/myai-configure
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Prompts for:
|
|
262
|
+
1. Platform selection
|
|
263
|
+
2. Credentials and URLs
|
|
264
|
+
3. Optional settings
|
|
265
|
+
|
|
266
|
+
### Manual Configuration
|
|
267
|
+
|
|
268
|
+
Edit `.env` file directly:
|
|
269
|
+
|
|
270
|
+
```env
|
|
271
|
+
# WordPress
|
|
272
|
+
WORDPRESS_URL=https://your-wordpress-site.com
|
|
273
|
+
WORDPRESS_USERNAME=your-username
|
|
274
|
+
WORDPRESS_APP_PASSWORD=your-app-password
|
|
275
|
+
|
|
276
|
+
# PayloadCMS
|
|
277
|
+
PAYLOADCMS_URL=https://your-payloadcms.com
|
|
278
|
+
PAYLOADCMS_EMAIL=your-email@example.com
|
|
279
|
+
PAYLOADCMS_PASSWORD=your-password
|
|
280
|
+
|
|
281
|
+
# Git (for static sites)
|
|
282
|
+
GIT_USER_NAME=Your Name
|
|
283
|
+
GIT_USER_EMAIL=your-email@example.com
|
|
284
|
+
|
|
285
|
+
# Project Paths (optional)
|
|
286
|
+
DOCUSAURUS_PROJECT_PATH=./docs-site
|
|
287
|
+
MINTLIFY_PROJECT_PATH=./docs
|
|
288
|
+
ASTRO_PROJECT_PATH=./blog
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Workflows
|
|
292
|
+
|
|
293
|
+
### Content Creation → Publishing
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
# 1. Create content
|
|
297
|
+
/myai-content-writer "Building Scalable APIs"
|
|
298
|
+
|
|
299
|
+
# 2. Review and edit
|
|
300
|
+
# Edit the generated markdown file
|
|
301
|
+
|
|
302
|
+
# 3. Publish to multiple platforms
|
|
303
|
+
/myai-wordpress-publish "building-scalable-apis.md" --status draft
|
|
304
|
+
/myai-docusaurus-publish "building-scalable-apis.md" --type blog
|
|
305
|
+
/myai-payloadcms-publish "building-scalable-apis.md" --collection articles
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Multi-Platform Publishing
|
|
309
|
+
|
|
310
|
+
Publish the same content to multiple platforms:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
FILE="my-article.md"
|
|
314
|
+
|
|
315
|
+
# WordPress (for SEO and broad reach)
|
|
316
|
+
/myai-wordpress-publish "$FILE" --status published
|
|
317
|
+
|
|
318
|
+
# Docusaurus (for technical documentation)
|
|
319
|
+
/myai-docusaurus-publish "$FILE" --type docs
|
|
320
|
+
|
|
321
|
+
# PayloadCMS (for headless CMS API access)
|
|
322
|
+
/myai-payloadcms-publish "$FILE" --collection articles --status published
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Draft → Review → Publish
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
# 1. Publish as draft
|
|
329
|
+
/myai-wordpress-publish "article.md" --status draft
|
|
330
|
+
|
|
331
|
+
# 2. Review on platform
|
|
332
|
+
# Review content on WordPress admin
|
|
333
|
+
|
|
334
|
+
# 3. Update to published
|
|
335
|
+
/myai-wordpress-publish "article.md" --status published --id 12345
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Git-Based Deployment
|
|
339
|
+
|
|
340
|
+
For static sites (Docusaurus, Mintlify, Astro):
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
# 1. Publish to staging
|
|
344
|
+
/myai-docusaurus-publish "guide.md" --branch staging
|
|
345
|
+
|
|
346
|
+
# 2. Review deployment
|
|
347
|
+
# Check staging environment
|
|
348
|
+
|
|
349
|
+
# 3. Publish to production
|
|
350
|
+
/myai-docusaurus-publish "guide.md" --branch main
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
## Script Usage
|
|
354
|
+
|
|
355
|
+
All publishing operations can also be invoked via npm scripts:
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
# PayloadCMS
|
|
359
|
+
npm run payloadcms:publish -- --file article.md --status published
|
|
360
|
+
|
|
361
|
+
# Docusaurus
|
|
362
|
+
npm run docusaurus:publish -- --file guide.md --type docs
|
|
363
|
+
|
|
364
|
+
# Mintlify
|
|
365
|
+
npm run mintlify:publish -- --file api-ref.md --nav-section "API"
|
|
366
|
+
|
|
367
|
+
# Astro
|
|
368
|
+
npm run astro:publish -- --file post.md --collection blog
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
## Troubleshooting
|
|
372
|
+
|
|
373
|
+
### Authentication Failures
|
|
374
|
+
|
|
375
|
+
**WordPress**:
|
|
376
|
+
- Verify Application Password is correct
|
|
377
|
+
- Check URL includes `https://`
|
|
378
|
+
- Ensure WordPress REST API is enabled
|
|
379
|
+
|
|
380
|
+
**PayloadCMS**:
|
|
381
|
+
- Verify email/password combination
|
|
382
|
+
- Check PayloadCMS instance is accessible
|
|
383
|
+
- Try using API key instead of password
|
|
384
|
+
|
|
385
|
+
### Git Errors
|
|
386
|
+
|
|
387
|
+
**Uncommitted Changes**:
|
|
388
|
+
```bash
|
|
389
|
+
# Commit or stash existing changes first
|
|
390
|
+
git stash
|
|
391
|
+
# Then retry publishing
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**Push Rejected**:
|
|
395
|
+
```bash
|
|
396
|
+
# Pull latest changes first
|
|
397
|
+
cd /path/to/project
|
|
398
|
+
git pull --rebase
|
|
399
|
+
# Then retry publishing
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Frontmatter Issues
|
|
403
|
+
|
|
404
|
+
**Docusaurus**:
|
|
405
|
+
- Ensure `title` field is present
|
|
406
|
+
- Check `sidebar_position` is a number
|
|
407
|
+
|
|
408
|
+
**Astro**:
|
|
409
|
+
- Verify `pubDate` is ISO 8601 format
|
|
410
|
+
- Check collection schema requirements
|
|
411
|
+
|
|
412
|
+
**Mintlify**:
|
|
413
|
+
- Ensure `title` field is present
|
|
414
|
+
- Verify MDX syntax is valid
|
|
415
|
+
|
|
416
|
+
### Platform Detection
|
|
417
|
+
|
|
418
|
+
If platform not detected:
|
|
419
|
+
|
|
420
|
+
```bash
|
|
421
|
+
# Specify project path explicitly
|
|
422
|
+
/myai-docusaurus-publish "guide.md" --project /path/to/docs
|
|
423
|
+
|
|
424
|
+
# Or set in .env
|
|
425
|
+
echo "DOCUSAURUS_PROJECT_PATH=/path/to/docs" >> .env
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
## Best Practices
|
|
429
|
+
|
|
430
|
+
1. **Always start with drafts**: Publish as draft first, review, then publish
|
|
431
|
+
2. **Use consistent frontmatter**: Maintain standard frontmatter across content
|
|
432
|
+
3. **Test on staging**: Use git branches for staging/production workflow
|
|
433
|
+
4. **Version control**: Commit content to git before publishing
|
|
434
|
+
5. **Backup regularly**: Keep local copies of all content
|
|
435
|
+
6. **Monitor deployments**: Check build status after git push
|
|
436
|
+
7. **Validate schemas**: Test frontmatter against platform requirements
|
|
437
|
+
|
|
438
|
+
## Advanced Topics
|
|
439
|
+
|
|
440
|
+
### Custom Frontmatter
|
|
441
|
+
|
|
442
|
+
Each platform accepts different frontmatter fields. Common fields:
|
|
443
|
+
|
|
444
|
+
```yaml
|
|
445
|
+
---
|
|
446
|
+
# Universal
|
|
447
|
+
title: "Article Title"
|
|
448
|
+
description: "Article description"
|
|
449
|
+
date: 2025-10-16
|
|
450
|
+
|
|
451
|
+
# WordPress-specific
|
|
452
|
+
categories: ["Tech", "Programming"]
|
|
453
|
+
tags: ["nodejs", "api"]
|
|
454
|
+
status: draft
|
|
455
|
+
|
|
456
|
+
# Docusaurus-specific
|
|
457
|
+
sidebar_position: 1
|
|
458
|
+
sidebar_label: "Custom Label"
|
|
459
|
+
|
|
460
|
+
# Astro-specific
|
|
461
|
+
pubDate: 2025-10-16T00:00:00Z
|
|
462
|
+
draft: false
|
|
463
|
+
author: "Author Name"
|
|
464
|
+
|
|
465
|
+
# Mintlify-specific
|
|
466
|
+
icon: "rocket"
|
|
467
|
+
iconType: "solid"
|
|
468
|
+
---
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
### Automated Publishing
|
|
472
|
+
|
|
473
|
+
Create shell scripts for automated workflows:
|
|
474
|
+
|
|
475
|
+
```bash
|
|
476
|
+
#!/bin/bash
|
|
477
|
+
# publish-everywhere.sh
|
|
478
|
+
|
|
479
|
+
FILE=$1
|
|
480
|
+
|
|
481
|
+
/myai-wordpress-publish "$FILE" --status published
|
|
482
|
+
/myai-payloadcms-publish "$FILE" --status published
|
|
483
|
+
/myai-docusaurus-publish "$FILE" --type blog
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
### CI/CD Integration
|
|
487
|
+
|
|
488
|
+
Integrate with GitHub Actions, GitLab CI, or other CI/CD:
|
|
489
|
+
|
|
490
|
+
```yaml
|
|
491
|
+
# .github/workflows/publish.yml
|
|
492
|
+
name: Publish Documentation
|
|
493
|
+
on:
|
|
494
|
+
push:
|
|
495
|
+
paths:
|
|
496
|
+
- 'content/**'
|
|
497
|
+
jobs:
|
|
498
|
+
publish:
|
|
499
|
+
runs-on: ubuntu-latest
|
|
500
|
+
steps:
|
|
501
|
+
- uses: actions/checkout@v2
|
|
502
|
+
- run: npm install -g myaidev-method
|
|
503
|
+
- run: /myai-docusaurus-publish content/*.md
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
## Support
|
|
507
|
+
|
|
508
|
+
- **Documentation**: See platform-specific docs (WORDPRESS_ADMIN_SCRIPTS.md, etc.)
|
|
509
|
+
- **Issues**: https://github.com/myaione/myaidev-method/issues
|
|
510
|
+
- **NPM**: https://www.npmjs.com/package/myaidev-method
|
|
511
|
+
- **GitHub**: https://github.com/myaione/myaidev-method
|
|
512
|
+
|
|
513
|
+
## Next Steps
|
|
514
|
+
|
|
515
|
+
1. Configure your platforms: `/myai-configure`
|
|
516
|
+
2. Create test content: `/myai-content-writer "Test Article"`
|
|
517
|
+
3. Publish to staging/draft first
|
|
518
|
+
4. Review and iterate
|
|
519
|
+
5. Publish to production
|
|
520
|
+
|
|
521
|
+
Happy publishing! 🚀
|
package/README.md
CHANGED
|
@@ -33,11 +33,13 @@ A comprehensive package for AI CLI tools (Claude Code, Gemini CLI, Codex CLI) th
|
|
|
33
33
|
- 🤖 **Custom Subagents**: Pre-configured AI agents in Markdown format with YAML frontmatter
|
|
34
34
|
- 📝 **Content Writer Agent**: Professional content creation with SEO optimization
|
|
35
35
|
- 🔐 **WordPress Admin Agent**: Site administration, security analysis, and performance optimization
|
|
36
|
-
-
|
|
37
|
-
-
|
|
36
|
+
- 📤 **Multi-Platform Publishing**: Publish to WordPress, PayloadCMS, Docusaurus, Mintlify, and Astro
|
|
37
|
+
- 🚀 **Coolify Deployment**: Self-hosted PaaS deployment and management
|
|
38
|
+
- 🔌 **MCP Integration**: WordPress, git-based workflows, and more
|
|
39
|
+
- 💻 **SSH Integration**: Server-level operations for advanced administration
|
|
38
40
|
- 🎯 **Slash Commands**: Easy-to-use Markdown-based commands for Claude Code
|
|
39
|
-
-
|
|
40
|
-
- ✅ **Standards Compliant**: Follows Claude Code
|
|
41
|
+
- 🔄 **Git-Based Publishing**: Automated git workflows for static sites
|
|
42
|
+
- ✅ **Standards Compliant**: Follows Claude Code 2.0 agent patterns
|
|
41
43
|
|
|
42
44
|
## 🚀 Installation
|
|
43
45
|
|
|
@@ -62,11 +64,11 @@ npx myaidev-method init --codex
|
|
|
62
64
|
npx myaidev-method init
|
|
63
65
|
```
|
|
64
66
|
|
|
65
|
-
**That's it!** No
|
|
67
|
+
**That's it!** No complex setup.
|
|
66
68
|
|
|
67
69
|
### Requirements
|
|
68
70
|
|
|
69
|
-
- Node.js >=
|
|
71
|
+
- Node.js >= 20.0.0
|
|
70
72
|
- Claude Code >= 1.0.0 (for Claude features)
|
|
71
73
|
- WordPress site with REST API enabled (optional, for WordPress features)
|
|
72
74
|
- SSH access to server (optional, for advanced WordPress admin features)
|
|
@@ -111,16 +113,76 @@ Professional content writer specializing in creating high-quality, engaging, and
|
|
|
111
113
|
- Multiple tone and audience support
|
|
112
114
|
- Keyword optimization
|
|
113
115
|
|
|
114
|
-
###
|
|
116
|
+
### Publishing Agents
|
|
117
|
+
|
|
118
|
+
#### WordPress Admin Agent
|
|
115
119
|
**File:** `.claude/agents/wordpress-admin.md`
|
|
116
120
|
|
|
117
121
|
WordPress administrator for comprehensive site management, security, performance, and health analysis.
|
|
118
122
|
|
|
119
123
|
**Capabilities:**
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
+
- Security: Vulnerability scanning, malware detection, user auditing
|
|
125
|
+
- Performance: Speed optimization, database cleanup, caching setup
|
|
126
|
+
- Health: Site monitoring, error analysis, backup verification
|
|
127
|
+
- Administration: User/plugin/theme management, content cleanup
|
|
128
|
+
|
|
129
|
+
#### PayloadCMS Publishing Agent
|
|
130
|
+
**File:** `.claude/agents/payloadcms-publish.md`
|
|
131
|
+
|
|
132
|
+
Publish markdown content to PayloadCMS headless CMS with Lexical rich text conversion.
|
|
133
|
+
|
|
134
|
+
**Capabilities:**
|
|
135
|
+
- Markdown to Lexical conversion
|
|
136
|
+
- JWT authentication
|
|
137
|
+
- Draft and published workflows
|
|
138
|
+
- Custom collections support
|
|
139
|
+
- Document updates
|
|
140
|
+
|
|
141
|
+
#### Docusaurus Publishing Agent
|
|
142
|
+
**File:** `.claude/agents/docusaurus-publish.md`
|
|
143
|
+
|
|
144
|
+
Git-based publishing for Docusaurus documentation sites.
|
|
145
|
+
|
|
146
|
+
**Capabilities:**
|
|
147
|
+
- Docs, blog, and pages support
|
|
148
|
+
- Automatic frontmatter transformation
|
|
149
|
+
- Sidebar configuration
|
|
150
|
+
- Git commit and push automation
|
|
151
|
+
|
|
152
|
+
#### Mintlify Publishing Agent
|
|
153
|
+
**File:** `.claude/agents/mintlify-publish.md`
|
|
154
|
+
|
|
155
|
+
Git-based publishing for Mintlify documentation with automatic navigation.
|
|
156
|
+
|
|
157
|
+
**Capabilities:**
|
|
158
|
+
- MDX transformation
|
|
159
|
+
- mint.json navigation updates
|
|
160
|
+
- Icon and metadata support
|
|
161
|
+
- Git workflow automation
|
|
162
|
+
|
|
163
|
+
#### Astro Publishing Agent
|
|
164
|
+
**File:** `.claude/agents/astro-publish.md`
|
|
165
|
+
|
|
166
|
+
Git-based publishing for Astro sites with content collections support.
|
|
167
|
+
|
|
168
|
+
**Capabilities:**
|
|
169
|
+
- Content collections publishing
|
|
170
|
+
- Schema-validated frontmatter
|
|
171
|
+
- pubDate transformation
|
|
172
|
+
- Draft/published workflow
|
|
173
|
+
|
|
174
|
+
### Deployment Agent
|
|
175
|
+
|
|
176
|
+
#### Coolify Deployment Agent
|
|
177
|
+
**File:** `.claude/agents/coolify-deploy.md`
|
|
178
|
+
|
|
179
|
+
Self-hosted PaaS deployment for applications.
|
|
180
|
+
|
|
181
|
+
**Capabilities:**
|
|
182
|
+
- Application deployment
|
|
183
|
+
- Health monitoring
|
|
184
|
+
- Resource management
|
|
185
|
+
- Multi-environment support
|
|
124
186
|
|
|
125
187
|
## 🎯 Slash Commands
|
|
126
188
|
|
|
@@ -179,34 +241,70 @@ Comprehensive WordPress site administration.
|
|
|
179
241
|
/myai-wordpress-admin staging-deploy
|
|
180
242
|
```
|
|
181
243
|
|
|
182
|
-
###
|
|
183
|
-
|
|
244
|
+
### Publishing Commands
|
|
245
|
+
|
|
246
|
+
#### `/myai-wordpress-publish`
|
|
247
|
+
Publish markdown content to WordPress.
|
|
184
248
|
|
|
185
249
|
```bash
|
|
186
|
-
|
|
187
|
-
/myai-wordpress-publish "
|
|
250
|
+
/myai-wordpress-publish "article.md" --status draft
|
|
251
|
+
/myai-wordpress-publish "article.md" --status published
|
|
252
|
+
```
|
|
188
253
|
|
|
189
|
-
|
|
190
|
-
|
|
254
|
+
#### `/myai-payloadcms-publish`
|
|
255
|
+
Publish markdown content to PayloadCMS.
|
|
191
256
|
|
|
192
|
-
|
|
193
|
-
/myai-
|
|
257
|
+
```bash
|
|
258
|
+
/myai-payloadcms-publish "article.md" --collection posts
|
|
259
|
+
/myai-payloadcms-publish "article.md" --status published --id 12345
|
|
194
260
|
```
|
|
195
261
|
|
|
196
|
-
|
|
197
|
-
|
|
262
|
+
#### `/myai-docusaurus-publish`
|
|
263
|
+
Publish markdown content to Docusaurus.
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
/myai-docusaurus-publish "guide.md"
|
|
267
|
+
/myai-docusaurus-publish "post.md" --type blog
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
#### `/myai-mintlify-publish`
|
|
271
|
+
Publish markdown content to Mintlify.
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
/myai-mintlify-publish "guide.mdx"
|
|
275
|
+
/myai-mintlify-publish "api-ref.md" --nav-section "API Reference"
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### `/myai-astro-publish`
|
|
279
|
+
Publish markdown content to Astro.
|
|
198
280
|
|
|
199
281
|
```bash
|
|
200
|
-
|
|
201
|
-
/myai-
|
|
282
|
+
/myai-astro-publish "article.md" --collection blog
|
|
283
|
+
/myai-astro-publish "page.md" --pages
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Deployment Commands
|
|
202
287
|
|
|
203
|
-
|
|
204
|
-
|
|
288
|
+
#### `/myai-coolify-deploy`
|
|
289
|
+
Deploy applications to Coolify.
|
|
205
290
|
|
|
206
|
-
|
|
207
|
-
/myai-
|
|
291
|
+
```bash
|
|
292
|
+
/myai-coolify-deploy
|
|
208
293
|
```
|
|
209
294
|
|
|
295
|
+
### Configuration
|
|
296
|
+
|
|
297
|
+
#### `/myai-configure`
|
|
298
|
+
Configure MyAI Method settings.
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
/myai-configure
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Comprehensive Guide
|
|
305
|
+
|
|
306
|
+
For detailed publishing workflows and platform-specific guides, see **[PUBLISHING_GUIDE.md](PUBLISHING_GUIDE.md)**
|
|
307
|
+
|
|
210
308
|
## ⚙️ Configuration
|
|
211
309
|
|
|
212
310
|
After installation for Claude Code, the package creates a `.claude` directory following official standards:
|