wize-dev-kit 0.3.1 → 0.4.1
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/CHANGELOG.md +34 -0
- package/DECISIONS.md +13 -0
- package/README.md +9 -2
- package/package.json +1 -1
- package/src/core-skills/module.yaml +4 -0
- package/src/core-skills/wize-spec/assets/headless-schemas.md +39 -0
- package/src/core-skills/wize-spec/assets/spec-template.md +40 -0
- package/src/core-skills/wize-spec/customize.toml +20 -0
- package/src/core-skills/wize-spec/skill.md +110 -0
- package/src/method-skills/1-analysis/wize-domain-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-01-init.md +49 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-03-competitive-landscape.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md +43 -0
- package/src/method-skills/1-analysis/wize-domain-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-domain-research/workflow.md +51 -0
- package/src/method-skills/1-analysis/wize-market-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-market-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-01-init.md +57 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-02-customer-behavior.md +39 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-03-customer-pain-points.md +37 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-04-customer-decisions.md +39 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-05-competitive-analysis.md +37 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-06-research-completion.md +47 -0
- package/src/method-skills/1-analysis/wize-market-research/workflow.md +59 -0
- package/src/method-skills/1-analysis/wize-technical-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-technical-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-01-init.md +49 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-02-technical-overview.md +45 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-03-integration-patterns.md +39 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-04-architectural-patterns.md +39 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-05-implementation-research.md +42 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-06-research-synthesis.md +46 -0
- package/src/method-skills/1-analysis/wize-technical-research/workflow.md +53 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md +41 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/customize.toml +20 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01-init.md +95 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01b-continue.md +32 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-02-context.md +126 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-03-starter.md +110 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-04-decisions.md +129 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-05-patterns.md +109 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-06-structure.md +97 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-07-validation.md +124 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-08-complete.md +59 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/workflow.md +38 -201
- package/src/method-skills/4-implementation/wize-code-review/customize.toml +21 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-01-gather-context.md +64 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-02-review.md +38 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-03-triage.md +43 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-04-present.md +100 -0
- package/src/method-skills/4-implementation/wize-code-review/workflow.md +34 -89
- package/src/method-skills/module.yaml +19 -0
- package/tools/installer/wize-cli.js +34 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Step 5: Implementation Patterns & Consistency Rules
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative discovery.
|
|
7
|
+
- 🎯 Focus on patterns that prevent AI agent implementation conflicts.
|
|
8
|
+
- 🎯 Emphasize what agents could decide differently if not specified.
|
|
9
|
+
- ⚠️ No time estimates.
|
|
10
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
11
|
+
|
|
12
|
+
## Execution protocols
|
|
13
|
+
|
|
14
|
+
- 🎯 Show analysis before taking action.
|
|
15
|
+
- ⚠️ Present A/P/C menu after generating patterns content.
|
|
16
|
+
- 💾 Only save when the user chooses C.
|
|
17
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5]` before loading the next step.
|
|
18
|
+
|
|
19
|
+
## Collaboration menu (A/P/C)
|
|
20
|
+
|
|
21
|
+
- **A (Advanced Elicitation)** — develop additional consistency patterns.
|
|
22
|
+
- **P (Party Mode)** — identify conflict points from multiple perspectives.
|
|
23
|
+
- **C (Continue)** — save and move to project structure.
|
|
24
|
+
|
|
25
|
+
## Context boundaries
|
|
26
|
+
|
|
27
|
+
- Core decisions from step 4 are complete.
|
|
28
|
+
- Technology stack is decided.
|
|
29
|
+
- Focus on HOW agents should implement, not WHAT.
|
|
30
|
+
|
|
31
|
+
## Task
|
|
32
|
+
|
|
33
|
+
Define implementation patterns and consistency rules so multiple AI agents write compatible code.
|
|
34
|
+
|
|
35
|
+
## Pattern categories
|
|
36
|
+
|
|
37
|
+
### Naming patterns
|
|
38
|
+
|
|
39
|
+
- Database table/column naming
|
|
40
|
+
- API endpoint naming
|
|
41
|
+
- File and directory naming
|
|
42
|
+
- Component/function/variable naming
|
|
43
|
+
- Route parameter formats
|
|
44
|
+
|
|
45
|
+
### Structure patterns
|
|
46
|
+
|
|
47
|
+
- Where tests live
|
|
48
|
+
- How components are organized
|
|
49
|
+
- Where utilities and helpers go
|
|
50
|
+
- Configuration file organization
|
|
51
|
+
|
|
52
|
+
### Format patterns
|
|
53
|
+
|
|
54
|
+
- API response wrappers
|
|
55
|
+
- Error response structures
|
|
56
|
+
- Date/time formats
|
|
57
|
+
- JSON field naming (snake_case vs camelCase)
|
|
58
|
+
|
|
59
|
+
### Communication patterns
|
|
60
|
+
|
|
61
|
+
- Event naming conventions
|
|
62
|
+
- Event payload structures
|
|
63
|
+
- State update patterns
|
|
64
|
+
- Action naming conventions
|
|
65
|
+
- Logging formats and levels
|
|
66
|
+
|
|
67
|
+
### Process patterns
|
|
68
|
+
|
|
69
|
+
- Loading state handling
|
|
70
|
+
- Error recovery
|
|
71
|
+
- Retry implementation
|
|
72
|
+
- Authentication flow
|
|
73
|
+
- Validation timing and methods
|
|
74
|
+
|
|
75
|
+
## Generate patterns content
|
|
76
|
+
|
|
77
|
+
Append to `architecture.md`:
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
## Implementation Patterns & Consistency Rules
|
|
81
|
+
|
|
82
|
+
### Naming Patterns
|
|
83
|
+
...
|
|
84
|
+
|
|
85
|
+
### Structure Patterns
|
|
86
|
+
...
|
|
87
|
+
|
|
88
|
+
### Format Patterns
|
|
89
|
+
...
|
|
90
|
+
|
|
91
|
+
### Communication Patterns
|
|
92
|
+
...
|
|
93
|
+
|
|
94
|
+
### Process Patterns
|
|
95
|
+
...
|
|
96
|
+
|
|
97
|
+
### Enforcement Guidelines
|
|
98
|
+
|
|
99
|
+
**All AI agents MUST:**
|
|
100
|
+
- ...
|
|
101
|
+
|
|
102
|
+
### Pattern Examples
|
|
103
|
+
**Good:** ...
|
|
104
|
+
**Anti-patterns:** ...
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Next step
|
|
108
|
+
|
|
109
|
+
After C, load `./step-06-structure.md`.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Step 6: Project Structure & Boundaries
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative discovery.
|
|
7
|
+
- 🗺️ Create a complete project tree, not generic placeholders.
|
|
8
|
+
- 🗺️ Map requirements/epics to architectural components.
|
|
9
|
+
- ⚠️ No time estimates.
|
|
10
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
11
|
+
|
|
12
|
+
## Execution protocols
|
|
13
|
+
|
|
14
|
+
- 🎯 Show analysis before taking action.
|
|
15
|
+
- ⚠️ Present A/P/C menu after generating project structure.
|
|
16
|
+
- 💾 Only save when the user chooses C.
|
|
17
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6]` before loading the next step.
|
|
18
|
+
|
|
19
|
+
## Collaboration menu (A/P/C)
|
|
20
|
+
|
|
21
|
+
- **A (Advanced Elicitation)** — explore innovative project organization.
|
|
22
|
+
- **P (Party Mode)** — evaluate structure trade-offs.
|
|
23
|
+
- **C (Continue)** — save and move to validation.
|
|
24
|
+
|
|
25
|
+
## Context boundaries
|
|
26
|
+
|
|
27
|
+
- All previous decisions are complete.
|
|
28
|
+
- Implementation patterns are defined.
|
|
29
|
+
- Focus on physical project structure and component boundaries.
|
|
30
|
+
|
|
31
|
+
## Task
|
|
32
|
+
|
|
33
|
+
Define the complete project structure and architectural boundaries based on all decisions made.
|
|
34
|
+
|
|
35
|
+
## Structure sequence
|
|
36
|
+
|
|
37
|
+
### 1. Analyze requirements mapping
|
|
38
|
+
|
|
39
|
+
Map epics or FR categories to directories/services.
|
|
40
|
+
|
|
41
|
+
### 2. Define project directory structure
|
|
42
|
+
|
|
43
|
+
Create a complete, technology-specific tree:
|
|
44
|
+
|
|
45
|
+
- Root configuration files
|
|
46
|
+
- Source code organization
|
|
47
|
+
- Test organization
|
|
48
|
+
- Build and distribution
|
|
49
|
+
|
|
50
|
+
### 3. Define integration boundaries
|
|
51
|
+
|
|
52
|
+
- API boundaries
|
|
53
|
+
- Component boundaries
|
|
54
|
+
- Service boundaries
|
|
55
|
+
- Data boundaries
|
|
56
|
+
|
|
57
|
+
### 4. Map requirements to structure
|
|
58
|
+
|
|
59
|
+
For each epic or feature cluster:
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
Epic: User Management
|
|
63
|
+
- Components: src/components/features/users/
|
|
64
|
+
- Services: src/services/users/
|
|
65
|
+
- API Routes: src/app/api/users/
|
|
66
|
+
- Database: prisma/migrations/...
|
|
67
|
+
- Tests: tests/features/users/
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Generate structure content
|
|
71
|
+
|
|
72
|
+
Append to `architecture.md`:
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
## Project Structure & Boundaries
|
|
76
|
+
|
|
77
|
+
### Complete Project Directory Structure
|
|
78
|
+
```
|
|
79
|
+
{{tree}}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Architectural Boundaries
|
|
83
|
+
...
|
|
84
|
+
|
|
85
|
+
### Requirements to Structure Mapping
|
|
86
|
+
...
|
|
87
|
+
|
|
88
|
+
### Integration Points
|
|
89
|
+
...
|
|
90
|
+
|
|
91
|
+
### File Organization Patterns
|
|
92
|
+
...
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Next step
|
|
96
|
+
|
|
97
|
+
After C, load `./step-07-validation.md`.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Step 7: Architecture Validation & Completion
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Validate all requirements are covered by architectural decisions.
|
|
7
|
+
- ⚠️ No time estimates.
|
|
8
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
9
|
+
|
|
10
|
+
## Execution protocols
|
|
11
|
+
|
|
12
|
+
- 🎯 Show analysis before taking action.
|
|
13
|
+
- ✅ Run validation checks on the complete architecture.
|
|
14
|
+
- ⚠️ Present A/P/C menu after generating validation results.
|
|
15
|
+
- 💾 Only save when the user chooses C.
|
|
16
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading the next step.
|
|
17
|
+
|
|
18
|
+
## Collaboration menu (A/P/C)
|
|
19
|
+
|
|
20
|
+
- **A (Advanced Elicitation)** — address complex architectural issues found.
|
|
21
|
+
- **P (Party Mode)** — review validation from multiple perspectives.
|
|
22
|
+
- **C (Continue)** — save validation results and complete the architecture.
|
|
23
|
+
|
|
24
|
+
## Context boundaries
|
|
25
|
+
|
|
26
|
+
- Complete architecture document is available.
|
|
27
|
+
- All decisions, patterns, and structure are defined.
|
|
28
|
+
- Focus on validation, gap analysis, and coherence.
|
|
29
|
+
|
|
30
|
+
## Task
|
|
31
|
+
|
|
32
|
+
Validate the complete architecture for coherence, completeness, and readiness.
|
|
33
|
+
|
|
34
|
+
## Validation sequence
|
|
35
|
+
|
|
36
|
+
### 1. Coherence validation
|
|
37
|
+
|
|
38
|
+
- Decision compatibility
|
|
39
|
+
- Pattern consistency
|
|
40
|
+
- Structure alignment
|
|
41
|
+
|
|
42
|
+
### 2. Requirements coverage validation
|
|
43
|
+
|
|
44
|
+
- Epic/feature coverage
|
|
45
|
+
- Functional requirements coverage
|
|
46
|
+
- Non-functional requirements coverage
|
|
47
|
+
|
|
48
|
+
### 3. Implementation readiness validation
|
|
49
|
+
|
|
50
|
+
- Decision completeness
|
|
51
|
+
- Structure completeness
|
|
52
|
+
- Pattern completeness
|
|
53
|
+
|
|
54
|
+
### 4. Gap analysis
|
|
55
|
+
|
|
56
|
+
Identify critical, important, and nice-to-have gaps.
|
|
57
|
+
|
|
58
|
+
### 5. Generate validation content
|
|
59
|
+
|
|
60
|
+
Append to `architecture.md`:
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
## Architecture Validation Results
|
|
64
|
+
|
|
65
|
+
### Coherence Validation
|
|
66
|
+
...
|
|
67
|
+
|
|
68
|
+
### Requirements Coverage Validation
|
|
69
|
+
...
|
|
70
|
+
|
|
71
|
+
### Implementation Readiness Validation
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
### Gap Analysis Results
|
|
75
|
+
...
|
|
76
|
+
|
|
77
|
+
### Validation Issues Addressed
|
|
78
|
+
...
|
|
79
|
+
|
|
80
|
+
### Architecture Completeness Checklist
|
|
81
|
+
|
|
82
|
+
**Requirements Analysis**
|
|
83
|
+
- [ ] Project context thoroughly analyzed
|
|
84
|
+
- [ ] Scale and complexity assessed
|
|
85
|
+
- [ ] Technical constraints identified
|
|
86
|
+
- [ ] Cross-cutting concerns mapped
|
|
87
|
+
|
|
88
|
+
**Architectural Decisions**
|
|
89
|
+
- [ ] Critical decisions documented with versions
|
|
90
|
+
- [ ] Technology stack fully specified
|
|
91
|
+
- [ ] Integration patterns defined
|
|
92
|
+
- [ ] Performance considerations addressed
|
|
93
|
+
|
|
94
|
+
**Implementation Patterns**
|
|
95
|
+
- [ ] Naming conventions established
|
|
96
|
+
- [ ] Structure patterns defined
|
|
97
|
+
- [ ] Communication patterns specified
|
|
98
|
+
- [ ] Process patterns documented
|
|
99
|
+
|
|
100
|
+
**Project Structure**
|
|
101
|
+
- [ ] Complete directory structure defined
|
|
102
|
+
- [ ] Component boundaries established
|
|
103
|
+
- [ ] Integration points mapped
|
|
104
|
+
- [ ] Requirements to structure mapping complete
|
|
105
|
+
|
|
106
|
+
### Architecture Readiness Assessment
|
|
107
|
+
|
|
108
|
+
**Overall Status:** [READY FOR IMPLEMENTATION / READY WITH MINOR GAPS / NOT READY]
|
|
109
|
+
**Confidence Level:** [high/medium/low]
|
|
110
|
+
**Key Strengths:** ...
|
|
111
|
+
**Areas for Future Enhancement:** ...
|
|
112
|
+
|
|
113
|
+
### Implementation Handoff
|
|
114
|
+
|
|
115
|
+
**AI Agent Guidelines:**
|
|
116
|
+
- Follow all architectural decisions exactly as documented.
|
|
117
|
+
- Use implementation patterns consistently.
|
|
118
|
+
- Respect project structure and boundaries.
|
|
119
|
+
- Refer to this document for all architectural questions.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Next step
|
|
123
|
+
|
|
124
|
+
After C, load `./step-08-complete.md`.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Step 8: Architecture Completion & Handoff
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative completion.
|
|
7
|
+
- 🎯 Provide clear next steps for implementation.
|
|
8
|
+
- ⚠️ No time estimates.
|
|
9
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
10
|
+
|
|
11
|
+
## Execution protocols
|
|
12
|
+
|
|
13
|
+
- 🎯 Show completion summary and implementation guidance.
|
|
14
|
+
- 📖 Update frontmatter with final workflow state.
|
|
15
|
+
- 🚫 This is the final step.
|
|
16
|
+
|
|
17
|
+
## Task
|
|
18
|
+
|
|
19
|
+
Complete the architecture workflow and guide the user to the next phase.
|
|
20
|
+
|
|
21
|
+
## Completion sequence
|
|
22
|
+
|
|
23
|
+
### 1. Summarize achievements
|
|
24
|
+
|
|
25
|
+
Congratulate the user and summarize what was built together:
|
|
26
|
+
|
|
27
|
+
- Architecture document path
|
|
28
|
+
- Number of ADRs produced
|
|
29
|
+
- Key decisions made
|
|
30
|
+
- Patterns defined
|
|
31
|
+
- Validation status
|
|
32
|
+
|
|
33
|
+
### 2. Update frontmatter
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
status: ready-for-stories
|
|
37
|
+
owner: Tony Stark
|
|
38
|
+
updated: "{{date}}"
|
|
39
|
+
stepsCompleted: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
40
|
+
workflowType: architecture
|
|
41
|
+
lastStep: 8
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. Next steps guidance
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Architecture complete. Next:
|
|
48
|
+
1. Hawkeye: run wize-tea-risk to build the global risk profile.
|
|
49
|
+
2. Tony: run wize-create-epics-and-stories to slice the work.
|
|
50
|
+
3. Use wize-help anytime to check what comes next.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## On complete
|
|
54
|
+
|
|
55
|
+
Run `{workflow.on_complete}` if non-empty.
|
|
56
|
+
|
|
57
|
+
## Workflow complete
|
|
58
|
+
|
|
59
|
+
The architecture is now the single source of truth for all technical decisions, ensuring consistent implementation across the project lifecycle.
|
|
@@ -8,225 +8,62 @@ status: ready
|
|
|
8
8
|
|
|
9
9
|
# Create Architecture
|
|
10
10
|
|
|
11
|
-
**Goal.** Design the system inside Fury's frame
|
|
11
|
+
**Goal.** Design the system inside Fury's frame through collaborative, step-by-step discovery. Produces `.wize/solutioning/architecture.md` + `.wize/solutioning/adrs/` that multiple AI agents can implement consistently.
|
|
12
12
|
|
|
13
|
-
Tony drives.
|
|
13
|
+
Tony Stark drives. Pepper Potts and Nick Fury may be invoked via `wize-party-mode` or `wize-advanced-elicitation` at any step.
|
|
14
14
|
|
|
15
15
|
## Inputs
|
|
16
16
|
|
|
17
|
-
- `.wize/planning/prd.md` (
|
|
18
|
-
- `.wize/planning/ux/ux-design/` (
|
|
19
|
-
- `.wize/planning/tech-vision.md`
|
|
20
|
-
- `.wize/planning/nfr-principles.md`
|
|
21
|
-
- `.wize/solutioning/design-system/` (
|
|
22
|
-
- Stack catalogs
|
|
17
|
+
- `.wize/planning/prd.md` (required)
|
|
18
|
+
- `.wize/planning/ux/ux-scenarios.md` and `.wize/planning/ux/ux-design/` (when available)
|
|
19
|
+
- `.wize/planning/tech-vision.md`
|
|
20
|
+
- `.wize/planning/nfr-principles.md`
|
|
21
|
+
- `.wize/solutioning/design-system/` (when available)
|
|
22
|
+
- Stack catalogs from active overlays
|
|
23
23
|
- `.wize/knowledge/document-project/` (brownfield only)
|
|
24
24
|
|
|
25
25
|
## Outputs
|
|
26
26
|
|
|
27
27
|
- `.wize/solutioning/architecture.md`
|
|
28
|
-
- `.wize/solutioning/adrs/ADR-NNN-{slug}.md`
|
|
28
|
+
- `.wize/solutioning/adrs/ADR-NNN-{slug}.md`
|
|
29
29
|
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
### 1. Stack interview (Tony asks; Wizer relays)
|
|
33
|
-
|
|
34
|
-
Resolve every "TBD" the tech-vision left for Tony. Walk the stack catalog (active overlay) and decide, in order:
|
|
35
|
-
|
|
36
|
-
- Language(s) + runtime(s).
|
|
37
|
-
- Front-end framework + state lib + form lib.
|
|
38
|
-
- Back-end framework or BaaS.
|
|
39
|
-
- DB + ORM/query builder.
|
|
40
|
-
- Auth.
|
|
41
|
-
- Hosting + CI/CD.
|
|
42
|
-
- Observability stack.
|
|
43
|
-
- Test stack (links to `playwright-vitest.md` or `detox-maestro.md`).
|
|
44
|
-
|
|
45
|
-
Decisions Tony makes silently are ADR candidates; decisions Fury already fixed don't get their own ADR.
|
|
46
|
-
|
|
47
|
-
### 2. Components
|
|
48
|
-
|
|
49
|
-
List components with one-line responsibility each. Boundaries before internals. Examples (web SaaS):
|
|
50
|
-
|
|
51
|
-
| Component | Responsibility | Boundary |
|
|
52
|
-
|---|---|---|
|
|
53
|
-
| `web` | Server-rendered fullstack app (Next.js) | HTTPS to clients; SQL to db; HTTPS to auth-provider |
|
|
54
|
-
| `db` | Source of truth for users, teams, billing (Postgres) | SQL only via PgBouncer |
|
|
55
|
-
| `auth` | Identity provider (Supabase Auth) | OIDC to `web` |
|
|
56
|
-
| `mailer` | Outbound transactional email | HTTPS to Resend |
|
|
57
|
-
| `worker` | Outbox processor + scheduled jobs (pg_cron) | SQL to db; HTTPS to external APIs |
|
|
58
|
-
|
|
59
|
-
### 3. Sequences (the critical ones)
|
|
60
|
-
|
|
61
|
-
For each "moment of truth" in `.wize/planning/ux/ux-scenarios.md`, draw a sequence. Mermaid is fine; ASCII is fine.
|
|
62
|
-
|
|
63
|
-
```mermaid
|
|
64
|
-
sequenceDiagram
|
|
65
|
-
participant U as User
|
|
66
|
-
participant W as web
|
|
67
|
-
participant A as auth
|
|
68
|
-
participant D as db
|
|
69
|
-
U->>W: POST /signup
|
|
70
|
-
W->>A: signUp(email, password)
|
|
71
|
-
A-->>W: { user_id, session }
|
|
72
|
-
W->>D: INSERT user_id INTO accounts
|
|
73
|
-
D-->>W: ok
|
|
74
|
-
W-->>U: 302 /onboarding (sets cookie)
|
|
75
|
-
Note over W,U: total p95 ≤ 1s (NFR 1.A)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Annotate each sequence with the NFR target it must hit.
|
|
79
|
-
|
|
80
|
-
### 4. Data model
|
|
81
|
-
|
|
82
|
-
For every entity:
|
|
83
|
-
|
|
84
|
-
- Name, columns, types, indexes.
|
|
85
|
-
- Foreign keys + cascade behavior.
|
|
86
|
-
- RLS policies if the stack supports them (Supabase, etc.).
|
|
87
|
-
- Soft-delete vs hard-delete.
|
|
88
|
-
|
|
89
|
-
Include a mini ERD (Mermaid `erDiagram`).
|
|
90
|
-
|
|
91
|
-
### 5. Cross-cutting concerns
|
|
30
|
+
## Workflow architecture
|
|
92
31
|
|
|
93
|
-
|
|
32
|
+
This skill uses **micro-file architecture**:
|
|
94
33
|
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
- **Background jobs** — outbox / queue / scheduler.
|
|
101
|
-
- **Idempotency** — keys on write endpoints.
|
|
102
|
-
- **i18n** — string source, translation pipeline.
|
|
103
|
-
- **A11y** — token + library choices that uphold WCAG.
|
|
34
|
+
- Each step is a self-contained file with embedded rules.
|
|
35
|
+
- Sequential progression with user control at each step.
|
|
36
|
+
- Document state tracked in frontmatter (`stepsCompleted`).
|
|
37
|
+
- Append-only document building through the conversation.
|
|
38
|
+
- Never proceed to a step file if the current step indicates the user must approve continuation.
|
|
104
39
|
|
|
105
|
-
|
|
40
|
+
## On activation
|
|
106
41
|
|
|
107
|
-
|
|
42
|
+
1. Load `.wize/config/project.toml` and `.wize/config/user.toml`.
|
|
43
|
+
2. Resolve `user_name`, `communication_language`, `document_output_language`, `output_folder`, and the active profiles.
|
|
44
|
+
3. Greet the user in `communication_language`.
|
|
45
|
+
4. Read fully and follow `./steps/step-01-init.md`.
|
|
108
46
|
|
|
109
|
-
|
|
110
|
-
- Security: PII in EU → DB in `eu-central-1`; backups in same region.
|
|
111
|
-
- Reliability: 99.9% → single-region with multi-AZ; failover playbook in `adrs/ADR-007-failover.md`.
|
|
112
|
-
- A11y: WCAG AA → Radix primitives + axe in CI.
|
|
113
|
-
|
|
114
|
-
### 7. ADRs
|
|
115
|
-
|
|
116
|
-
One ADR per meaningful trade-off. Format below. Number sequentially. Don't gold-plate; an ADR is a few paragraphs.
|
|
117
|
-
|
|
118
|
-
### 8. Hand off
|
|
119
|
-
|
|
120
|
-
Mark `architecture.md` `status: ready-for-stories`. Tony continues with `wize-create-epics-and-stories`.
|
|
121
|
-
|
|
122
|
-
## Architecture doc template
|
|
123
|
-
|
|
124
|
-
```markdown
|
|
125
|
-
---
|
|
126
|
-
status: ready-for-stories
|
|
127
|
-
owner: Tony Stark
|
|
128
|
-
created: YYYY-MM-DD
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
# Architecture — {{project_name}}
|
|
132
|
-
|
|
133
|
-
## Summary
|
|
134
|
-
{{One paragraph: stack family, runtime, primary data store, deploy target. The frame.}}
|
|
135
|
-
|
|
136
|
-
## Stack
|
|
137
|
-
- Language: TypeScript
|
|
138
|
-
- Front-end: Next.js (App Router, RSC, edge runtime)
|
|
139
|
-
- Back-end: Server Actions + Route Handlers
|
|
140
|
-
- DB: Supabase Postgres + Drizzle ORM
|
|
141
|
-
- Auth: Supabase Auth
|
|
142
|
-
- Hosting: Vercel
|
|
143
|
-
- Observability: Vercel + PostHog
|
|
144
|
-
- Test: Vitest + Playwright (see playbook)
|
|
145
|
-
|
|
146
|
-
## Components
|
|
147
|
-
| Component | Responsibility | Boundary |
|
|
148
|
-
|---|---|---|
|
|
149
|
-
|
|
150
|
-
## Data model
|
|
151
|
-
- `users` (id PK, email UNIQUE, created_at)
|
|
152
|
-
- `teams` (id PK, name, owner_id FK users)
|
|
153
|
-
- `memberships` (user_id, team_id, role)
|
|
154
|
-
- RLS: `auth.uid() = user_id` on all user-scoped tables.
|
|
155
|
-
|
|
156
|
-
```mermaid
|
|
157
|
-
erDiagram
|
|
158
|
-
USERS ||--o{ MEMBERSHIPS : has
|
|
159
|
-
TEAMS ||--o{ MEMBERSHIPS : has
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
## Sequences
|
|
163
|
-
|
|
164
|
-
### S1: Sign-up
|
|
165
|
-
{{sequence diagram + NFR annotation}}
|
|
166
|
-
|
|
167
|
-
### S2: Invite teammate
|
|
168
|
-
{{sequence diagram}}
|
|
169
|
-
|
|
170
|
-
## Cross-cutting
|
|
171
|
-
- Auth & session: …
|
|
172
|
-
- Errors: …
|
|
173
|
-
- Logging: …
|
|
174
|
-
- Observability: …
|
|
175
|
-
- Config: …
|
|
176
|
-
- Background jobs: …
|
|
177
|
-
- Idempotency: …
|
|
178
|
-
- i18n: …
|
|
179
|
-
- A11y: …
|
|
180
|
-
|
|
181
|
-
## NFR check
|
|
182
|
-
- Perf (1.A): how
|
|
183
|
-
- Security (2.A): how
|
|
184
|
-
- Reliability (3.A): how
|
|
185
|
-
- Maintainability (4.A): how
|
|
186
|
-
- A11y (5.A): how
|
|
187
|
-
- Cost (6.A): how
|
|
188
|
-
|
|
189
|
-
## ADRs
|
|
190
|
-
See `.wize/solutioning/adrs/`.
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
## ADR template
|
|
194
|
-
|
|
195
|
-
```markdown
|
|
196
|
-
---
|
|
197
|
-
status: accepted | superseded | deprecated
|
|
198
|
-
date: YYYY-MM-DD
|
|
199
|
-
deciders: Tony, Fury
|
|
200
|
-
supersedes: ADR-XXX
|
|
201
|
-
---
|
|
202
|
-
|
|
203
|
-
# ADR-007: {{slug}}
|
|
204
|
-
|
|
205
|
-
## Context
|
|
206
|
-
{{2–4 sentences: what forced the decision, what constraint is binding.}}
|
|
207
|
-
|
|
208
|
-
## Options
|
|
209
|
-
1. {{Option A}} — pros / cons / cost
|
|
210
|
-
2. {{Option B}} — pros / cons / cost
|
|
211
|
-
3. {{Option C}} — pros / cons / cost
|
|
212
|
-
|
|
213
|
-
## Decision
|
|
214
|
-
{{The pick. One sentence.}}
|
|
47
|
+
## Steps
|
|
215
48
|
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
-
|
|
220
|
-
|
|
49
|
+
1. `step-01-init.md` — detect continuation, discover inputs, create `architecture.md` from template.
|
|
50
|
+
2. `step-02-context.md` — analyze PRD, UX, and research for architectural implications.
|
|
51
|
+
3. `step-03-starter.md` — discover technical preferences and evaluate starter templates.
|
|
52
|
+
4. `step-04-decisions.md` — make core architectural decisions (data, auth, API, frontend, infra).
|
|
53
|
+
5. `step-05-patterns.md` — define implementation patterns that prevent agent conflicts.
|
|
54
|
+
6. `step-06-structure.md` — map requirements to concrete project structure and boundaries.
|
|
55
|
+
7. `step-07-validation.md` — validate coherence, coverage, and implementation readiness.
|
|
56
|
+
8. `step-08-complete.md` — finalize frontmatter and hand off to implementation.
|
|
221
57
|
|
|
222
|
-
##
|
|
58
|
+
## Global step rules
|
|
223
59
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
60
|
+
- Always read the complete step file before acting.
|
|
61
|
+
- Speak in `communication_language`.
|
|
62
|
+
- Write artifacts in `document_output_language`.
|
|
63
|
+
- Never generate content without user input or confirmation.
|
|
64
|
+
- Every code reference uses CWD-relative `path:line` format.
|
|
65
|
+
- No time estimates — AI development speed has fundamentally changed.
|
|
229
66
|
|
|
230
67
|
## Hand-off
|
|
231
68
|
|
|
232
|
-
> Architecture and
|
|
69
|
+
> Architecture and ADRs are in `.wize/solutioning/`. Sequences hit the NFR targets. Hawkeye can write `tea-risk.md` against this. Tony continues with `wize-create-epics-and-stories`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Wize Dev Kit — overrides for the built-in workflow "wize-code-review".
|
|
2
|
+
# DO NOT EDIT in the installed kit; copy to .wize/custom/workflows/wize-code-review/
|
|
3
|
+
# for project-level overrides.
|
|
4
|
+
|
|
5
|
+
[workflow]
|
|
6
|
+
|
|
7
|
+
# Steps to run before standard activation (config load, greet).
|
|
8
|
+
activation_steps_prepend = []
|
|
9
|
+
|
|
10
|
+
# Steps to run after greet but before the workflow begins.
|
|
11
|
+
activation_steps_append = []
|
|
12
|
+
|
|
13
|
+
# Persistent facts the workflow keeps in mind for the whole run.
|
|
14
|
+
persistent_facts = [
|
|
15
|
+
"file:{project-root}/.wize/knowledge/document-project/conventions.md",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
# Scalar executed when the workflow reaches its final step,
|
|
19
|
+
# after review findings are presented and sprint status is synced.
|
|
20
|
+
# Override wins. Leave empty for no custom post-completion behavior.
|
|
21
|
+
on_complete = ""
|