myaidev-method 0.2.11 → 0.2.15
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/.claude/CLAUDE.md +46 -0
- package/.claude/agents/content-production-coordinator.md +111 -0
- package/.claude/agents/proprietary-content-verifier.md +96 -0
- package/.claude/agents/visual-content-generator.md +520 -0
- package/.claude/commands/myai-coordinate-content.md +136 -0
- package/.claude/settings.local.json +3 -2
- package/.env.example +33 -0
- package/CHANGELOG.md +228 -0
- package/CONTENT_CREATION_GUIDE.md +3399 -0
- package/DEVELOPER_USE_CASES.md +2085 -0
- package/README.md +234 -2
- package/USER_GUIDE.md +156 -0
- package/VISUAL_GENERATION_FILE_ORGANIZATION.md +105 -0
- package/bin/cli.js +222 -0
- package/package.json +19 -3
- package/src/lib/asset-management.js +532 -0
- package/src/lib/update-manager.js +385 -0
- package/src/lib/visual-config-utils.js +424 -0
- package/src/lib/visual-generation-utils.js +668 -0
- package/src/scripts/configure-visual-apis.js +413 -0
- package/src/scripts/generate-visual-cli.js +279 -0
- package/src/templates/claude/agents/content-production-coordinator.md +111 -0
- package/src/templates/claude/agents/content-writer.md +209 -4
- package/src/templates/claude/agents/proprietary-content-verifier.md +96 -0
- package/src/templates/claude/agents/visual-content-generator.md +520 -0
- package/src/templates/claude/commands/myai-content-writer.md +33 -8
- package/src/templates/claude/commands/myai-coordinate-content.md +136 -0
- package/src/templates/claude/commands/myai-generate-visual.md +318 -0
- package/src/templates/codex/commands/myai-generate-visual.md +307 -0
- package/src/templates/gemini/commands/myai-generate-visual.md +200 -0
package/bin/cli.js
CHANGED
|
@@ -208,6 +208,7 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
|
|
|
208
208
|
|
|
209
209
|
### Content Creation
|
|
210
210
|
- \`/myai-content-writer\` - Create SEO-optimized content
|
|
211
|
+
- \`/myai-coordinate-content\` - Coordinate content production workflow (verify and publish)
|
|
211
212
|
|
|
212
213
|
### Publishing Platforms
|
|
213
214
|
- \`/myai-wordpress-publish\` - Publish to WordPress
|
|
@@ -234,6 +235,8 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
|
|
|
234
235
|
|
|
235
236
|
### Content & Publishing Agents
|
|
236
237
|
- \`content-writer\` - Professional content creation agent
|
|
238
|
+
- \`content-production-coordinator\` - Orchestrate content verification and publishing workflow
|
|
239
|
+
- \`proprietary-content-verifier\` - Verify content uniqueness and quality
|
|
237
240
|
- \`wordpress-admin\` - WordPress administration and security agent
|
|
238
241
|
- \`payloadcms-publish\` - PayloadCMS publishing agent
|
|
239
242
|
- \`docusaurus-publish\` - Docusaurus publishing agent
|
|
@@ -243,6 +246,49 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
|
|
|
243
246
|
### Deployment Agents
|
|
244
247
|
- \`coolify-deploy\` - Coolify deployment agent
|
|
245
248
|
|
|
249
|
+
## Content Production Workflow
|
|
250
|
+
|
|
251
|
+
The MyAIDev Method includes a comprehensive content production workflow:
|
|
252
|
+
|
|
253
|
+
### Coordinated Publishing
|
|
254
|
+
|
|
255
|
+
Use the content production coordinator to verify and publish multiple pieces of content:
|
|
256
|
+
|
|
257
|
+
\`\`\`bash
|
|
258
|
+
/myai-coordinate-content ./content-queue/
|
|
259
|
+
\`\`\`
|
|
260
|
+
|
|
261
|
+
**Workflow:**
|
|
262
|
+
1. **Verification**: Automatically checks content for uniqueness and quality
|
|
263
|
+
2. **Categorization**: Separates content into "Ready for Publishing" and "Needs Review"
|
|
264
|
+
3. **Reports**: Generates timestamped reports with detailed analysis
|
|
265
|
+
4. **Publishing**: Publishes approved content in parallel for efficiency
|
|
266
|
+
5. **Tracking**: Reports all published URLs back to you
|
|
267
|
+
|
|
268
|
+
**Options:**
|
|
269
|
+
- \`--dry-run\` - Only verify content, don't publish
|
|
270
|
+
- \`--force\` - Skip confirmation prompts
|
|
271
|
+
- \`--verbose\` - Show detailed progress
|
|
272
|
+
- \`--output-dir\` - Specify report directory
|
|
273
|
+
|
|
274
|
+
### Content Verification
|
|
275
|
+
|
|
276
|
+
The proprietary-content-verifier agent evaluates:
|
|
277
|
+
- **Knowledge Redundancy**: Whether content is unique or duplicates existing knowledge
|
|
278
|
+
- **AI Detection**: Identifies characteristics of AI-generated content
|
|
279
|
+
- **Quality Assessment**: Provides recommendations for improvement
|
|
280
|
+
|
|
281
|
+
Content is scored as: **High | Medium | Low | Minimal** redundancy
|
|
282
|
+
|
|
283
|
+
### Agent Architecture
|
|
284
|
+
|
|
285
|
+
The content production system uses a coordinator pattern:
|
|
286
|
+
- \`content-production-coordinator\` orchestrates the workflow
|
|
287
|
+
- \`proprietary-content-verifier\` validates content quality
|
|
288
|
+
- \`content-writer\` creates and publishes approved content
|
|
289
|
+
|
|
290
|
+
All agents work in parallel for maximum efficiency.
|
|
291
|
+
|
|
246
292
|
## Platform Configuration
|
|
247
293
|
|
|
248
294
|
To use publishing features, configure your platforms in \`.env\`:
|
|
@@ -327,6 +373,29 @@ To update dependencies, run \`npm install\` inside the \`.myaidev-method/\` dire
|
|
|
327
373
|
.myaidev-method/node_modules/
|
|
328
374
|
\`\`\`
|
|
329
375
|
|
|
376
|
+
## Updating MyAIDev Method
|
|
377
|
+
|
|
378
|
+
To get the latest features, bug fixes, and improved agents:
|
|
379
|
+
|
|
380
|
+
\`\`\`bash
|
|
381
|
+
# Interactive update (recommended) - prompts for conflicts
|
|
382
|
+
npx myaidev-method@latest update --claude
|
|
383
|
+
|
|
384
|
+
# Force update - overwrites all files
|
|
385
|
+
npx myaidev-method@latest update --claude --force
|
|
386
|
+
|
|
387
|
+
# Preview changes without updating
|
|
388
|
+
npx myaidev-method@latest update --claude --dry-run
|
|
389
|
+
\`\`\`
|
|
390
|
+
|
|
391
|
+
The update command:
|
|
392
|
+
- ✅ Preserves your customizations (interactive conflict resolution)
|
|
393
|
+
- ✅ Creates automatic backups before updating
|
|
394
|
+
- ✅ Updates all components (commands, agents, scripts, docs)
|
|
395
|
+
- ✅ Installs updated dependencies
|
|
396
|
+
|
|
397
|
+
See \`USER_GUIDE.md\` for detailed update instructions and best practices.
|
|
398
|
+
|
|
330
399
|
## Notes
|
|
331
400
|
|
|
332
401
|
This configuration follows Claude Code's official standards for custom commands and agents.
|
|
@@ -424,6 +493,11 @@ This configuration follows Claude Code's official standards for custom commands
|
|
|
424
493
|
await fs.copy(sourcePath, path.join(projectDir, docFile));
|
|
425
494
|
}
|
|
426
495
|
}
|
|
496
|
+
|
|
497
|
+
// Save installation version for update tracking
|
|
498
|
+
const pkgJson = await fs.readJson(path.join(__dirname, '..', 'package.json'));
|
|
499
|
+
const versionFile = path.join(claudeDir, '.myaidev-version');
|
|
500
|
+
await fs.writeFile(versionFile, pkgJson.version);
|
|
427
501
|
}
|
|
428
502
|
|
|
429
503
|
async function setupGemini(projectDir) {
|
|
@@ -582,6 +656,154 @@ For full documentation, see the USER_GUIDE.md in your project root.
|
|
|
582
656
|
await fs.writeFile(path.join(codexDir, 'README.md'), opencodeReadme);
|
|
583
657
|
}
|
|
584
658
|
|
|
659
|
+
program
|
|
660
|
+
.command('update')
|
|
661
|
+
.description('Update MyAIDev Method components to latest version')
|
|
662
|
+
.option('--claude', 'Update Claude Code configuration')
|
|
663
|
+
.option('--gemini', 'Update Gemini CLI configuration')
|
|
664
|
+
.option('--codex', 'Update Codex CLI configuration')
|
|
665
|
+
.option('--force', 'Force update all files without prompting')
|
|
666
|
+
.option('--dry-run', 'Show what would be updated without making changes')
|
|
667
|
+
.option('--verbose', 'Show detailed progress')
|
|
668
|
+
.action(async (options) => {
|
|
669
|
+
const ora = (await import('ora')).default;
|
|
670
|
+
const { fileURLToPath } = await import('url');
|
|
671
|
+
const updateManager = await import('../src/lib/update-manager.js');
|
|
672
|
+
|
|
673
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
674
|
+
const __dirname = path.dirname(__filename);
|
|
675
|
+
const packageRoot = path.join(__dirname, '..');
|
|
676
|
+
|
|
677
|
+
try {
|
|
678
|
+
const cwd = process.cwd();
|
|
679
|
+
|
|
680
|
+
// Detect existing installation
|
|
681
|
+
console.log(chalk.cyan('\n🔍 Detecting MyAIDev Method installation...\n'));
|
|
682
|
+
const installation = await updateManager.detectExistingInstallation(cwd);
|
|
683
|
+
|
|
684
|
+
if (!installation) {
|
|
685
|
+
console.log(chalk.red('❌ No MyAIDev Method installation found'));
|
|
686
|
+
console.log(chalk.gray(' Run: npx myaidev-method@latest init --claude'));
|
|
687
|
+
process.exit(1);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
console.log(chalk.green(`✓ Found ${installation.type} installation`));
|
|
691
|
+
console.log(chalk.gray(` Current version: ${installation.currentVersion}`));
|
|
692
|
+
|
|
693
|
+
// Get package version
|
|
694
|
+
const packageJson = await fs.readJson(path.join(packageRoot, 'package.json'));
|
|
695
|
+
const newVersion = packageJson.version;
|
|
696
|
+
|
|
697
|
+
console.log(chalk.gray(` Latest version: ${newVersion}`));
|
|
698
|
+
|
|
699
|
+
// Check if already up to date
|
|
700
|
+
if (installation.currentVersion === newVersion && !options.force) {
|
|
701
|
+
console.log(chalk.green('\n✅ Already up to date!'));
|
|
702
|
+
process.exit(0);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (options.dryRun) {
|
|
706
|
+
console.log(chalk.yellow('\n📋 DRY RUN MODE - No changes will be made\n'));
|
|
707
|
+
} else if (!options.force) {
|
|
708
|
+
console.log(chalk.yellow('\n⚠️ This will update your MyAIDev Method installation'));
|
|
709
|
+
console.log(chalk.gray(' Modified files will require your confirmation\n'));
|
|
710
|
+
|
|
711
|
+
const { confirm } = await inquirer.prompt([
|
|
712
|
+
{
|
|
713
|
+
type: 'confirm',
|
|
714
|
+
name: 'confirm',
|
|
715
|
+
message: 'Continue with update?',
|
|
716
|
+
default: true
|
|
717
|
+
}
|
|
718
|
+
]);
|
|
719
|
+
|
|
720
|
+
if (!confirm) {
|
|
721
|
+
console.log(chalk.gray('Update cancelled'));
|
|
722
|
+
process.exit(0);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// Create backup unless dry-run
|
|
727
|
+
let backupDir;
|
|
728
|
+
if (!options.dryRun) {
|
|
729
|
+
console.log(chalk.cyan('\n💾 Creating backup...'));
|
|
730
|
+
backupDir = await updateManager.createBackup(cwd, installation.type);
|
|
731
|
+
console.log(chalk.green(`✓ Backup created at: ${path.basename(backupDir)}`));
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
// Update components
|
|
735
|
+
const allStats = {};
|
|
736
|
+
|
|
737
|
+
console.log(chalk.cyan('\n📦 Updating components...\n'));
|
|
738
|
+
|
|
739
|
+
// Commands
|
|
740
|
+
console.log(chalk.blue('Commands:'));
|
|
741
|
+
allStats.commands = await updateManager.updateComponent(
|
|
742
|
+
'commands', cwd, installation.type, packageRoot, options
|
|
743
|
+
);
|
|
744
|
+
|
|
745
|
+
// Agents
|
|
746
|
+
console.log(chalk.blue('\nAgents:'));
|
|
747
|
+
allStats.agents = await updateManager.updateComponent(
|
|
748
|
+
'agents', cwd, installation.type, packageRoot, options
|
|
749
|
+
);
|
|
750
|
+
|
|
751
|
+
// Scripts
|
|
752
|
+
console.log(chalk.blue('\nScripts:'));
|
|
753
|
+
allStats.scripts = await updateManager.updateComponent(
|
|
754
|
+
'scripts', cwd, installation.type, packageRoot, options
|
|
755
|
+
);
|
|
756
|
+
|
|
757
|
+
// Libraries
|
|
758
|
+
console.log(chalk.blue('\nLibraries:'));
|
|
759
|
+
allStats.lib = await updateManager.updateComponent(
|
|
760
|
+
'lib', cwd, installation.type, packageRoot, options
|
|
761
|
+
);
|
|
762
|
+
|
|
763
|
+
// MCP configurations
|
|
764
|
+
console.log(chalk.blue('\nMCP Configurations:'));
|
|
765
|
+
allStats.mcp = await updateManager.updateComponent(
|
|
766
|
+
'mcp', cwd, installation.type, packageRoot, options
|
|
767
|
+
);
|
|
768
|
+
|
|
769
|
+
// Documentation
|
|
770
|
+
console.log(chalk.blue('\nDocumentation:'));
|
|
771
|
+
allStats.docs = await updateManager.updateComponent(
|
|
772
|
+
'docs', cwd, installation.type, packageRoot, options
|
|
773
|
+
);
|
|
774
|
+
|
|
775
|
+
// Update dependencies
|
|
776
|
+
if (!options.dryRun) {
|
|
777
|
+
await updateManager.updateDependencies(cwd);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// Save new version
|
|
781
|
+
if (!options.dryRun) {
|
|
782
|
+
await updateManager.saveVersion(cwd, installation.type, newVersion);
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// Show report
|
|
786
|
+
updateManager.generateUpdateReport(allStats);
|
|
787
|
+
|
|
788
|
+
if (options.dryRun) {
|
|
789
|
+
console.log(chalk.yellow('This was a dry run. No changes were made.'));
|
|
790
|
+
} else {
|
|
791
|
+
console.log(chalk.green(`✅ Successfully updated to v${newVersion}`));
|
|
792
|
+
if (backupDir) {
|
|
793
|
+
console.log(chalk.gray(` Backup available at: ${path.basename(backupDir)}`));
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
} catch (error) {
|
|
798
|
+
console.error(chalk.red('\n❌ Update failed:'));
|
|
799
|
+
console.error(error.message);
|
|
800
|
+
if (options.verbose) {
|
|
801
|
+
console.error(error);
|
|
802
|
+
}
|
|
803
|
+
process.exit(1);
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
|
|
585
807
|
program
|
|
586
808
|
.command('claudeweb')
|
|
587
809
|
.description('Start MyAIDev Method Web UI with Claude Code Viewer')
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myaidev-method",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Comprehensive development framework with SPARC methodology for AI-assisted software development, multi-platform publishing (WordPress, PayloadCMS, Astro, Docusaurus, Mintlify), and Coolify deployment",
|
|
3
|
+
"version": "0.2.15",
|
|
4
|
+
"description": "Comprehensive development framework with SPARC methodology for AI-assisted software development, AI visual content generation (Gemini, Imagen, DALL-E, Veo), multi-platform publishing (WordPress, PayloadCMS, Astro, Docusaurus, Mintlify), and Coolify deployment",
|
|
5
5
|
"mcpName": "io.github.myaione/myaidev-method",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"mintlify:publish": "node src/scripts/mintlify-publish.js",
|
|
49
49
|
"astro:publish": "node src/scripts/astro-publish.js",
|
|
50
50
|
"configure": "node src/scripts/configure-cms.js",
|
|
51
|
+
"configure:visual": "node src/scripts/configure-visual-apis.js",
|
|
52
|
+
"generate:visual": "node src/scripts/generate-visual-cli.js",
|
|
51
53
|
"init": "node src/scripts/init-project.js"
|
|
52
54
|
},
|
|
53
55
|
"keywords": [
|
|
@@ -78,6 +80,14 @@
|
|
|
78
80
|
"documentation",
|
|
79
81
|
"ai-agents",
|
|
80
82
|
"automation",
|
|
83
|
+
"image-generation",
|
|
84
|
+
"ai-images",
|
|
85
|
+
"video-generation",
|
|
86
|
+
"gemini",
|
|
87
|
+
"imagen",
|
|
88
|
+
"dall-e",
|
|
89
|
+
"veo",
|
|
90
|
+
"visual-content",
|
|
81
91
|
"deployment",
|
|
82
92
|
"devops",
|
|
83
93
|
"cli-tool",
|
|
@@ -100,6 +110,7 @@
|
|
|
100
110
|
"dotenv": "^16.4.1",
|
|
101
111
|
"effect": "^3.18.4",
|
|
102
112
|
"fs-extra": "^11.2.0",
|
|
113
|
+
"google-auth-library": "^10.5.0",
|
|
103
114
|
"gray-matter": "^4.0.3",
|
|
104
115
|
"hono": "^4.10.3",
|
|
105
116
|
"inquirer": "^9.2.15",
|
|
@@ -133,6 +144,10 @@
|
|
|
133
144
|
"dist/",
|
|
134
145
|
"README.md",
|
|
135
146
|
"USER_GUIDE.md",
|
|
147
|
+
"DEVELOPER_USE_CASES.md",
|
|
148
|
+
"CONTENT_CREATION_GUIDE.md",
|
|
149
|
+
"VISUAL_CONTENT_GENERATION_GUIDE.md",
|
|
150
|
+
"VISUAL_GENERATION_FILE_ORGANIZATION.md",
|
|
136
151
|
"LICENSE",
|
|
137
152
|
".env.example",
|
|
138
153
|
"DEV_WORKFLOW_GUIDE.md",
|
|
@@ -142,7 +157,8 @@
|
|
|
142
157
|
"PUBLISHING_GUIDE.md",
|
|
143
158
|
"TECHNICAL_ARCHITECTURE.md",
|
|
144
159
|
"PACKAGE_FIXES_SUMMARY.md",
|
|
145
|
-
"PAYLOADCMS_AUTH_UPDATE.md"
|
|
160
|
+
"PAYLOADCMS_AUTH_UPDATE.md",
|
|
161
|
+
"CHANGELOG.md"
|
|
146
162
|
],
|
|
147
163
|
"engines": {
|
|
148
164
|
"node": ">=18.0.0"
|