myaidev-method 0.2.8 → 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.
- package/.claude/agents/wordpress-admin.md +271 -0
- package/.env.example +0 -1
- package/PACKAGE_FIXES_SUMMARY.md +319 -0
- package/PAYLOADCMS_AUTH_UPDATE.md +248 -0
- package/USER_GUIDE.md +260 -0
- package/bin/cli.js +36 -0
- package/dist/server/.tsbuildinfo +1 -0
- package/dist/server/auth/controllers/AuthController.d.ts +34 -0
- package/dist/server/auth/controllers/AuthController.d.ts.map +1 -0
- package/dist/server/auth/controllers/AuthController.js +43 -0
- package/dist/server/auth/controllers/AuthController.js.map +1 -0
- package/dist/server/auth/example-usage.d.ts +53 -0
- package/dist/server/auth/example-usage.d.ts.map +1 -0
- package/dist/server/auth/example-usage.js +129 -0
- package/dist/server/auth/example-usage.js.map +1 -0
- package/dist/server/auth/index.d.ts +11 -0
- package/dist/server/auth/index.d.ts.map +1 -0
- package/dist/server/auth/index.js +15 -0
- package/dist/server/auth/index.js.map +1 -0
- package/dist/server/auth/layers.d.ts +19 -0
- package/dist/server/auth/layers.d.ts.map +1 -0
- package/dist/server/auth/layers.js +33 -0
- package/dist/server/auth/layers.js.map +1 -0
- package/dist/server/auth/middleware/authMiddleware.d.ts +24 -0
- package/dist/server/auth/middleware/authMiddleware.d.ts.map +1 -0
- package/dist/server/auth/middleware/authMiddleware.js +65 -0
- package/dist/server/auth/middleware/authMiddleware.js.map +1 -0
- package/dist/server/auth/routes/authRoutes.d.ts +11 -0
- package/dist/server/auth/routes/authRoutes.d.ts.map +1 -0
- package/dist/server/auth/routes/authRoutes.js +213 -0
- package/dist/server/auth/routes/authRoutes.js.map +1 -0
- package/dist/server/auth/services/AuditLogService.d.ts +21 -0
- package/dist/server/auth/services/AuditLogService.d.ts.map +1 -0
- package/dist/server/auth/services/AuditLogService.js +28 -0
- package/dist/server/auth/services/AuditLogService.js.map +1 -0
- package/dist/server/auth/services/AuthService.d.ts +27 -0
- package/dist/server/auth/services/AuthService.d.ts.map +1 -0
- package/dist/server/auth/services/AuthService.js +246 -0
- package/dist/server/auth/services/AuthService.js.map +1 -0
- package/dist/server/auth/services/PasswordService.d.ts +12 -0
- package/dist/server/auth/services/PasswordService.d.ts.map +1 -0
- package/dist/server/auth/services/PasswordService.js +31 -0
- package/dist/server/auth/services/PasswordService.js.map +1 -0
- package/dist/server/auth/services/SessionRepository.d.ts +24 -0
- package/dist/server/auth/services/SessionRepository.d.ts.map +1 -0
- package/dist/server/auth/services/SessionRepository.js +101 -0
- package/dist/server/auth/services/SessionRepository.js.map +1 -0
- package/dist/server/auth/services/TokenService.d.ts +12 -0
- package/dist/server/auth/services/TokenService.d.ts.map +1 -0
- package/dist/server/auth/services/TokenService.js +86 -0
- package/dist/server/auth/services/TokenService.js.map +1 -0
- package/dist/server/auth/services/UserRepository.d.ts +23 -0
- package/dist/server/auth/services/UserRepository.d.ts.map +1 -0
- package/dist/server/auth/services/UserRepository.js +168 -0
- package/dist/server/auth/services/UserRepository.js.map +1 -0
- package/dist/server/auth/services/example.d.ts +26 -0
- package/dist/server/auth/services/example.d.ts.map +1 -0
- package/dist/server/auth/services/example.js +221 -0
- package/dist/server/auth/services/example.js.map +1 -0
- package/dist/server/auth/services/index.d.ts +6 -0
- package/dist/server/auth/services/index.d.ts.map +1 -0
- package/dist/server/auth/services/index.js +7 -0
- package/dist/server/auth/services/index.js.map +1 -0
- package/dist/server/database/db.d.ts +28 -0
- package/dist/server/database/db.d.ts.map +1 -0
- package/dist/server/database/db.js +91 -0
- package/dist/server/database/db.js.map +1 -0
- package/dist/server/database/schema.sql +95 -0
- package/dist/server/hono/app.d.ts +10 -0
- package/dist/server/hono/app.d.ts.map +1 -0
- package/dist/server/hono/app.js +26 -0
- package/dist/server/hono/app.js.map +1 -0
- package/dist/server/hono/routes.d.ts +12 -0
- package/dist/server/hono/routes.d.ts.map +1 -0
- package/dist/server/hono/routes.js +40 -0
- package/dist/server/hono/routes.js.map +1 -0
- package/dist/server/main.d.ts +2 -0
- package/dist/server/main.d.ts.map +1 -0
- package/dist/server/main.js +94 -0
- package/dist/server/main.js.map +1 -0
- package/dist/server/user-management/DirectoryService.d.ts +62 -0
- package/dist/server/user-management/DirectoryService.d.ts.map +1 -0
- package/dist/server/user-management/DirectoryService.js +201 -0
- package/dist/server/user-management/DirectoryService.js.map +1 -0
- package/dist/server/user-management/LinuxUserService.d.ts +71 -0
- package/dist/server/user-management/LinuxUserService.d.ts.map +1 -0
- package/dist/server/user-management/LinuxUserService.js +192 -0
- package/dist/server/user-management/LinuxUserService.js.map +1 -0
- package/dist/server/user-management/QuotaService.d.ts +59 -0
- package/dist/server/user-management/QuotaService.d.ts.map +1 -0
- package/dist/server/user-management/QuotaService.js +148 -0
- package/dist/server/user-management/QuotaService.js.map +1 -0
- package/dist/server/user-management/UserManagementService.d.ts +74 -0
- package/dist/server/user-management/UserManagementService.d.ts.map +1 -0
- package/dist/server/user-management/UserManagementService.js +122 -0
- package/dist/server/user-management/UserManagementService.js.map +1 -0
- package/dist/server/user-management/index.d.ts +26 -0
- package/dist/server/user-management/index.d.ts.map +1 -0
- package/dist/server/user-management/index.js +26 -0
- package/dist/server/user-management/index.js.map +1 -0
- package/dist/server/user-management/layers.d.ts +27 -0
- package/dist/server/user-management/layers.d.ts.map +1 -0
- package/dist/server/user-management/layers.js +37 -0
- package/dist/server/user-management/layers.js.map +1 -0
- package/dist/shared/types.d.ts +94 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +32 -0
- package/dist/shared/types.js.map +1 -0
- package/package.json +25 -5
- package/src/lib/payloadcms-utils.js +5 -12
- package/src/server/auth/ARCHITECTURE.md +575 -0
- package/src/server/auth/IMPLEMENTATION_SUMMARY.md +287 -0
- package/src/server/auth/QUICK_START.md +283 -0
- package/src/server/auth/README.md +290 -0
- package/src/server/auth/controllers/AuthController.ts +129 -0
- package/src/server/auth/example-usage.ts +159 -0
- package/src/server/auth/index.ts +19 -0
- package/src/server/auth/layers.ts +57 -0
- package/src/server/auth/middleware/authMiddleware.ts +118 -0
- package/src/server/auth/routes/authRoutes.ts +319 -0
- package/src/server/auth/services/AuditLogService.ts +81 -0
- package/src/server/auth/services/AuthService.ts +408 -0
- package/src/server/auth/services/IMPLEMENTATION_SUMMARY.md +404 -0
- package/src/server/auth/services/PasswordService.ts +85 -0
- package/src/server/auth/services/README.md +361 -0
- package/src/server/auth/services/SessionRepository.ts +227 -0
- package/src/server/auth/services/TokenService.ts +174 -0
- package/src/server/auth/services/UserRepository.ts +318 -0
- package/src/server/auth/services/example.ts +346 -0
- package/src/server/auth/services/index.ts +6 -0
- package/src/server/database/db.ts +161 -0
- package/src/server/database/schema.sql +95 -0
- package/src/server/hono/app.ts +41 -0
- package/src/server/main.ts +115 -0
- package/src/server/user-management/DirectoryService.ts +348 -0
- package/src/server/user-management/LinuxUserService.ts +338 -0
- package/src/server/user-management/QuotaService.ts +256 -0
- package/src/server/user-management/README.md +333 -0
- package/src/server/user-management/UserManagementService.ts +335 -0
- package/src/server/user-management/index.ts +26 -0
- package/src/server/user-management/layers.ts +51 -0
- package/src/shared/types.ts +111 -0
- package/src/templates/claude/agents/payloadcms-publish.md +34 -14
- package/src/templates/codex/commands/myai-astro-publish.md +8 -2
- package/src/templates/codex/commands/myai-content-writer.md +8 -2
- package/src/templates/codex/commands/myai-coolify-deploy.md +8 -2
- package/src/templates/codex/commands/myai-dev-architect.md +8 -2
- package/src/templates/codex/commands/myai-dev-code.md +8 -2
- package/src/templates/codex/commands/myai-dev-docs.md +8 -2
- package/src/templates/codex/commands/myai-dev-review.md +8 -2
- package/src/templates/codex/commands/myai-dev-test.md +8 -2
- package/src/templates/codex/commands/myai-docusaurus-publish.md +8 -2
- package/src/templates/codex/commands/myai-mintlify-publish.md +8 -2
- package/src/templates/codex/commands/myai-payloadcms-publish.md +17 -3
- package/src/templates/codex/commands/myai-sparc-workflow.md +8 -2
- package/src/templates/codex/commands/myai-wordpress-admin.md +8 -2
- package/src/templates/codex/commands/myai-wordpress-publish.md +8 -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
|
|
32
|
+
1. Check PayloadCMS credentials in environment (.env file)
|
|
33
33
|
2. Verify required fields:
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
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.
|
|
44
|
-
2.
|
|
45
|
-
3.
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
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 credentials → verify 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
|
|
133
|
+
## Configuration Setup
|
|
133
134
|
|
|
134
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Publish the specified markdown file to WordPress: $ARGUMENTS
|
|
6
12
|
|
|
7
13
|
## Process
|
|
8
14
|
|