myaidev-method 0.2.7 → 0.2.9

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 (163) hide show
  1. package/.claude/agents/wordpress-admin.md +271 -0
  2. package/.env.example +0 -1
  3. package/COOLIFY_DEPLOYMENT.md +1 -1
  4. package/DEV_WORKFLOW_GUIDE.md +1 -1
  5. package/PACKAGE_FIXES_SUMMARY.md +319 -0
  6. package/PAYLOADCMS_AUTH_UPDATE.md +248 -0
  7. package/PUBLISHING_GUIDE.md +1 -1
  8. package/README.md +7 -7
  9. package/USER_GUIDE.md +261 -1
  10. package/WORDPRESS_ADMIN_SCRIPTS.md +1 -1
  11. package/bin/cli.js +36 -0
  12. package/dist/server/.tsbuildinfo +1 -0
  13. package/dist/server/auth/controllers/AuthController.d.ts +34 -0
  14. package/dist/server/auth/controllers/AuthController.d.ts.map +1 -0
  15. package/dist/server/auth/controllers/AuthController.js +43 -0
  16. package/dist/server/auth/controllers/AuthController.js.map +1 -0
  17. package/dist/server/auth/example-usage.d.ts +53 -0
  18. package/dist/server/auth/example-usage.d.ts.map +1 -0
  19. package/dist/server/auth/example-usage.js +129 -0
  20. package/dist/server/auth/example-usage.js.map +1 -0
  21. package/dist/server/auth/index.d.ts +11 -0
  22. package/dist/server/auth/index.d.ts.map +1 -0
  23. package/dist/server/auth/index.js +15 -0
  24. package/dist/server/auth/index.js.map +1 -0
  25. package/dist/server/auth/layers.d.ts +19 -0
  26. package/dist/server/auth/layers.d.ts.map +1 -0
  27. package/dist/server/auth/layers.js +33 -0
  28. package/dist/server/auth/layers.js.map +1 -0
  29. package/dist/server/auth/middleware/authMiddleware.d.ts +24 -0
  30. package/dist/server/auth/middleware/authMiddleware.d.ts.map +1 -0
  31. package/dist/server/auth/middleware/authMiddleware.js +65 -0
  32. package/dist/server/auth/middleware/authMiddleware.js.map +1 -0
  33. package/dist/server/auth/routes/authRoutes.d.ts +11 -0
  34. package/dist/server/auth/routes/authRoutes.d.ts.map +1 -0
  35. package/dist/server/auth/routes/authRoutes.js +213 -0
  36. package/dist/server/auth/routes/authRoutes.js.map +1 -0
  37. package/dist/server/auth/services/AuditLogService.d.ts +21 -0
  38. package/dist/server/auth/services/AuditLogService.d.ts.map +1 -0
  39. package/dist/server/auth/services/AuditLogService.js +28 -0
  40. package/dist/server/auth/services/AuditLogService.js.map +1 -0
  41. package/dist/server/auth/services/AuthService.d.ts +27 -0
  42. package/dist/server/auth/services/AuthService.d.ts.map +1 -0
  43. package/dist/server/auth/services/AuthService.js +246 -0
  44. package/dist/server/auth/services/AuthService.js.map +1 -0
  45. package/dist/server/auth/services/PasswordService.d.ts +12 -0
  46. package/dist/server/auth/services/PasswordService.d.ts.map +1 -0
  47. package/dist/server/auth/services/PasswordService.js +31 -0
  48. package/dist/server/auth/services/PasswordService.js.map +1 -0
  49. package/dist/server/auth/services/SessionRepository.d.ts +24 -0
  50. package/dist/server/auth/services/SessionRepository.d.ts.map +1 -0
  51. package/dist/server/auth/services/SessionRepository.js +101 -0
  52. package/dist/server/auth/services/SessionRepository.js.map +1 -0
  53. package/dist/server/auth/services/TokenService.d.ts +12 -0
  54. package/dist/server/auth/services/TokenService.d.ts.map +1 -0
  55. package/dist/server/auth/services/TokenService.js +86 -0
  56. package/dist/server/auth/services/TokenService.js.map +1 -0
  57. package/dist/server/auth/services/UserRepository.d.ts +23 -0
  58. package/dist/server/auth/services/UserRepository.d.ts.map +1 -0
  59. package/dist/server/auth/services/UserRepository.js +168 -0
  60. package/dist/server/auth/services/UserRepository.js.map +1 -0
  61. package/dist/server/auth/services/example.d.ts +26 -0
  62. package/dist/server/auth/services/example.d.ts.map +1 -0
  63. package/dist/server/auth/services/example.js +221 -0
  64. package/dist/server/auth/services/example.js.map +1 -0
  65. package/dist/server/auth/services/index.d.ts +6 -0
  66. package/dist/server/auth/services/index.d.ts.map +1 -0
  67. package/dist/server/auth/services/index.js +7 -0
  68. package/dist/server/auth/services/index.js.map +1 -0
  69. package/dist/server/database/db.d.ts +28 -0
  70. package/dist/server/database/db.d.ts.map +1 -0
  71. package/dist/server/database/db.js +91 -0
  72. package/dist/server/database/db.js.map +1 -0
  73. package/dist/server/database/schema.sql +95 -0
  74. package/dist/server/hono/app.d.ts +10 -0
  75. package/dist/server/hono/app.d.ts.map +1 -0
  76. package/dist/server/hono/app.js +26 -0
  77. package/dist/server/hono/app.js.map +1 -0
  78. package/dist/server/hono/routes.d.ts +12 -0
  79. package/dist/server/hono/routes.d.ts.map +1 -0
  80. package/dist/server/hono/routes.js +40 -0
  81. package/dist/server/hono/routes.js.map +1 -0
  82. package/dist/server/main.d.ts +2 -0
  83. package/dist/server/main.d.ts.map +1 -0
  84. package/dist/server/main.js +94 -0
  85. package/dist/server/main.js.map +1 -0
  86. package/dist/server/user-management/DirectoryService.d.ts +62 -0
  87. package/dist/server/user-management/DirectoryService.d.ts.map +1 -0
  88. package/dist/server/user-management/DirectoryService.js +201 -0
  89. package/dist/server/user-management/DirectoryService.js.map +1 -0
  90. package/dist/server/user-management/LinuxUserService.d.ts +71 -0
  91. package/dist/server/user-management/LinuxUserService.d.ts.map +1 -0
  92. package/dist/server/user-management/LinuxUserService.js +192 -0
  93. package/dist/server/user-management/LinuxUserService.js.map +1 -0
  94. package/dist/server/user-management/QuotaService.d.ts +59 -0
  95. package/dist/server/user-management/QuotaService.d.ts.map +1 -0
  96. package/dist/server/user-management/QuotaService.js +148 -0
  97. package/dist/server/user-management/QuotaService.js.map +1 -0
  98. package/dist/server/user-management/UserManagementService.d.ts +74 -0
  99. package/dist/server/user-management/UserManagementService.d.ts.map +1 -0
  100. package/dist/server/user-management/UserManagementService.js +122 -0
  101. package/dist/server/user-management/UserManagementService.js.map +1 -0
  102. package/dist/server/user-management/index.d.ts +26 -0
  103. package/dist/server/user-management/index.d.ts.map +1 -0
  104. package/dist/server/user-management/index.js +26 -0
  105. package/dist/server/user-management/index.js.map +1 -0
  106. package/dist/server/user-management/layers.d.ts +27 -0
  107. package/dist/server/user-management/layers.d.ts.map +1 -0
  108. package/dist/server/user-management/layers.js +37 -0
  109. package/dist/server/user-management/layers.js.map +1 -0
  110. package/dist/shared/types.d.ts +94 -0
  111. package/dist/shared/types.d.ts.map +1 -0
  112. package/dist/shared/types.js +32 -0
  113. package/dist/shared/types.js.map +1 -0
  114. package/package.json +26 -6
  115. package/src/lib/payloadcms-utils.js +5 -12
  116. package/src/server/auth/ARCHITECTURE.md +575 -0
  117. package/src/server/auth/IMPLEMENTATION_SUMMARY.md +287 -0
  118. package/src/server/auth/QUICK_START.md +283 -0
  119. package/src/server/auth/README.md +290 -0
  120. package/src/server/auth/controllers/AuthController.ts +129 -0
  121. package/src/server/auth/example-usage.ts +159 -0
  122. package/src/server/auth/index.ts +19 -0
  123. package/src/server/auth/layers.ts +57 -0
  124. package/src/server/auth/middleware/authMiddleware.ts +118 -0
  125. package/src/server/auth/routes/authRoutes.ts +319 -0
  126. package/src/server/auth/services/AuditLogService.ts +81 -0
  127. package/src/server/auth/services/AuthService.ts +408 -0
  128. package/src/server/auth/services/IMPLEMENTATION_SUMMARY.md +404 -0
  129. package/src/server/auth/services/PasswordService.ts +85 -0
  130. package/src/server/auth/services/README.md +361 -0
  131. package/src/server/auth/services/SessionRepository.ts +227 -0
  132. package/src/server/auth/services/TokenService.ts +174 -0
  133. package/src/server/auth/services/UserRepository.ts +318 -0
  134. package/src/server/auth/services/example.ts +346 -0
  135. package/src/server/auth/services/index.ts +6 -0
  136. package/src/server/database/db.ts +161 -0
  137. package/src/server/database/schema.sql +95 -0
  138. package/src/server/hono/app.ts +41 -0
  139. package/src/server/main.ts +115 -0
  140. package/src/server/user-management/DirectoryService.ts +348 -0
  141. package/src/server/user-management/LinuxUserService.ts +338 -0
  142. package/src/server/user-management/QuotaService.ts +256 -0
  143. package/src/server/user-management/README.md +333 -0
  144. package/src/server/user-management/UserManagementService.ts +335 -0
  145. package/src/server/user-management/index.ts +26 -0
  146. package/src/server/user-management/layers.ts +51 -0
  147. package/src/shared/types.ts +111 -0
  148. package/src/templates/claude/agents/payloadcms-publish.md +34 -14
  149. package/src/templates/codex/commands/myai-astro-publish.md +8 -2
  150. package/src/templates/codex/commands/myai-content-writer.md +8 -2
  151. package/src/templates/codex/commands/myai-coolify-deploy.md +8 -2
  152. package/src/templates/codex/commands/myai-dev-architect.md +8 -2
  153. package/src/templates/codex/commands/myai-dev-code.md +8 -2
  154. package/src/templates/codex/commands/myai-dev-docs.md +8 -2
  155. package/src/templates/codex/commands/myai-dev-review.md +8 -2
  156. package/src/templates/codex/commands/myai-dev-test.md +8 -2
  157. package/src/templates/codex/commands/myai-docusaurus-publish.md +8 -2
  158. package/src/templates/codex/commands/myai-mintlify-publish.md +8 -2
  159. package/src/templates/codex/commands/myai-payloadcms-publish.md +17 -3
  160. package/src/templates/codex/commands/myai-sparc-workflow.md +8 -2
  161. package/src/templates/codex/commands/myai-wordpress-admin.md +8 -2
  162. package/src/templates/codex/commands/myai-wordpress-publish.md +8 -2
  163. package/src/templates/docs/wordpress-troubleshoot.js +2 -2
