wize-dev-kit 0.16.0 → 0.17.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 (235) hide show
  1. package/AGENTS.md +37 -0
  2. package/ARCH.md +77 -24
  3. package/CHANGELOG.md +14 -0
  4. package/DECISIONS.md +27 -1
  5. package/README.es.md +296 -0
  6. package/README.md +3 -2
  7. package/README.pt-BR.md +294 -0
  8. package/ROSTER.md +11 -3
  9. package/adapters/README.md +9 -7
  10. package/adapters/antigravity/README.md +5 -5
  11. package/adapters/claude-code/README.md +1 -1
  12. package/adapters/codex/README.md +5 -5
  13. package/adapters/codex/adapter.yaml +1 -1
  14. package/adapters/codex/render.js +1 -1
  15. package/adapters/continue/README.md +5 -5
  16. package/adapters/cursor/README.md +2 -2
  17. package/adapters/generic/README.md +1 -1
  18. package/adapters/hermes/README.md +23 -0
  19. package/adapters/hermes/adapter.yaml +8 -0
  20. package/adapters/hermes/render.js +17 -0
  21. package/adapters/kimi-code/README.md +5 -5
  22. package/adapters/kimi-code/render.js +2 -2
  23. package/adapters/kiro/README.md +30 -0
  24. package/adapters/kiro/adapter.yaml +8 -0
  25. package/adapters/kiro/render.js +21 -0
  26. package/adapters/opencode/README.md +3 -3
  27. package/adapters/opencode/render.js +27 -1
  28. package/adapters/windsurf/README.md +3 -3
  29. package/docs/harnesses/antigravity.md +20 -0
  30. package/docs/harnesses/antigravity.pt-BR.md +20 -0
  31. package/docs/harnesses/claude-code.md +23 -0
  32. package/docs/harnesses/claude-code.pt-BR.md +23 -0
  33. package/docs/harnesses/codex.md +21 -0
  34. package/docs/harnesses/codex.pt-BR.md +21 -0
  35. package/docs/harnesses/continue.md +21 -0
  36. package/docs/harnesses/continue.pt-BR.md +21 -0
  37. package/docs/harnesses/cursor.md +22 -0
  38. package/docs/harnesses/cursor.pt-BR.md +22 -0
  39. package/docs/harnesses/generic.md +20 -0
  40. package/docs/harnesses/generic.pt-BR.md +20 -0
  41. package/docs/harnesses/hermes.md +26 -0
  42. package/docs/harnesses/hermes.pt-BR.md +26 -0
  43. package/docs/harnesses/kimi-code.md +19 -0
  44. package/docs/harnesses/kimi-code.pt-BR.md +19 -0
  45. package/docs/harnesses/kiro.md +26 -0
  46. package/docs/harnesses/kiro.pt-BR.md +26 -0
  47. package/docs/harnesses/opencode.md +31 -0
  48. package/docs/harnesses/opencode.pt-BR.md +31 -0
  49. package/docs/harnesses/windsurf.md +22 -0
  50. package/docs/harnesses/windsurf.pt-BR.md +22 -0
  51. package/package.json +1 -1
  52. package/schemas/agent.schema.json +2 -2
  53. package/schemas/workflow.schema.json +1 -1
  54. package/src/app-overlay/wize-app-release-channels/workflow.md +2 -0
  55. package/src/app-overlay/wize-app-scaffold/workflow.md +2 -0
  56. package/src/app-overlay/wize-app-store-listing/workflow.md +2 -0
  57. package/src/builder-skills/wize-create-agent/workflow.md +2 -0
  58. package/src/builder-skills/wize-create-skill/workflow.md +2 -0
  59. package/src/builder-skills/wize-create-workflow/workflow.md +2 -0
  60. package/src/core-skills/wize-advanced-elicitation/skill.md +2 -0
  61. package/src/core-skills/wize-brainstorming/skill.md +2 -0
  62. package/src/core-skills/wize-customize/skill.md +116 -0
  63. package/src/core-skills/wize-editorial-review-prose/skill.md +94 -0
  64. package/src/core-skills/wize-editorial-review-structure/skill.md +99 -0
  65. package/src/core-skills/wize-grill/skill.md +77 -0
  66. package/src/core-skills/wize-index-docs/skill.md +119 -0
  67. package/src/core-skills/wize-pre-pr-check/skill.md +134 -0
  68. package/src/core-skills/wize-review-adversarial/skill.md +3 -0
  69. package/src/core-skills/wize-review-edge-case-hunter/skill.md +115 -0
  70. package/src/core-skills/wize-shard-doc/skill.md +2 -0
  71. package/src/core-skills/wize-spec/assets/headless-schemas.md +39 -0
  72. package/src/core-skills/wize-spec/assets/spec-template.md +40 -0
  73. package/src/core-skills/wize-spec/customize.toml +20 -0
  74. package/src/core-skills/wize-spec/skill.md +112 -0
  75. package/src/method-skills/1-analysis/wize-agent-analyst/agent.yaml +3 -0
  76. package/src/method-skills/1-analysis/wize-document-project/documentation-requirements.csv +12 -0
  77. package/src/method-skills/1-analysis/wize-document-project/templates/api-contracts-template.md +38 -0
  78. package/src/method-skills/1-analysis/wize-document-project/templates/architecture-template.md +54 -0
  79. package/src/method-skills/1-analysis/wize-document-project/templates/component-inventory-template.md +40 -0
  80. package/src/method-skills/1-analysis/wize-document-project/templates/contribution-guide-template.md +34 -0
  81. package/src/method-skills/1-analysis/wize-document-project/templates/data-models-template.md +36 -0
  82. package/src/method-skills/1-analysis/wize-document-project/templates/deep-dive-template.md +312 -0
  83. package/src/method-skills/1-analysis/wize-document-project/templates/deployment-guide-template.md +42 -0
  84. package/src/method-skills/1-analysis/wize-document-project/templates/development-guide-template.md +61 -0
  85. package/src/method-skills/1-analysis/wize-document-project/templates/index-template.md +185 -0
  86. package/src/method-skills/1-analysis/wize-document-project/templates/project-overview-template.md +110 -0
  87. package/src/method-skills/1-analysis/wize-document-project/templates/project-scan-report-schema.json +159 -0
  88. package/src/method-skills/1-analysis/wize-document-project/templates/source-tree-template.md +142 -0
  89. package/src/method-skills/1-analysis/wize-document-project/workflow.md +213 -20
  90. package/src/method-skills/1-analysis/wize-domain-research/customize.toml +14 -0
  91. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-01-init.md +49 -0
  92. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md +39 -0
  93. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-03-competitive-landscape.md +39 -0
  94. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md +39 -0
  95. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md +39 -0
  96. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md +43 -0
  97. package/src/method-skills/1-analysis/wize-domain-research/research.template.md +31 -0
  98. package/src/method-skills/1-analysis/wize-domain-research/workflow.md +58 -0
  99. package/src/method-skills/1-analysis/wize-market-research/customize.toml +14 -0
  100. package/src/method-skills/1-analysis/wize-market-research/research.template.md +31 -0
  101. package/src/method-skills/1-analysis/wize-market-research/steps/step-01-init.md +57 -0
  102. package/src/method-skills/1-analysis/wize-market-research/steps/step-02-customer-behavior.md +39 -0
  103. package/src/method-skills/1-analysis/wize-market-research/steps/step-03-customer-pain-points.md +37 -0
  104. package/src/method-skills/1-analysis/wize-market-research/steps/step-04-customer-decisions.md +39 -0
  105. package/src/method-skills/1-analysis/wize-market-research/steps/step-05-competitive-analysis.md +37 -0
  106. package/src/method-skills/1-analysis/wize-market-research/steps/step-06-research-completion.md +47 -0
  107. package/src/method-skills/1-analysis/wize-market-research/workflow.md +66 -0
  108. package/src/method-skills/1-analysis/wize-prfaq/workflow.md +152 -11
  109. package/src/method-skills/1-analysis/wize-product-brief/workflow.md +92 -19
  110. package/src/method-skills/1-analysis/wize-refresh-knowledge/workflow.md +129 -0
  111. package/src/method-skills/1-analysis/wize-research/workflow.md +39 -12
  112. package/src/method-skills/1-analysis/wize-technical-research/customize.toml +14 -0
  113. package/src/method-skills/1-analysis/wize-technical-research/research.template.md +31 -0
  114. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-01-init.md +49 -0
  115. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-02-technical-overview.md +45 -0
  116. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-03-integration-patterns.md +39 -0
  117. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-04-architectural-patterns.md +39 -0
  118. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-05-implementation-research.md +42 -0
  119. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-06-research-synthesis.md +46 -0
  120. package/src/method-skills/1-analysis/wize-technical-research/workflow.md +60 -0
  121. package/src/method-skills/1-analysis/wize-trigger-map/workflow.md +82 -16
  122. package/src/method-skills/2-plan-workflows/wize-create-prd/workflow.md +135 -23
  123. package/src/method-skills/2-plan-workflows/wize-edit-prd/workflow.md +110 -0
  124. package/src/method-skills/2-plan-workflows/wize-ux-design/workflow.md +134 -28
  125. package/src/method-skills/2-plan-workflows/wize-ux-scenarios/workflow.md +93 -15
  126. package/src/method-skills/2-plan-workflows/wize-validate-prd/workflow.md +108 -12
  127. package/src/method-skills/3-solutioning/wize-check-implementation-readiness/workflow.md +103 -11
  128. package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md +41 -0
  129. package/src/method-skills/3-solutioning/wize-create-architecture/customize.toml +20 -0
  130. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01-init.md +95 -0
  131. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01b-continue.md +32 -0
  132. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-02-context.md +126 -0
  133. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-03-starter.md +110 -0
  134. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-04-decisions.md +129 -0
  135. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-05-patterns.md +109 -0
  136. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-06-structure.md +97 -0
  137. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-07-validation.md +124 -0
  138. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-08-complete.md +59 -0
  139. package/src/method-skills/3-solutioning/wize-create-architecture/workflow.md +55 -48
  140. package/src/method-skills/3-solutioning/wize-create-epics-and-stories/workflow.md +154 -15
  141. package/src/method-skills/3-solutioning/wize-design-system/workflow.md +184 -22
  142. package/src/method-skills/3-solutioning/wize-nfr-principles/workflow.md +145 -17
  143. package/src/method-skills/3-solutioning/wize-project-context/workflow.md +120 -0
  144. package/src/method-skills/3-solutioning/wize-tech-vision/workflow.md +130 -22
  145. package/src/method-skills/4-implementation/wize-agent-dev/persona.md +12 -0
  146. package/src/method-skills/4-implementation/wize-changelog/workflow.md +184 -0
  147. package/src/method-skills/4-implementation/wize-checkpoint-preview/workflow.md +117 -0
  148. package/src/method-skills/4-implementation/wize-code-review/customize.toml +21 -0
  149. package/src/method-skills/4-implementation/wize-code-review/steps/step-01-gather-context.md +64 -0
  150. package/src/method-skills/4-implementation/wize-code-review/steps/step-02-review.md +40 -0
  151. package/src/method-skills/4-implementation/wize-code-review/steps/step-03-triage.md +43 -0
  152. package/src/method-skills/4-implementation/wize-code-review/steps/step-04-present.md +100 -0
  153. package/src/method-skills/4-implementation/wize-code-review/workflow.md +54 -12
  154. package/src/method-skills/4-implementation/wize-correct-course/workflow.md +93 -0
  155. package/src/method-skills/4-implementation/wize-create-story/workflow.md +154 -10
  156. package/src/method-skills/4-implementation/wize-dev-story/workflow.md +185 -17
  157. package/src/method-skills/4-implementation/wize-investigate/workflow.md +123 -0
  158. package/src/method-skills/4-implementation/wize-quick-dev/workflow.md +136 -18
  159. package/src/method-skills/4-implementation/wize-release/workflow.md +162 -0
  160. package/src/method-skills/4-implementation/wize-retrospective/workflow.md +114 -10
  161. package/src/method-skills/4-implementation/wize-sprint-planning/workflow.md +78 -11
  162. package/src/method-skills/4-implementation/wize-sprint-status/workflow.md +45 -11
  163. package/src/method-skills/module.yaml +28 -0
  164. package/src/orchestrator-skills/module.yaml +7 -1
  165. package/src/orchestrator-skills/wize/skill.md +164 -0
  166. package/src/orchestrator-skills/wize-check/skill.md +98 -0
  167. package/src/orchestrator-skills/wize-help/skill.md +227 -67
  168. package/src/orchestrator-skills/wize-onboarding/workflow.md +78 -14
  169. package/src/orchestrator-skills/wize-orchestrator/agent.yaml +2 -0
  170. package/src/orchestrator-skills/wize-orchestrator/persona.md +44 -3
  171. package/src/orchestrator-skills/wize-party-mode/workflow.md +2 -0
  172. package/src/security-overlay/_shared/allowlist.js +154 -0
  173. package/src/security-overlay/_shared/backlog.js +169 -0
  174. package/src/security-overlay/_shared/cli-runner.js +87 -0
  175. package/src/security-overlay/_shared/cvss.js +108 -0
  176. package/src/security-overlay/_shared/detect.js +125 -0
  177. package/src/security-overlay/_shared/install-script.js +205 -0
  178. package/src/security-overlay/_shared/invoke-phase.js +86 -0
  179. package/src/security-overlay/_shared/owasp.js +56 -0
  180. package/src/security-overlay/_shared/partial.js +225 -0
  181. package/src/security-overlay/_shared/preflight.js +175 -0
  182. package/src/security-overlay/_shared/scope-gate.js +172 -0
  183. package/src/security-overlay/_shared/scope-parser.js +147 -0
  184. package/src/security-overlay/agents/red-teamer/agent.yaml +54 -0
  185. package/src/security-overlay/agents/red-teamer/persona.md +49 -0
  186. package/src/security-overlay/data/common.txt +115 -0
  187. package/src/security-overlay/data/owasp-top10.json +15 -0
  188. package/src/security-overlay/data/tool-allowlist.json +31 -0
  189. package/src/security-overlay/skills/wize-sec-enumerate/scripts/run-enumerate.js +180 -0
  190. package/src/security-overlay/skills/wize-sec-enumerate/skill.md +34 -0
  191. package/src/security-overlay/skills/wize-sec-exploit/data/common.txt +117 -0
  192. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-ffuf.js +147 -0
  193. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nikto.js +145 -0
  194. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nuclei.js +176 -0
  195. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-sqlmap.js +139 -0
  196. package/src/security-overlay/skills/wize-sec-pentest/scripts/run-pipeline.js +184 -0
  197. package/src/security-overlay/skills/wize-sec-pentest/skill.md +54 -0
  198. package/src/security-overlay/skills/wize-sec-recon/scripts/run-gitleaks.js +139 -0
  199. package/src/security-overlay/skills/wize-sec-recon/scripts/run-osv.js +227 -0
  200. package/src/security-overlay/skills/wize-sec-recon/scripts/run-recon.js +162 -0
  201. package/src/security-overlay/skills/wize-sec-recon/skill.md +37 -0
  202. package/src/security-overlay/skills/wize-sec-report/scripts/render-report.js +1033 -0
  203. package/src/security-overlay/skills/wize-sec-scope/scripts/generate-scope.js +106 -0
  204. package/src/security-overlay/skills/wize-sec-scope/skill.md +52 -0
  205. package/src/tea-skills/wize-qa-generate-e2e-tests/workflow.md +121 -0
  206. package/src/tea-skills/wize-tea-design/workflow.md +107 -13
  207. package/src/tea-skills/wize-tea-gate/workflow.md +118 -25
  208. package/src/tea-skills/wize-tea-nfr/workflow.md +107 -14
  209. package/src/tea-skills/wize-tea-review/workflow.md +123 -13
  210. package/src/tea-skills/wize-tea-risk/workflow.md +113 -10
  211. package/src/tea-skills/wize-tea-trace/workflow.md +86 -12
  212. package/src/web-overlay/wize-web-deploy/workflow.md +2 -0
  213. package/src/web-overlay/wize-web-scaffold/workflow.md +2 -0
  214. package/src/web-overlay/wize-web-seo-audit/workflow.md +2 -0
  215. package/tools/check-eli5-all-adapters.js +3 -2
  216. package/tools/installer/baseline.js +138 -0
  217. package/tools/installer/commands/agent.js +197 -0
  218. package/tools/installer/commands/doctor.js +321 -0
  219. package/tools/installer/commands/document-project.js +93 -0
  220. package/tools/installer/commands/sync.js +45 -0
  221. package/tools/installer/commands/update.js +172 -0
  222. package/tools/installer/document-project/batch-scanner.js +93 -0
  223. package/tools/installer/document-project/classify.js +170 -0
  224. package/tools/installer/document-project/modes/deep-dive.js +196 -0
  225. package/tools/installer/document-project/modes/full-rescan.js +15 -0
  226. package/tools/installer/document-project/modes/initial-scan.js +100 -0
  227. package/tools/installer/document-project/modes/quick.js +211 -0
  228. package/tools/installer/document-project/render-index.js +101 -0
  229. package/tools/installer/document-project/state.js +110 -0
  230. package/tools/installer/onboarding.js +14 -20
  231. package/tools/installer/render-shared.js +159 -15
  232. package/tools/installer/setup-helpers.js +2 -0
  233. package/tools/installer/validators/run-all.js +3 -2
  234. package/tools/installer/version-check.js +117 -0
  235. package/tools/installer/wize-cli.js +501 -70
