myaidev-method 0.1.0 → 0.2.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.
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
- - 🔌 **WordPress MCP Integration**: Direct publishing and administration via REST API
37
- - 💻 **SSH Integration**: Server-level operations for advanced WordPress administration
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
- - 🚀 **Multi-CLI Support**: Works with Claude Code, Gemini CLI, and Codex CLI
40
- - ✅ **Standards Compliant**: Follows Claude Code's official `.claude/` folder structure
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
 
@@ -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
- ### WordPress Admin Agent
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
- - **Security:** Vulnerability scanning, malware detection, user auditing
121
- - **Performance:** Speed optimization, database cleanup, caching setup
122
- - **Health:** Site monitoring, error analysis, backup verification
123
- - **Administration:** User/plugin/theme management, content cleanup
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
- ### `/myai-wordpress-publish`
183
- Publish existing markdown content to WordPress.
244
+ ### Publishing Commands
245
+
246
+ #### `/myai-wordpress-publish`
247
+ Publish markdown content to WordPress.
184
248
 
185
249
  ```bash
186
- # Publish as draft (default)
187
- /myai-wordpress-publish "content/article.md"
250
+ /myai-wordpress-publish "article.md" --status draft
251
+ /myai-wordpress-publish "article.md" --status published
252
+ ```
188
253
 
189
- # Publish immediately
190
- /myai-wordpress-publish "blog-post.md" --status publish
254
+ #### `/myai-payloadcms-publish`
255
+ Publish markdown content to PayloadCMS.
191
256
 