@@ -0,0 +1,51 @@
1
+ import { Layer } from "effect";
2
+ import { LinuxUserService } from "./LinuxUserService";
3
+ import { DirectoryService } from "./DirectoryService";
4
+ import { QuotaService } from "./QuotaService";
5
+ import { UserManagementService } from "./UserManagementService";
6
+
7
+ /**
8
+ * User Management Layer Composition
9
+ *
10
+ * Provides Effect-TS layers for dependency injection of user management services.
11
+ */
12
+
13
+ // Independent services (no dependencies)
14
+ const IndependentServices = Layer.mergeAll(
15
+ LinuxUserService.Live,
16
+ DirectoryService.Live,
17
+ QuotaService.Live
18
+ );
19
+
20
+ // User management service depends on all base services
21
+ const UserManagementWithDeps = Layer.provide(
22
+ UserManagementService.Live,
23
+ IndependentServices
24
+ );
25
+
26
+ // Complete layer with all services
27
+ export const UserManagementLayer = Layer.mergeAll(
28
+ IndependentServices,
29
+ UserManagementWithDeps
30
+ );
31
+
32
+ /**
33
+ * Create a complete user management layer
34
+ *
35
+ * Usage:
36
+ * ```typescript
37
+ * const layer = createUserManagementLayer();
38
+ * const runtime = ManagedRuntime.make(layer);
39
+ *
40
+ * const result = await runtime.runPromise(
41
+ * Effect.gen(function* () {
42
+ * const userMgmt = yield* UserManagementService;
43
+ * return yield* userMgmt.createUser({
44
+ * username: "john",
45
+ * email: "john@example.com",
46
+ * });
47
+ * })
48
+ * );
49
+ * ```
50
+ */
51
+ export const createUserManagementLayer = () => UserManagementLayer;
@@ -0,0 +1,111 @@
1
+ // Shared types for MyAIDev Method Web Server
2
+
3
+ export interface User {
4
+ id: string;
5
+ username: string;
6
+ email: string;
7
+ passwordHash: string | null;
8
+ linuxUsername: string;
9
+ createdAt: number;
10
+ updatedAt: number;
11
+ isActive: boolean;
12
+ emailVerified: boolean;
13
+ failedLoginAttempts: number;
14
+ lastLoginAt: number | null;
15
+ }
16
+
17
+ export interface Session {
18
+ id: string;
19
+ userId: string;
20
+ tokenHash: string;
21
+ ipAddress: string | null;
22
+ userAgent: string | null;
23
+ createdAt: number;
24
+ expiresAt: number;
25
+ isRevoked: boolean;
26
+ revokedAt: number | null;
27
+ }
28
+
29
+ export interface OAuth2Provider {
30
+ id: string;
31
+ userId: string;
32
+ provider: "google" | "github" | "microsoft";
33
+ providerUserId: string;
34
+ providerEmail: string | null;
35
+ accessToken: string | null;
36
+ refreshToken: string | null;
37
+ tokenExpiresAt: number | null;
38
+ createdAt: number;
39
+ updatedAt: number;
40
+ }
41
+
42
+ export interface AuditLog {
43
+ id: string;
44
+ userId: string | null;
45
+ action: string;
46
+ resourceType: string | null;
47
+ resourceId: string | null;
48
+ ipAddress: string | null;
49
+ userAgent: string | null;
50
+ details: string | null;
51
+ createdAt: number;
52
+ }
53
+
54
+ // JWT Payload - compatible with jose library
55
+ export interface JWTPayload {
56
+ sub: string; // user id
57
+ username: string;
58
+ email: string;
59
+ iat: number;
60
+ exp: number;
61
+ jti: string; // session id
62
+ [key: string]: unknown; // Index signature for jose compatibility
63
+ }
64
+
65
+ // API Request/Response types
66
+ export interface RegisterRequest {
67
+ username: string;
68
+ email: string;
69
+ password: string;
70
+ }
71
+
72
+ export interface LoginRequest {
73
+ email: string;
74
+ password: string;
75
+ }
76
+
77
+ export interface AuthResponse {
78
+ user: {
79
+ id: string;
80
+ username: string;
81
+ email: string;
82
+ emailVerified: boolean;
83
+ };
84
+ token: string;
85
+ }
86
+
87
+ // Error types
88
+ export class AuthError {
89
+ readonly _tag = "AuthError";
90
+ constructor(
91
+ readonly code: string,
92
+ readonly message: string,
93
+ readonly cause?: unknown
94
+ ) {}
95
+ }
96
+
97
+ export class ValidationError {
98
+ readonly _tag = "ValidationError";
99
+ constructor(
100
+ readonly field: string,
101
+ readonly message: string
102
+ ) {}
103
+ }
104
+
105
+ export class DatabaseError {
106
+ readonly _tag = "DatabaseError";
107
+ constructor(
108
+ readonly message: string,
109
+ readonly cause?: unknown
110
+ ) {}
111
+ }
@@ -29,23 +29,24 @@ token_target: 2800
29
29
 