@@ -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_
@@ -1,36 +1,229 @@
1
1
  ---
2
+
2
3
  code: wize-document-project
4
+ description: "Use quando o kit for instalado em um repositório existente (brownfield) e precisar documentar o estado atual do projeto."
3
5
  name: Document Project (brownfield baseline)
4
6
  phase: 1-analysis
5
- owner: wize-agent-analyst # Pepper Potts (paired with Peggy Carter)
6
- status: stub
7
+ owner: wize-agent-analyst # Pepper Potts (paired with Peggy Carter and Tony Stark)
8
+ status: ready
7
9
  ---
8
10
 
9
11
  # Document Project — Brownfield Baseline
10
12
 
11
- **Goal.** When the kit is installed in an existing codebase, baseline the current state so subsequent planning isn't blind. Produces an "as-is" snapshot that Tony reads before drawing the "to-be."
13
+ **Goal.** When the kit is installed in an existing repo, baseline the **as-is** state so the rest of the lifecycle isn't blind. Produces a structured snapshot Tony can read before designing the *to-be*, and a knowledge base Wizer can answer questions from.
14
+
15
+ Pepper drives discovery. Peggy edits prose. Tony validates architecture interpretation. Output lands in `.wize/knowledge/document-project/`.
12
16
 
13
17
  ## When to run