192
- # Publish with specific status
193
- /myai-wordpress-publish "draft-post.md" --status pending
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
- ### `/myai-configure`
197
- Configure MyAI Method settings.
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
- # WordPress setup
201
- /myai-configure wordpress
282
+ /myai-astro-publish "article.md" --collection blog
283
+ /myai-astro-publish "page.md" --pages
284
+ ```
285
+
286
+ ### Deployment Commands
202
287
 
203
- # Default content settings
204
- /myai-configure defaults
288
+ #### `/myai-coolify-deploy`
289
+ Deploy applications to Coolify.
205
290
 
206
- # Agent management
207
- /myai-configure agents
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:
package/bin/cli.js CHANGED
@@ -12,7 +12,7 @@ const __filename = fileURLToPath(import.meta.url);
12
12
  const __dirname = path.dirname(__filename);
13
13
 
14
14
  program
15
- .version('1.0.0')
15
+ .version('0.2.1')
16
16
  .description('AI CLI tools package with custom subagents and MCP integrations');
17
17
 
18
18
  program
@@ -69,21 +69,31 @@ program
69
69
  if (cliType === 'claude') {
70
70
  console.log(chalk.green('\n✨ Start creating content immediately:'));
71
71
  console.log(chalk.gray(' /myai-content-writer "Your Article Topic"'));
72
-
73
- console.log(chalk.yellow('\n🎨 Customize your content writer (optional):'));
74
- console.log(chalk.gray(' • Edit .claude/agents/content-writer.md to match your style'));
75
- console.log(chalk.gray(' • Read USER_GUIDE.md for step-by-step customization tips'));
76
- console.log(chalk.gray(' • Use /myai-configure agents to manage your agents safely'));
77
-
78
- console.log(chalk.blue('\n🔌 Add WordPress integration (optional):'));
79
- console.log(chalk.gray(' • Run /myai-configure wordpress for guided setup'));
80
- console.log(chalk.gray(' Publish content with /myai-wordpress-publish filename.md'));
81
- console.log(chalk.gray(' • Supports both Classic and Gutenberg block editors'));
82
-
83
- console.log(chalk.magenta('\n📚 Need help?'));
84
- console.log(chalk.gray(' • Check USER_GUIDE.md for detailed instructions'));
72
+
73
+ console.log(chalk.yellow('\n📤 Publish to multiple platforms:'));
74
+ console.log(chalk.gray(' • WordPress: /myai-wordpress-publish "article.md"'));
75
+ console.log(chalk.gray(' • PayloadCMS: /myai-payloadcms-publish "article.md"'));
76
+ console.log(chalk.gray(' • Docusaurus: /myai-docusaurus-publish "guide.md"'));
77
+ console.log(chalk.gray(' • Mintlify: /myai-mintlify-publish "docs.mdx"'));
78
+ console.log(chalk.gray(' Astro: /myai-astro-publish "post.md"'));
79
+
80
+ console.log(chalk.blue('\n🚀 Deploy applications:'));
81
+ console.log(chalk.gray(' • Coolify: /myai-coolify-deploy'));
82
+
83
+ console.log(chalk.cyan('\n⚙️ Configure platforms:'));
84
+ console.log(chalk.gray(' • Run /myai-configure for guided setup'));
85
+ console.log(chalk.gray(' • Edit .env for manual configuration'));
86
+
87
+ console.log(chalk.magenta('\n📚 Documentation copied to your project:'));
88
+ console.log(chalk.gray(' • USER_GUIDE.md - Getting started and customization'));
89
+ console.log(chalk.gray(' • PUBLISHING_GUIDE.md - Multi-platform publishing'));
90
+ console.log(chalk.gray(' • COOLIFY_DEPLOYMENT.md - Application deployment'));
91
+ console.log(chalk.gray(' • WORDPRESS_ADMIN_SCRIPTS.md - WordPress utilities'));
92
+
93
+ console.log(chalk.magenta('\n💡 Quick tips:'));
94
+ console.log(chalk.gray(' • All platforms support draft/published workflows'));
95
+ console.log(chalk.gray(' • Git-based platforms (Docusaurus, Mintlify, Astro) auto-commit'));
85
96
  console.log(chalk.gray(' • Visit: https://github.com/myaione/myaidev-method'));
86
- console.log(chalk.gray(' • WordPress docs: GitHub repo > docs/'));
87
97
  }
88
98
  console.log(chalk.cyan(`\n🔄 Restart ${cliType} to load your new AI-powered commands!`));
89
99
 
@@ -155,8 +165,20 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
155
165
 
156
166
  ## Available Commands
157
167
 
168
+ ### Content Creation
158
169
  - \`/myai-content-writer\` - Create SEO-optimized content
159
- - \`/myai-wordpress-publish\` - Publish content to WordPress
170
+
171
+ ### Publishing Platforms
172
+ - \`/myai-wordpress-publish\` - Publish to WordPress
173
+ - \`/myai-payloadcms-publish\` - Publish to PayloadCMS
174
+ - \`/myai-docusaurus-publish\` - Publish to Docusaurus
175
+ - \`/myai-mintlify-publish\` - Publish to Mintlify
176
+ - \`/myai-astro-publish\` - Publish to Astro
177
+
178
+ ### Deployment
179
+ - \`/myai-coolify-deploy\` - Deploy to Coolify
180
+
181
+ ### Administration
160
182
  - \`/myai-wordpress-admin\` - WordPress administration and security
161
183
  - \`/myai-configure\` - Configure settings
162
184
 
@@ -164,34 +186,54 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
164
186
 
165
187
  - \`content-writer\` - Professional content creation agent
166
188
  - \`wordpress-admin\` - WordPress administration and security agent
189
+ - \`payloadcms-publish\` - PayloadCMS publishing agent
190
+ - \`docusaurus-publish\` - Docusaurus publishing agent
191
+ - \`mintlify-publish\` - Mintlify publishing agent
192
+ - \`astro-publish\` - Astro publishing agent
193
+ - \`coolify-deploy\` - Coolify deployment agent
167
194
 
168
- ## WordPress Integration
195
+ ## Platform Configuration
169
196
 
170
- To use WordPress features, create a \`.env\` file with:
197
+ To use publishing features, configure your platforms in \`.env\`:
171
198
 
172
- \`\`\`
199
+ \`\`\`bash
200
+ # WordPress (API-based)
173
201
  WORDPRESS_URL=https://your-site.com
174
202
  WORDPRESS_USERNAME=your-username
175
203
  WORDPRESS_APP_PASSWORD=your-app-password
176
204
 
177
- # Optional SSH access for advanced administration
178
- SSH_HOST=your-server-ip
179
- SSH_USERNAME=your-ssh-user
180
- SSH_KEY_PATH=/path/to/private/key
205
+ # PayloadCMS (API-based)
206
+ PAYLOADCMS_URL=https://cms.your-site.com
207
+ PAYLOADCMS_EMAIL=your-email@example.com
208
+ PAYLOADCMS_PASSWORD=your-password
209
+
210
+ # Git Configuration (for static sites)
211
+ GIT_USER_NAME=Your Name
212
+ GIT_USER_EMAIL=your-email@example.com
213
+
214
+ # Static Site Project Paths (optional)
215
+ DOCUSAURUS_PROJECT_PATH=./docs
216
+ MINTLIFY_PROJECT_PATH=./docs
217
+ ASTRO_PROJECT_PATH=./blog
218
+
219
+ # Coolify Deployment
220
+ COOLIFY_URL=https://coolify.your-server.com
221
+ COOLIFY_API_KEY=your-api-key
181
222
  \`\`\`
182
223
 
224
+ ## Documentation
225
+
226
+ - **USER_GUIDE.md** - Getting started and customization
227
+ - **PUBLISHING_GUIDE.md** - Comprehensive multi-platform publishing guide
228
+ - **COOLIFY_DEPLOYMENT.md** - Application deployment guide
229
+ - **WORDPRESS_ADMIN_SCRIPTS.md** - WordPress admin utilities
230
+
183
231
  ## Project Conventions
184
232
 
185
233
  - All custom commands are in \`.claude/commands/\`
186
234
  - All agents are in \`.claude/agents/\`
187
235
  - Commands and agents use Markdown format with YAML frontmatter
188
236
 
189
- ## Build Commands
190
-
191
- - \`npm install\` - Install dependencies
192
- - \`npm test\` - Run tests
193
- - \`npm run build\` - Build the project
194
-
195
237
  ## Notes
196
238
 
197
239
  This configuration follows Claude Code's official standards for custom commands and agents.
@@ -199,30 +241,28 @@ This configuration follows Claude Code's official standards for custom commands
199
241
 
200
242
  await fs.writeFile(path.join(claudeDir, 'CLAUDE.md'), claudeMd);
201
243
 
202
- // Create example .env file
203
- const envExample = `# WordPress Configuration
204
- WORDPRESS_URL=https://your-wordpress-site.com
205
- WORDPRESS_USERNAME=your-username
206
- WORDPRESS_APP_PASSWORD=your-application-password
244
+ // Copy the comprehensive .env.example from package
245
+ const sourceEnvExample = path.join(__dirname, '..', '.env.example');
246
+ if (await fs.pathExists(sourceEnvExample)) {
247
+ await fs.copy(sourceEnvExample, path.join(projectDir, '.env.example'));
248
+ }
207
249
 
