wize-dev-kit 0.3.0 → 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.
Files changed (83) hide show
  1. package/AGENTS.md +21 -0
  2. package/ARCH.md +40 -4
  3. package/CHANGELOG.md +50 -0
  4. package/DECISIONS.md +13 -0
  5. package/README.md +11 -2
  6. package/package.json +3 -2
  7. package/src/core-skills/module.yaml +4 -0
  8. package/src/core-skills/wize-spec/assets/headless-schemas.md +39 -0
  9. package/src/core-skills/wize-spec/assets/spec-template.md +40 -0
  10. package/src/core-skills/wize-spec/customize.toml +20 -0
  11. package/src/core-skills/wize-spec/skill.md +110 -0
  12. package/src/method-skills/1-analysis/wize-document-project/documentation-requirements.csv +12 -0
  13. package/src/method-skills/1-analysis/wize-document-project/templates/api-contracts-template.md +38 -0
  14. package/src/method-skills/1-analysis/wize-document-project/templates/architecture-template.md +54 -0
  15. package/src/method-skills/1-analysis/wize-document-project/templates/component-inventory-template.md +40 -0
  16. package/src/method-skills/1-analysis/wize-document-project/templates/contribution-guide-template.md +34 -0
  17. package/src/method-skills/1-analysis/wize-document-project/templates/data-models-template.md +36 -0
  18. package/src/method-skills/1-analysis/wize-document-project/templates/deep-dive-template.md +312 -0
  19. package/src/method-skills/1-analysis/wize-document-project/templates/deployment-guide-template.md +42 -0
  20. package/src/method-skills/1-analysis/wize-document-project/templates/development-guide-template.md +61 -0
  21. package/src/method-skills/1-analysis/wize-document-project/templates/index-template.md +185 -0
  22. package/src/method-skills/1-analysis/wize-document-project/templates/project-overview-template.md +110 -0
  23. package/src/method-skills/1-analysis/wize-document-project/templates/project-scan-report-schema.json +159 -0
  24. package/src/method-skills/1-analysis/wize-document-project/templates/source-tree-template.md +142 -0
  25. package/src/method-skills/1-analysis/wize-document-project/workflow.md +23 -0
  26. package/src/method-skills/1-analysis/wize-domain-research/customize.toml +14 -0
  27. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-01-init.md +49 -0
  28. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md +39 -0
  29. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-03-competitive-landscape.md +39 -0
  30. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md +39 -0
  31. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md +39 -0
  32. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md +43 -0
  33. package/src/method-skills/1-analysis/wize-domain-research/research.template.md +31 -0
  34. package/src/method-skills/1-analysis/wize-domain-research/workflow.md +51 -0
  35. package/src/method-skills/1-analysis/wize-market-research/customize.toml +14 -0
  36. package/src/method-skills/1-analysis/wize-market-research/research.template.md +31 -0
  37. package/src/method-skills/1-analysis/wize-market-research/steps/step-01-init.md +57 -0
  38. package/src/method-skills/1-analysis/wize-market-research/steps/step-02-customer-behavior.md +39 -0
  39. package/src/method-skills/1-analysis/wize-market-research/steps/step-03-customer-pain-points.md +37 -0
  40. package/src/method-skills/1-analysis/wize-market-research/steps/step-04-customer-decisions.md +39 -0
  41. package/src/method-skills/1-analysis/wize-market-research/steps/step-05-competitive-analysis.md +37 -0
  42. package/src/method-skills/1-analysis/wize-market-research/steps/step-06-research-completion.md +47 -0
  43. package/src/method-skills/1-analysis/wize-market-research/workflow.md +59 -0
  44. package/src/method-skills/1-analysis/wize-technical-research/customize.toml +14 -0
  45. package/src/method-skills/1-analysis/wize-technical-research/research.template.md +31 -0
  46. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-01-init.md +49 -0
  47. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-02-technical-overview.md +45 -0
  48. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-03-integration-patterns.md +39 -0
  49. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-04-architectural-patterns.md +39 -0
  50. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-05-implementation-research.md +42 -0
  51. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-06-research-synthesis.md +46 -0
  52. package/src/method-skills/1-analysis/wize-technical-research/workflow.md +53 -0
  53. package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md +41 -0
  54. package/src/method-skills/3-solutioning/wize-create-architecture/customize.toml +20 -0
  55. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01-init.md +95 -0
  56. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01b-continue.md +32 -0
  57. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-02-context.md +126 -0
  58. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-03-starter.md +110 -0
  59. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-04-decisions.md +129 -0
  60. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-05-patterns.md +109 -0
  61. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-06-structure.md +97 -0
  62. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-07-validation.md +124 -0
  63. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-08-complete.md +59 -0
  64. package/src/method-skills/3-solutioning/wize-create-architecture/workflow.md +38 -201
  65. package/src/method-skills/4-implementation/wize-code-review/customize.toml +21 -0
  66. package/src/method-skills/4-implementation/wize-code-review/steps/step-01-gather-context.md +64 -0
  67. package/src/method-skills/4-implementation/wize-code-review/steps/step-02-review.md +38 -0
  68. package/src/method-skills/4-implementation/wize-code-review/steps/step-03-triage.md +43 -0
  69. package/src/method-skills/4-implementation/wize-code-review/steps/step-04-present.md +100 -0
  70. package/src/method-skills/4-implementation/wize-code-review/workflow.md +34 -89
  71. package/src/method-skills/module.yaml +19 -0
  72. package/src/tea-skills/wize-tea-risk/workflow.md +11 -0
  73. package/tools/installer/commands/doctor.js +27 -1
  74. package/tools/installer/commands/document-project.js +93 -0
  75. package/tools/installer/document-project/batch-scanner.js +93 -0
  76. package/tools/installer/document-project/classify.js +170 -0
  77. package/tools/installer/document-project/modes/deep-dive.js +196 -0
  78. package/tools/installer/document-project/modes/full-rescan.js +15 -0
  79. package/tools/installer/document-project/modes/initial-scan.js +100 -0
  80. package/tools/installer/document-project/modes/quick.js +211 -0
  81. package/tools/installer/document-project/render-index.js +101 -0
  82. package/tools/installer/document-project/state.js +110 -0
  83. package/tools/installer/wize-cli.js +46 -30
