myaidev-method 0.2.23 → 0.2.24-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.
Files changed (60) hide show
  1. package/.claude-plugin/plugin.json +251 -0
  2. package/PLUGIN_ARCHITECTURE.md +276 -0
  3. package/README.md +204 -0
  4. package/USER_GUIDE.md +436 -9
  5. package/bin/cli.js +370 -38
  6. package/dist/server/.tsbuildinfo +1 -1
  7. package/extension.json +174 -0
  8. package/hooks/hooks.json +221 -0
  9. package/marketplace.json +179 -0
  10. package/package.json +24 -7
  11. package/skills/content-verifier/SKILL.md +178 -0
  12. package/skills/content-writer/SKILL.md +151 -0
  13. package/skills/coolify-deployer/SKILL.md +207 -0
  14. package/skills/openstack-manager/SKILL.md +213 -0
  15. package/skills/security-auditor/SKILL.md +180 -0
  16. package/skills/security-tester/SKILL.md +171 -0
  17. package/skills/sparc-architect/SKILL.md +146 -0
  18. package/skills/sparc-coder/SKILL.md +136 -0
  19. package/skills/sparc-documenter/SKILL.md +195 -0
  20. package/skills/sparc-reviewer/SKILL.md +179 -0
  21. package/skills/sparc-tester/SKILL.md +156 -0
  22. package/skills/visual-generator/SKILL.md +147 -0
  23. package/skills/wordpress-publisher/SKILL.md +150 -0
  24. package/src/config/workflows.js +28 -44
  25. package/src/lib/ascii-banner.js +214 -0
  26. package/src/lib/config-manager.js +470 -0
  27. package/src/lib/content-coordinator.js +2562 -0
  28. package/src/lib/content-generator.js +427 -0
  29. package/src/lib/html-conversion-utils.js +843 -0
  30. package/src/lib/installation-detector.js +266 -0
  31. package/src/lib/seo-optimizer.js +515 -0
  32. package/src/lib/visual-config-utils.js +1 -1
  33. package/src/lib/visual-generation-utils.js +34 -14
  34. package/src/lib/wordpress-client.js +633 -0
  35. package/src/lib/workflow-installer.js +3 -3
  36. package/src/scripts/generate-visual-cli.js +39 -10
  37. package/src/scripts/html-conversion-cli.js +526 -0
  38. package/src/scripts/init/configure.js +436 -0
  39. package/src/scripts/init/install.js +460 -0
  40. package/src/scripts/ping.js +0 -1
  41. package/src/scripts/utils/file-utils.js +404 -0
  42. package/src/scripts/utils/logger.js +300 -0
  43. package/src/scripts/utils/write-content.js +293 -0
  44. package/src/templates/claude/agents/content-production-coordinator.md +689 -15
  45. package/src/templates/claude/agents/visual-content-generator.md +129 -4
  46. package/src/templates/claude/commands/myai-content-enrichment.md +227 -0
  47. package/src/templates/claude/commands/myai-content-writer.md +48 -37
  48. package/src/templates/claude/commands/myai-convert-html.md +186 -0
  49. package/src/templates/claude/commands/myai-coordinate-content.md +347 -11
  50. package/src/templates/diagrams/architecture.d2 +52 -0
  51. package/src/templates/diagrams/flowchart.d2 +42 -0
  52. package/src/templates/diagrams/sequence.d2 +47 -0
  53. package/src/templates/docs/content-creation-guide.md +164 -0
  54. package/src/templates/docs/deployment-guide.md +336 -0
  55. package/src/templates/docs/visual-generation-guide.md +248 -0
  56. package/src/templates/docs/wordpress-publishing-guide.md +208 -0
  57. package/src/templates/infographics/comparison-table.html +347 -0
  58. package/src/templates/infographics/data-chart.html +268 -0
  59. package/src/templates/infographics/process-flow.html +365 -0
  60. /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
