wize-dev-kit 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/DECISIONS.md +13 -0
- package/README.md +9 -2
- package/package.json +1 -1
- package/src/core-skills/module.yaml +4 -0
- package/src/core-skills/wize-spec/assets/headless-schemas.md +39 -0
- package/src/core-skills/wize-spec/assets/spec-template.md +40 -0
- package/src/core-skills/wize-spec/customize.toml +20 -0
- package/src/core-skills/wize-spec/skill.md +110 -0
- package/src/method-skills/1-analysis/wize-domain-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-01-init.md +49 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-03-competitive-landscape.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md +39 -0
- package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md +43 -0
- package/src/method-skills/1-analysis/wize-domain-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-domain-research/workflow.md +51 -0
- package/src/method-skills/1-analysis/wize-market-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-market-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-01-init.md +57 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-02-customer-behavior.md +39 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-03-customer-pain-points.md +37 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-04-customer-decisions.md +39 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-05-competitive-analysis.md +37 -0
- package/src/method-skills/1-analysis/wize-market-research/steps/step-06-research-completion.md +47 -0
- package/src/method-skills/1-analysis/wize-market-research/workflow.md +59 -0
- package/src/method-skills/1-analysis/wize-technical-research/customize.toml +14 -0
- package/src/method-skills/1-analysis/wize-technical-research/research.template.md +31 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-01-init.md +49 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-02-technical-overview.md +45 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-03-integration-patterns.md +39 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-04-architectural-patterns.md +39 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-05-implementation-research.md +42 -0
- package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-06-research-synthesis.md +46 -0
- package/src/method-skills/1-analysis/wize-technical-research/workflow.md +53 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md +41 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/customize.toml +20 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01-init.md +95 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01b-continue.md +32 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-02-context.md +126 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-03-starter.md +110 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-04-decisions.md +129 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-05-patterns.md +109 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-06-structure.md +97 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-07-validation.md +124 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-08-complete.md +59 -0
- package/src/method-skills/3-solutioning/wize-create-architecture/workflow.md +38 -201
- package/src/method-skills/4-implementation/wize-code-review/customize.toml +21 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-01-gather-context.md +64 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-02-review.md +38 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-03-triage.md +43 -0
- package/src/method-skills/4-implementation/wize-code-review/steps/step-04-present.md +100 -0
- package/src/method-skills/4-implementation/wize-code-review/workflow.md +34 -89
- package/src/method-skills/module.yaml +19 -0
- package/tools/installer/wize-cli.js +34 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ Format inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.4.1] — 2026-06-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Installer no longer skips the "How should the agents call you?" prompt due to residual input from previous `prompts`-library questions.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Interactive install now detects AI harness CLIs on PATH and offers to launch `/wize-orchestrator` directly, showing the exact command (e.g. `claude -p /wize-orchestrator`).
|
|
17
|
+
|
|
18
|
+
## [0.4.0] — 2026-06-13
|
|
19
|
+
|
|
20
|
+
Adapts four BMAD Method step-based flows into the Wize universe: spec, architecture, code review, and research.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **`wize-spec`** (core skill) — distills any intent input into a canonical five-field `SPEC.md` (Why, Capabilities, Constraints, Non-goals, Success signal) plus optional companion files. Includes template and headless response schemas.
|
|
25
|
+
- **Vertical research skills** under `src/method-skills/1-analysis/`:
|
|
26
|
+
- `wize-market-research` — 6-step competition and customer research.
|
|
27
|
+
- `wize-domain-research` — 6-step industry, regulatory, and trend research.
|
|
28
|
+
- `wize-technical-research` — 6-step technology and architecture research.
|
|
29
|
+
- Registered new skills in `src/core-skills/module.yaml` and `src/method-skills/module.yaml`.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **`wize-create-architecture`** rewritten as an 8-step micro-file workflow: init → context → starter → decisions → patterns → structure → validation → complete. Old monolithic body archived in `.wize/knowledge/decisions/`.
|
|
34
|
+
- **`wize-code-review`** rewritten as a 4-step adversarial triage workflow: gather-context → review (Blind Hunter, Edge Case Hunter, Acceptance Auditor) → triage → present. Integrates with existing `wize-review-adversarial` and `wize-review-edge-case-hunter`.
|
|
35
|
+
- `README.md`, `DECISIONS.md`, and `.wize/knowledge/decisions/ADR-001-bmad-steps-import.md` document the import rationale and scope.
|
|
36
|
+
- `test/workflow-bodies.test.js` allowlists the short research dispatcher workflows.
|
|
37
|
+
|
|
38
|
+
### Tests
|
|
39
|
+
|
|
40
|
+
- Total: **222 passing**.
|
|
41
|
+
|
|
8
42
|
## [0.3.1] — 2026-06-13
|
|
9
43
|
|
|
10
44
|
Expands `wize-document-project` from a single lightweight baseline into a multi-mode documentation engine with project-type classification, resume state, and BMAD-equivalent templates.
|
package/DECISIONS.md
CHANGED
|
@@ -136,6 +136,19 @@
|
|
|
136
136
|
- **D7.5 — Localização das custom:** `.wize/custom/agents/{code}/`, `.wize/custom/skills/{code}/`, `.wize/custom/workflows/{code}/`. Estrutura espelha a do kit core.
|
|
137
137
|
- **D7.6 — Ponto de entrada:** `wize-dev-kit agent create` no CLI + skill nativo `wize-create-agent` chamável pelo Wizer dentro do IDE.
|
|
138
138
|
|
|
139
|
+
### Fase 8 — Importação de fluxos Steps do BMAD
|
|
140
|
+
|
|
141
|
+
- **D8.1 — Seleção:** dos fluxos de Steps do BMAD ainda não importados, selecionamos quatro para adaptação imediata:
|
|
142
|
+
- `bmad-spec` → `wize-spec` (core skill).
|
|
143
|
+
- `bmad-create-architecture` → `wize-create-architecture` reescrito em 8 steps (micro-file architecture).
|
|
144
|
+
- `bmad-code-review` → `wize-code-review` reescrito em 4 steps com triagem adversarial.
|
|
145
|
+
- Research do BMAD (`bmad-market-research`, `bmad-domain-research`, `bmad-technical-research`) → três skills verticais Wize em `src/method-skills/1-analysis/`.
|
|
146
|
+
- **D8.2 — Micro-file architecture:** workflows substituídos por step files auto-contidos em `steps/` ou `{vertical}-steps/`. Cada step controla frontmatter `stepsCompleted` e só avança com confirmação do usuário.
|
|
147
|
+
- **D8.3 — Manter dispatcher genérico:** `wize-research` continua existindo como skill genérico, mas as três vertentes oferecem passos estruturados e templates próprios.
|
|
148
|
+
- **D8.4 — Versionamento dos workflows antigos:** cópias dos `workflow.md` monolíticos de `wize-create-architecture` e `wize-code-review` são arquivadas em `.wize/knowledge/decisions/` para referência, não mantidas em produção.
|
|
149
|
+
- **D8.5 — Registro em catálogos:** skills adicionados a `src/core-skills/module.yaml` e `src/method-skills/module.yaml`; fluxos refletidos no `README.md`.
|
|
150
|
+
|
|
139
151
|
## Perguntas em aberto
|
|
140
152
|
|
|
141
153
|
_(serão preenchidas conforme a entrevista avança)_
|
|
154
|
+
|
package/README.md
CHANGED
|
@@ -83,6 +83,9 @@ Below is the canonical flow Wizer drives in a real session. Each step is a slash
|
|
|
83
83
|
2. /wize-product-brief Pepper turns raw demand into brief.md.
|
|
84
84
|
/wize-trigger-map Pepper maps user psychology → business goals (WDS).
|
|
85
85
|
/wize-research Pepper synthesizes external evidence (optional).
|
|
86
|
+
Or run a focused pass:
|
|
87
|
+
/wize-market-research, /wize-domain-research,
|
|
88
|
+
/wize-technical-research.
|
|
86
89
|
|
|
87
90
|
3. /wize-create-prd Maria Hill writes prd.md (goals, scope, ACs).
|
|
88
91
|
/wize-validate-prd Maria Hill (+ Mantis/Fury) signs off.
|
|
@@ -93,7 +96,8 @@ Below is the canonical flow Wizer drives in a real session. Each step is a slash
|
|
|
93
96
|
5. /wize-tech-vision Fury picks the stack family + non-negotiables.
|
|
94
97
|
/wize-nfr-principles Fury writes the NFR budget (perf, sec, a11y…).
|
|
95
98
|
|
|
96
|
-
6. /wize-create-architecture Tony writes architecture.md + ADRs
|
|
99
|
+
6. /wize-create-architecture Tony writes architecture.md + ADRs via 8 steps
|
|
100
|
+
(context → decisions → patterns → structure → validation).
|
|
97
101
|
/wize-design-system Mantis writes design-system/ (tokens + components).
|
|
98
102
|
/wize-create-epics-and-stories
|
|
99
103
|
Tony slices epics → stories (each has ACs).
|
|
@@ -113,6 +117,9 @@ Cross-cutting:
|
|
|
113
117
|
/wize-help Wizer figures out where you are and proposes
|
|
114
118
|
the next step (use anytime).
|
|
115
119
|
/wize-quick-dev Shuri takes a small fix without the full ride.
|
|
120
|
+
/wize-code-review Shuri runs an adversarial peer review (Blind Hunter,
|
|
121
|
+
Edge Case Hunter, Acceptance Auditor) before Hawkeye's TEA review.
|
|
122
|
+
/wize-spec Distill any intent into a canonical five-field spec.
|
|
116
123
|
/wize-party-mode Wizer convenes multi-persona for hard calls.
|
|
117
124
|
```
|
|
118
125
|
|
|
@@ -163,7 +170,7 @@ npx wize-dev-kit uninstall # remove .wize/ (your code is left untouched)
|
|
|
163
170
|
|
|
164
171
|
## Status
|
|
165
172
|
|
|
166
|
-
**v0.3.0+ — beta.** The core lifecycle is scaffolded
|
|
173
|
+
**v0.3.0+ — beta.** The core lifecycle is scaffolded, the `document-project` engine is wired, and selected BMAD step flows have been adapted into Wize skills: `wize-spec`, `wize-create-architecture` (8-step), `wize-code-review` (adversarial triage), and vertical research skills (`wize-market-research`, `wize-domain-research`, `wize-technical-research`). IDE adapters for Claude Code, Cursor, Windsurf, and others are regenerated automatically. Production-readiness target remains v0.5.0.
|
|
167
174
|
|
|
168
175
|
---
|
|
169
176
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "wize-dev-kit",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "Full-lifecycle AI-assisted development kit with Test Architect and Whiteport Design Studio embedded. Inspired by BMAD Method and WDS.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ai",
|
|
@@ -22,3 +22,7 @@ skills:
|
|
|
22
22
|
- code: wize-review-adversarial
|
|
23
23
|
name: "Adversarial Review"
|
|
24
24
|
description: "Red-team review of artifacts — challenges assumptions, surfaces edge cases."
|
|
25
|
+
- code: wize-spec
|
|
26
|
+
name: "Spec"
|
|
27
|
+
description: "Distills any intent input into a canonical five-field spec kernel + companions."
|
|
28
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Headless response schemas for wize-spec
|
|
2
|
+
|
|
3
|
+
Used when `wize-spec` is invoked non-interactively (headless).
|
|
4
|
+
|
|
5
|
+
## Create / Update
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"error_code": null,
|
|
10
|
+
"spec_path": "{project-root}/.wize/specs/spec-{slug}/SPEC.md",
|
|
11
|
+
"slug": "{slug}",
|
|
12
|
+
"capabilities": ["CAP-1", "CAP-2"],
|
|
13
|
+
"companions": ["glossary.md"],
|
|
14
|
+
"assumptions": [],
|
|
15
|
+
"open_questions": [],
|
|
16
|
+
"verdict": "Coherence: pass. Preservation: pass."
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Error codes
|
|
21
|
+
|
|
22
|
+
- `missing_slug` — headless caller did not provide a slug and it could not be derived.
|
|
23
|
+
- `insufficient_intent` — no input content provided.
|
|
24
|
+
- `too_sparse` — input too thin to distill; suggest `wize-product-brief` or `wize-create-prd`.
|
|
25
|
+
|
|
26
|
+
## Validate
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"error_code": null,
|
|
31
|
+
"violations": [
|
|
32
|
+
{
|
|
33
|
+
"rule": "4",
|
|
34
|
+
"message": "No explicit non-goals found."
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"verdict": "Coherence: 1 issue. Preservation: pass."
|
|
38
|
+
}
|
|
39
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: "{{slug}}"
|
|
3
|
+
status: draft
|
|
4
|
+
owner: "{{owner}}"
|
|
5
|
+
companions: []
|
|
6
|
+
sources: []
|
|
7
|
+
assumptions: []
|
|
8
|
+
open_questions: []
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# SPEC — {{slug}}
|
|
12
|
+
|
|
13
|
+
## Why
|
|
14
|
+
|
|
15
|
+
{{One paragraph: what problem this thing exists to solve and for whom.}}
|
|
16
|
+
|
|
17
|
+
## Capabilities
|
|
18
|
+
|
|
19
|
+
| ID | Intent | Success |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| CAP-1 | {{what the system does for the user}} | {{observable outcome that proves it works}} |
|
|
22
|
+
| CAP-2 | … | … |
|
|
23
|
+
|
|
24
|
+
## Constraints
|
|
25
|
+
|
|
26
|
+
- {{Constraint that bends a design decision.}}
|
|
27
|
+
- …
|
|
28
|
+
|
|
29
|
+
## Non-goals
|
|
30
|
+
|
|
31
|
+
- {{Explicitly out of scope.}}
|
|
32
|
+
- …
|
|
33
|
+
|
|
34
|
+
## Success signal
|
|
35
|
+
|
|
36
|
+
{{Concrete, testable or demonstrable signal that the spec is satisfied.}}
|
|
37
|
+
|
|
38
|
+
## Decision log
|
|
39
|
+
|
|
40
|
+
See `.decision-log.md`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Wize Dev Kit — overrides for the built-in skill "wize-spec".
|
|
2
|
+
# DO NOT EDIT in the installed kit; copy to .wize/custom/skills/wize-spec/
|
|
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 skill keeps in mind for the whole run.
|
|
14
|
+
persistent_facts = [
|
|
15
|
+
"file:{project-root}/.wize/knowledge/document-project/conventions.md",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
# Scalar executed when the spec is finalized and the decision-log verdict is written.
|
|
19
|
+
# Override wins. Leave empty for no custom post-completion behavior.
|
|
20
|
+
on_complete = ""
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: wize-spec
|
|
3
|
+
name: Spec
|
|
4
|
+
module: core
|
|
5
|
+
status: ready
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Spec
|
|
9
|
+
|
|
10
|
+
**Goal.** Distill any intent input into a canonical, preservation-validated machine contract for downstream Wize work.
|
|
11
|
+
|
|
12
|
+
Takes any intent input — vague idea, brain dump, PRD, RFC, brief, Slack thread, customer email, meeting transcript, mockups, mixed multi-source — and produces `SPEC.md` carrying the five-field kernel (Why, Capabilities, Constraints, Non-goals, Success signal) plus companion files for load-bearing content that does not fit or would bloat the kernel.
|
|
13
|
+
|
|
14
|
+
Peggy Carter edits prose; Tony, Maria Hill, and Shuri consume the spec downstream.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "Create a spec for this idea."
|
|
19
|
+
- "Distill this PRD into a spec."
|
|
20
|
+
- "Validate this spec."
|
|
21
|
+
- "Update the spec."
|
|
22
|
+
|
|
23
|
+
Multiple skills may call to update the same spec over time.
|
|
24
|
+
|
|
25
|
+
## Workspace
|
|
26
|
+
|
|
27
|
+
The spec is **always a folder** named `{output_folder}/specs/spec-{slug}/`.
|
|
28
|
+
|
|
29
|
+
`{slug}` describes the thing being specced, not the input shape:
|
|
30
|
+
|
|
31
|
+
- Source artifact already carries a slug (e.g., `prd-foo-bar-2026-05-23/`): inherit (`foo-bar`).
|
|
32
|
+
- Sparse, in-chat, or multi-source input: ask interactively. Headless callers must provide it.
|
|
33
|
+
- Same slug = same folder. A second invocation updates in place, preserving capability IDs.
|
|
34
|
+
|
|
35
|
+
Inside the spec folder:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
<spec-folder>/
|
|
39
|
+
SPEC.md ← uppercase, the kernel
|
|
40
|
+
<companion-1>.md ← optional, content-typed
|
|
41
|
+
<companion-2>.md
|
|
42
|
+
.decision-log.md ← canonical memory for this spec
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## The Operation
|
|
46
|
+
|
|
47
|
+
1. Read the input and its ancillary linked materials. If no input, ask or block.
|
|
48
|
+
2. If a prior `SPEC.md` exists at the target folder, read it — the operation becomes an **update**. Preserve capability IDs; new capabilities get the next unused `CAP-N`; never reuse retired IDs.
|
|
49
|
+
3. When input is structured and pre-sorted (PRD with addendum, brief from Pepper, UX spec from Mantis), trust the authored separation.
|
|
50
|
+
4. When input is mixed (brain dump, transcript, email), sort claims using the three-lens load-bearing test and route to the kernel field or a companion.
|
|
51
|
+
5. Distill into the five-field kernel using `assets/spec-template.md`. When input is rich, extract directly. When input is sparse, choose:
|
|
52
|
+
- **express** — best-effort distill, every gap becomes an `open_questions[]` entry
|
|
53
|
+
- **guided** — walk the five fields with the user one at a time
|
|
54
|
+
6. Write lean: every sentence must earn its place.
|
|
55
|
+
7. If input is genuinely too thin (e.g. "an app for hikers" with no context), stop and suggest `wize-product-brief` or `wize-create-prd`.
|
|
56
|
+
|
|
57
|
+
## Load-bearing
|
|
58
|
+
|
|
59
|
+
A claim is **load-bearing** if any downstream consumer (skill, implementing agent, verification pass) would change a decision without it.
|
|
60
|
+
|
|
61
|
+
## Companions
|
|
62
|
+
|
|
63
|
+
When load-bearing content does not fit the five-field kernel, it lives in a companion. The kernel cites it; the companion holds it. Companions are part of the contract; every consumer reads `companions:` in `SPEC.md` frontmatter to discover them.
|
|
64
|
+
|
|
65
|
+
**Spawn a companion when the content needs more than one kernel-shape line:** multi-item catalogs (archetypes, modes, routes, entity matrices), tables, diagrams (always), editorial voice rules, long-form reference material the kernel cites by name.
|
|
66
|
+
|
|
67
|
+
Companions are either:
|
|
68
|
+
|
|
69
|
+
- **Spec-authored** — written by `wize-spec` and live as siblings of `SPEC.md` (e.g., `glossary.md`, `patron-archetypes.md`, `stack.md`, `conventions.md`, `brownfield.md`, `architecture-diagrams.md`, `state-machines.md`, `failure-modes.md`).
|
|
70
|
+
- **Adopted** — load-bearing artifacts written by upstream skills that downstream still needs to read (e.g., a `DESIGN.md` from Mantis, an API spec from a partner). The originating skill owns them; `wize-spec` references them in `companions:` but does not edit them.
|
|
71
|
+
|
|
72
|
+
Two rules govern companions:
|
|
73
|
+
|
|
74
|
+
1. Name spec-authored companions for the content type they hold.
|
|
75
|
+
2. Diagrams always land in a companion, regardless of size. Mermaid/ASCII/image references live there; `SPEC.md` holds prose only.
|
|
76
|
+
|
|
77
|
+
Pre-existing project-wide docs (e.g., `.wize/knowledge/document-project/conventions.md`) that downstream needs are listed as **adopted companions**, never duplicated.
|
|
78
|
+
|
|
79
|
+
## Spec Law
|
|
80
|
+
|
|
81
|
+
1. Each capability has both `intent` and `success`.
|
|
82
|
+
2. Intents describe WHAT, not HOW.
|
|
83
|
+
3. Constraints actually bend design decisions.
|
|
84
|
+
4. Non-goals are explicit — at least one.
|
|
85
|
+
5. Success signal is concrete enough to test or demonstrate against.
|
|
86
|
+
6. Capability IDs are stable and unique — never reused, never renumbered.
|
|
87
|
+
7. Preservation — every load-bearing source claim lands in `SPEC.md` or a companion.
|
|
88
|
+
8. Lean prose — every sentence carries load-bearing content.
|
|
89
|
+
|
|
90
|
+
## Self-Validate
|
|
91
|
+
|
|
92
|
+
After every create or update, sweep the artifact in two passes:
|
|
93
|
+
|
|
94
|
+
- **Pass 1 — Coherence.** Judge against Spec Law rules 1–6 and 8. Calls made without direct confirmation become `assumptions[]`; gaps become `open_questions[]`.
|
|
95
|
+
- **Pass 2 — Preservation.** Walk source claims; confirm each landed in `SPEC.md` or a companion. Wrapper-only drops are logged under "Wrapper-only content" so the drop is on the record.
|
|
96
|
+
|
|
97
|
+
Append a one-paragraph verdict to `.decision-log.md`.
|
|
98
|
+
|
|
99
|
+
## Output
|
|
100
|
+
|
|
101
|
+
- **Interactive** — share the spec folder path, name capability count, companions produced, and verdict in one or two sentences. List `assumptions[]` and `open_questions[]` if non-empty.
|
|
102
|
+
- **Headless** — return JSON per `assets/headless-schemas.md`.
|
|
103
|
+
|
|
104
|
+
## After the spec is output
|
|
105
|
+
|
|
106
|
+
Any update to assumptions, open questions, or other changes is appended to `.decision-log.md` and, when applicable, to the source artifact's decision log.
|
|
107
|
+
|
|
108
|
+
## Hand-off
|
|
109
|
+
|
|
110
|
+
> Spec `{slug}` distilled into `{output_folder}/specs/spec-{slug}/SPEC.md` with `{n}` capabilities and `{m}` companions. Verdict: `{verdict}`. Open questions: `{list}`.
|
|
@@ -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
|
+
```
|
package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md
ADDED
|
@@ -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`.
|
package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md
ADDED
|
@@ -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`.
|
package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md
ADDED
|
@@ -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`.
|
package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Step 6: Domain Research Synthesis and Completion
|
|
2
|
+
|
|
3
|
+
## Rules
|
|
4
|
+
|
|
5
|
+
- 🌐 Search the web to verify claims.
|
|
6
|
+
- 📝 Replace the Research Overview placeholder and append synthesis.
|
|
7
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
8
|
+
|
|
9
|
+
## Task
|
|
10
|
+
|
|
11
|
+
Produce the final domain research synthesis.
|
|
12
|
+
|
|
13
|
+
## Execution
|
|
14
|
+
|
|
15
|
+
Replace `[Research overview and methodology will be appended here.]` with a concise summary.
|
|
16
|
+
|
|
17
|
+
Append:
|
|
18
|
+
|
|
19
|
+
```markdown
|
|
20
|
+
## Research Synthesis
|
|
21
|
+
|
|
22
|
+
### Key Findings
|
|
23
|
+
1. ...
|
|
24
|
+
2. ...
|
|
25
|
+
|
|
26
|
+
### Strategic Implications
|
|
27
|
+
...
|
|
28
|
+
|
|
29
|
+
### Constraints for the Product
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
### Still Open
|
|
33
|
+
- ...
|
|
34
|
+
|
|
35
|
+
### Sources
|
|
36
|
+
...
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6]` and `status: complete`.
|
|
40
|
+
|
|
41
|
+
## On complete
|
|
42
|
+
|
|
43
|
+
Run `{workflow.on_complete}` if non-empty.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
research_type: domain
|
|
3
|
+
research_topic: "{{research_topic}}"
|
|
4
|
+
research_goals: "{{research_goals}}"
|
|
5
|
+
status: in-progress
|
|
6
|
+
stepsCompleted: []
|
|
7
|
+
owner: Pepper Potts
|
|
8
|
+
created: "{{date}}"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Domain Research — {{research_topic}}
|
|
12
|
+
|
|
13
|
+
## Research Overview
|
|
14
|
+
|
|
15
|
+
[Research overview and methodology will be appended here.]
|
|
16
|
+
|
|
17
|
+
## Scope Confirmation
|
|
18
|
+
|
|
19
|
+
## Domain Analysis
|
|
20
|
+
|
|
21
|
+
## Competitive Landscape
|
|
22
|
+
|
|
23
|
+
## Regulatory Focus
|
|
24
|
+
|
|
25
|
+
## Technical Trends
|
|
26
|
+
|
|
27
|
+
## Research Synthesis
|
|
28
|
+
|
|
29
|
+
## Sources
|
|
30
|
+
|
|
31
|
+
## Open Questions
|