myaidev-method 0.2.3 โ 0.2.5
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/DEV_WORKFLOW_GUIDE.md +12 -12
- package/MCP_INTEGRATION.md +7 -7
- package/README.md +17 -17
- package/bin/cli.js +47 -3
- package/package.json +1 -1
- package/src/scripts/dev-architect.js +9 -9
- package/src/scripts/dev-code.js +9 -9
- package/src/scripts/dev-docs.js +8 -8
- package/src/scripts/dev-review.js +9 -9
- package/src/scripts/dev-test.js +9 -9
- package/src/scripts/sparc-workflow.js +8 -7
package/DEV_WORKFLOW_GUIDE.md
CHANGED
|
@@ -574,17 +574,17 @@ npm run dev:docs "Generate OpenAPI spec for API" --format openapi
|
|
|
574
574
|
Execute the complete SPARC workflow with a single command:
|
|
575
575
|
|
|
576
576
|
```bash
|
|
577
|
-
#
|
|
578
|
-
|
|
577
|
+
# Slash command (in Claude Code)
|
|
578
|
+
/myai-sparc-workflow "Build user authentication system with JWT and refresh tokens"
|
|
579
579
|
|
|
580
|
-
#
|
|
581
|
-
|
|
580
|
+
# CLI command
|
|
581
|
+
npx myaidev-method sparc "Build user authentication system with JWT and refresh tokens"
|
|
582
582
|
|
|
583
583
|
# With technology preferences
|
|
584
|
-
|
|
584
|
+
npx myaidev-method sparc "Build e-commerce checkout" --tech-stack "react,node,stripe,postgres"
|
|
585
585
|
|
|
586
586
|
# Run specific phases only
|
|
587
|
-
|
|
587
|
+
npx myaidev-method sparc "Refactor auth module" --phases "architecture,review,documentation"
|
|
588
588
|
```
|
|
589
589
|
|
|
590
590
|
### Workflow Execution
|
|
@@ -673,13 +673,13 @@ npm run dev:docs "Create deployment guide" --type architecture
|
|
|
673
673
|
|
|
674
674
|
```bash
|
|
675
675
|
# Run all 5 phases
|
|
676
|
-
|
|
676
|
+
npx myaidev-method sparc "Build feature X"
|
|
677
677
|
|
|
678
678
|
# Run specific phases
|
|
679
|
-
|
|
679
|
+
npx myaidev-method sparc "Improve feature Y" --phases "architecture,review,documentation"
|
|
680
680
|
|
|
681
681
|
# Skip specific phase (use with caution)
|
|
682
|
-
|
|
682
|
+
npx myaidev-method sparc "Build feature Z" --skip-phase testing
|
|
683
683
|
```
|
|
684
684
|
|
|
685
685
|
## Quality Standards
|
|
@@ -797,7 +797,7 @@ This comprehensive example demonstrates building a complete blog system using Ne
|
|
|
797
797
|
|
|
798
798
|
```bash
|
|
799
799
|
# Execute complete SPARC workflow for the entire blog system
|
|
800
|
-
|
|
800
|
+
npx myaidev-method sparc "Build Next.js blog with PayloadCMS backend, including posts collection, user authentication, and content API" --tech-stack "nextjs,payloadcms,mongodb,typescript"
|
|
801
801
|
```
|
|
802
802
|
|
|
803
803
|
#### Phase-by-Phase Implementation
|
|
@@ -1206,7 +1206,7 @@ npm run dev:code "Implement Next.js frontend with WordPress REST API"
|
|
|
1206
1206
|
|
|
1207
1207
|
```bash
|
|
1208
1208
|
# Complete workflow
|
|
1209
|
-
|
|
1209
|
+
npx myaidev-method sparc "Build JWT authentication with refresh tokens and role-based access control"
|
|
1210
1210
|
```
|
|
1211
1211
|
|
|
1212
1212
|
**Expected Outputs**:
|
|
@@ -1346,7 +1346,7 @@ The MyAIDev Method's SPARC workflow provides a comprehensive, systematic approac
|
|
|
1346
1346
|
|
|
1347
1347
|
**Next Steps**:
|
|
1348
1348
|
1. Initialize MyAIDev Method: `npx myaidev-method init --claude`
|
|
1349
|
-
2. Run your first SPARC workflow: `
|
|
1349
|
+
2. Run your first SPARC workflow: `npx myaidev-method sparc "Build your feature"`
|
|
1350
1350
|
3. Review outputs in `.myaidev-method/sparc/`
|
|
1351
1351
|
4. Iterate and improve based on review findings
|
|
1352
1352
|
|
package/MCP_INTEGRATION.md
CHANGED
|
@@ -234,16 +234,16 @@ The package includes convenient npm scripts for MCP servers:
|
|
|
234
234
|
|
|
235
235
|
```bash
|
|
236
236
|
# Start SPARC Orchestrator MCP server
|
|
237
|
-
|
|
237
|
+
npx myaidev-sparc-orchestrator
|
|
238
238
|
|
|
239
239
|
# Start WordPress MCP server
|
|
240
|
-
|
|
240
|
+
npx myaidev-mcp-server
|
|
241
241
|
|
|
242
|
-
#
|
|
243
|
-
npm run mcp:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
npm run mcp:status
|
|
242
|
+
# Or use npm scripts (from package root)
|
|
243
|
+
npm run mcp:sparc # SPARC Orchestrator
|
|
244
|
+
npm run mcp:start # WordPress MCP
|
|
245
|
+
npm run mcp:health # Health check
|
|
246
|
+
npm run mcp:status # Status check
|
|
247
247
|
```
|
|
248
248
|
|
|
249
249
|
## Advanced Features
|
package/README.md
CHANGED
|
@@ -214,14 +214,14 @@ Phase 5: ๐ DOCUMENTATION
|
|
|
214
214
|
Run the entire SPARC workflow with a single command:
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
#
|
|
218
|
-
|
|
217
|
+
# Slash command (in Claude Code)
|
|
218
|
+
/myai-sparc-workflow "Build user authentication system with JWT"
|
|
219
219
|
|
|
220
|
-
#
|
|
221
|
-
|
|
220
|
+
# CLI command
|
|
221
|
+
npx myaidev-method sparc "Build user authentication system with JWT"
|
|
222
222
|
|
|
223
223
|
# With technology preferences
|
|
224
|
-
|
|
224
|
+
npx myaidev-method sparc "Build e-commerce checkout" --tech-stack "react,node,stripe,postgres"
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
### Workflow Output Structure
|
|
@@ -272,19 +272,19 @@ This framework is inspired by [GitHub's Spec-Kit](https://github.com/github/spec
|
|
|
272
272
|
You can also run individual phases:
|
|
273
273
|
|
|
274
274
|
```bash
|
|
275
|
-
# CLI commands
|
|
276
|
-
npm run dev:architect "Design real-time chat app"
|
|
277
|
-
npm run dev:code "Implement WebSocket server"
|
|
278
|
-
npm run dev:test "Test chat functionality" --integration
|
|
279
|
-
npm run dev:review "Review chat implementation" --security
|
|
280
|
-
npm run dev:docs "Document chat API"
|
|
281
|
-
|
|
282
275
|
# Slash commands (in Claude Code)
|
|
283
|
-
/myai-dev-architect "Design
|
|
284
|
-
/myai-dev-code "Implement
|
|
285
|
-
/myai-dev-test "Test
|
|
286
|
-
/myai-dev-review "
|
|
287
|
-
/myai-dev-docs "Document
|
|
276
|
+
/myai-dev-architect "Design real-time chat app"
|
|
277
|
+
/myai-dev-code "Implement WebSocket server"
|
|
278
|
+
/myai-dev-test "Test chat functionality" --integration
|
|
279
|
+
/myai-dev-review "Review chat implementation" --security
|
|
280
|
+
/myai-dev-docs "Document chat API"
|
|
281
|
+
|
|
282
|
+
# CLI commands
|
|
283
|
+
npx myaidev-method dev:architect "Design microservices architecture"
|
|
284
|
+
npx myaidev-method dev:code "Implement user service" --test-driven
|
|
285
|
+
npx myaidev-method dev:test "Test user service" --coverage
|
|
286
|
+
npx myaidev-method dev:review "Security audit for user service"
|
|
287
|
+
npx myaidev-method dev:docs "Document user service API"
|
|
288
288
|
```
|
|
289
289
|
|
|
290
290
|
## ๐ค Development Agents
|
package/bin/cli.js
CHANGED
|
@@ -11,8 +11,48 @@ import inquirer from 'inquirer';
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = path.dirname(__filename);
|
|
13
13
|
|
|
14
|
+
// ASCII Banner with gradient
|
|
15
|
+
function displayBanner() {
|
|
16
|
+
const grey = chalk.hex('#5A5A5A');
|
|
17
|
+
const lightGrey = chalk.hex('#9E9E9E');
|
|
18
|
+
const white = chalk.white;
|
|
19
|
+
const lightOrange = chalk.hex('#FF8C42');
|
|
20
|
+
const orange = chalk.hex('#FF6B35');
|
|
21
|
+
const brightOrange = chalk.hex('#FFA500');
|
|
22
|
+
|
|
23
|
+
console.log('');
|
|
24
|
+
console.log(grey(' โโโโ โโโโ') + lightGrey('โโโ โโโ') + white(' โโโโโโ ') + lightOrange('โโโโโโโโโโ ') + orange('โโโโโโโโ') + brightOrange('โโโ โโโ'));
|
|
25
|
+
console.log(grey(' โโโโโ โโโโโ') + lightGrey('โโโโ โโโโ') + white('โโโโโโโโ') + lightOrange('โโโโโโโโโโโ') + orange('โโโโโโโโ') + brightOrange('โโโ โโโ'));
|
|
26
|
+
console.log(grey(' โโโโโโโโโโโ') + lightGrey(' โโโโโโโ ') + white('โโโโโโโโ') + lightOrange('โโโโโโ โโโ') + orange('โโโโโโ ') + brightOrange('โโโ โโโ'));
|
|
27
|
+
console.log(grey(' โโโโโโโโโโโ') + lightGrey(' โโโโโ ') + white('โโโโโโโโ') + lightOrange('โโโโโโ โโโ') + orange('โโโโโโ ') + brightOrange('โโโโ โโโโ'));
|
|
28
|
+
console.log(grey(' โโโ โโโ โโโ') + lightGrey(' โโโ ') + white('โโโ โโโ') + lightOrange('โโโโโโโโโโโ') + orange('โโโโโโโโ') + brightOrange(' โโโโโโโ '));
|
|
29
|
+
console.log(grey(' โโโ โโโ') + lightGrey(' โโโ ') + white('โโโ โโโ') + lightOrange('โโโโโโโโโโ ') + orange('โโโโโโโโ') + brightOrange(' โโโโโ '));
|
|
30
|
+
console.log('');
|
|
31
|
+
console.log(lightGrey(' โโโโ โโโโ') + white('โโโโโโโโ') + lightOrange('โโโโโโโโโ') + orange('โโโ โโโ') + brightOrange(' โโโโโโโ โโโโโโโ '));
|
|
32
|
+
console.log(lightGrey(' โโโโโ โโโโโ') + white('โโโโโโโโ') + lightOrange('โโโโโโโโโ') + orange('โโโ โโโ') + brightOrange('โโโโโโโโโโโโโโโโโ'));
|
|
33
|
+
console.log(lightGrey(' โโโโโโโโโโโ') + white('โโโโโโ ') + lightOrange(' โโโ ') + orange('โโโโโโโโ') + brightOrange('โโโ โโโโโโ โโโ'));
|
|
34
|
+
console.log(lightGrey(' โโโโโโโโโโโ') + white('โโโโโโ ') + lightOrange(' โโโ ') + orange('โโโโโโโโ') + brightOrange('โโโ โโโโโโ โโโ'));
|
|
35
|
+
console.log(lightGrey(' โโโ โโโ โโโ') + white('โโโโโโโโ') + lightOrange(' โโโ ') + orange('โโโ โโโ') + brightOrange('โโโโโโโโโโโโโโโโโ'));
|
|
36
|
+
console.log(lightGrey(' โโโ โโโ') + white('โโโโโโโโ') + lightOrange(' โโโ ') + orange('โโโ โโโ') + brightOrange(' โโโโโโโ โโโโโโโ '));
|
|
37
|
+
console.log('');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// SPARC Methodology breakdown
|
|
41
|
+
function displaySPARC() {
|
|
42
|
+
console.log(chalk.cyan.bold(' ๐ SPARC Development Methodology'));
|
|
43
|
+
console.log('');
|
|
44
|
+
console.log(chalk.grey(' โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ'));
|
|
45
|
+
console.log(chalk.grey(' โ') + chalk.hex('#FF6B35').bold(' S ') + chalk.white('โข Specification') + chalk.grey(' โ ') + chalk.gray('Define requirements & system boundaries'));
|
|
46
|
+
console.log(chalk.grey(' โ') + chalk.hex('#FF8C42').bold(' P ') + chalk.white('โข Pseudocode ') + chalk.grey(' โ ') + chalk.gray('Plan implementation approach'));
|
|
47
|
+
console.log(chalk.grey(' โ') + chalk.hex('#FFA500').bold(' A ') + chalk.white('โข Architecture ') + chalk.grey(' โ ') + chalk.gray('Design structure, APIs, data models'));
|
|
48
|
+
console.log(chalk.grey(' โ') + chalk.hex('#FFB84D').bold(' R ') + chalk.white('โข Refinement ') + chalk.grey(' โ ') + chalk.gray('Implement, test, review quality'));
|
|
49
|
+
console.log(chalk.grey(' โ') + chalk.hex('#FFCC80').bold(' C ') + chalk.white('โข Completion ') + chalk.grey(' โ ') + chalk.gray('Document & deliver production code'));
|
|
50
|
+
console.log(chalk.grey(' โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ'));
|
|
51
|
+
console.log('');
|
|
52
|
+
}
|
|
53
|
+
|
|
14
54
|
program
|
|
15
|
-
.version('0.2.
|
|
55
|
+
.version('0.2.5')
|
|
16
56
|
.description('AI CLI tools package with custom subagents and MCP integrations');
|
|
17
57
|
|
|
18
58
|
program
|
|
@@ -64,8 +104,12 @@ program
|
|
|
64
104
|
}
|
|
65
105
|
|
|
66
106
|
spinner.succeed(chalk.green(`Successfully initialized ${cliType} configuration!`));
|
|
67
|
-
|
|
68
|
-
|
|
107
|
+
|
|
108
|
+
// Display ASCII banner and SPARC methodology
|
|
109
|
+
displayBanner();
|
|
110
|
+
displaySPARC();
|
|
111
|
+
|
|
112
|
+
console.log(chalk.cyan('๐ You\'re all set! Here\'s how to get started:'));
|
|
69
113
|
if (cliType === 'claude') {
|
|
70
114
|
console.log(chalk.green('\n๐๏ธ SPARC Development Workflow (Systematic Software Development):'));
|
|
71
115
|
console.log(chalk.gray(' โข Complete: /myai-sparc-workflow "Build authentication system"'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myaidev-method",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Comprehensive development framework with SPARC methodology for AI-assisted software development, 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,8 +7,8 @@
|
|
|
7
7
|
* create API specifications, and plan technology stack.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method dev:architect "Design authentication system"
|
|
11
|
+
* npx myaidev-method dev:architect "Create e-commerce platform" --tech-stack "node,postgres,redis"
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -22,8 +22,8 @@ async function main() {
|
|
|
22
22
|
๐๏ธ MyAIDev Method - Architecture Design
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npx myaidev-method dev:architect "Design authentication system"
|
|
26
|
+
npx myaidev-method dev:architect "Create API endpoints" --tech-stack "node,express"
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--tech-stack <stack> Preferred technology stack (comma-separated)
|
|
@@ -32,16 +32,16 @@ Options:
|
|
|
32
32
|
--help, -h Show this help message
|
|
33
33
|
|
|
34
34
|
Examples:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
npx myaidev-method dev:architect "Design real-time chat app"
|
|
36
|
+
npx myaidev-method dev:architect "Review current architecture" --existing-code
|
|
37
|
+
npx myaidev-method dev:architect "Design microservices" --tech-stack "node,kubernetes,mongodb"
|
|
38
38
|
|
|
39
39
|
Output:
|
|
40
40
|
.myaidev-method/sparc/architecture.md
|
|
41
41
|
|
|
42
42
|
Next Phase:
|
|
43
43
|
After architecture is complete, run:
|
|
44
|
-
|
|
44
|
+
npx myaidev-method dev:code "Implement [feature]"
|
|
45
45
|
`);
|
|
46
46
|
process.exit(0);
|
|
47
47
|
}
|
|
@@ -87,7 +87,7 @@ Next Phase:
|
|
|
87
87
|
console.log('');
|
|
88
88
|
console.log('๐ Next Steps:');
|
|
89
89
|
console.log(' 1. Review architecture.md in .myaidev-method/sparc/');
|
|
90
|
-
console.log(' 2. Run:
|
|
90
|
+
console.log(' 2. Run: npx myaidev-method dev:code "Implement [feature]"');
|
|
91
91
|
console.log('');
|
|
92
92
|
|
|
93
93
|
} catch (error) {
|
package/src/scripts/dev-code.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* architecture specifications using SOLID principles and best practices.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method dev:code "Implement user authentication"
|
|
11
|
+
* npx myaidev-method dev:code "Build payment processing" --test-driven
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -22,8 +22,8 @@ async function main() {
|
|
|
22
22
|
๐ป MyAIDev Method - Code Implementation
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npx myaidev-method dev:code "Implement authentication"
|
|
26
|
+
npx myaidev-method dev:code "Build API endpoints" --test-driven
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--architecture <file> Path to architecture spec (default: .myaidev-method/sparc/architecture.md)
|
|
@@ -32,9 +32,9 @@ Options:
|
|
|
32
32
|
--help, -h Show this help message
|
|
33
33
|
|
|
34
34
|
Examples:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
npx myaidev-method dev:code "Implement JWT authentication"
|
|
36
|
+
npx myaidev-method dev:code "Create REST API for users" --test-driven
|
|
37
|
+
npx myaidev-method dev:code "Refactor database queries" --architecture custom-arch.md
|
|
38
38
|
|
|
39
39
|
Code Quality Standards:
|
|
40
40
|
- SOLID Principles (Single Responsibility, DRY, KISS)
|
|
@@ -48,7 +48,7 @@ Output:
|
|
|
48
48
|
|
|
49
49
|
Next Phase:
|
|
50
50
|
After implementation, run:
|
|
51
|
-
|
|
51
|
+
npx myaidev-method dev:test "Test [feature]"
|
|
52
52
|
`);
|
|
53
53
|
process.exit(0);
|
|
54
54
|
}
|
|
@@ -94,7 +94,7 @@ Next Phase:
|
|
|
94
94
|
console.log('');
|
|
95
95
|
console.log('๐ Next Steps:');
|
|
96
96
|
console.log(' 1. Review code in .myaidev-method/sparc/code-output/');
|
|
97
|
-
console.log(' 2. Run:
|
|
97
|
+
console.log(' 2. Run: npx myaidev-method dev:test "Test [feature]"');
|
|
98
98
|
console.log('');
|
|
99
99
|
|
|
100
100
|
} catch (error) {
|
package/src/scripts/dev-docs.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* API documentation, user guides, and technical specifications.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method dev:docs "Document authentication API"
|
|
11
|
+
* npx myaidev-method dev:docs "Create user guide" --type user-guide
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -22,8 +22,8 @@ async function main() {
|
|
|
22
22
|
๐ MyAIDev Method - Documentation
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npx myaidev-method dev:docs "Document authentication API"
|
|
26
|
+
npx myaidev-method dev:docs "Create user guide" --type user-guide --format html
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--type <type> Documentation type: api, user-guide, architecture, technical
|
|
@@ -32,10 +32,10 @@ Options:
|
|
|
32
32
|
--help, -h Show this help message
|
|
33
33
|
|
|
34
34
|
Examples:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
npx myaidev-method dev:docs "Document REST API endpoints"
|
|
36
|
+
npx myaidev-method dev:docs "Create user guide for checkout flow" --type user-guide
|
|
37
|
+
npx myaidev-method dev:docs "Generate OpenAPI spec" --format openapi
|
|
38
|
+
npx myaidev-method dev:docs "Document system architecture" --type architecture
|
|
39
39
|
|
|
40
40
|
Documentation Standards:
|
|
41
41
|
- Clarity: Simple language, clear examples, visual aids
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* performance, and best practices compliance.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method dev:review "Review authentication module"
|
|
11
|
+
* npx myaidev-method dev:review "Security audit for payments" --security
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -22,8 +22,8 @@ async function main() {
|
|
|
22
22
|
๐๏ธ MyAIDev Method - Code Review
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npx myaidev-method dev:review "Review authentication"
|
|
26
|
+
npx myaidev-method dev:review "Audit payment module" --security --performance
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--security Focus on security analysis (OWASP Top 10)
|
|
@@ -32,9 +32,9 @@ Options:
|
|
|
32
32
|
--help, -h Show this help message
|
|
33
33
|
|
|
34
34
|
Examples:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
npx myaidev-method dev:review "Review user authentication module"
|
|
36
|
+
npx myaidev-method dev:review "Security audit for payment processing" --security
|
|
37
|
+
npx myaidev-method dev:review "Performance review of database queries" --performance
|
|
38
38
|
|
|
39
39
|
Review Standards:
|
|
40
40
|
- Code Quality: Complexity, readability, maintainability
|
|
@@ -48,7 +48,7 @@ Output:
|
|
|
48
48
|
|
|
49
49
|
Next Phase:
|
|
50
50
|
After review, run:
|
|
51
|
-
|
|
51
|
+
npx myaidev-method dev:docs "Document [feature]"
|
|
52
52
|
`);
|
|
53
53
|
process.exit(0);
|
|
54
54
|
}
|
|
@@ -105,7 +105,7 @@ Next Phase:
|
|
|
105
105
|
console.log('๐ Next Steps:');
|
|
106
106
|
console.log(' 1. Review report in .myaidev-method/sparc/review-report.md');
|
|
107
107
|
console.log(' 2. Address critical and high-priority issues');
|
|
108
|
-
console.log(' 3. Run:
|
|
108
|
+
console.log(' 3. Run: npx myaidev-method dev:docs "Document [feature]"');
|
|
109
109
|
console.log('');
|
|
110
110
|
|
|
111
111
|
} catch (error) {
|
package/src/scripts/dev-test.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* generate coverage reports, and validate quality gates.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method dev:test "Test authentication system"
|
|
11
|
+
* npx myaidev-method dev:test "Integration tests for checkout" --integration
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -22,8 +22,8 @@ async function main() {
|
|
|
22
22
|
๐งช MyAIDev Method - Testing
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npx myaidev-method dev:test "Test authentication"
|
|
26
|
+
npx myaidev-method dev:test "Test checkout flow" --integration --coverage
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--coverage Generate coverage report
|
|
@@ -33,9 +33,9 @@ Options:
|
|
|
33
33
|
--help, -h Show this help message
|
|
34
34
|
|
|
35
35
|
Examples:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
npx myaidev-method dev:test "Test user authentication"
|
|
37
|
+
npx myaidev-method dev:test "Integration tests for API" --integration --coverage
|
|
38
|
+
npx myaidev-method dev:test "Test payment module" --framework jest
|
|
39
39
|
|
|
40
40
|
Testing Standards:
|
|
41
41
|
- 80%+ coverage for critical paths
|
|
@@ -49,7 +49,7 @@ Output:
|
|
|
49
49
|
|
|
50
50
|
Next Phase:
|
|
51
51
|
After testing, run:
|
|
52
|
-
|
|
52
|
+
npx myaidev-method dev:review "Review [feature]"
|
|
53
53
|
`);
|
|
54
54
|
process.exit(0);
|
|
55
55
|
}
|
|
@@ -103,7 +103,7 @@ Next Phase:
|
|
|
103
103
|
console.log('');
|
|
104
104
|
console.log('๐ Next Steps:');
|
|
105
105
|
console.log(' 1. Review test results in .myaidev-method/sparc/test-results/');
|
|
106
|
-
console.log(' 2. Run:
|
|
106
|
+
console.log(' 2. Run: npx myaidev-method dev:review "Review [feature]"');
|
|
107
107
|
console.log('');
|
|
108
108
|
|
|
109
109
|
} catch (error) {
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* Architecture โ Implementation โ Testing โ Review โ Documentation
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* npx myaidev-method sparc "Build user authentication system"
|
|
11
|
+
* npx myaidev-method sparc "Create payment module" --tech-stack "node,stripe,postgres"
|
|
12
|
+
* npm run sparc "Build feature" (from package root)
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
import { SparcWorkflow } from '../lib/dev-workflow/sparc-workflow.js';
|
|
@@ -29,8 +30,8 @@ Execute the complete 5-phase systematic development workflow:
|
|
|
29
30
|
5. Documentation - Generate complete docs
|
|
30
31
|
|
|
31
32
|
Usage:
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
npx myaidev-method sparc "Build authentication system"
|
|
34
|
+
npx myaidev-method sparc "Create payment module" --tech-stack "node,stripe,postgres"
|
|
34
35
|
|
|
35
36
|
Options:
|
|
36
37
|
--phases <phases> Run specific phases (comma-separated)
|
|
@@ -41,9 +42,9 @@ Options:
|
|
|
41
42
|
--help, -h Show this help message
|
|
42
43
|
|
|
43
44
|
Examples:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
npx myaidev-method sparc "Build JWT authentication with refresh tokens"
|
|
46
|
+
npx myaidev-method sparc "Create e-commerce checkout" --tech-stack "react,node,stripe"
|
|
47
|
+
npx myaidev-method sparc "Refactor payment module" --phases "architecture,review,documentation"
|
|
47
48
|
|
|
48
49
|
Workflow Phases:
|
|
49
50
|
1. ๐๏ธ Architecture - System design, API specs, data modeling
|