claude-symphony 0.0.1 → 0.0.3
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/assets/claude_symphony.webp +0 -0
- package/assets/claude_symphony_ascii.txt +8 -0
- package/bin/create.js +80 -69
- package/package.json +3 -2
- 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,145 +1,145 @@
|
|
|
1
1
|
# Context Compression Prompts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prompt templates used for context compression and recovery.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Token Warning Prompts
|
|
6
6
|
|
|
7
|
-
### 50,000
|
|
7
|
+
### 50,000 Tokens (Warning)
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
11
|
-
⚠️
|
|
11
|
+
⚠️ Context Usage Warning
|
|
12
12
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Current tokens: ~{{CURRENT_TOKENS}} / 80,000
|
|
15
|
+
Status: {{PERCENTAGE}}% used
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
1. /context --compress
|
|
19
|
-
2.
|
|
17
|
+
Recommended actions:
|
|
18
|
+
1. Compress with /context --compress
|
|
19
|
+
2. Or /context --save then /clear
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Current stage: {{CURRENT_STAGE}}
|
|
22
22
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
### 80,000
|
|
25
|
+
### 80,000 Tokens (Limit)
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
29
|
-
🔴
|
|
29
|
+
🔴 Context Limit Reached
|
|
30
30
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Token limit (80,000) has been reached.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Executing auto-save...
|
|
35
35
|
|
|
36
|
-
[
|
|
37
|
-
•
|
|
38
|
-
•
|
|
39
|
-
•
|
|
36
|
+
[Saved Content]
|
|
37
|
+
• Current stage: {{CURRENT_STAGE}}
|
|
38
|
+
• Progress: {{PROGRESS}}
|
|
39
|
+
• Decisions: {{DECISION_COUNT}}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
Save location: state/context/state.md
|
|
42
42
|
|
|
43
43
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
44
|
-
/clear
|
|
44
|
+
To continue after /clear, reference state.md.
|
|
45
45
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Compression Result Prompt
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
|
-
✅
|
|
52
|
+
✅ Context Compression Complete
|
|
53
53
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
54
54
|
|
|
55
|
-
[
|
|
56
|
-
•
|
|
57
|
-
•
|
|
58
|
-
•
|
|
55
|
+
[Compression Summary]
|
|
56
|
+
• Before: {{BEFORE_TOKENS}} tokens
|
|
57
|
+
• After: {{AFTER_TOKENS}} tokens
|
|
58
|
+
• Reduction: {{SAVED_PERCENTAGE}}%
|
|
59
59
|
|
|
60
|
-
[
|
|
61
|
-
•
|
|
62
|
-
•
|
|
63
|
-
•
|
|
60
|
+
[Kept Items]
|
|
61
|
+
• Decisions: {{DECISION_COUNT}}
|
|
62
|
+
• Requirements: {{REQUIREMENT_COUNT}}
|
|
63
|
+
• Current task: {{CURRENT_TASK}}
|
|
64
64
|
|
|
65
|
-
[
|
|
66
|
-
•
|
|
67
|
-
•
|
|
65
|
+
[Summarized Items]
|
|
66
|
+
• Discussions: {{DISCUSSION_COUNT}} → {{SUMMARY_COUNT}}
|
|
67
|
+
• Code reviews: {{REVIEW_COUNT}}
|
|
68
68
|
|
|
69
|
-
[
|
|
70
|
-
•
|
|
71
|
-
•
|
|
69
|
+
[Removed Items]
|
|
70
|
+
• Error logs: {{ERROR_COUNT}}
|
|
71
|
+
• Trial/errors: {{RETRY_COUNT}}
|
|
72
72
|
|
|
73
73
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
74
|
-
|
|
74
|
+
Saved: state/context/state.md
|
|
75
75
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
##
|
|
78
|
+
## Recovery Prompts
|
|
79
79
|
|
|
80
|
-
###
|
|
80
|
+
### Recovery Suggestion
|
|
81
81
|
|
|
82
82
|
```
|
|
83
83
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
84
|
-
📂
|
|
84
|
+
📂 Saved Context Found
|
|
85
85
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
Save time: {{SAVED_AT}}
|
|
88
|
+
Stage: {{STAGE}}
|
|
89
|
+
Progress: {{PROGRESS_SUMMARY}}
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
Would you like to recover?
|
|
92
92
|
|
|
93
|
-
[Y]
|
|
94
|
-
[N]
|
|
95
|
-
[V]
|
|
93
|
+
[Y] Recover and continue
|
|
94
|
+
[N] Start fresh
|
|
95
|
+
[V] Preview content
|
|
96
96
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
###
|
|
99
|
+
### Recovery Complete
|
|
100
100
|
|
|
101
101
|
```
|
|
102
102
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
-
✅
|
|
103
|
+
✅ Context Recovery Complete
|
|
104
104
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
105
105
|
|
|
106
|
-
[
|
|
107
|
-
•
|
|
108
|
-
•
|
|
109
|
-
•
|
|
106
|
+
[Recovered State]
|
|
107
|
+
• Stage: {{CURRENT_STAGE}}
|
|
108
|
+
• Progress: {{COMPLETED}}/{{TOTAL}} complete
|
|
109
|
+
• Next task: {{NEXT_TASK}}
|
|
110
110
|
|
|
111
|
-
[
|
|
111
|
+
[Key Decisions]
|
|
112
112
|
{{#each DECISIONS}}
|
|
113
113
|
• {{this.title}}: {{this.choice}}
|
|
114
114
|
{{/each}}
|
|
115
115
|
|
|
116
|
-
[
|
|
116
|
+
[Reference Files]
|
|
117
117
|
• stages/{{STAGE}}/CLAUDE.md
|
|
118
118
|
• stages/{{STAGE}}/outputs/
|
|
119
119
|
|
|
120
120
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
121
|
-
{{NEXT_TASK}}
|
|
121
|
+
Continue from {{NEXT_TASK}}?
|
|
122
122
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
## state.md
|
|
125
|
+
## state.md Preview Prompt
|
|
126
126
|
|
|
127
127
|
```
|
|
128
128
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
129
|
-
📄 state.md
|
|
129
|
+
📄 state.md Preview
|
|
130
130
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
131
131
|
|
|
132
|
-
#
|
|
132
|
+
# Work State Save - {{TIMESTAMP}}
|
|
133
133
|
|
|
134
|
-
##
|
|
134
|
+
## Current Stage
|
|
135
135
|
{{STAGE_ID}}: {{STAGE_NAME}}
|
|
136
136
|
|
|
137
|
-
##
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
137
|
+
## Progress
|
|
138
|
+
- Completed: {{COMPLETED_LIST}}
|
|
139
|
+
- In progress: {{CURRENT}}
|
|
140
|
+
- Pending: {{PENDING_LIST}}
|
|
141
141
|
|
|
142
|
-
##
|
|
142
|
+
## Key Decisions
|
|
143
143
|
{{#each DECISIONS}}
|
|
144
144
|
- {{this.title}}: {{this.choice}} ({{this.reason}})
|
|
145
145
|
{{/each}}
|
|
@@ -147,26 +147,26 @@
|
|
|
147
147
|
...
|
|
148
148
|
|
|
149
149
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
150
|
-
[R]
|
|
150
|
+
[R] Recover / [E] Edit then recover / [C] Cancel
|
|
151
151
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
##
|
|
154
|
+
## Stage Transition Compression Suggestion
|
|
155
155
|
|
|
156
156
|
```
|
|
157
|
-
|
|
157
|
+
Stage transition detected: {{PREV}} → {{NEXT}}
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
Would you like to clean up previous stage context?
|
|
160
160
|
|
|
161
|
-
[
|
|
162
|
-
• {{PREV}}
|
|
163
|
-
•
|
|
161
|
+
[Items to Clean]
|
|
162
|
+
• {{PREV}} related discussions: ~{{TOKENS}} tokens
|
|
163
|
+
• Trial/error records: ~{{ERROR_TOKENS}} tokens
|
|
164
164
|
|
|
165
|
-
[
|
|
166
|
-
• HANDOFF.md
|
|
167
|
-
•
|
|
165
|
+
[Items to Keep]
|
|
166
|
+
• HANDOFF.md content
|
|
167
|
+
• Key decisions
|
|
168
168
|
|
|
169
|
-
[Y]
|
|
170
|
-
[N]
|
|
171
|
-
[S]
|
|
169
|
+
[Y] Clean then transition
|
|
170
|
+
[N] Transition as-is
|
|
171
|
+
[S] Save all then transition
|
|
172
172
|
```
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# Output Validator Skill
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Stage-specific output validation skill
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
7
|
+
Automatically validates that each stage's outputs meet requirements:
|
|
8
|
+
- Required file existence check
|
|
9
|
+
- File content validation
|
|
10
|
+
- Validation command execution (lint, test, etc.)
|
|
11
|
+
- Quality score calculation
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Trigger
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
- `/validate`
|
|
17
|
-
- `/next`
|
|
15
|
+
- Auto-runs on stage completion
|
|
16
|
+
- `/validate` command
|
|
17
|
+
- Auto-check before `/next` command
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Features
|
|
20
20
|
|
|
21
|
-
### 1.
|
|
21
|
+
### 1. File Existence Check
|
|
22
22
|
```yaml
|
|
23
23
|
required_outputs:
|
|
24
24
|
ideas.md:
|
|
@@ -26,14 +26,14 @@ required_outputs:
|
|
|
26
26
|
min_size_bytes: 500
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
### 2.
|
|
29
|
+
### 2. Content Validation
|
|
30
30
|
```yaml
|
|
31
31
|
content_checks:
|
|
32
32
|
min_ideas: 5
|
|
33
|
-
has_sections: ["
|
|
33
|
+
has_sections: ["functional", "non-functional"]
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### 3.
|
|
36
|
+
### 3. Command Validation
|
|
37
37
|
```yaml
|
|
38
38
|
validation_commands:
|
|
39
39
|
- name: "lint"
|
|
@@ -41,46 +41,46 @@ validation_commands:
|
|
|
41
41
|
required: true
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
### 4.
|
|
44
|
+
### 4. Quality Score
|
|
45
45
|
```yaml
|
|
46
46
|
quality_metrics:
|
|
47
47
|
lint_score: 0.9
|
|
48
48
|
test_coverage: 0.8
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## File Structure
|
|
52
52
|
|
|
53
53
|
```
|
|
54
54
|
output-validator/
|
|
55
|
-
├── README.md #
|
|
56
|
-
├── validate.md #
|
|
55
|
+
├── README.md # This file
|
|
56
|
+
├── validate.md # Validation process guide
|
|
57
57
|
└── prompts/
|
|
58
|
-
└── CLAUDE.md # AI
|
|
58
|
+
└── CLAUDE.md # AI instructions
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Configuration
|
|
62
62
|
|
|
63
|
-
`config/output_validation.yaml`
|
|
63
|
+
See `config/output_validation.yaml`
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Usage Examples
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
#
|
|
68
|
+
# Validate current stage
|
|
69
69
|
/validate
|
|
70
70
|
|
|
71
|
-
#
|
|
71
|
+
# Validate specific stage
|
|
72
72
|
/validate --stage 06
|
|
73
73
|
|
|
74
|
-
#
|
|
74
|
+
# Detailed report
|
|
75
75
|
/validate --verbose
|
|
76
76
|
|
|
77
|
-
#
|
|
77
|
+
# Auto-fix suggestions
|
|
78
78
|
/validate --fix
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
##
|
|
81
|
+
## Output
|
|
82
82
|
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
- `state/validations/`
|
|
83
|
+
- Validation result report
|
|
84
|
+
- Quality score
|
|
85
|
+
- Fix suggestions (on failure)
|
|
86
|
+
- Saved to `state/validations/`
|
|
@@ -1,119 +1,115 @@
|
|
|
1
1
|
# Output Validator Skill - AI Instructions
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Role
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
You are an output validation specialist. You verify that each stage's outputs meet quality standards and provide specific fix recommendations when issues are found.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Validation Principles
|
|
8
8
|
|
|
9
|
-
### 1.
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
9
|
+
### 1. Completeness
|
|
10
|
+
- Verify all required outputs exist
|
|
11
|
+
- Check for required sections/content
|
|
12
|
+
- Verify minimum requirements met
|
|
13
13
|
|
|
14
|
-
### 2.
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
14
|
+
### 2. Correctness
|
|
15
|
+
- Technical accuracy of content
|
|
16
|
+
- Alignment with requirements
|
|
17
|
+
- No grammar/format errors
|
|
18
18
|
|
|
19
|
-
### 3.
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
19
|
+
### 3. Executability
|
|
20
|
+
- Code can build
|
|
21
|
+
- Tests pass
|
|
22
|
+
- Lint/typecheck pass
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Validation Process
|
|
25
25
|
|
|
26
|
-
###
|
|
26
|
+
### Pre-Stage Transition Validation
|
|
27
27
|
```
|
|
28
|
-
1.
|
|
29
|
-
2.
|
|
30
|
-
3.
|
|
31
|
-
4.
|
|
32
|
-
5.
|
|
33
|
-
6.
|
|
28
|
+
1. Load current stage rules
|
|
29
|
+
2. Check required file existence
|
|
30
|
+
3. Validate file contents
|
|
31
|
+
4. Execute validation commands
|
|
32
|
+
5. Calculate quality score
|
|
33
|
+
6. Generate result report
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
###
|
|
36
|
+
### Behavior Based on Results
|
|
37
37
|
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
Pass (score ≥ 0.9): Allow stage transition
|
|
39
|
+
Warning (0.7 ≤ score < 0.9): Show warning then allow
|
|
40
|
+
Fail (score < 0.7): Block transition, fix required
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Report Format
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### Brief Summary
|
|
46
46
|
```
|
|
47
|
-
✅
|
|
48
|
-
|
|
47
|
+
✅ Validation passed: 06-implementation
|
|
48
|
+
Score: 0.95 | Passed: 12/12
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
###
|
|
51
|
+
### Detailed Report
|
|
52
52
|
```markdown
|
|
53
|
-
#
|
|
53
|
+
# Output Validation Report
|
|
54
54
|
|
|
55
|
-
##
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
55
|
+
## Summary
|
|
56
|
+
- Stage: {{stage_id}}
|
|
57
|
+
- Status: {{status}}
|
|
58
|
+
- Score: {{score}}
|
|
59
59
|
|
|
60
|
-
##
|
|
61
|
-
|
|
|
62
|
-
|
|
60
|
+
## File Validation
|
|
61
|
+
| File | Status | Details |
|
|
62
|
+
|------|--------|---------|
|
|
63
63
|
|
|
64
|
-
##
|
|
65
|
-
|
|
|
66
|
-
|
|
64
|
+
## Command Validation
|
|
65
|
+
| Command | Result | Details |
|
|
66
|
+
|---------|--------|---------|
|
|
67
67
|
|
|
68
|
-
##
|
|
69
|
-
- [ ]
|
|
70
|
-
- [ ]
|
|
68
|
+
## Required Fixes
|
|
69
|
+
- [ ] Fix item 1
|
|
70
|
+
- [ ] Fix item 2
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
##
|
|
73
|
+
## Failure Handling
|
|
74
74
|
|
|
75
|
-
###
|
|
76
|
-
|
|
75
|
+
### Fix Suggestions
|
|
76
|
+
Provide specific fix recommendations for failed items:
|
|
77
77
|
```markdown
|
|
78
|
-
###
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
1. UserService.login
|
|
83
|
-
2.
|
|
78
|
+
### Failure: Test not passing
|
|
79
|
+
**Location**: tests/auth.test.ts:45
|
|
80
|
+
**Cause**: loginUser function return type mismatch
|
|
81
|
+
**Fix Recommendation**:
|
|
82
|
+
1. Check UserService.login return type
|
|
83
|
+
2. Update test expected value
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
###
|
|
87
|
-
|
|
86
|
+
### Override Handling
|
|
87
|
+
When user requests forced proceed:
|
|
88
88
|
```
|
|
89
|
-
1.
|
|
90
|
-
2.
|
|
91
|
-
3.
|
|
89
|
+
1. Request reason input
|
|
90
|
+
2. Record reason (include in HANDOFF)
|
|
91
|
+
3. Allow with warning
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
##
|
|
94
|
+
## Stage-Specific Validation Focus
|
|
95
95
|
|
|
96
96
|
### 01-brainstorm
|
|
97
|
-
-
|
|
98
|
-
-
|
|
97
|
+
- Idea diversity
|
|
98
|
+
- Requirements structure
|
|
99
99
|
|
|
100
100
|
### 06-implementation
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
101
|
+
- Code builds successfully
|
|
102
|
+
- Lint/typecheck pass
|
|
103
|
+
- Basic tests pass
|
|
104
104
|
|
|
105
105
|
### 09-testing
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
- E2E
|
|
109
|
-
|
|
110
|
-
## 금지 사항
|
|
111
|
-
|
|
112
|
-
- 검증 없이 스테이지 전환 허용
|
|
113
|
-
- 실패 원인 없이 결과만 보고
|
|
114
|
-
- 수정 방안 없이 실패 보고
|
|
115
|
-
- 품질 점수 계산 누락
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
- Test coverage 80%+
|
|
107
|
+
- All tests pass
|
|
108
|
+
- E2E tests succeed
|
|
118
109
|
|
|
110
|
+
## Prohibited Actions
|
|
119
111
|
|
|
112
|
+
- Allow stage transition without validation
|
|
113
|
+
- Report failure without cause
|
|
114
|
+
- Report failure without fix recommendation
|
|
115
|
+
- Omit quality score calculation
|