+ - [Plugin Architecture & Skills](#-plugin-architecture--skills)
10
11
  - [System Configuration](#-system-configuration)
11
12
  - [Updating MyAIDev Method](#-updating-myaidev-method)
12
13
  - [Understanding the Structure](#understanding-the-structure)
@@ -120,6 +121,119 @@ Use the interactive configuration command to set up your environment—no manual
120
121
  /myai-configure agents --list
121
122
  ```
122
123
 
124
+ ## 🔌 Plugin Architecture & Skills
125
+
126
+ **New in v0.2.25!** MyAIDev Method now supports a modern plugin-based architecture with discoverable skills, cross-platform compatibility, and marketplace distribution.
127
+
128
+ ### What's New
129
+
130
+ - **Skills-Based Architecture**: Capabilities are now defined as discoverable SKILL.md files
131
+ - **Plugin Marketplace**: Install packs from the MyAIDev marketplace
132
+ - **Cross-Platform Support**: Works with Claude Code, Gemini CLI, and Codex CLI
133
+ - **Dual Command Naming**: Both legacy (`/myai-*`) and namespaced (`/myaidev-method:*`) commands work
134
+ - **Installation Detection**: CLI commands to detect and upgrade installations
135
+
136
+ ### Installation Options
137
+
138
+ #### NPX Installation (Recommended)
139
+
140
+ The traditional method continues to work:
141
+
142
+ ```bash
143
+ # Full installation
144
+ npx myaidev-method@latest init --claude
145
+
146
+ # Workflow-specific
147
+ npx myaidev-method@latest content --claude
148
+ npx myaidev-method@latest dev --claude
149
+ npx myaidev-method@latest security --claude
150
+ ```
151
+
152
+ #### Plugin Installation (Future)
153
+
154
+ When Claude Code plugin marketplace becomes available:
155
+
156
+ ```bash
157
+ # Add marketplace
158
+ /plugin marketplace add myaione/myaidev-method
159
+
160
+ # Install full or specific packs
161
+ /plugin install myaidev-method@myaidev-marketplace
162
+ /plugin install myaidev-content@myaidev-marketplace
163
+ ```
164
+
165
+ ### Skills Overview
166
+
167
+ Skills are organized into packs for modular installation:
168
+
169
+ | Pack | Skills | Use Case |
170
+ |------|--------|----------|
171
+ | **content** | content-writer, content-verifier, visual-generator, wordpress-publisher | Content creation and publishing |
172
+ | **development** | sparc-architect, sparc-coder, sparc-tester, sparc-reviewer, sparc-documenter | SPARC methodology software development |
173
+ | **security** | security-tester, security-auditor | Penetration testing and auditing |
174
+ | **infrastructure** | coolify-deployer, openstack-manager | Deployment and cloud management |
175
+
176
+ ### SKILL.md Format
177
+
178
+ Each skill is defined with YAML frontmatter:
179
+
180
+ ```markdown
181
+ ---
182
+ name: content-writer
183
+ description: Professional SEO-optimized content creation
184
+ argument-hint: [topic] [--word-count=1500] [--tone=professional]
185
+ allowed-tools: [Read, Write, Edit, WebSearch, WebFetch, Task]
186
+ user-invocable: true
187
+ category: content
188
+ version: 1.0.0
189
+ platforms: [claude-code, gemini-cli, codex-cli]
190
+ ---
191
+
192
+ # Content Writer Skill
193
+
194
+ [Skill instructions and capabilities...]
195
+ ```
196
+
197
+ ### Command Aliasing
198
+
199
+ Both naming conventions work:
200
+
201
+ | Legacy | Namespaced | Function |
202
+ |--------|------------|----------|
203
+ | `/myai-content-writer` | `/myaidev-method:content-writer` | Create content |
204
+ | `/myai-configure` | `/myaidev-method:configure` | Configuration |
205
+ | `/myai-wordpress-publish` | `/myaidev-method:wordpress-publish` | WordPress publishing |
206
+ | `/myai-generate-visual` | `/myaidev-method:generate-visual` | Visual generation |
207
+ | `/myai-openstack` | `/myaidev-method:openstack` | OpenStack management |
208
+
209
+ ### Installation Management Commands
210
+
211
+ ```bash
212
+ # Detect current installation type
213
+ npx myaidev-method detect
214
+
215
+ # Show plugin information
216
+ npx myaidev-method plugin-info
217
+
218
+ # Upgrade from legacy to plugin architecture
219
+ npx myaidev-method upgrade
220
+ ```
221
+
222
+ ### Backward Compatibility
223
+
224
+ All existing functionality is preserved:
225
+
226
+ - ✅ `npx myaidev-method init --claude` works exactly as before
227
+ - ✅ All `/myai-*` commands work with same names and behavior
228
+ - ✅ All agents in `.claude/agents/` work as before
229
+ - ✅ Existing user installations are not affected
230
+
231
+ ### Resources
232
+
233
+ - **Plugin Documentation**: [PLUGIN_ARCHITECTURE.md](PLUGIN_ARCHITECTURE.md)
234
+ - **Marketplace**: https://dev.myai1.ai/plugins/myaidev-method
235
+ - **GitHub**: https://github.com/myaione/myaidev-method
236
+
123
237
  ## ⚙️ System Configuration
124
238
 
125
239
  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.
@@ -503,15 +617,34 @@ for file in content/*.md; do
503
617
  done
504
618
  ```
505
619
 
506
- #### Publishing Configuration
620
+ #### Content Pipeline Setup
621
+
622
+ Set up your content creation pipeline with these configuration steps:
507
623
 
508
- Set up your publishing credentials once using the interactive configuration:
624
+ **Step 1: Configure Brand Voice & Content Rules (Recommended First)**
625
+
626
+ ```bash
627
+ # Interactive wizard for brand voice, tone, SEO guidelines, and formatting
628
+ /myai-content-rules-setup
629
+ ```
630
+
631
+ This creates a `content-rules.md` file that customizes all AI-generated content to match your brand. The wizard guides you through:
632
+ - Brand identity (company name, values, mission)
633
+ - Voice & tone (personality, communication style)
634
+ - Writing style (formality, sentence structure)
635
+ - SEO guidelines (keyword density, meta requirements)
636
+ - Formatting preferences (lists, headers, code blocks)
637
+ - Content boundaries (topics to emphasize or avoid)
638
+
639
+ > **Tip**: Set up content rules before creating your first content. This ensures consistent brand voice from day one.
640
+
641
+ **Step 2: Configure Publishing Platforms**
509
642
 
510
643
  ```bash
511
644
  # Configure WordPress (recommended - no manual .env editing)
512
645
  /myai-configure wordpress
513
646
 
514
- # Configure default content settings
647
+ # Configure visual generation APIs (optional)
515
648
  /myai-configure defaults
516
649
  ```
517
650
 
@@ -533,24 +666,318 @@ PAYLOADCMS_PASSWORD=your-password
533
666
 
534
667
  #### Content Creator Workflow Example
535
668
 
536
- Complete workflow from research to publication:
669
+ Complete workflow from setup to publication:
537
670
 
538
671
  ```bash
539
- # 1. Research and create content
672
+ # 1. First-time setup: Configure brand voice (creates content-rules.md)
673
+ /myai-content-rules-setup
674
+
675
+ # 2. Configure publishing destination
676
+ /myai-configure wordpress
677
+
678
+ # 3. Create content (automatically uses your content-rules.md)
540
679
  /myai-content-writer "Ultimate guide to TypeScript generics with practical examples"
541
680
 
542
- # 2. Review generated markdown file (typescript-generics-guide.md)
681
+ # 4. Review generated markdown file (typescript-generics-guide.md)
682
+ # Content will match your brand voice, SEO guidelines, and formatting preferences
543
683
 
544
- # 3. Publish to WordPress as draft for review
684
+ # 5. Publish to WordPress as draft for review
545
685
  /myai-wordpress-publish "typescript-generics-guide.md" --status draft
546
686
 
547
- # 4. Review on WordPress, make edits if needed
687
+ # 6. Review on WordPress, make edits if needed
548
688
 
549
- # 5. Publish to additional platforms
689
+ # 7. Publish to additional platforms
550
690
  /myai-payloadcms-publish "typescript-generics-guide.md" --status published
551
691
  /myai-docusaurus-publish "typescript-generics-guide.md" --category advanced-topics
552
692
  ```
553
693
 
694
+ > **Note**: Steps 1-2 are one-time setup. For subsequent content, start at step 3.
695
+
696
+ #### Batch Content Coordination
697
+
698
+ For publishing multiple pieces of content at once, use the Content Production Coordinator—a powerful orchestration system that coordinates content verification, quality analysis, and multi-platform publishing.
699
+
700
+ ```bash
701
+ # Process all content in a queue directory
702
+ /myai-coordinate-content ./content-queue/
703
+ ```
704
+
705
+ **Setting Up a Content Queue:**
706
+
707
+ 1. Create a directory for your content queue:
708
+ ```bash
709
+ mkdir -p ./content-queue
710
+ ```
711
+
712
+ 2. Add content files using the required format:
713
+
714
+ **Content Queue File Format** (e.g., `./content-queue/my-article.md`):
715
+
716
+ ```markdown
717
+ ---
718
+ title: "Your Article Title"
719
+ content_type: article
720
+ target_platform: wordpress
721
+ status: pending
722
+ priority: normal
723
+ references:
724
+ - "https://source1.com"
725
+ - "https://source2.com"
726
+ goals:
727
+ - "Primary goal for this content"
728
+ - "Secondary goal"
729
+ ---
730
+
731
+ ## Proprietary Content
732
+
733
+ [Your unique insights, original analysis, and value-add content here.
734
+ This is the section that gets verified for uniqueness.]
735
+
736
+ ## Supporting Content
737
+
738
+ [Additional context, examples, and supporting material]
739
+ ```
740
+
741
+ **Required Fields:**
742
+ | Field | Description |
743
+ |-------|-------------|
744
+ | `title` | Article title (used for publishing) |
745
+ | **Proprietary Content section** | Your unique content to be verified |
746
+
747
+ **Optional Fields:**
748
+ | Field | Values | Default |
749
+ |-------|--------|---------|
750
+ | `content_type` | article, tutorial, guide, listicle | article |
751
+ | `target_platform` | wordpress, payloadcms, static, docusaurus, mintlify, astro | wordpress |
752
+ | `status` | pending, verified, published, failed | pending |
753
+ | `priority` | high, normal, low | normal |
754
+ | `references` | Array of source URLs | [] |
755
+ | `goals` | Array of publishing goals | [] |
756
+ | `publish_date` | ISO 8601 date for scheduled publishing | immediate |
757
+
758
+ 3. Run the coordinator:
759
+ ```bash
760
+ /myai-coordinate-content ./content-queue/
761
+ ```
762
+
763
+ #### Coordinator Features
764
+
765
+ **Core Operations:**
766
+ ```bash
767
+ # Verify only, no publishing
768
+ /myai-coordinate-content ./content-queue/ --dry-run
769
+
770
+ # Skip confirmations (for automation)
771
+ /myai-coordinate-content ./content-queue/ --force
772
+
773
+ # Detailed progress output
774
+ /myai-coordinate-content ./content-queue/ --verbose
775
+
776
+ # Custom report directory
777
+ /myai-coordinate-content ./content-queue/ --output-dir ./reports/
778
+
779
+ # Higher concurrency for large batches
780
+ /myai-coordinate-content ./content-queue/ --concurrency 5
781
+ ```
782
+
783
+ **Multi-Platform Publishing:**
784
+ ```bash
785
+ # Publish to PayloadCMS instead of WordPress
786
+ /myai-coordinate-content ./content-queue/ --platform payloadcms
787
+
788
+ # Generate static markdown files
789
+ /myai-coordinate-content ./content-queue/ --platform static --output-dir ./published/
790
+
791
+ # Publish to Docusaurus documentation site
792
+ /myai-coordinate-content ./docs-queue/ --platform docusaurus
793
+ ```
794
+
795
+ Each content item can override the default platform using the `target_platform` front matter field.
796
+
797
+ **Content Rules Integration:**
798
+ ```bash
799
+ # Use custom content rules file
800
+ /myai-coordinate-content ./content-queue/ --content-rules ./brand/content-rules.md
801
+
802
+ # Content rules are auto-detected from standard locations
803
+ /myai-coordinate-content ./content-queue/ # Finds ./content-rules.md automatically
804
+ ```
805
+
806
+ The coordinator automatically searches for `content-rules.md` in these locations:
807
+ 1. Explicit path via `--content-rules`
808
+ 2. `./content-rules.md` (current directory)
809
+ 3. `./.claude/content-rules.md`
810
+ 4. `./docs/content-rules.md`
811
+
812
+ **CI/CD Integration with Webhooks:**
813
+ ```bash
814
+ # Send notifications to CI/CD webhook
815
+ /myai-coordinate-content ./content-queue/ --webhook-url https://ci.example.com/webhook
816
+
817
+ # Notify on all events including each published item
818
+ /myai-coordinate-content ./content-queue/ \
819
+ --webhook-url https://ci.example.com/webhook \
820
+ --webhook-events start,complete,error,published
821
+
822
+ # Full CI/CD pipeline integration
823
+ /myai-coordinate-content ./content-queue/ --force --webhook-url $CI_WEBHOOK_URL --analytics
824
+ ```
825
+
826
+ **Available Webhook Events:**
827
+ - `start` - When workflow begins
828
+ - `complete` - When workflow finishes successfully
829
+ - `error` - When errors occur
830
+ - `published` - When each item is published
831
+
832
+ **Queue Management:**
833
+ ```bash
834
+ # Add new content to queue without processing
835
+ /myai-coordinate-content ./new-articles/ --add-to-queue
836
+
837
+ # View queue statistics
838
+ /myai-coordinate-content --queue-stats
839
+
840
+ # Process items from queue
841
+ /myai-coordinate-content --queue .content-queue.json
842
+
843
+ # Clear completed items from queue
844
+ /myai-coordinate-content --clear-completed
845
+ ```
846
+
847
+ **Analytics & Monitoring:**
848
+ ```bash
849
+ # Enable detailed analytics (default)
850
+ /myai-coordinate-content ./content-queue/ --analytics
851
+
852
+ # Full production run with all options
853
+ /myai-coordinate-content ./content-queue/ \
854
+ --verbose \
855
+ --output-dir ./reports/ \
856
+ --concurrency 3 \
857
+ --content-rules ./brand/content-rules.md \
858
+ --webhook-url https://ci.example.com/webhook \
859
+ --analytics
860
+ ```
861
+
862
+ When analytics are enabled, generates `analytics-YYYY-MM-DD-HH-MM-SS.md` with:
863
+ - Per-phase timing metrics
864
+ - Success/failure rates
865
+ - Average verification and publishing times
866
+ - Content quality score trends
867
+ - Error categorization
868
+
869
+ #### Scheduling & Automation
870
+
871
+ **Linux Crontab Integration:**
872
+
873
+ ```bash
874
+ # Generate crontab entry with instructions
875
+ /myai-coordinate-content --generate-crontab
876
+
877
+ # Run in cron-safe mode (for crontab)
878
+ /myai-coordinate-content ./content-queue/ --cron --force
879
+
880
+ # With minimum 6-hour interval between runs
881
+ /myai-coordinate-content ./content-queue/ --cron --min-interval 21600
882
+ ```
883
+
884
+ **Example crontab entries:**
885
+ ```bash
886
+ # Every 6 hours
887
+ 0 */6 * * * cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
888
+
889
+ # Daily at 9 AM
890
+ 0 9 * * * cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
891
+
892
+ # Weekdays at 9 AM and 5 PM
893
+ 0 9,17 * * 1-5 cd /path/to/project && npx myaidev-method coordinate-content ./content-queue --cron --force >> /var/log/content-coordinator.log 2>&1
894
+ ```
895
+
896
+ **WordPress Post Scheduling:**
897
+
898
+ Schedule posts for future publication using WordPress's native scheduling:
899
+
900
+ ```bash
901
+ # Delay all posts by 24 hours
902
+ /myai-coordinate-content ./content-queue/ --schedule-delay 24
903
+
904
+ # Spread posts 6 hours apart
905
+ /myai-coordinate-content ./content-queue/ --spread-interval 6
906
+
907
+ # Combined: Start in 24 hours, then every 6 hours
908
+ /myai-coordinate-content ./content-queue/ --schedule-delay 24 --spread-interval 6
909
+ ```
910
+
911
+ You can also set specific publish dates in content front matter:
912
+ ```yaml
913
+ ---
914
+ title: "My Article"
915
+ publish_date: "2026-02-15T09:00:00Z" # Schedule for specific date
916
+ ---
917
+ ```
918
+
919
+ **Combined Automation (Cron + WordPress Scheduling):**
920
+ ```bash
921
+ # Run via cron, but schedule posts for optimal times
922
+ /myai-coordinate-content ./content-queue/ \
923
+ --cron \
924
+ --force \
925
+ --schedule-delay 24 \
926
+ --spread-interval 6 \
927
+ --webhook-url https://ci.example.com/content-published
928
+ ```
929
+
930
+ #### Checkpoint/Resume
931
+
932
+ The coordinator automatically saves progress to `.content-coordinator-state.json`. If interrupted:
933
+ - Re-run the same command to resume from the last checkpoint
934
+ - Use `--fresh` to start over and ignore saved state
935
+ - Delete the state file manually to reset
936
+
937
+ #### Output Reports
938
+
939
+ The coordinator generates timestamped reports:
940
+
941
+ **Ready for Publishing Report** (`ready-for-publishing-YYYY-MM-DD-HH-MM-SS.md`):
942
+ ```markdown
943
+ # Content Ready for Publishing
944
+ Generated: YYYY-MM-DD HH:MM:SS
945
+
946
+ ## Summary
947
+ - Total Items: X
948
+ - Total Word Count: ~Y,000 words
949
+ - Average Redundancy Score: Low/Minimal
950
+
951
+ ## Items
952
+
953
+ ### 1. [Title]
954
+ - **Redundancy Score**: Low
955
+ - **Recommendation**: Proceed with publishing
956
+ - **Word Count**: ~1,200 words
957
+ - **Verifier Feedback**: [Brief feedback]
958
+ - **References**: [List of references]
959
+ - **Goals**: [Publishing goals]
960
+ ```
961
+
962
+ **Needs Review Report** (`needs-review-YYYY-MM-DD-HH-MM-SS.md`):
963
+ ```markdown
964
+ # Content Requiring Review
965
+ Generated: YYYY-MM-DD HH:MM:SS
966
+
967
+ ## Summary
968
+ - Total Items: X
969
+ - Issues Found: Redundancy, AI-generated indicators, etc.
970
+
971
+ ## Items Requiring Attention
972
+
973
+ ### 1. [Title]
974
+ - **Redundancy Score**: Medium/High
975
+ - **Recommendation**: Needs review / Reject
976
+ - **Issue**: [Specific problem identified]
977
+ - **Verifier Feedback**: [Detailed feedback]
978
+ - **Suggested Actions**: [What to do next]
979
+ ```
980
+
554
981
  ---
555
982
 
556
983
  ### Developer Pathway