@@ -0,0 +1,110 @@
1
+ ---
2
+ status: baseline
3
+ owner: Pepper Potts + Peggy Carter
4
+ created: {{date}}
5
+ last_refreshed: {{date}}
6
+ ---
7
+
8
+ # {{project_name}} - Project Overview
9
+
10
+ **Date:** {{date}}
11
+ **Type:** {{project_type}}
12
+ **Architecture:** {{architecture_type}}
13
+
14
+ ## Executive Summary
15
+
16
+ {{executive_summary}}
17
+
18
+ ## Project Classification
19
+
20
+ - **Repository Type:** {{repository_type}}
21
+ - **Project Type(s):** {{project_types_list}}
22
+ - **Primary Language(s):** {{primary_languages}}
23
+ - **Architecture Pattern:** {{architecture_pattern}}
24
+
25
+ {{#if is_multi_part}}
26
+
27
+ ## Multi-Part Structure
28
+
29
+ This project consists of {{parts_count}} distinct parts:
30
+
31
+ {{#each project_parts}}
32
+
33
+ ### {{part_name}}
34
+
35
+ - **Type:** {{project_type}}
36
+ - **Location:** `{{root_path}}`
37
+ - **Purpose:** {{purpose}}
38
+ - **Tech Stack:** {{tech_stack}}
39
+ {{/each}}
40
+
41
+ ### How Parts Integrate
42
+
43
+ {{integration_description}}
44
+ {{/if}}
45
+
46
+ ## Technology Stack Summary
47
+
48
+ {{#if is_single_part}}
49
+ {{technology_table}}
50
+ {{else}}
51
+ {{#each project_parts}}
52
+
53
+ ### {{part_name}} Stack
54
+
55
+ {{technology_table}}
56
+ {{/each}}
57
+ {{/if}}
58
+
59
+ ## Key Features
60
+
61
+ {{key_features}}
62
+
63
+ ## Architecture Highlights
64
+
65
+ {{architecture_highlights}}
66
+
67
+ ## Development Overview
68
+
69
+ ### Prerequisites
70
+
71
+ {{prerequisites}}
72
+
73
+ ### Getting Started
74
+
75
+ {{getting_started_summary}}
76
+
77
+ ### Key Commands
78
+
79
+ {{#if is_single_part}}
80
+
81
+ - **Install:** `{{install_command}}`
82
+ - **Dev:** `{{dev_command}}`
83
+ - **Build:** `{{build_command}}`
84
+ - **Test:** `{{test_command}}`
85
+ {{else}}
86
+ {{#each project_parts}}
87
+
88
+ #### {{part_name}}
89
+
90
+ - **Install:** `{{install_command}}`
91
+ - **Dev:** `{{dev_command}}`
92
+ {{/each}}
93
+ {{/if}}
94
+
95
+ ## Repository Structure
96
+
97
+ {{repository_structure_summary}}
98
+
99
+ ## Documentation Map
100
+
101
+ For detailed information, see:
102
+
103
+ - [index.md](./index.md) - Master documentation index
104
+ - [architecture.md](./architecture{{#if is_multi_part}}-{{part_id}}{{/if}}.md) - Detailed architecture
105
+ - [source-tree-analysis.md](./source-tree-analysis.md) - Directory structure
106
+ - [development-guide.md](./development-guide{{#if is_multi_part}}-{{part_id}}{{/if}}.md) - Development workflow
107
+
108
+ ---
109
+
110
+ _Generated using Wize Dev Kit `document-project` workflow_
@@ -0,0 +1,159 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://qwize.io/wize-dev-kit/schemas/project-scan-report.schema.json",
4
+ "title": "Project Scan Report",
5
+ "description": "State tracking file for wize-document-project resumability",
6
+ "type": "object",
7
+ "required": ["workflow_version", "timestamps", "mode", "scan_level", "completed_steps", "current_step"],
8
+ "properties": {
9
+ "workflow_version": {
10
+ "type": "string",
11
+ "description": "Version of document-project workflow"
12
+ },
13
+ "timestamps": {
14
+ "type": "object",
15
+ "required": ["started", "last_updated"],
16
+ "properties": {
17
+ "started": {
18
+ "type": "string",
19
+ "format": "date-time",
20
+ "description": "ISO 8601 timestamp when workflow started"
21
+ },
22
+ "last_updated": {
23
+ "type": "string",
24
+ "format": "date-time",
25
+ "description": "ISO 8601 timestamp of last state update"
26
+ },
27
+ "completed": {
28
+ "type": "string",
29
+ "format": "date-time",
30
+ "description": "ISO 8601 timestamp when workflow completed"
31
+ }
32
+ }
33
+ },
34
+ "mode": {
35
+ "type": "string",
36
+ "enum": ["initial_scan", "full_rescan", "deep_dive", "quick"],
37
+ "description": "Workflow execution mode"
38
+ },
39
+ "scan_level": {
40
+ "type": "string",
41
+ "enum": ["quick", "deep", "exhaustive"],
42
+ "description": "Scan depth level"
43
+ },
44
+ "project_root": {
45
+ "type": "string",
46
+ "description": "Absolute path to project root directory"
47
+ },
48
+ "project_knowledge": {
49
+ "type": "string",
50
+ "description": "Absolute path to project knowledge folder"
51
+ },
52
+ "completed_steps": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "required": ["step", "status"],
57
+ "properties": {
58
+ "step": {
59
+ "type": "string",
60
+ "description": "Step identifier"
61
+ },
62
+ "status": {
63
+ "type": "string",
64
+ "enum": ["completed", "partial", "failed"]
65
+ },
66
+ "timestamp": {
67
+ "type": "string",
68
+ "format": "date-time"
69
+ },
70
+ "outputs": {
71
+ "type": "array",
72
+ "items": { "type": "string" },
73
+ "description": "Files written during this step"
74
+ },
75
+ "summary": {
76
+ "type": "string",
77
+ "description": "1-2 sentence summary of step outcome"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "current_step": {
83
+ "type": "string",
84
+ "description": "Current step identifier for resumption"
85
+ },
86
+ "findings": {
87
+ "type": "object",
88
+ "description": "High-level summaries only",
89
+ "properties": {
90
+ "project_classification": {
91
+ "type": "object",
92
+ "properties": {
93
+ "repository_type": { "type": "string" },
94
+ "parts_count": { "type": "integer" },
95
+ "primary_language": { "type": "string" },
96
+ "architecture_type": { "type": "string" }
97
+ }
98
+ },
99
+ "technology_stack": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "properties": {
104
+ "part_id": { "type": "string" },
105
+ "tech_summary": { "type": "string" }
106
+ }
107
+ }
108
+ },
109
+ "batches_completed": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "object",
113
+ "properties": {
114
+ "path": { "type": "string" },
115
+ "files_scanned": { "type": "integer" },
116
+ "summary": { "type": "string" }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "outputs_generated": {
123
+ "type": "array",
124
+ "items": { "type": "string" },
125
+ "description": "List of all output files generated"
126
+ },
127
+ "resume_instructions": {
128
+ "type": "string",
129
+ "description": "Instructions for resuming from current_step"
130
+ },
131
+ "validation_status": {
132
+ "type": "object",
133
+ "properties": {
134
+ "last_validated": {
135
+ "type": "string",
136
+ "format": "date-time"
137
+ },
138
+ "validation_errors": {
139
+ "type": "array",
140
+ "items": { "type": "string" }
141
+ }
142
+ }
143
+ },
144
+ "deep_dive_targets": {
145
+ "type": "array",
146
+ "description": "Track deep-dive areas analyzed",
147
+ "items": {
148
+ "type": "object",
149
+ "properties": {
150
+ "target_name": { "type": "string" },
151
+ "target_path": { "type": "string" },
152
+ "files_analyzed": { "type": "integer" },
153
+ "output_file": { "type": "string" },
154
+ "timestamp": { "type": "string", "format": "date-time" }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
@@ -0,0 +1,142 @@
1
+ ---
2
+ status: baseline
3
+ owner: Pepper Potts + Peggy Carter
4
+ created: {{date}}
5
+ last_refreshed: {{date}}
6
+ ---
7
+
8
+ # {{project_name}} - Source Tree Analysis
9
+
10
+ **Date:** {{date}}
11
+
12
+ ## Overview
13
+
14
+ {{source_tree_overview}}
15
+
16
+ {{#if is_multi_part}}
17
+
18
+ ## Multi-Part Structure
19
+
20
+ This project is organized into {{parts_count}} distinct parts:
21
+
22
+ {{#each project_parts}}
23
+
24
+ - **{{part_name}}** (`{{root_path}}`): {{purpose}}
25
+ {{/each}}
26
+ {{/if}}
27
+
28
+ ## Complete Directory Structure
29
+
30
+ ```
31
+ {{complete_source_tree}}
32
+ ```
33
+
34
+ ## Critical Directories
35
+
36
+ {{#each critical_folders}}
37
+
38
+ ### `{{folder_path}}`
39
+
40
+ {{description}}
41
+
42
+ **Purpose:** {{purpose}}
43
+ **Contains:** {{contents_summary}}
44
+ {{#if entry_points}}**Entry Points:** {{entry_points}}{{/if}}
45
+ {{#if integration_note}}**Integration:** {{integration_note}}{{/if}}
46
+
47
+ {{/each}}
48
+
49
+ {{#if is_multi_part}}
50
+
51
+ ## Part-Specific Trees
52
+
53
+ {{#each project_parts}}
54
+
55
+ ### {{part_name}} Structure
56
+
57
+ ```
58
+ {{source_tree}}
59
+ ```
60
+
61
+ **Key Directories:**
62
+ {{#each critical_directories}}
63
+
64
+ - **`{{path}}`**: {{description}}
65
+ {{/each}}
66
+
67
+ {{/each}}
68
+
69
+ ## Integration Points
70
+
71
+ {{#each integration_points}}
72
+
73
+ ### {{from_part}} → {{to_part}}
74
+
75
+ - **Location:** `{{integration_path}}`
76
+ - **Type:** {{integration_type}}
77
+ - **Details:** {{details}}
78
+ {{/each}}
79
+
80
+ {{/if}}
81
+
82
+ ## Entry Points
83
+
84
+ {{#if is_single_part}}
85
+
86
+ - **Main Entry:** `{{main_entry_point}}`
87
+ {{#if additional_entry_points}}
88
+ - **Additional:**
89
+ {{#each additional_entry_points}}
90
+ - `{{path}}`: {{description}}
91
+ {{/each}}
92
+ {{/if}}
93
+ {{else}}
94
+ {{#each project_parts}}
95
+
96
+ ### {{part_name}}
97
+
98
+ - **Entry Point:** `{{entry_point}}`
99
+ - **Bootstrap:** {{bootstrap_description}}
100
+ {{/each}}
101
+ {{/if}}
102
+
103
+ ## File Organization Patterns
104
+
105
+ {{file_organization_patterns}}
106
+
107
+ ## Key File Types
108
+
109
+ {{#each file_type_patterns}}
110
+
111
+ ### {{file_type}}
112
+
113
+ - **Pattern:** `{{pattern}}`
114
+ - **Purpose:** {{purpose}}
115
+ - **Examples:** {{examples}}
116
+ {{/each}}
117
+
118
+ ## Asset Locations
119
+
120
+ {{#if has_assets}}
121
+ {{#each asset_locations}}
122
+
123
+ - **{{asset_type}}**: `{{location}}` ({{file_count}} files, {{total_size}})
124
+ {{/each}}
125
+ {{else}}
126
+ No significant assets detected.
127
+ {{/if}}
128
+
129
+ ## Configuration Files
130
+
131
+ {{#each config_files}}
132
+
133
+ - **`{{path}}`**: {{description}}
134
+ {{/each}}
135
+
136
+ ## Notes for Development
137
+
138
+ {{development_notes}}
139
+
140
+ ---
141
+
142
+ _Generated using Wize Dev Kit `document-project` workflow_
@@ -28,6 +28,27 @@ Skip:
28
28
  - `git log --since="1 year ago" --oneline | wc -l` to scope.
29
29
  - Any prior README / ARCHITECTURE / docs that exist.
30
30
 
31
+ ## CLI usage
32
+
33
+ ```bash
34
+ wize-dev-kit document-project # quick baseline (default)
35
+ wize-dev-kit document-project quick # same as default
36
+ wize-dev-kit document-project initial_scan # pattern-only initial scan
37
+ wize-dev-kit document-project initial_scan deep # reads critical directories
38
+ wize-dev-kit document-project initial_scan exhaustive # reads all source files in batches
39
+ wize-dev-kit document-project full_rescan # archives old state, re-runs initial_scan
40
+ wize-dev-kit document-project deep_dive --target src/tools/installer
41
+ ```
42
+
43
+ ## Modes
44
+
45
+ | Mode | What it does | Scan levels |
46
+ |---|---|---|
47
+ | `quick` | Writes the 6 baseline files. Does not read source files. | `quick` only |
48
+ | `initial_scan` | Classifies project type, writes index + overview + source tree + conditional docs. | `quick`, `deep`, `exhaustive` |
49
+ | `full_rescan` | Archives `project-scan-report.json` and re-runs `initial_scan`. | `quick`, `deep`, `exhaustive` |
50
+ | `deep_dive` | Exhaustive analysis of a specific folder/file/feature. | `exhaustive` |
51
+
31
52
  ## Outputs
32
53
 
33
54
  - `.wize/knowledge/document-project/overview.md` — what the project is, who uses it, how big it is.
@@ -36,6 +57,8 @@ Skip:
36
57
  - `.wize/knowledge/document-project/dependencies.md` — runtime deps + dev deps + their roles.
37
58
  - `.wize/knowledge/document-project/risk-spots.md` — areas of concentrated complexity, undocumented behavior, or known fragility.
38
59
  - `.wize/knowledge/document-project/open-questions.md` — things the code doesn't answer; route to humans.
60
+ - `.wize/knowledge/document-project/index.md` — master navigation with `_(To be generated)_` markers for missing conditional docs.
61
+ - `.wize/knowledge/document-project/project-scan-report.json` — resume state.
39
62
 
40
63
  ## Steps
41
64
 
@@ -0,0 +1,14 @@
1
+ # Wize Dev Kit — overrides for the built-in workflow "wize-domain-research".
2
+ # DO NOT EDIT in the installed kit; copy to .wize/custom/workflows/wize-domain-research/
3
+ # for project-level overrides.
4
+
5
+ [workflow]
6
+
7
+ activation_steps_prepend = []
8
+ activation_steps_append = []
9
+
10
+ persistent_facts = [
11
+ "file:{project-root}/.wize/planning/brief.md",
12
+ ]
13
+
14
+ on_complete = ""
@@ -0,0 +1,49 @@
1
+ # Step 1: Domain Research Scope Confirmation
2
+
3
+ ## Rules
4
+
5
+ - 🛑 Never generate content without user confirmation.
6
+ - 📖 Always read the complete step file before acting.
7
+ - 🔍 Scope confirmation only.
8
+ - ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
9
+
10
+ ## Task
11
+
12
+ Confirm domain research scope.
13
+
14
+ ## Execution
15
+
16
+ Present:
17
+
18
+ ```
19
+ I understand you want domain/industry research for {{research_topic}}.
20
+
21
+ This research will cover:
22
+ ✅ Domain overview and ecosystem
23
+ ✅ Competitive landscape
24
+ ✅ Regulatory and compliance considerations
25
+ ✅ Technical trends
26
+ ✅ Strategic implications
27
+
28
+ [C] Continue — begin domain research with this scope
29
+ ```
30
+
31
+ On [C], append the scope confirmation, update `stepsCompleted: [1]`, and load `./domain-steps/step-02-domain-analysis.md`.
32
+
33
+ ## Append
34
+
35
+ ```markdown
36
+ ## Domain Research Scope Confirmation
37
+
38
+ **Research Topic:** {{research_topic}}
39
+ **Research Goals:** {{research_goals}}
40
+
41
+ **Scope:**
42
+ - Domain overview and ecosystem
43
+ - Competitive landscape
44
+ - Regulatory and compliance considerations
45
+ - Technical trends
46
+ - Strategic implications
47
+
48
+ **Scope Confirmed:** {{date}}
49
+ ```
@@ -0,0 +1,39 @@
1
+ # Step 2: Domain Analysis
2
+
3
+ ## Rules
4
+
5
+ - 🌐 Search the web to verify claims.
6
+ - 📝 Write findings to the document immediately.
7
+ - ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
8
+
9
+ ## Task
10
+
11
+ Analyze the domain ecosystem for {{research_topic}}.
12
+
13
+ ## Execution
14
+
15
+ Search for:
16
+
17
+ - "{{research_topic}} industry overview"
18
+ - "{{research_topic}} market size"
19
+ - "{{research_topic}} value chain"
20
+
21
+ Synthesize and append:
22
+
23
+ ```markdown
24
+ ## Domain Analysis
25
+
26
+ ### Industry Overview
27
+ ...
28
+
29
+ ### Market Size and Growth
30
+ ...
31
+
32
+ ### Value Chain
33
+ ...
34
+
35
+ ### Source Citations
36
+ ...
37
+ ```
38
+
39
+ Update `stepsCompleted: [1, 2]` and load `./domain-steps/step-03-competitive-landscape.md`.
@@ -0,0 +1,39 @@
1
+ # Step 3: Competitive Landscape
2
+
3
+ ## Rules
4
+
5
+ - 🌐 Search the web to verify claims.
6
+ - 📝 Write findings to the document immediately.
7
+ - ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
8
+
9
+ ## Task
10
+
11
+ Map the competitive landscape for {{research_topic}}.
12
+
13
+ ## Execution
14
+
15
+ Search for:
16
+
17
+ - "{{research_topic}} key players"
18
+ - "{{research_topic}} market share"
19
+ - "{{research_topic}} industry leaders"
20
+
21
+ Synthesize and append:
22
+
23
+ ```markdown
24
+ ## Competitive Landscape
25
+
26
+ ### Key Players
27
+ ...
28
+
29
+ ### Market Positioning
30
+ ...
31
+
32
+ ### Barriers to Entry
33
+ ...
34
+
35
+ ### Source Citations
36
+ ...
37
+ ```
38
+
39
+ Update `stepsCompleted: [1, 2, 3]` and load `./domain-steps/step-04-regulatory-focus.md`.
@@ -0,0 +1,39 @@
1
+ # Step 4: Regulatory Focus
2
+
3
+ ## Rules
4
+
5
+ - 🌐 Search the web to verify claims.
6
+ - 📝 Write findings to the document immediately.
7
+ - ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
8
+
9
+ ## Task
10
+
11
+ Identify regulatory and compliance considerations for {{research_topic}}.
12
+
13
+ ## Execution
14
+
15
+ Search for:
16
+
17
+ - "{{research_topic}} regulations"
18
+ - "{{research_topic}} compliance requirements"
19
+ - "{{research_topic}} GDPR / LGPD / SOC2"
20
+
21
+ Synthesize and append:
22
+
23
+ ```markdown
24
+ ## Regulatory Focus
25
+
26
+ ### Applicable Regulations
27
+ ...
28
+
29
+ ### Compliance Requirements
30
+ ...
31
+
32
+ ### Risk Implications
33
+ ...
34
+
35
+ ### Source Citations
36
+ ...
37
+ ```
38
+
39
+ Update `stepsCompleted: [1, 2, 3, 4]` and load `./domain-steps/step-05-technical-trends.md`.
@@ -0,0 +1,39 @@
1
+ # Step 5: Technical Trends
2
+
3
+ ## Rules
4
+
5
+ - 🌐 Search the web to verify claims.
6
+ - 📝 Write findings to the document immediately.
7
+ - ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
8
+
9
+ ## Task
10
+
11
+ Identify technical trends shaping {{research_topic}}.
12
+
13
+ ## Execution
14
+
15
+ Search for:
16
+
17
+ - "{{research_topic}} technology trends"
18
+ - "{{research_topic}} digital transformation"
19
+ - "{{research_topic}} emerging technologies"
20
+
21
+ Synthesize and append:
22
+
23
+ ```markdown
24
+ ## Technical Trends
25
+
26
+ ### Current Technology Adoption
27
+ ...
28
+
29
+ ### Emerging Technologies
30
+ ...
31
+
32
+ ### Implications for Product Architecture
33
+ ...
34
+
35
+ ### Source Citations
36
+ ...
37
+ ```
38
+
39
+ Update `stepsCompleted: [1, 2, 3, 4, 5]` and load `./domain-steps/step-06-research-synthesis.md`.