208
- # Optional: Default content settings
209
- DEFAULT_WORD_COUNT=800
210
- DEFAULT_POST_STATUS=draft
211
- DEFAULT_TONE=professional
212
- `;
213
-
214
- await fs.writeFile(path.join(projectDir, '.env.example'), envExample);
215
-
216
250
  // Note: MCP integration disabled for now - using native tools for WordPress REST API
217
251
 
218
- // Copy USER_GUIDE.md - Essential for users to understand customization
219
- const userGuide = path.join(__dirname, '..', 'USER_GUIDE.md');
220
- if (await fs.pathExists(userGuide)) {
221
- await fs.copy(userGuide, path.join(projectDir, 'USER_GUIDE.md'));
252
+ // Copy documentation files to project root
253
+ const docsToMerge = [
254
+ 'USER_GUIDE.md',
255
+ 'PUBLISHING_GUIDE.md',
256
+ 'COOLIFY_DEPLOYMENT.md',
257
+ 'WORDPRESS_ADMIN_SCRIPTS.md'
258
+ ];
259
+
260
+ for (const docFile of docsToMerge) {
261
+ const sourcePath = path.join(__dirname, '..', docFile);
262
+ if (await fs.pathExists(sourcePath)) {
263
+ await fs.copy(sourcePath, path.join(projectDir, docFile));
264
+ }
222
265
  }
223
-
224
- // Note: WORDPRESS_INTEGRATION.md could be helpful, but keeping docs minimal
225
- // Users can find detailed docs on GitHub if needed
226
266
  }
227
267
 
228
268
  async function setupGemini(projectDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myaidev-method",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI CLI tools package with custom subagents and MCP integrations for Claude Code, Gemini CLI, and more",
5
5
  "mcpName": "io.github.myaione/myaidev-method",
6
6
  "main": "src/index.js",
@@ -29,15 +29,31 @@
29
29
  "wordpress:performance-check": "node src/scripts/wordpress-performance-check.js",
30
30
  "wordpress:comprehensive-report": "node src/scripts/wordpress-comprehensive-report.js",
31
31
  "coolify:status": "node src/scripts/coolify-status.js",
32
- "coolify:list": "node src/scripts/coolify-list-resources.js"
32
+ "coolify:list": "node src/scripts/coolify-list-resources.js",
33
+ "payloadcms:publish": "node src/scripts/payloadcms-publish.js",
34
+ "docusaurus:publish": "node src/scripts/docusaurus-publish.js",
35
+ "mintlify:publish": "node src/scripts/mintlify-publish.js",
36
+ "astro:publish": "node src/scripts/astro-publish.js",
37
+ "configure": "node src/scripts/configure-cms.js",
38
+ "init": "node src/scripts/init-project.js"
33
39
  },
34
40
  "keywords": [
35
41
  "claude-code",
36
42
  "ai-cli",
37
43
  "mcp",
38
44
  "wordpress",
45
+ "payloadcms",
46
+ "payload",
47
+ "docusaurus",
48
+ "mintlify",
49
+ "astro",
39
50
  "coolify",
40
51
  "content-writer",
52
+ "cms",
53
+ "headless-cms",
54
+ "publishing",
55
+ "static-site",
56
+ "documentation",
41
57
  "ai-agents",
42
58
  "automation",
43
59
  "deployment",
@@ -56,9 +72,12 @@
56
72
  "commander": "^12.0.0",
57
73
  "dotenv": "^16.4.1",
58
74
  "fs-extra": "^11.2.0",
75
+ "gray-matter": "^4.0.3",
59
76
  "inquirer": "^9.2.15",
77
+ "marked": "^11.0.0",
60
78
  "node-fetch": "^3.3.2",
61
79
  "ora": "^8.0.1",
80
+ "simple-git": "^3.22.0",
62
81
  "ssh2": "^1.15.0",
63
82
  "zod": "^3.23.8"
64
83
  },
@@ -80,7 +99,10 @@
80
99
  "LICENSE",
81
100
  ".env.example",
82
101
  "WORDPRESS_ADMIN_SCRIPTS.md",
83
- "COOLIFY_DEPLOYMENT.md"
102
+ "COOLIFY_DEPLOYMENT.md",
103
+ "PAYLOADCMS_PUBLISHING.md",
104
+ "STATIC_SITE_PUBLISHING.md",
105
+ "PUBLISHING_GUIDE.md"
84
106
  ],
85
107
  "engines": {
86
108
  "node": ">=18.0.0"