30
30
  ### Step 1: Configuration Validation
31
31
  ```
32
- 1. Check PayloadCMS credentials in environment or config
32
+ 1. Check PayloadCMS credentials in environment (.env file)
33
33
  2. Verify required fields:
34
- - PAYLOAD_URL: API endpoint
35
- - PAYLOAD_EMAIL: user email
36
- - PAYLOAD_PASSWORD: user password
37
- - PAYLOAD_COLLECTION: default collection name (optional)
38
- 3. If missing → prompt user to run /myai-configure payloadcms
34
+ - PAYLOADCMS_URL: PayloadCMS API endpoint
35
+ - PAYLOADCMS_EMAIL: User email for authentication
36
+ - PAYLOADCMS_PASSWORD: User password for authentication
37
+ 3. If missing prompt user to configure .env file
38
+ (See .env.example for template)
39
39
  ```
40
40
 
41
41
  ### Step 2: Authentication
42
42
  ```
43
- 1. Call authenticatePayload(url, email, password)
44
- 2. Receive JWT token for API requests
45
- 3. Handle auth errors:
46
- - Invalid credentials → verify config
47
- - Network errorscheck URL accessibility
48
- - Server errors → verify PayloadCMS instance health
43
+ 1. Authenticate using email/password to obtain JWT token
44
+ 2. POST to {PAYLOADCMS_URL}/api/users/login with credentials
45
+ 3. Extract JWT token from response (used for all subsequent API calls)
46
+ 4. Handle auth errors:
47
+ - Invalid credentialsverify PAYLOADCMS_EMAIL and PAYLOADCMS_PASSWORD
48
+ - Network errors → check PAYLOADCMS_URL accessibility
49
+ - Server errors → verify PayloadCMS instance is running
49
50
  ```
