claude-symphony 0.0.1 → 0.0.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.
- package/README.md +16 -12
- package/bin/create.js +80 -69
- package/package.json +1 -1
- package/template/.claude/commands/benchmark.md +32 -32
- package/template/.claude/commands/brainstorm.md +33 -33
- package/template/.claude/commands/checkpoint.md +42 -42
- package/template/.claude/commands/codex.md +52 -52
- package/template/.claude/commands/collaborate.md +47 -47
- package/template/.claude/commands/context.md +77 -77
- package/template/.claude/commands/deploy.md +50 -50
- package/template/.claude/commands/fork.md +46 -46
- package/template/.claude/commands/gemini.md +43 -43
- package/template/.claude/commands/handoff.md +42 -42
- package/template/.claude/commands/implement.md +42 -42
- package/template/.claude/commands/init-project.md +25 -25
- package/template/.claude/commands/next.md +67 -67
- package/template/.claude/commands/planning.md +38 -38
- package/template/.claude/commands/qa.md +47 -47
- package/template/.claude/commands/refactor.md +50 -50
- package/template/.claude/commands/research.md +31 -31
- package/template/.claude/commands/restore.md +53 -53
- package/template/.claude/commands/run-stage.md +45 -45
- package/template/.claude/commands/stages.md +49 -49
- package/template/.claude/commands/status.md +41 -41
- package/template/.claude/commands/tasks.md +33 -33
- package/template/.claude/commands/test.md +45 -45
- package/template/.claude/commands/ui-ux.md +31 -31
- package/template/.claude/commands/validate.md +81 -81
- package/template/.claude/hooks/ai-selector.sh +39 -39
- package/template/.claude/hooks/auto-checkpoint.sh +30 -30
- package/template/.claude/hooks/output-validator.sh +45 -45
- package/template/.claude/hooks/post-stage.sh +28 -28
- package/template/.claude/hooks/pre-stage.sh +47 -47
- package/template/.claude/hooks/session-start.sh +27 -27
- package/template/.claude/hooks/statusline.sh +24 -24
- package/template/.claude/hooks/stop.sh +26 -26
- package/template/.claude/settings.json +32 -32
- package/template/.claude/skills/ai-collaboration/README.md +31 -31
- package/template/.claude/skills/ai-collaboration/debate.md +66 -66
- package/template/.claude/skills/ai-collaboration/parallel.md +34 -34
- package/template/.claude/skills/ai-collaboration/prompts/CLAUDE.md +59 -63
- package/template/.claude/skills/auto-checkpoint/README.md +46 -46
- package/template/.claude/skills/auto-checkpoint/prompts/CLAUDE.md +68 -72
- package/template/.claude/skills/auto-checkpoint/rollback.md +95 -95
- package/template/.claude/skills/auto-checkpoint/trigger.md +37 -37
- package/template/.claude/skills/context-compression/README.md +69 -69
- package/template/.claude/skills/context-compression/analyze.md +74 -74
- package/template/.claude/skills/context-compression/compress.md +103 -103
- package/template/.claude/skills/context-compression/prompts/compression.md +78 -78
- package/template/.claude/skills/output-validator/README.md +33 -33
- package/template/.claude/skills/output-validator/prompts/CLAUDE.md +74 -78
- package/template/.claude/skills/output-validator/validate.md +76 -76
- package/template/.claude/skills/smart-handoff/README.md +35 -35
- package/template/.claude/skills/smart-handoff/extract.md +42 -42
- package/template/.claude/skills/smart-handoff/prompts/CLAUDE.md +52 -54
- package/template/.claude/skills/smart-handoff/summarize.md +55 -55
- package/template/.claude/skills/stage-transition/README.md +50 -50
- package/template/.claude/skills/stage-transition/handoff-gen.md +89 -89
- package/template/.claude/skills/stage-transition/prompts/transition.md +74 -74
- package/template/.claude/skills/stage-transition/validate.md +41 -41
- package/template/CLAUDE.md +334 -335
- package/template/config/ai_benchmarking.yaml +22 -22
- package/template/config/ai_collaboration.yaml +18 -18
- package/template/config/ai_logging.yaml +50 -50
- package/template/config/auto_checkpoint.yaml +32 -32
- package/template/config/context.yaml +20 -20
- package/template/config/git.yaml +51 -51
- package/template/config/handoff_intelligence.yaml +23 -23
- package/template/config/mcp_fallbacks.yaml +71 -71
- package/template/config/memory_integration.yaml +23 -23
- package/template/config/model_enforcement.yaml +53 -53
- package/template/config/models.yaml +24 -24
- package/template/config/output_validation.yaml +44 -44
- package/template/config/pipeline.yaml +25 -25
- package/template/config/pipeline_forking.yaml +40 -40
- package/template/config/qa_logging.yaml +67 -67
- package/template/config/smart_rollback.yaml +48 -48
- package/template/config/stage_personas.yaml +154 -154
- package/template/config/workflow.yaml +16 -16
- package/template/scripts/ai-benchmark.sh +41 -41
- package/template/scripts/codex-wrapper.sh +32 -32
- package/template/scripts/context-manager.sh +136 -136
- package/template/scripts/create-checkpoint.sh +34 -34
- package/template/scripts/gemini-wrapper.sh +31 -31
- package/template/scripts/init-project.sh +40 -40
- package/template/scripts/list-stages.sh +30 -30
- package/template/scripts/next-stage.sh +67 -67
- package/template/scripts/output-validate.sh +2 -2
- package/template/scripts/pipeline-fork.sh +68 -68
- package/template/scripts/pre-run-check.sh +84 -84
- package/template/scripts/restore-checkpoint.sh +50 -50
- package/template/scripts/run-stage.sh +44 -44
- package/template/scripts/show-status.sh +30 -30
- package/template/scripts/smart-handoff.sh +70 -70
- package/template/stages/01-brainstorm/CLAUDE.md +70 -74
- package/template/stages/01-brainstorm/README.md +54 -54
- package/template/stages/01-brainstorm/config.yaml +18 -18
- package/template/stages/01-brainstorm/prompts/collaboration.md +24 -24
- package/template/stages/01-brainstorm/prompts/ideation.md +41 -41
- package/template/stages/01-brainstorm/prompts/persona.md +50 -50
- package/template/stages/01-brainstorm/prompts/requirements.md +55 -55
- package/template/stages/01-brainstorm/prompts/validation.md +28 -28
- package/template/stages/01-brainstorm/templates/ideas.md +47 -47
- package/template/stages/01-brainstorm/templates/requirements_analysis.md +61 -61
- package/template/stages/02-research/CLAUDE.md +72 -76
- package/template/stages/02-research/config.yaml +12 -12
- package/template/stages/02-research/prompts/collaboration.md +29 -29
- package/template/stages/02-research/prompts/feasibility.md +38 -38
- package/template/stages/02-research/prompts/market_analysis.md +29 -29
- package/template/stages/02-research/prompts/tech_stack.md +34 -34
- package/template/stages/02-research/prompts/validation.md +29 -29
- package/template/stages/03-planning/CLAUDE.md +88 -92
- package/template/stages/03-planning/config.yaml +10 -10
- package/template/stages/03-planning/prompts/architecture.md +43 -43
- package/template/stages/03-planning/prompts/collaboration.md +34 -34
- package/template/stages/03-planning/prompts/validation.md +34 -34
- package/template/stages/04-ui-ux/CLAUDE.md +68 -72
- package/template/stages/04-ui-ux/config.yaml +5 -5
- package/template/stages/04-ui-ux/prompts/collaboration.md +35 -35
- package/template/stages/04-ui-ux/prompts/validation.md +30 -30
- package/template/stages/05-task-management/CLAUDE.md +81 -85
- package/template/stages/05-task-management/config.yaml +17 -17
- package/template/stages/05-task-management/prompts/collaboration.md +30 -30
- package/template/stages/05-task-management/prompts/validation.md +33 -33
- package/template/stages/05-task-management/templates/notion_integration.md +70 -70
- package/template/stages/05-task-management/templates/parallel_groups.yaml +64 -64
- package/template/stages/05-task-management/templates/task_schema.yaml +33 -33
- package/template/stages/06-implementation/CLAUDE.md +117 -121
- package/template/stages/06-implementation/config.yaml +10 -10
- package/template/stages/06-implementation/prompts/collaboration.md +29 -29
- package/template/stages/06-implementation/prompts/validation.md +36 -36
- package/template/stages/07-refactoring/CLAUDE.md +120 -124
- package/template/stages/07-refactoring/config.yaml +11 -11
- package/template/stages/07-refactoring/prompts/collaboration.md +36 -36
- package/template/stages/07-refactoring/prompts/validation.md +40 -40
- package/template/stages/08-qa/CLAUDE.md +80 -84
- package/template/stages/08-qa/config.yaml +7 -7
- package/template/stages/08-qa/prompts/collaboration.md +34 -34
- package/template/stages/08-qa/prompts/validation.md +41 -41
- package/template/stages/09-testing/CLAUDE.md +86 -90
- package/template/stages/09-testing/config.yaml +10 -10
- package/template/stages/09-testing/prompts/collaboration.md +38 -38
- package/template/stages/09-testing/prompts/validation.md +41 -41
- package/template/stages/10-deployment/CLAUDE.md +86 -90
- package/template/stages/10-deployment/config.yaml +11 -11
- package/template/stages/10-deployment/prompts/collaboration.md +37 -37
- package/template/stages/10-deployment/prompts/validation.md +54 -54
- package/template/stages/10-deployment/templates/github-actions-cd.yaml +1 -1
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# AI
|
|
1
|
+
# AI Collaboration Prompt - Refactoring
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Collaboration Mode: Sequential Review Chain
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This stage uses **sequential review chain** to ensure refactoring quality.
|
|
6
6
|
|
|
7
|
-
###
|
|
8
|
-
- **Codex**:
|
|
9
|
-
- **ClaudeCode**:
|
|
7
|
+
### Participating Models
|
|
8
|
+
- **Codex**: Code analysis, optimization
|
|
9
|
+
- **ClaudeCode**: Complex refactoring, verification
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Collaboration Prompt
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
#
|
|
14
|
+
# Review chain: Codex analyze → Claude review
|
|
15
15
|
/collaborate --mode sequential --chain "codex:analyze -> claude:review -> codex:refactor"
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
### AI
|
|
18
|
+
### AI Benchmarking
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Performance optimization comparison:
|
|
21
21
|
```
|
|
22
22
|
/benchmark --task "performance_optimization" --models "codex,claude"
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
###
|
|
25
|
+
### Workflow
|
|
26
26
|
|
|
27
|
-
1.
|
|
28
|
-
2.
|
|
29
|
-
3.
|
|
30
|
-
4.
|
|
27
|
+
1. **Analysis**: Static analysis, complexity measurement
|
|
28
|
+
2. **Planning**: Determine refactoring priorities
|
|
29
|
+
3. **Execution**: Refactor in small units
|
|
30
|
+
4. **Verification**: Confirm tests pass
|
|
31
31
|
|
|
32
|
-
###
|
|
32
|
+
### Checkpoint Required
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
#
|
|
36
|
-
/checkpoint --reason "
|
|
35
|
+
# Checkpoint before refactoring
|
|
36
|
+
/checkpoint --reason "State before refactoring"
|
|
37
37
|
|
|
38
|
-
#
|
|
39
|
-
/checkpoint --reason "
|
|
38
|
+
# After major refactoring
|
|
39
|
+
/checkpoint --reason "Function X refactoring complete"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
###
|
|
42
|
+
### Rollback Preparation
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
#
|
|
45
|
+
# Check rollback-ready state
|
|
46
46
|
/restore --list
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# Partial rollback if needed
|
|
49
49
|
/restore checkpoint_id --partial --files "src/utils/*"
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
###
|
|
52
|
+
### Output Format
|
|
53
53
|
|
|
54
54
|
```markdown
|
|
55
|
-
## AI
|
|
55
|
+
## AI Collaboration Results
|
|
56
56
|
|
|
57
|
-
### Codex
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
57
|
+
### Codex Analysis
|
|
58
|
+
- High complexity function list
|
|
59
|
+
- Duplicate code locations
|
|
60
|
+
- Performance bottlenecks
|
|
61
61
|
|
|
62
|
-
### Claude
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
62
|
+
### Claude Verification
|
|
63
|
+
- Refactoring impact scope
|
|
64
|
+
- Areas needing tests
|
|
65
|
+
- Risk factors
|
|
66
66
|
|
|
67
|
-
###
|
|
68
|
-
1. [
|
|
69
|
-
2. [
|
|
67
|
+
### Refactoring Plan
|
|
68
|
+
1. [Priority 1 item]
|
|
69
|
+
2. [Priority 2 item]
|
|
70
70
|
...
|
|
71
71
|
```
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Output Validation Prompt - Refactoring
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Validation Targets
|
|
4
4
|
|
|
5
|
-
|
|
|
6
|
-
|
|
7
|
-
| `refactored_code/` |
|
|
8
|
-
| `refactored_code/` |
|
|
9
|
-
| `refactoring_report.md` |
|
|
10
|
-
| `HANDOFF.md` |
|
|
5
|
+
| Output | Required Condition | Validation Method |
|
|
6
|
+
|--------|-------------------|-------------------|
|
|
7
|
+
| `refactored_code/` | Behavior maintained | Tests pass |
|
|
8
|
+
| `refactored_code/` | Quality improved | Metric comparison |
|
|
9
|
+
| `refactoring_report.md` | Change history | Structure verification |
|
|
10
|
+
| `HANDOFF.md` | Checkpoint reference | Item verification |
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Validation Command
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
/validate --stage 07-refactoring
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Quality Criteria
|
|
19
19
|
|
|
20
20
|
### refactored_code/
|
|
21
|
-
- [ ]
|
|
22
|
-
- [ ]
|
|
23
|
-
- [ ]
|
|
24
|
-
- [ ]
|
|
25
|
-
- [ ]
|
|
21
|
+
- [ ] All existing tests pass
|
|
22
|
+
- [ ] No lint errors
|
|
23
|
+
- [ ] No type errors
|
|
24
|
+
- [ ] Complexity reduced (target: 20%↓)
|
|
25
|
+
- [ ] Duplicate code reduced (target: 50%↓)
|
|
26
26
|
|
|
27
27
|
### refactoring_report.md
|
|
28
|
-
- [ ]
|
|
29
|
-
- [ ]
|
|
30
|
-
- [ ]
|
|
31
|
-
- [ ]
|
|
28
|
+
- [ ] List of refactored functions/classes
|
|
29
|
+
- [ ] Before/after comparison
|
|
30
|
+
- [ ] Performance improvement measurements
|
|
31
|
+
- [ ] Remaining technical debt
|
|
32
32
|
|
|
33
33
|
### HANDOFF.md
|
|
34
|
-
- [ ]
|
|
35
|
-
- [ ]
|
|
36
|
-
- [ ]
|
|
34
|
+
- [ ] Completed refactoring list
|
|
35
|
+
- [ ] Checkpoint reference
|
|
36
|
+
- [ ] Areas needing QA
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## Auto Validation Script
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
#
|
|
41
|
+
# Verify tests pass
|
|
42
42
|
npm run test
|
|
43
43
|
|
|
44
|
-
# Lint
|
|
44
|
+
# Lint check
|
|
45
45
|
npm run lint
|
|
46
46
|
|
|
47
|
-
#
|
|
47
|
+
# Bundle size comparison
|
|
48
48
|
npm run build && du -sh dist/
|
|
49
49
|
|
|
50
|
-
#
|
|
50
|
+
# Complexity measurement (optional)
|
|
51
51
|
npx complexity-report src/**/*.ts
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
##
|
|
54
|
+
## Quality Metrics Comparison
|
|
55
55
|
|
|
56
|
-
|
|
|
57
|
-
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
56
|
+
| Metric | Before | After | Improvement |
|
|
57
|
+
|--------|--------|-------|-------------|
|
|
58
|
+
| Average complexity | - | - | - |
|
|
59
|
+
| Duplicate code | - | - | - |
|
|
60
|
+
| Bundle size | - | - | - |
|
|
61
61
|
|
|
62
|
-
##
|
|
62
|
+
## Regression Tests
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
#
|
|
65
|
+
# Run full tests
|
|
66
66
|
npm run test
|
|
67
67
|
|
|
68
|
-
# E2E
|
|
68
|
+
# Run E2E tests (if available)
|
|
69
69
|
npm run test:e2e
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
##
|
|
72
|
+
## Actions on Failure
|
|
73
73
|
|
|
74
|
-
1.
|
|
75
|
-
2.
|
|
76
|
-
3.
|
|
74
|
+
1. Test failure → Rollback to checkpoint and retry
|
|
75
|
+
2. Performance degradation → Review changes and optimize
|
|
76
|
+
3. Type errors → Fix types and re-verify
|
|
@@ -1,93 +1,89 @@
|
|
|
1
1
|
# Stage 08: QA
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
###
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
###
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
### AI
|
|
29
|
-
- **Temperature**: 0.3 (
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
##
|
|
34
|
-
- **Primary**: ClaudeCode (
|
|
3
|
+
Quality assurance and code review stage
|
|
4
|
+
|
|
5
|
+
## Persona: Quality Guardian
|
|
6
|
+
|
|
7
|
+
> You are a Quality Guardian.
|
|
8
|
+
> Find all possible issues and ensure quality.
|
|
9
|
+
> Pay special attention to edge cases and security vulnerabilities.
|
|
10
|
+
|
|
11
|
+
### Characteristics
|
|
12
|
+
- Thorough review
|
|
13
|
+
- Edge case discovery
|
|
14
|
+
- Security awareness
|
|
15
|
+
- User perspective
|
|
16
|
+
|
|
17
|
+
### Recommended Actions
|
|
18
|
+
- Edge case exploration
|
|
19
|
+
- Security vulnerability inspection
|
|
20
|
+
- Performance issue identification
|
|
21
|
+
- Usability review
|
|
22
|
+
|
|
23
|
+
### Actions to Avoid
|
|
24
|
+
- Surface-level review
|
|
25
|
+
- Positive assumptions
|
|
26
|
+
- Ignoring bugs
|
|
27
|
+
|
|
28
|
+
### AI Settings
|
|
29
|
+
- **Temperature**: 0.3 (thorough review)
|
|
30
|
+
- **Thoroughness**: High
|
|
31
|
+
- **Skeptical Attitude**: Healthy
|
|
32
|
+
|
|
33
|
+
## Execution Model
|
|
34
|
+
- **Primary**: ClaudeCode (code review, bug fixing)
|
|
35
35
|
- **Mode**: Plan + Sandbox
|
|
36
36
|
|
|
37
|
-
##
|
|
38
|
-
1.
|
|
39
|
-
2.
|
|
40
|
-
3.
|
|
41
|
-
4.
|
|
37
|
+
## Goals
|
|
38
|
+
1. Perform code review
|
|
39
|
+
2. Identify and fix bugs
|
|
40
|
+
3. Security vulnerability inspection
|
|
41
|
+
4. Quality standards compliance verification
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Input Files
|
|
44
44
|
- `../07-refactoring/outputs/refactored_code/`
|
|
45
45
|
- `../07-refactoring/outputs/refactoring_report.md`
|
|
46
46
|
- `../07-refactoring/HANDOFF.md`
|
|
47
47
|
|
|
48
|
-
##
|
|
49
|
-
- `outputs/qa_report.md` - QA
|
|
50
|
-
- `outputs/bug_fixes.md` -
|
|
51
|
-
- `HANDOFF.md` -
|
|
52
|
-
|
|
53
|
-
##
|
|
54
|
-
|
|
55
|
-
### 1.
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
### 2.
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
### 3.
|
|
66
|
-
- OWASP Top 10
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
### 4.
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
### 5.
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
##
|
|
82
|
-
- [ ]
|
|
83
|
-
- [ ]
|
|
84
|
-
- [ ]
|
|
85
|
-
- [ ] QA
|
|
86
|
-
- [ ] HANDOFF.md
|
|
87
|
-
|
|
88
|
-
##
|
|
89
|
-
→ **09-testing**:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
48
|
+
## Output Files
|
|
49
|
+
- `outputs/qa_report.md` - QA report
|
|
50
|
+
- `outputs/bug_fixes.md` - Bug fix history
|
|
51
|
+
- `HANDOFF.md` - Handoff document for next stage
|
|
52
|
+
|
|
53
|
+
## Workflow
|
|
54
|
+
|
|
55
|
+
### 1. Code Review
|
|
56
|
+
- Verify coding standards compliance
|
|
57
|
+
- Best practices application status
|
|
58
|
+
- Documentation level review
|
|
59
|
+
|
|
60
|
+
### 2. Functional Testing
|
|
61
|
+
- Feature verification against requirements
|
|
62
|
+
- Edge case testing
|
|
63
|
+
- Error handling verification
|
|
64
|
+
|
|
65
|
+
### 3. Security Inspection
|
|
66
|
+
- OWASP Top 10 check
|
|
67
|
+
- Input validation
|
|
68
|
+
- Authentication/authorization verification
|
|
69
|
+
- Sensitive information exposure inspection
|
|
70
|
+
|
|
71
|
+
### 4. Performance Review
|
|
72
|
+
- Response time measurement
|
|
73
|
+
- Memory usage
|
|
74
|
+
- Unnecessary re-renders
|
|
75
|
+
|
|
76
|
+
### 5. Bug Fixing
|
|
77
|
+
- Prioritize identified bugs
|
|
78
|
+
- Fix and verify
|
|
79
|
+
- Regression testing
|
|
80
|
+
|
|
81
|
+
## Completion Criteria
|
|
82
|
+
- [ ] Code review complete
|
|
83
|
+
- [ ] Security inspection passed
|
|
84
|
+
- [ ] Identified bugs fixed
|
|
85
|
+
- [ ] QA report written
|
|
86
|
+
- [ ] HANDOFF.md generated
|
|
87
|
+
|
|
88
|
+
## Next Stage
|
|
89
|
+
→ **09-testing**: Test code writing and E2E testing
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
stage:
|
|
4
4
|
id: "08-qa"
|
|
5
5
|
name: "QA"
|
|
6
|
-
description: "
|
|
6
|
+
description: "Quality assurance and code review"
|
|
7
7
|
|
|
8
8
|
models:
|
|
9
9
|
primary: "claudecode"
|
|
@@ -25,9 +25,9 @@ inputs:
|
|
|
25
25
|
outputs:
|
|
26
26
|
required:
|
|
27
27
|
- name: "qa_report.md"
|
|
28
|
-
description: "QA
|
|
28
|
+
description: "QA report"
|
|
29
29
|
- name: "bug_fixes.md"
|
|
30
|
-
description: "
|
|
30
|
+
description: "Bug fix history"
|
|
31
31
|
- name: "HANDOFF.md"
|
|
32
32
|
|
|
33
33
|
prompts:
|
|
@@ -43,10 +43,10 @@ prompts:
|
|
|
43
43
|
|
|
44
44
|
completion:
|
|
45
45
|
checklist:
|
|
46
|
-
- "
|
|
47
|
-
- "
|
|
48
|
-
- "
|
|
49
|
-
- "QA
|
|
46
|
+
- "Code review complete"
|
|
47
|
+
- "Security inspection passed"
|
|
48
|
+
- "Identified bugs fixed"
|
|
49
|
+
- "QA report written"
|
|
50
50
|
|
|
51
51
|
transition:
|
|
52
52
|
next_stage: "09-testing"
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
# AI
|
|
1
|
+
# AI Collaboration Prompt - QA
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Collaboration Mode: Comprehensive Review
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This stage uses **comprehensive review** mode to ensure quality.
|
|
6
6
|
|
|
7
|
-
###
|
|
8
|
-
- **ClaudeCode**:
|
|
7
|
+
### Participating Models
|
|
8
|
+
- **ClaudeCode**: Code review, bug fixing, security inspection
|
|
9
9
|
|
|
10
|
-
###
|
|
10
|
+
### Collaboration Prompt
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
#
|
|
13
|
+
# Multi-faceted review
|
|
14
14
|
/collaborate --mode sequential --chain "claudecode:code_review -> claudecode:security_audit -> claudecode:fix"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Review Areas
|
|
18
18
|
|
|
19
|
-
|
|
|
20
|
-
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
19
|
+
| Area | Review Items |
|
|
20
|
+
|------|-------------|
|
|
21
|
+
| Code Quality | Readability, maintainability, best practices |
|
|
22
|
+
| Security | OWASP Top 10, input validation, authentication/authorization |
|
|
23
|
+
| Performance | Response time, memory, re-renders |
|
|
24
|
+
| Functionality | Requirements compliance, edge cases |
|
|
25
25
|
|
|
26
|
-
###
|
|
26
|
+
### Security Inspection Checklist
|
|
27
27
|
|
|
28
28
|
- [ ] SQL Injection
|
|
29
29
|
- [ ] XSS (Cross-Site Scripting)
|
|
30
30
|
- [ ] CSRF (Cross-Site Request Forgery)
|
|
31
|
-
- [ ]
|
|
32
|
-
- [ ]
|
|
33
|
-
- [ ]
|
|
31
|
+
- [ ] Authentication/authorization bypass
|
|
32
|
+
- [ ] Sensitive information exposure
|
|
33
|
+
- [ ] Dependency vulnerabilities
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
#
|
|
36
|
+
# Dependency vulnerability scan
|
|
37
37
|
npm audit
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
###
|
|
40
|
+
### Bug Priority
|
|
41
41
|
|
|
42
|
-
|
|
|
43
|
-
|
|
44
|
-
| Critical |
|
|
45
|
-
| High |
|
|
46
|
-
| Medium |
|
|
47
|
-
| Low | UI/UX
|
|
42
|
+
| Level | Criteria | Action |
|
|
43
|
+
|-------|----------|--------|
|
|
44
|
+
| Critical | Security, data loss | Fix immediately |
|
|
45
|
+
| High | Major feature failure | Fix in this stage |
|
|
46
|
+
| Medium | Minor feature issue | Next sprint |
|
|
47
|
+
| Low | UI/UX improvement | Backlog |
|
|
48
48
|
|
|
49
|
-
###
|
|
49
|
+
### Output Format
|
|
50
50
|
|
|
51
51
|
```markdown
|
|
52
|
-
## QA
|
|
52
|
+
## QA Results
|
|
53
53
|
|
|
54
|
-
###
|
|
55
|
-
- [
|
|
54
|
+
### Code Review
|
|
55
|
+
- [File]: [Issue] - [Severity]
|
|
56
56
|
...
|
|
57
57
|
|
|
58
|
-
###
|
|
59
|
-
- [
|
|
58
|
+
### Security Inspection
|
|
59
|
+
- [Vulnerability]: [Location] - [Action]
|
|
60
60
|
...
|
|
61
61
|
|
|
62
|
-
###
|
|
63
|
-
- [BUG-001]: [
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
- [BUG-001]: [Description] - [Resolution]
|
|
64
64
|
...
|
|
65
65
|
```
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Output Validation Prompt - QA
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Validation Targets
|
|
4
4
|
|
|
5
|
-
|
|
|
6
|
-
|
|
7
|
-
| `qa_report.md` |
|
|
8
|
-
| `bug_fixes.md` |
|
|
9
|
-
|
|
|
10
|
-
| `HANDOFF.md` |
|
|
5
|
+
| Output | Required Condition | Validation Method |
|
|
6
|
+
|--------|-------------------|-------------------|
|
|
7
|
+
| `qa_report.md` | Review results included | Structure verification |
|
|
8
|
+
| `bug_fixes.md` | Fix history | Item verification |
|
|
9
|
+
| Source code | Security inspection passed | Auto scan |
|
|
10
|
+
| `HANDOFF.md` | Items needing testing | Item verification |
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Validation Command
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
/validate --stage 08-qa
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Quality Criteria
|
|
19
19
|
|
|
20
20
|
### qa_report.md
|
|
21
|
-
- [ ]
|
|
22
|
-
- [ ]
|
|
23
|
-
- [ ]
|
|
24
|
-
- [ ]
|
|
25
|
-
- [ ]
|
|
21
|
+
- [ ] Code review results
|
|
22
|
+
- [ ] Security inspection results
|
|
23
|
+
- [ ] Performance review results
|
|
24
|
+
- [ ] Discovered bugs list
|
|
25
|
+
- [ ] Recommendations
|
|
26
26
|
|
|
27
27
|
### bug_fixes.md
|
|
28
|
-
- [ ]
|
|
29
|
-
- [ ]
|
|
30
|
-
- [ ]
|
|
31
|
-
- [ ]
|
|
28
|
+
- [ ] Fixed bugs list
|
|
29
|
+
- [ ] Root cause analysis for each bug
|
|
30
|
+
- [ ] Resolution method
|
|
31
|
+
- [ ] Regression prevention measures
|
|
32
32
|
|
|
33
|
-
###
|
|
34
|
-
- [ ] Critical
|
|
35
|
-
- [ ] High
|
|
36
|
-
- [ ]
|
|
33
|
+
### Source Code
|
|
34
|
+
- [ ] 0 Critical bugs
|
|
35
|
+
- [ ] 0 High bugs
|
|
36
|
+
- [ ] Security vulnerabilities resolved
|
|
37
37
|
|
|
38
38
|
### HANDOFF.md
|
|
39
|
-
- [ ]
|
|
40
|
-
- [ ]
|
|
41
|
-
- [ ]
|
|
39
|
+
- [ ] Areas needing testing
|
|
40
|
+
- [ ] Remaining Medium/Low issues
|
|
41
|
+
- [ ] Next step recommendations
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Auto Validation Script
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
#
|
|
46
|
+
# Security vulnerability scan
|
|
47
47
|
npm audit --audit-level=high
|
|
48
48
|
|
|
49
|
-
# Lint
|
|
49
|
+
# Lint check
|
|
50
50
|
npm run lint
|
|
51
51
|
|
|
52
|
-
#
|
|
52
|
+
# Type check
|
|
53
53
|
npm run typecheck
|
|
54
54
|
|
|
55
|
-
#
|
|
55
|
+
# Run tests
|
|
56
56
|
npm run test
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## Security Metrics
|
|
60
60
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
| Critical
|
|
64
|
-
| High
|
|
65
|
-
| Medium
|
|
61
|
+
| Metric | Criteria | Actual |
|
|
62
|
+
|--------|----------|--------|
|
|
63
|
+
| Critical vulnerabilities | 0 | - |
|
|
64
|
+
| High vulnerabilities | 0 | - |
|
|
65
|
+
| Medium vulnerabilities | < 5 | - |
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Actions on Failure
|
|
68
68
|
|
|
69
|
-
1.
|
|
70
|
-
2.
|
|
71
|
-
3. Lint
|
|
69
|
+
1. Security vulnerability → Fix immediately and re-verify
|
|
70
|
+
2. Test failure → Fix bug and re-run
|
|
71
|
+
3. Lint error → Fix code
|