14
- - Installer detected `package.json` / `pubspec.yaml` / `Cargo.toml` / `go.mod` + non-trivial `src/` history.
15
- - User explicitly requests `/wize-document-project`.
18
+
19
+ - The installer detected brownfield signals (`package.json`, `src/`, history) and offered to run this. ✓
20
+ - The team is onboarding to a codebase nobody fully owns. ✓
21
+ - A previous re-platforming decision left the docs stale. ✓
22
+
23
+ Skip:
24
+ - Greenfield (nothing to document yet).
25
+ - Repos < 200 LOC.
16
26
 
17
27
  ## Inputs
18
- - The target repo (root)
19
- - `git log --oneline -50`
20
- - Existing READMEs / ARCHITECTURE / docs
28
+
29
+ - The target repo (root).
30
+ - `git log --since="1 year ago" --oneline | wc -l` to scope.
31
+ - Any prior README / ARCHITECTURE / docs that exist.
32
+
33
+ ## CLI usage
34
+
35
+ ```bash
36
+ wize-dev-kit document-project # quick baseline (default)
37
+ wize-dev-kit document-project quick # same as default
38
+ wize-dev-kit document-project initial_scan # pattern-only initial scan
39
+ wize-dev-kit document-project initial_scan deep # reads critical directories
40
+ wize-dev-kit document-project initial_scan exhaustive # reads all source files in batches
41
+ wize-dev-kit document-project full_rescan # archives old state, re-runs initial_scan
42
+ wize-dev-kit document-project deep_dive --target src/tools/installer
43
+ ```
44
+
45
+ ## Modes
46
+
47
+ | Mode | What it does | Scan levels |
48
+ |---|---|---|
49
+ | `quick` | Writes the 6 baseline files. Does not read source files. | `quick` only |
50
+ | `initial_scan` | Classifies project type, writes index + overview + source tree + conditional docs. | `quick`, `deep`, `exhaustive` |
51
+ | `full_rescan` | Archives `project-scan-report.json` and re-runs `initial_scan`. | `quick`, `deep`, `exhaustive` |
52
+ | `deep_dive` | Exhaustive analysis of a specific folder/file/feature. | `exhaustive` |
21
53
 