50
51
 
51
52
  ### Step 3: Content Processing
@@ -129,6 +130,25 @@ Agent:
129
130
  5. Report success with URLs
130
131
  ```
131
132
 
132
- ## Configuration Integration
133
+ ## Configuration Setup
133
134
 
134
- Use `/myai-configure` to set up PayloadCMS credentials before publishing.
135
+ ### Required Environment Variables
136
+
137
+ Add to your `.env` file:
138
+
139
+ ```bash
140
+ PAYLOADCMS_URL=https://your-payloadcms-site.com
141
+ PAYLOADCMS_EMAIL=your-email@example.com
142
+ PAYLOADCMS_PASSWORD=your-password
143
+ ```
144
+
145
+ ### Authentication Flow
146
+
147
+ 1. **Email/Password Login**: Agent authenticates using credentials from .env
148
+ 2. **JWT Token**: Receives JWT token from PayloadCMS `/api/users/login` endpoint
149
+ 3. **API Requests**: Uses JWT token in `Authorization: JWT {token}` header for all API calls
150
+ 4. **Token Expiry**: Automatically re-authenticates if token expires
151
+
152
+ ### No API Keys Required
153
+
154
+ PayloadCMS integration uses standard user authentication (email/password) to obtain JWT tokens. No separate API keys or application passwords needed.
@@ -1,8 +1,14 @@
1
1
  # Astro Content Publisher
2
2
 
3
- Publish markdown content to Astro static site with content collections support and git workflow: $ARGUMENTS
3
+ Use the Task tool with subagent_type="astro-publish" to publish the markdown file provided in the arguments to Astro.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--collection, --pages, --project, --branch, --no-push, --dry-run).
6
+
7
+ The agent will handle frontmatter transformation, content collection validation, and git workflow automation for Astro static sites.
4
8
 
5
- Invoke the Astro publishing agent to transform frontmatter, validate schemas, and deploy via git.
9
+ ## Overview
10
+
11
+ Publish markdown content to Astro static site with content collections support and git workflow: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Professional Content Writer
2
2
 
3
- Create comprehensive, well-researched content based on the provided topic: $ARGUMENTS
3
+ Use the Task tool with subagent_type="content-writer" to create SEO-optimized content based on the provided topic.
4
+
5
+ Pass all command arguments to the agent, including the topic, word count, tone, audience, SEO keywords, and publish_to_wordpress flag.
6
+
7
+ The agent will handle research, planning, writing, optimization, and formatting with professional content creation expertise.
4
8
 
5
- You are a professional content writer specializing in creating high-quality, engaging, and SEO-optimized content.
9
+ ## Overview
10
+
11
+ Create comprehensive, well-researched content based on the provided topic: $ARGUMENTS
6
12
 
7
13
  ## Core Competencies
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Coolify Deployment Manager
2
2
 
3
- Execute Coolify deployment operations: $ARGUMENTS
3
+ Use the Task tool with subagent_type="coolify-deploy" to execute Coolify deployment operations provided in the arguments.
4
+
5
+ Pass all command arguments to the agent, including the operation type (deploy, status, list, logs, restart, env) and any configuration flags.
6
+
7
+ The agent will handle Coolify API communication, deployment orchestration, and infrastructure management operations.
4
8
 
5
- Launch the Coolify deployment specialist agent for application deployment and infrastructure management.
9
+ ## Overview
10
+
11
+ Execute Coolify deployment operations: $ARGUMENTS
6
12
 
7
13
  ## Available Operations
8
14
 
@@ -1,8 +1,14 @@
1
1
  # System Architecture Design
2
2
 
3
- Design scalable system architecture using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Architect" to design scalable system architecture based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--existing-code, --tech-stack, --output-dir).
6
+
7
+ The agent will handle requirements analysis, architecture design, diagram creation, API specifications, and technology recommendations using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Architect agent to create comprehensive system designs with architecture diagrams, API specifications, and technology recommendations.
9
+ ## Overview
10
+
11
+ Design scalable system architecture using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Feature Implementation
2
2
 
3
- Implement features and write production-ready code using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Coder" to implement features based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--architecture, --test-driven, --output-dir).
6
+
7
+ The agent will handle implementation planning, clean code generation, SOLID principles application, error handling, and test creation using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Coder agent to implement features based on architecture specifications, following best practices and clean code principles.
9
+ ## Overview
10
+
11
+ Implement features and write production-ready code using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Comprehensive Documentation
2
2
 
3
- Generate comprehensive documentation using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Documenter" to generate comprehensive documentation based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--type, --format, --output-dir).
6
+
7
+ The agent will handle documentation generation including API references, user guides, architecture docs, code examples, and visual diagrams using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Documenter agent to create API documentation, user guides, architecture docs, and technical specifications.
9
+ ## Overview
10
+
11
+ Generate comprehensive documentation using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Code Quality Review
2
2
 
3
- Perform comprehensive code review using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Reviewer" to perform comprehensive code review based on the provided scope.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--security, --performance, --output-dir).
6
+
7
+ The agent will handle code quality analysis, security vulnerability assessment, performance review, and best practices validation using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Reviewer agent to analyze code quality, security vulnerabilities, performance issues, and best practices compliance.
9
+ ## Overview
10
+
11
+ Perform comprehensive code review using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Comprehensive Testing
2
2
 
3
- Write and execute comprehensive tests using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Tester" to create comprehensive tests based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--coverage, --integration, --framework, --output-dir).
6
+
7
+ The agent will handle test suite creation, unit and integration test generation, coverage analysis, and quality gate validation using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Tester agent to create unit tests, integration tests, and validate code quality with coverage analysis.
9
+ ## Overview
10
+
11
+ Write and execute comprehensive tests using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Docusaurus Content Publisher
2
2
 
3
- Publish markdown content to Docusaurus static site generator with automatic git workflow: $ARGUMENTS
3
+ Use the Task tool with subagent_type="Docusaurus Publishing Agent" to publish the markdown file provided in the arguments to Docusaurus.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--type, --project, --branch, --no-push, --dry-run).
6
+
7
+ The agent will handle content transformation, file placement, and git workflow automation for Docusaurus static site generator.
4
8
 
5
- Invoke the Docusaurus publishing agent to transform content and deploy via git.
9
+ ## Overview
10
+
11
+ Publish markdown content to Docusaurus static site generator with automatic git workflow: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Mintlify Documentation Publisher
2
2
 
3
- Publish markdown/MDX content to Mintlify documentation site with automatic navigation updates: $ARGUMENTS
3
+ Use the Task tool with subagent_type="mintlify-publish" to publish the markdown/MDX file provided in the arguments to Mintlify.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--nav-section, --project, --branch, --no-push, --dry-run).
6
+
7
+ The agent will handle content transformation, mint.json navigation updates, and git workflow automation for Mintlify documentation sites.
4
8
 
5
- Invoke the Mintlify publishing agent to transform content, update mint.json, and deploy via git.
9
+ ## Overview
10
+
11
+ Publish markdown/MDX content to Mintlify documentation site with automatic navigation updates: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -1,8 +1,14 @@
1
1
  # PayloadCMS Content Publisher
2
2
 
3
- Publish markdown content to PayloadCMS headless CMS: $ARGUMENTS
3
+ Use the Task tool with subagent_type="PayloadCMS Publisher" to publish the markdown file provided in the arguments to PayloadCMS.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--status, --collection, --id, --dry-run, --verbose).
6
+
7
+ The agent will handle authentication, markdown conversion to Lexical format, and publishing to your PayloadCMS instance.
4
8
 
5
- Invoke the PayloadCMS publishing agent to convert markdown to Lexical format and publish to your PayloadCMS instance.
9
+ ## Overview
10
+
11
+ Publish markdown content to PayloadCMS headless CMS: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -22,7 +28,15 @@ Invoke the PayloadCMS publishing agent to convert markdown to Lexical format and
22
28
 
23
29
  ## Prerequisites
24
30
 
25
- Configure PayloadCMS credentials: `/myai-configure`
31
+ Configure PayloadCMS credentials in your `.env` file:
32
+
33
+ ```bash
34
+ PAYLOADCMS_URL=https://your-payloadcms-site.com
35
+ PAYLOADCMS_EMAIL=your-email@example.com
36
+ PAYLOADCMS_PASSWORD=your-password
37
+ ```
38
+
39
+ The agent will authenticate using these credentials to obtain a JWT token for API access.
26
40
 
27
41
  ## Examples
28
42
 
@@ -1,8 +1,14 @@
1
1
  # SPARC Development Workflow
2
2
 
3
- Execute the complete 5-phase SPARC development workflow using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="SPARC Workflow Orchestrator" to execute the complete 5-phase development workflow based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--phases, --tech-stack, --output-dir, --test-framework, --skip-phase).
6
+
7
+ The agent will orchestrate all development phases in sequence: Architecture → Implementation → Testing → Review → Documentation using MyAIDev Method's systematic SPARC approach.
4
8
 
5
- Orchestrates all development agents in sequence: Architecture → Implementation → Testing → Review → Documentation
9
+ ## Overview
10
+
11
+ Execute the complete 5-phase SPARC development workflow using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## SPARC Workflow Phases
8
14
 
@@ -1,8 +1,14 @@
1
1
  # WordPress Site Administrator
2
2
 
3
- Execute WordPress administration operations: $ARGUMENTS
3
+ Use the Task tool with subagent_type="wordpress-admin" to execute WordPress administration operations provided in the arguments.
4
+
5
+ Pass all command arguments to the agent, including the operation type (security-scan, health-check, speed-test, plugin-manage, etc.) and any configuration flags.
6
+
7
+ The agent will handle comprehensive site management, security analysis, performance optimization, and administrative tasks via WordPress REST API and optional SSH access.
4
8
 
5
- Launch the WordPress administrator agent for comprehensive site management, security analysis, and performance optimization.
9
+ ## Overview
10
+
11
+ Execute WordPress administration operations: $ARGUMENTS
6
12
 
7
13
  ## Available Operations
8
14
 
@@ -1,8 +1,14 @@
1
1
  # WordPress Content Publisher
2
2
 
3
- Publish the specified markdown file to WordPress: $ARGUMENTS
3
+ Use the Task tool with subagent_type="wordpress-admin" to publish the markdown file provided in the arguments to WordPress.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--status, --gutenberg, --classic).
6
+
7
+ The agent will handle reading the file, parsing frontmatter, converting content format, and publishing using the WordPress REST API.
4
8
 
5
- Read and publish the file to WordPress using native tools and the WordPress REST API.
9
+ ## Overview
10
+
11
+ Publish the specified markdown file to WordPress: $ARGUMENTS
6
12
 
7
13
  ## Process
8
14
 
@@ -53,7 +53,7 @@ async function troubleshootWordPress() {
53
53
  console.log(` - Configuration command: ${await fs.pathExists(wpConfigCommand) ? '✅' : '❌'}`);
54
54
  } else {
55
55
  console.log('❌ .claude directory not found');
56
- console.log('💡 Solution: Run npx myaidev-method init --claude');
56
+ console.log('💡 Solution: Run npx myaidev-method@latest init --claude');
57
57
  }
58
58
 
59
59
  // 3. Test connection if credentials exist
@@ -126,7 +126,7 @@ async function troubleshootWordPress() {
126
126
 
127
127
  console.log('\n📋 Next Steps:');
128
128
  console.log('1. If configuration is missing: /myai-configure wordpress');
129
- console.log('2. If Claude setup is missing: npx myaidev-method init --claude');
129
+ console.log('2. If Claude setup is missing: npx myaidev-method@latest init --claude');
130
130
  console.log('3. If connection fails: Check WordPress Application Password');
131
131
  console.log('4. For detailed help: Read WORDPRESS_INTEGRATION.md');
132
132