wize-dev-kit 0.3.1 → 0.4.0
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 +24 -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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: wize-technical-research
|
|
3
|
+
name: Technical Research
|
|
4
|
+
phase: 1-analysis
|
|
5
|
+
owner: wize-agent-analyst # Pepper Potts
|
|
6
|
+
status: ready
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Technical Research
|
|
10
|
+
|
|
11
|
+
**Goal.** Conduct technical research on technologies, tools, and architecture patterns to inform stack decisions.
|
|
12
|
+
|
|
13
|
+
Pepper Potts drives. Tony Stark consumes the output directly. Peggy Carter edits prose.
|
|
14
|
+
|
|
15
|
+
Output lands in `.wize/planning/research/technical-{slug}-research-{date}.md`.
|
|
16
|
+
|
|
17
|
+
## When to use
|
|
18
|
+
|
|
19
|
+
- "Should we use X or Y?"
|
|
20
|
+
- "What is the current state of Z technology?"
|
|
21
|
+
- "I need a technical comparison of..."
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
|
|
25
|
+
- Open questions from `.wize/planning/brief.md` or `.wize/planning/tech-vision.md`
|
|
26
|
+
- User-provided technology or architectural topic
|
|
27
|
+
- Web search access
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
- `.wize/planning/research/technical-{slug}-research-{date}.md`
|
|
32
|
+
|
|
33
|
+
## Workflow architecture
|
|
34
|
+
|
|
35
|
+
Step-file architecture with six steps:
|
|
36
|
+
|
|
37
|
+
1. Scope confirmation
|
|
38
|
+
2. Technical overview
|
|
39
|
+
3. Integration patterns
|
|
40
|
+
4. Architectural patterns
|
|
41
|
+
5. Implementation research
|
|
42
|
+
6. Research synthesis
|
|
43
|
+
|
|
44
|
+
## On activation
|
|
45
|
+
|
|
46
|
+
1. Load `.wize/config/project.toml` and `.wize/config/user.toml`.
|
|
47
|
+
2. Ask for the technical topic if not provided.
|
|
48
|
+
3. Derive `{research_topic_slug}` and create the output file from `research.template.md`.
|
|
49
|
+
4. Read fully and follow `./technical-steps/step-01-init.md`.
|
|
50
|
+
|
|
51
|
+
## Hand-off
|
|
52
|
+
|
|
53
|
+
> Technical research is in `.wize/planning/research/`. Fury and Tony can use it for stack family decisions; open questions route back to Wizer.
|
package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
owner: Tony Stark
|
|
4
|
+
created: "{{created}}"
|
|
5
|
+
stepsCompleted: []
|
|
6
|
+
inputDocuments: []
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Architecture — {{project_name}}
|
|
10
|
+
|
|
11
|
+
## Summary
|
|
12
|
+
|
|
13
|
+
{{One paragraph: stack family, runtime, primary data store, deploy target. The frame.}}
|
|
14
|
+
|
|
15
|
+
## Stack
|
|
16
|
+
|
|
17
|
+
- Language:
|
|
18
|
+
- Front-end:
|
|
19
|
+
- Back-end:
|
|
20
|
+
- DB:
|
|
21
|
+
- Auth:
|
|
22
|
+
- Hosting:
|
|
23
|
+
- Observability:
|
|
24
|
+
- Test:
|
|
25
|
+
|
|
26
|
+
## Components
|
|
27
|
+
|
|
28
|
+
| Component | Responsibility | Boundary |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
|
|
31
|
+
## Data model
|
|
32
|
+
|
|
33
|
+
## Sequences
|
|
34
|
+
|
|
35
|
+
## Cross-cutting concerns
|
|
36
|
+
|
|
37
|
+
## NFR check
|
|
38
|
+
|
|
39
|
+
## ADRs
|
|
40
|
+
|
|
41
|
+
See `.wize/solutioning/adrs/`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Wize Dev Kit — overrides for the built-in workflow "wize-create-architecture".
|
|
2
|
+
# DO NOT EDIT in the installed kit; copy to .wize/custom/workflows/wize-create-architecture/
|
|
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 Step 8 (Architecture Completion & Handoff) finishes.
|
|
19
|
+
# Override wins. Leave empty for no custom post-completion behavior.
|
|
20
|
+
on_complete = ""
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Step 1: Architecture Workflow Initialization
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- 📖 Always read the complete step file before acting.
|
|
7
|
+
- ✅ Treat this as collaborative discovery between architectural peers.
|
|
8
|
+
- 💬 Focus on initialization and setup only.
|
|
9
|
+
- 🚪 Detect existing workflow state and handle continuation properly.
|
|
10
|
+
- ⚠️ No time estimates.
|
|
11
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
12
|
+
|
|
13
|
+
## Execution protocols
|
|
14
|
+
|
|
15
|
+
- 🎯 Show analysis before taking action.
|
|
16
|
+
- 💾 Initialize the document and update frontmatter.
|
|
17
|
+
- 📖 Set `stepsCompleted: [1]` before loading the next step.
|
|
18
|
+
- 🚫 Do not load the next step until setup is complete and the user confirms.
|
|
19
|
+
|
|
20
|
+
## Context boundaries
|
|
21
|
+
|
|
22
|
+
- Variables from `workflow.md` are available.
|
|
23
|
+
- Previous context is what is in the output document + frontmatter.
|
|
24
|
+
- Input document discovery happens in this step.
|
|
25
|
+
|
|
26
|
+
## Task
|
|
27
|
+
|
|
28
|
+
Initialize the Architecture workflow by detecting continuation state, discovering input documents, and setting up the document for collaborative architectural decision making.
|
|
29
|
+
|
|
30
|
+
## Initialization sequence
|
|
31
|
+
|
|
32
|
+
### 1. Check for existing workflow
|
|
33
|
+
|
|
34
|
+
Check if `{output_folder}/solutioning/architecture.md` exists.
|
|
35
|
+
|
|
36
|
+
- If it exists and has frontmatter with `stepsCompleted`, stop here and load `./step-01b-continue.md`.
|
|
37
|
+
- If it exists but has no `stepsCompleted`, treat it as a legacy document: warn the user and offer to continue from it or start fresh.
|
|
38
|
+
- If it does not exist, this is a fresh workflow.
|
|
39
|
+
|
|
40
|
+
### 2. Discover input documents
|
|
41
|
+
|
|
42
|
+
Search in `{output_folder}/planning/`, `{output_folder}/knowledge/`, and `{project-root}/docs/` for:
|
|
43
|
+
|
|
44
|
+
- Product Brief (`*brief*.md`)
|
|
45
|
+
- PRD (`*prd*.md`)
|
|
46
|
+
- UX Scenarios / UX Design (`*ux*.md`)
|
|
47
|
+
- Research (`*research*.md`)
|
|
48
|
+
- Project Context (`**/project-context.md`)
|
|
49
|
+
|
|
50
|
+
Confirm what was found with the user before proceeding.
|
|
51
|
+
|
|
52
|
+
### 3. Validate required inputs
|
|
53
|
+
|
|
54
|
+
If no PRD is found:
|
|
55
|
+
|
|
56
|
+
> Architecture requires a PRD to work from. Please run `wize-create-prd` first or provide the PRD file path.
|
|
57
|
+
|
|
58
|
+
Do not proceed without a PRD.
|
|
59
|
+
|
|
60
|
+
### 4. Create initial document
|
|
61
|
+
|
|
62
|
+
Copy `../architecture-decision-template.md` to `{output_folder}/solutioning/architecture.md`.
|
|
63
|
+
|
|
64
|
+
Set frontmatter:
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
status: draft
|
|
68
|
+
owner: Tony Stark
|
|
69
|
+
created: "{{date}}"
|
|
70
|
+
stepsCompleted: []
|
|
71
|
+
inputDocuments: [{{list of discovered files}}]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 5. Report setup to user
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
Welcome {{user_name}}! I've set up your Architecture workspace for {{project_name}}.
|
|
78
|
+
|
|
79
|
+
Documents found:
|
|
80
|
+
- PRD: {count or "None — required"}
|
|
81
|
+
- UX Design: {count or "None"}
|
|
82
|
+
- Research: {count or "None"}
|
|
83
|
+
- Project docs: {count or "None"}
|
|
84
|
+
- Project context: {count of rules or "None"}
|
|
85
|
+
|
|
86
|
+
Files loaded: {list or "No additional documents"}
|
|
87
|
+
|
|
88
|
+
Ready to begin architectural decision making. Do you have any other documents you'd like to include?
|
|
89
|
+
|
|
90
|
+
[C] Continue to project context analysis
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Next step
|
|
94
|
+
|
|
95
|
+
After the user selects [C], load `./step-02-context.md`.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Step 1b: Continue Existing Architecture Workflow
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Resume an architecture workflow that was previously started.
|
|
6
|
+
|
|
7
|
+
## Rules
|
|
8
|
+
|
|
9
|
+
- Read the existing `{output_folder}/solutioning/architecture.md` fully, including frontmatter.
|
|
10
|
+
- Report the current `stepsCompleted` to the user.
|
|
11
|
+
- Ask whether to continue from the last completed step or restart from a specific step.
|
|
12
|
+
- Never discard already-written content without explicit user confirmation.
|
|
13
|
+
|
|
14
|
+
## Continue menu
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
Existing architecture document found.
|
|
18
|
+
|
|
19
|
+
Steps completed: {stepsCompleted}
|
|
20
|
+
Last saved: {updated or created date}
|
|
21
|
+
|
|
22
|
+
What would you like to do?
|
|
23
|
+
[C] Continue from the next step ({next_step})
|
|
24
|
+
[R] Restart from step 1
|
|
25
|
+
[S] Pick a specific step to revisit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Routing
|
|
29
|
+
|
|
30
|
+
- [C] → load the step immediately after the highest value in `stepsCompleted`.
|
|
31
|
+
- [R] → confirm overwrite risk, then return to `step-01-init.md` fresh setup.
|
|
32
|
+
- [S] → present the list of steps and load the selected one.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Step 2: Project Context Analysis
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- 📖 Always read the complete step file before acting.
|
|
7
|
+
- ✅ Treat this as collaborative discovery.
|
|
8
|
+
- 🎯 Analyze loaded documents; don't assume or generate requirements.
|
|
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 context analysis.
|
|
16
|
+
- 💾 Only save when the user chooses C (Continue).
|
|
17
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2]` before loading the next step.
|
|
18
|
+
- 🚫 Do not load the next step until C is selected.
|
|
19
|
+
|
|
20
|
+
## Collaboration menu (A/P/C)
|
|
21
|
+
|
|
22
|
+
- **A (Advanced Elicitation)** — invoke `wize-advanced-elicitation` for deeper architectural implications.
|
|
23
|
+
- **P (Party Mode)** — invoke `wize-party-mode` to bring Tony, Fury, and Pepper into the conversation.
|
|
24
|
+
- **C (Continue)** — save the content and proceed.
|
|
25
|
+
|
|
26
|
+
After A or P, return to this menu.
|
|
27
|
+
|
|
28
|
+
## Context boundaries
|
|
29
|
+
|
|
30
|
+
- Current document and frontmatter from step 1 are available.
|
|
31
|
+
- Input documents are loaded.
|
|
32
|
+
- Focus on architectural implications only — no technology decisions yet.
|
|
33
|
+
|
|
34
|
+
## Task
|
|
35
|
+
|
|
36
|
+
Analyze the loaded project documents to understand architectural scope, requirements, and constraints.
|
|
37
|
+
|
|
38
|
+
## Analysis sequence
|
|
39
|
+
|
|
40
|
+
### 1. Review project requirements
|
|
41
|
+
|
|
42
|
+
**From PRD:**
|
|
43
|
+
|
|
44
|
+
- Extract functional requirements and their architectural implications.
|
|
45
|
+
- Identify non-functional requirements (performance, security, compliance).
|
|
46
|
+
- Note technical constraints or dependencies.
|
|
47
|
+
|
|
48
|
+
**From Epics/Stories (if available):**
|
|
49
|
+
|
|
50
|
+
- Map epic structure to architectural components.
|
|
51
|
+
- Identify cross-cutting concerns that span multiple epics.
|
|
52
|
+
|
|
53
|
+
**From UX Design (if available):**
|
|
54
|
+
|
|
55
|
+
- Component complexity, real-time needs, platform-specific UI, accessibility level, responsive breakpoints, offline capability.
|
|
56
|
+
|
|
57
|
+
### 2. Project scale assessment
|
|
58
|
+
|
|
59
|
+
Complexity indicators:
|
|
60
|
+
|
|
61
|
+
- Real-time features
|
|
62
|
+
- Multi-tenancy
|
|
63
|
+
- Regulatory compliance
|
|
64
|
+
- Integration density
|
|
65
|
+
- User interaction complexity
|
|
66
|
+
- Data complexity and volume
|
|
67
|
+
|
|
68
|
+
### 3. Reflect understanding to the user
|
|
69
|
+
|
|
70
|
+
Present a concise summary:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
I'm reviewing your project documentation for {{project_name}}.
|
|
74
|
+
|
|
75
|
+
I see {{fr_count}} functional requirements and {{nfr_count}} non-functional requirements.
|
|
76
|
+
{epics_loaded?}I also see {{epic_count}} epics with {{story_count}} stories.{/epics_loaded?}
|
|
77
|
+
{ux_loaded?}A UX specification is present.{/ux_loaded?}
|
|
78
|
+
|
|
79
|
+
Key architectural aspects:
|
|
80
|
+
- [core functionality]
|
|
81
|
+
- [critical NFRs]
|
|
82
|
+
- [unique technical challenges]
|
|
83
|
+
- [compliance requirements]
|
|
84
|
+
|
|
85
|
+
Scale indicators:
|
|
86
|
+
- Complexity: [low/medium/high/enterprise]
|
|
87
|
+
- Primary domain: [web/mobile/api/backend/full-stack/etc]
|
|
88
|
+
- Cross-cutting concerns: [list]
|
|
89
|
+
|
|
90
|
+
Does this match your understanding?
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 4. Generate project context content
|
|
94
|
+
|
|
95
|
+
Prepare the section to append:
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
## Project Context Analysis
|
|
99
|
+
|
|
100
|
+
### Requirements Overview
|
|
101
|
+
|
|
102
|
+
**Functional Requirements:**
|
|
103
|
+
{{analysis}}
|
|
104
|
+
|
|
105
|
+
**Non-Functional Requirements:**
|
|
106
|
+
{{analysis}}
|
|
107
|
+
|
|
108
|
+
**Scale & Complexity:**
|
|
109
|
+
- Primary domain: {{domain}}
|
|
110
|
+
- Complexity level: {{level}}
|
|
111
|
+
- Estimated architectural components: {{count}}
|
|
112
|
+
|
|
113
|
+
### Technical Constraints & Dependencies
|
|
114
|
+
{{list}}
|
|
115
|
+
|
|
116
|
+
### Cross-Cutting Concerns Identified
|
|
117
|
+
{{list}}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 5. Present content and menu
|
|
121
|
+
|
|
122
|
+
Show the drafted content and present A/P/C. Only append when the user chooses C.
|
|
123
|
+
|
|
124
|
+
## Next step
|
|
125
|
+
|
|
126
|
+
After C, load `./step-03-starter.md`.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Step 3: Starter Template Evaluation
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative discovery.
|
|
7
|
+
- 🌐 Search the web to verify current versions and options.
|
|
8
|
+
- ⚠️ No time estimates.
|
|
9
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
10
|
+
|
|
11
|
+
## Execution protocols
|
|
12
|
+
|
|
13
|
+
- 🎯 Show analysis before taking action.
|
|
14
|
+
- ⚠️ Present A/P/C menu after starter analysis.
|
|
15
|
+
- 💾 Only save when the user chooses C.
|
|
16
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3]` before loading the next step.
|
|
17
|
+
|
|
18
|
+
## Collaboration menu (A/P/C)
|
|
19
|
+
|
|
20
|
+
- **A (Advanced Elicitation)** — explore unconventional starter options.
|
|
21
|
+
- **P (Party Mode)** — evaluate starter trade-offs from multiple perspectives.
|
|
22
|
+
- **C (Continue)** — save and move to architectural decisions.
|
|
23
|
+
|
|
24
|
+
## Context boundaries
|
|
25
|
+
|
|
26
|
+
- Project context from step 2 is available.
|
|
27
|
+
- No architectural decisions made yet — this step evaluates foundations.
|
|
28
|
+
|
|
29
|
+
## Task
|
|
30
|
+
|
|
31
|
+
Discover technical preferences and evaluate starter template options, establishing solid architectural foundations.
|
|
32
|
+
|
|
33
|
+
## Starter evaluation sequence
|
|
34
|
+
|
|
35
|
+
### 0. Check existing technical preferences
|
|
36
|
+
|
|
37
|
+
If `.wize/knowledge/document-project/conventions.md` or `project-context.md` exist, surface any already-documented technical rules.
|
|
38
|
+
|
|
39
|
+
### 1. Discover user technical preferences
|
|
40
|
+
|
|
41
|
+
Ask about:
|
|
42
|
+
|
|
43
|
+
- Languages and frameworks
|
|
44
|
+
- Databases
|
|
45
|
+
- Cloud / hosting / deployment
|
|
46
|
+
- Third-party services (auth, payments, analytics)
|
|
47
|
+
- Team experience level
|
|
48
|
+
|
|
49
|
+
### 2. Identify primary technology domain
|
|
50
|
+
|
|
51
|
+
Map the project to one of:
|
|
52
|
+
|
|
53
|
+
- Web application
|
|
54
|
+
- Mobile app
|
|
55
|
+
- API / backend
|
|
56
|
+
- CLI tool
|
|
57
|
+
- Full-stack
|
|
58
|
+
- Desktop
|
|
59
|
+
|
|
60
|
+
### 3. Research current starter options
|
|
61
|
+
|
|
62
|
+
Search the web for current, maintained starter templates matching the domain.
|
|
63
|
+
|
|
64
|
+
### 4. Present starter options
|
|
65
|
+
|
|
66
|
+
For each viable starter, document:
|
|
67
|
+
|
|
68
|
+
- Technology decisions already made by the starter
|
|
69
|
+
- Architectural patterns established
|
|
70
|
+
- Development experience features
|
|
71
|
+
- Maintenance status
|
|
72
|
+
|
|
73
|
+
### 5. Get selection
|
|
74
|
+
|
|
75
|
+
Present a recommended starter and ask for confirmation.
|
|
76
|
+
|
|
77
|
+
### 6. Generate starter content
|
|
78
|
+
|
|
79
|
+
Append to `architecture.md`:
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
## Starter Template Evaluation
|
|
83
|
+
|
|
84
|
+
### Primary Technology Domain
|
|
85
|
+
{{domain}}
|
|
86
|
+
|
|
87
|
+
### Starter Options Considered
|
|
88
|
+
{{analysis}}
|
|
89
|
+
|
|
90
|
+
### Selected Starter: {{starter_name}}
|
|
91
|
+
|
|
92
|
+
**Rationale:** {{why}}
|
|
93
|
+
|
|
94
|
+
**Initialization Command:**
|
|
95
|
+
```bash
|
|
96
|
+
{{command}}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Architectural Decisions Provided by Starter:**
|
|
100
|
+
- Language & Runtime: ...
|
|
101
|
+
- Styling Solution: ...
|
|
102
|
+
- Build Tooling: ...
|
|
103
|
+
- Testing Framework: ...
|
|
104
|
+
- Code Organization: ...
|
|
105
|
+
- Development Experience: ...
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Next step
|
|
109
|
+
|
|
110
|
+
After C, load `./step-04-decisions.md`.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Step 4: Core Architectural Decisions
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative discovery between peers.
|
|
7
|
+
- 🌐 Search the web to verify current technology versions.
|
|
8
|
+
- ⚠️ No time estimates.
|
|
9
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
10
|
+
|
|
11
|
+
## Execution protocols
|
|
12
|
+
|
|
13
|
+
- 🎯 Show analysis before taking action.
|
|
14
|
+
- ⚠️ Present A/P/C menu after each major decision category.
|
|
15
|
+
- 💾 Only save when the user chooses C.
|
|
16
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4]` before loading the next step.
|
|
17
|
+
|
|
18
|
+
## Collaboration menu (A/P/C)
|
|
19
|
+
|
|
20
|
+
- **A (Advanced Elicitation)** — explore innovative approaches to a specific decision.
|
|
21
|
+
- **P (Party Mode)** — review trade-offs from multiple perspectives.
|
|
22
|
+
- **C (Continue)** — save current decisions and proceed.
|
|
23
|
+
|
|
24
|
+
## Context boundaries
|
|
25
|
+
|
|
26
|
+
- Project context from step 2 is available.
|
|
27
|
+
- Starter template choice from step 3 is available.
|
|
28
|
+
- Focus on decisions not already made by the starter or existing preferences.
|
|
29
|
+
|
|
30
|
+
## Task
|
|
31
|
+
|
|
32
|
+
Facilitate collaborative architectural decision making for the remaining critical choices.
|
|
33
|
+
|
|
34
|
+
## Decision categories
|
|
35
|
+
|
|
36
|
+
### Category 1: Data Architecture
|
|
37
|
+
|
|
38
|
+
- Database choice (if not determined by starter)
|
|
39
|
+
- Data modeling approach
|
|
40
|
+
- Validation strategy
|
|
41
|
+
- Migration approach
|
|
42
|
+
- Caching strategy
|
|
43
|
+
|
|
44
|
+
### Category 2: Authentication & Security
|
|
45
|
+
|
|
46
|
+
- Authentication method
|
|
47
|
+
- Authorization patterns
|
|
48
|
+
- Security middleware
|
|
49
|
+
- Encryption approach
|
|
50
|
+
- API security strategy
|
|
51
|
+
|
|
52
|
+
### Category 3: API & Communication
|
|
53
|
+
|
|
54
|
+
- API design patterns (REST, GraphQL, tRPC, etc.)
|
|
55
|
+
- Error handling standards
|
|
56
|
+
- Rate limiting
|
|
57
|
+
- Inter-service communication
|
|
58
|
+
|
|
59
|
+
### Category 4: Frontend Architecture (if applicable)
|
|
60
|
+
|
|
61
|
+
- State management
|
|
62
|
+
- Component architecture
|
|
63
|
+
- Routing
|
|
64
|
+
- Performance optimization
|
|
65
|
+
|
|
66
|
+
### Category 5: Infrastructure & Deployment
|
|
67
|
+
|
|
68
|
+
- Hosting strategy
|
|
69
|
+
- CI/CD approach
|
|
70
|
+
- Environment configuration
|
|
71
|
+
- Monitoring and logging
|
|
72
|
+
- Scaling strategy
|
|
73
|
+
|
|
74
|
+
## Decision format
|
|
75
|
+
|
|
76
|
+
For each decision, record:
|
|
77
|
+
|
|
78
|
+
- Category
|
|
79
|
+
- Decision
|
|
80
|
+
- Version (if applicable)
|
|
81
|
+
- Rationale
|
|
82
|
+
- Affects (components or epics)
|
|
83
|
+
- Provided by starter? (yes/no)
|
|
84
|
+
|
|
85
|
+
## Generate decisions content
|
|
86
|
+
|
|
87
|
+
Append to `architecture.md`:
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
## Core Architectural Decisions
|
|
91
|
+
|
|
92
|
+
### Decision Priority Analysis
|
|
93
|
+
|
|
94
|
+
**Critical Decisions (block implementation):**
|
|
95
|
+
{{list}}
|
|
96
|
+
|
|
97
|
+
**Important Decisions (shape architecture):**
|
|
98
|
+
{{list}}
|
|
99
|
+
|
|
100
|
+
**Deferred Decisions (post-MVP):**
|
|
101
|
+
{{list}}
|
|
102
|
+
|
|
103
|
+
### Data Architecture
|
|
104
|
+
...
|
|
105
|
+
|
|
106
|
+
### Authentication & Security
|
|
107
|
+
...
|
|
108
|
+
|
|
109
|
+
### API & Communication Patterns
|
|
110
|
+
...
|
|
111
|
+
|
|
112
|
+
### Frontend Architecture
|
|
113
|
+
...
|
|
114
|
+
|
|
115
|
+
### Infrastructure & Deployment
|
|
116
|
+
...
|
|
117
|
+
|
|
118
|
+
### Decision Impact Analysis
|
|
119
|
+
|
|
120
|
+
**Implementation Sequence:**
|
|
121
|
+
{{ordered list}}
|
|
122
|
+
|
|
123
|
+
**Cross-Component Dependencies:**
|
|
124
|
+
{{how decisions affect each other}}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Next step
|
|
128
|
+
|
|
129
|
+
After C, load `./step-05-patterns.md`.
|