22
54
  ## Outputs
23
- - `.wize/knowledge/document-project/overview.md`
24
- - `.wize/knowledge/document-project/architecture-snapshot.md`
25
- - `.wize/knowledge/document-project/conventions.md`
26
- - `.wize/knowledge/document-project/open-questions.md`
55
+
56
+ - `.wize/knowledge/document-project/overview.md` — what the project is, who uses it, how big it is.
57
+ - `.wize/knowledge/document-project/architecture-snapshot.md` — current components, integrations, data flow.
58
+ - `.wize/knowledge/document-project/conventions.md` — coding/test/folder conventions actually used.
59
+ - `.wize/knowledge/document-project/dependencies.md` — runtime deps + dev deps + their roles.
60
+ - `.wize/knowledge/document-project/risk-spots.md` — areas of concentrated complexity, undocumented behavior, or known fragility.
61
+ - `.wize/knowledge/document-project/open-questions.md` — things the code doesn't answer; route to humans.
62
+ - `.wize/knowledge/document-project/index.md` — master navigation with `_(To be generated)_` markers for missing conditional docs.
63
+ - `.wize/knowledge/document-project/project-scan-report.json` — resume state.
27
64
 
28
65
  ## Steps
29
- 1. **Inventory.** List packages, top-level modules, infra files, entry points.
30
- 2. **Architecture snapshot.** Components and integrations as currently exist. Diagrams welcome.
31
- 3. **Conventions.** Coding/test/folder conventions surfaced from a sample of files.
32
- 4. **Open questions.** Things the code doesn't answer; route to humans.
33
- 5. **Hand off.** Pepper to Wizer: "baseline ready." Then Wizer decides next agent.
34
-
35
- ## Pairing
36
- Peggy Carter edits prose for clarity and structure. Tony Stark may be looped in to confirm architecture interpretation.
66
+
67
+ ### 1. Inventory (Pepper, mechanical)
68
+
69
+ A first pass that requires no judgment, just listing.
70
+
71
+ ```
72
+ ls -la # top-level layout
73
+ cat package.json | jq '.dependencies, .devDependencies, .scripts'
74
+ git log --since="3 months ago" --oneline | wc -l
75
+ git log --pretty=format:"%an" | sort | uniq -c | sort -rn | head
76
+ find . -name "*.test.*" -o -name "*.spec.*" | wc -l
77
+ find . -type f -name "*.md" | head
78
+ ```
79
+
80
+ Write what you found in `overview.md` (no opinions yet).
81
+
82
+ ### 2. Architecture snapshot (Pepper + Tony)
83
+
84
+ Walk the repo top-down. Identify:
85
+ - **Entry points** (CLI, server, worker, build).
86
+ - **Components** (where the boundaries are — by folder, by package, by feature).
87
+ - **Integrations** (databases, queues, external APIs, third-party SDKs).
88
+ - **Data flow** for at least one end-to-end critical path (e.g., a typical user request).
89
+
90
+ Draw or describe. Diagrams in ASCII or Mermaid are fine — the point is shared mental model.
91
+
92
+ Tony validates. If the snapshot misnames a pattern, fix it.
93
+
94
+ ### 3. Conventions (Peggy)
95
+
96
+ Sample 5–10 files across the repo. Note:
97
+ - Naming (camelCase / snake_case / kebab-case).
98
+ - Folder structure (feature-first / layer-first).
99
+ - Test placement (co-located / `__tests__` / `test/`).
100
+ - Comment style (JSDoc / TSDoc / inline).
101
+ - Import ordering (alphabetical / by source).
102
+ - Logging / error handling patterns.
103
+ - Linter / formatter config (eslint, prettier, etc.).
104
+
105
+ Write the convention found, not the convention you'd prefer.
106
+
107
+ ### 4. Dependencies (Pepper)
108
+
109
+ For each runtime dep, write one line:
110
+ - Name, version, what it does in this repo, whether it's load-bearing.
111
+
112
+ Flag:
113
+ - Deps without a clear role.
114
+ - Deps with known CVEs (run `npm audit --omit=dev` and capture).
115
+ - Multiple deps doing the same job (`lodash` + `ramda`, both date libs, etc.).
116
+ - Deps not maintained in > 2 years (link to last release).
117
+
118
+ ### 5. Risk spots (Pepper + Tony)
119
+
120
+ For each, name the area + the symptom + the likely cause + how confident you are:
121
+
122
+ | Area | Symptom | Likely cause | Confidence |
123
+ |---|---|---|---|
124
+ | `src/legacy/billing/` | 2k-line file with no tests | rushed migration in 2024 | high |
125
+ | Webhooks handler | Silent retries | no idempotency layer | medium |
126
+ | Auth middleware | Custom JWT parsing | predates the library that handles it | high |
127
+
128
+ This is *not* a refactor backlog. It's a map. Tony decides what to fix; this just makes the choices visible.
129
+
130
+ ### 6. Open questions (everyone)
131
+
132
+ Things the code does NOT answer:
133
+ - Why was this choice made?
134
+ - What's the SLA?
135
+ - Who's the owner of feature X?
136
+ - Are there secret configs we're missing?
137
+
138
+ Each question gets an owner (a human Pepper will ask). Route back via Wizer.
139
+
140
+ ### 7. Hand-off
141
+
142
+ - Mark all docs `status: baseline`.
143
+ - Tell Wizer: *"Baseline complete. Tony can read it before architecture work; Hill can read it before scoping."*
144
+
145
+ ## Conventions doc — template
146
+
147
+ ```markdown
148
+ ---
149
+ status: baseline
150
+ owner: Pepper Potts + Peggy Carter
151
+ created: YYYY-MM-DD
152
+ sampled: 8 files across src/, tests/, scripts/
153
+ ---
154
+
155
+ # Conventions (observed, not prescribed)
156
+
157
+ ## Naming
158
+ - Files: kebab-case (e.g., `user-profile.ts`).
159
+ - Classes: PascalCase.
160
+ - Functions: camelCase, verb-led.
161
+ - Constants: UPPER_SNAKE_CASE.
162
+
163
+ ## Folder structure
164
+ Feature-first: `src/features/<feature>/{index.ts, api.ts, ui.tsx, *.spec.ts}`.
165
+ Shared utilities in `src/shared/`.
166
+
167
+ ## Tests
168
+ Co-located with the file under test. `.spec.ts` for unit; `.e2e.ts` for end-to-end (separate runner).
169
+
170
+ ## Lint/format
171
+ `eslint.config.mjs` with `airbnb-base` + custom rules in `eslint.local.cjs`. Prettier with 2-space indent.
172
+
173
+ ## Observed deviations
174
+ - `src/legacy/billing/` doesn't follow feature-first; it predates the convention.
175
+ - Some files use `_test.ts` suffix instead of `.spec.ts` — older code.
176
+ ```
177
+
178
+ ## Update mode (how the baseline stays alive)
179
+
180
+ The first run of this workflow produces the **baseline**. Two complementary mechanisms keep it current after:
181
+
182
+ ### 1. Inline updates per story (the daily cadence)
183
+
184
+ Every `wize-dev-story` ends with a Knowledge Update step (step 8). If the story touched any of the 5 axes (architecture, conventions, risk-spots, dependencies, overview), Shuri appends 1–3 dated bullets to the matching `document-project/*.md` file **in the same PR**. Hawkeye verifies in `tea-review`; a touched-but-not-updated story gets a `KN-NN` finding at gate.
185
+
186
+ `wize-quick-dev` has a lighter version: only when a dep bump or a public rename actually shifts the baseline.
187
+
188
+ This produces dated bullets like:
189
+
190
+ ```markdown
191
+ ## 2026-06-12 — E01-S03
192
+ - Conventions: `data-testid="invite-*"` published as public contract.
193
+ - Risk: R-1 (mailer) mitigation confirmed.
194
+ ```
195
+
196
+ ### 2. Sprint-end refresh (the narrative cadence)
197
+
198
+ `wize-refresh-knowledge` runs at sprint end (triggered by `wize-help next` when it detects the sprint emptied). Pepper + Peggy consolidate the inline bullets into the narrative prose of each axis file, demote stale claims to a "Deprecated" section, freeze a sprint snapshot in `_history/{YYYY-Qn}/sprint-{N}.md`, and stamp `last_refreshed` in each file.
199
+
200
+ Result: the baseline reads like a single coherent document, not a chronological log. New devs can read it linearly and form a mental model. Forensics readers (six months later, asking "when did X change?") consult `_history/`.
201
+
202
+ ### File frontmatter convention
203
+
204
+ Each `document-project/*.md` file ships with:
205
+
206
+ ```yaml
207
+ ---
208
+ status: baseline
209
+ owner: Pepper Potts + Peggy Carter
210
+ created: 2026-04-02
211
+ last_refreshed: 2026-06-25
212
+ sampled: "wkly + sprint refresh"
213
+ ---
214
+ ```
215
+
216
+ `last_refreshed` tells the reader how much to trust the file vs the inline bullets accumulating since.
217
+
218
+ ## Anti-patterns Pepper rejects
219
+
220
+ - "TODO: document later." The baseline IS the documentation pass; later doesn't come.
221
+ - Romanticizing the code ("clean, modular"). Describe what you see; let Tony judge.
222
+ - Architecture diagrams that show what the team *wishes* exists. Diagram the real state.
223
+ - Risk-spot table with no confidence label. Without confidence, readers can't act.
224
+ - Open questions with no owner. They never get answered.
225
+ - Treating the baseline as one-shot. The mode + refresh exist precisely because point-in-time docs lie within weeks.
226
+
227
+ ## Hand-off
228
+
229
+ > Baseline is in `.wize/knowledge/document-project/`. Three risk spots flagged. Five open questions routed to the humans named per question. Tony can read this before drawing `architecture.md`; Hill can scope the PRD knowing what's already there.
@@ -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 = ""