wize-dev-kit 0.16.0 → 0.16.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/AGENTS.md +37 -0
- package/ARCH.md +77 -24
- package/CHANGELOG.md +4 -0
- package/DECISIONS.md +27 -1
- package/README.es.md +295 -0
- package/README.pt-BR.md +293 -0
- package/ROSTER.md +11 -3
- package/adapters/README.md +8 -7
- package/adapters/antigravity/README.md +5 -5
- package/adapters/claude-code/README.md +1 -1
- package/adapters/codex/README.md +5 -5
- package/adapters/codex/adapter.yaml +1 -1
- package/adapters/codex/render.js +1 -1
- package/adapters/continue/README.md +5 -5
- package/adapters/cursor/README.md +2 -2
- package/adapters/generic/README.md +1 -1
- package/adapters/hermes/README.md +23 -0
- package/adapters/hermes/adapter.yaml +8 -0
- package/adapters/hermes/render.js +17 -0
- package/adapters/kimi-code/README.md +5 -5
- package/adapters/kimi-code/render.js +2 -2
- package/adapters/opencode/README.md +3 -3
- package/adapters/opencode/render.js +27 -1
- package/adapters/windsurf/README.md +3 -3
- package/docs/harnesses/antigravity.md +20 -0
- package/docs/harnesses/antigravity.pt-BR.md +20 -0
- package/docs/harnesses/claude-code.md +23 -0
- package/docs/harnesses/claude-code.pt-BR.md +23 -0
- package/docs/harnesses/codex.md +21 -0
- package/docs/harnesses/codex.pt-BR.md +21 -0
- package/docs/harnesses/continue.md +21 -0
- package/docs/harnesses/continue.pt-BR.md +21 -0
- package/docs/harnesses/cursor.md +22 -0
- package/docs/harnesses/cursor.pt-BR.md +22 -0
- package/docs/harnesses/generic.md +20 -0
- package/docs/harnesses/generic.pt-BR.md +20 -0
- package/docs/harnesses/hermes.md +26 -0
- package/docs/harnesses/hermes.pt-BR.md +26 -0
- package/docs/harnesses/kimi-code.md +19 -0
- package/docs/harnesses/kimi-code.pt-BR.md +19 -0
- package/docs/harnesses/opencode.md +31 -0
- package/docs/harnesses/opencode.pt-BR.md +31 -0
- package/docs/harnesses/windsurf.md +22 -0
- package/docs/harnesses/windsurf.pt-BR.md +22 -0
- package/package.json +1 -1
- package/schemas/agent.schema.json +2 -2
- package/schemas/workflow.schema.json +1 -1
- package/src/app-overlay/wize-app-release-channels/workflow.md +2 -0
- package/src/app-overlay/wize-app-scaffold/workflow.md +2 -0
- package/src/app-overlay/wize-app-store-listing/workflow.md +2 -0
- package/src/builder-skills/wize-create-agent/workflow.md +2 -0
- package/src/builder-skills/wize-create-skill/workflow.md +2 -0
- package/src/builder-skills/wize-create-workflow/workflow.md +2 -0
- package/src/core-skills/wize-advanced-elicitation/skill.md +2 -0
- package/src/core-skills/wize-brainstorming/skill.md +2 -0
- package/src/core-skills/wize-customize/skill.md +116 -0
- package/src/core-skills/wize-editorial-review-prose/skill.md +94 -0
- package/src/core-skills/wize-editorial-review-structure/skill.md +99 -0
- package/src/core-skills/wize-grill/skill.md +77 -0
- package/src/core-skills/wize-index-docs/skill.md +119 -0
- package/src/core-skills/wize-pre-pr-check/skill.md +134 -0
- package/src/core-skills/wize-review-adversarial/skill.md +3 -0
- package/src/core-skills/wize-review-edge-case-hunter/skill.md +115 -0
- package/src/core-skills/wize-shard-doc/skill.md +2 -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 +112 -0
- package/src/method-skills/1-analysis/wize-agent-analyst/agent.yaml +3 -0
- package/src/method-skills/1-analysis/wize-document-project/documentation-requirements.csv +12 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/api-contracts-template.md +38 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/architecture-template.md +54 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/component-inventory-template.md +40 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/contribution-guide-template.md +34 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/data-models-template.md +36 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/deep-dive-template.md +312 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/deployment-guide-template.md +42 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/development-guide-template.md +61 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/index-template.md +185 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/project-overview-template.md +110 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/project-scan-report-schema.json +159 -0
- package/src/method-skills/1-analysis/wize-document-project/templates/source-tree-template.md +142 -0
- package/src/method-skills/1-analysis/wize-document-project/workflow.md +213 -20
- 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 +58 -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 +66 -0
- package/src/method-skills/1-analysis/wize-prfaq/workflow.md +152 -11
- package/src/method-skills/1-analysis/wize-product-brief/workflow.md +92 -19
- package/src/method-skills/1-analysis/wize-refresh-knowledge/workflow.md +129 -0
- package/src/method-skills/1-analysis/wize-research/workflow.md +39 -12
- 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 +60 -0
- package/src/method-skills/1-analysis/wize-trigger-map/workflow.md +82 -16
- package/src/method-skills/2-plan-workflows/wize-create-prd/workflow.md +135 -23
- package/src/method-skills/2-plan-workflows/wize-edit-prd/workflow.md +110 -0
- package/src/method-skills/2-plan-workflows/wize-ux-design/workflow.md +134 -28
- package/src/method-skills/2-plan-workflows/wize-ux-scenarios/workflow.md +93 -15
- package/src/method-skills/2-plan-workflows/wize-validate-prd/workflow.md +108 -12
- package/src/method-skills/3-solutioning/wize-check-implementation-readiness/workflow.md +103 -11
- 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 +55 -48
- package/src/method-skills/3-solutioning/wize-create-epics-and-stories/workflow.md +154 -15
- package/src/method-skills/3-solutioning/wize-design-system/workflow.md +184 -22
- package/src/method-skills/3-solutioning/wize-nfr-principles/workflow.md +145 -17
- package/src/method-skills/3-solutioning/wize-project-context/workflow.md +120 -0
- package/src/method-skills/3-solutioning/wize-tech-vision/workflow.md +130 -22
- package/src/method-skills/4-implementation/wize-agent-dev/persona.md +12 -0
- package/src/method-skills/4-implementation/wize-changelog/workflow.md +184 -0
- package/src/method-skills/4-implementation/wize-checkpoint-preview/workflow.md +117 -0
- 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 +40 -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 +54 -12
- package/src/method-skills/4-implementation/wize-correct-course/workflow.md +93 -0
- package/src/method-skills/4-implementation/wize-create-story/workflow.md +154 -10
- package/src/method-skills/4-implementation/wize-dev-story/workflow.md +185 -17
- package/src/method-skills/4-implementation/wize-investigate/workflow.md +123 -0
- package/src/method-skills/4-implementation/wize-quick-dev/workflow.md +136 -18
- package/src/method-skills/4-implementation/wize-release/workflow.md +162 -0
- package/src/method-skills/4-implementation/wize-retrospective/workflow.md +114 -10
- package/src/method-skills/4-implementation/wize-sprint-planning/workflow.md +78 -11
- package/src/method-skills/4-implementation/wize-sprint-status/workflow.md +45 -11
- package/src/method-skills/module.yaml +28 -0
- package/src/orchestrator-skills/module.yaml +7 -1
- package/src/orchestrator-skills/wize/skill.md +164 -0
- package/src/orchestrator-skills/wize-check/skill.md +98 -0
- package/src/orchestrator-skills/wize-help/skill.md +227 -67
- package/src/orchestrator-skills/wize-onboarding/workflow.md +78 -14
- package/src/orchestrator-skills/wize-orchestrator/agent.yaml +2 -0
- package/src/orchestrator-skills/wize-orchestrator/persona.md +44 -3
- package/src/orchestrator-skills/wize-party-mode/workflow.md +2 -0
- package/src/security-overlay/_shared/allowlist.js +154 -0
- package/src/security-overlay/_shared/backlog.js +169 -0
- package/src/security-overlay/_shared/cli-runner.js +87 -0
- package/src/security-overlay/_shared/cvss.js +108 -0
- package/src/security-overlay/_shared/detect.js +125 -0
- package/src/security-overlay/_shared/install-script.js +205 -0
- package/src/security-overlay/_shared/invoke-phase.js +86 -0
- package/src/security-overlay/_shared/owasp.js +56 -0
- package/src/security-overlay/_shared/partial.js +225 -0
- package/src/security-overlay/_shared/preflight.js +175 -0
- package/src/security-overlay/_shared/scope-gate.js +172 -0
- package/src/security-overlay/_shared/scope-parser.js +147 -0
- package/src/security-overlay/agents/red-teamer/agent.yaml +54 -0
- package/src/security-overlay/agents/red-teamer/persona.md +49 -0
- package/src/security-overlay/data/common.txt +115 -0
- package/src/security-overlay/data/owasp-top10.json +15 -0
- package/src/security-overlay/data/tool-allowlist.json +31 -0
- package/src/security-overlay/skills/wize-sec-enumerate/scripts/run-enumerate.js +180 -0
- package/src/security-overlay/skills/wize-sec-enumerate/skill.md +34 -0
- package/src/security-overlay/skills/wize-sec-exploit/data/common.txt +117 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-ffuf.js +147 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nikto.js +145 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nuclei.js +176 -0
- package/src/security-overlay/skills/wize-sec-exploit/scripts/run-sqlmap.js +139 -0
- package/src/security-overlay/skills/wize-sec-pentest/scripts/run-pipeline.js +184 -0
- package/src/security-overlay/skills/wize-sec-pentest/skill.md +54 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-gitleaks.js +139 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-osv.js +227 -0
- package/src/security-overlay/skills/wize-sec-recon/scripts/run-recon.js +162 -0
- package/src/security-overlay/skills/wize-sec-recon/skill.md +37 -0
- package/src/security-overlay/skills/wize-sec-report/scripts/render-report.js +1033 -0
- package/src/security-overlay/skills/wize-sec-scope/scripts/generate-scope.js +106 -0
- package/src/security-overlay/skills/wize-sec-scope/skill.md +52 -0
- package/src/tea-skills/wize-qa-generate-e2e-tests/workflow.md +121 -0
- package/src/tea-skills/wize-tea-design/workflow.md +107 -13
- package/src/tea-skills/wize-tea-gate/workflow.md +118 -25
- package/src/tea-skills/wize-tea-nfr/workflow.md +107 -14
- package/src/tea-skills/wize-tea-review/workflow.md +123 -13
- package/src/tea-skills/wize-tea-risk/workflow.md +113 -10
- package/src/tea-skills/wize-tea-trace/workflow.md +86 -12
- package/src/web-overlay/wize-web-deploy/workflow.md +2 -0
- package/src/web-overlay/wize-web-scaffold/workflow.md +2 -0
- package/src/web-overlay/wize-web-seo-audit/workflow.md +2 -0
- package/tools/installer/baseline.js +133 -0
- package/tools/installer/commands/agent.js +197 -0
- package/tools/installer/commands/doctor.js +320 -0
- package/tools/installer/commands/document-project.js +93 -0
- package/tools/installer/commands/sync.js +45 -0
- package/tools/installer/commands/update.js +172 -0
- package/tools/installer/document-project/batch-scanner.js +93 -0
- package/tools/installer/document-project/classify.js +170 -0
- package/tools/installer/document-project/modes/deep-dive.js +196 -0
- package/tools/installer/document-project/modes/full-rescan.js +15 -0
- package/tools/installer/document-project/modes/initial-scan.js +100 -0
- package/tools/installer/document-project/modes/quick.js +211 -0
- package/tools/installer/document-project/render-index.js +101 -0
- package/tools/installer/document-project/state.js +110 -0
- package/tools/installer/onboarding.js +14 -20
- package/tools/installer/render-shared.js +159 -15
- package/tools/installer/setup-helpers.js +1 -0
- package/tools/installer/validators/run-all.js +3 -2
- package/tools/installer/version-check.js +117 -0
- package/tools/installer/wize-cli.js +500 -70
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Step 7: Architecture Validation & Completion
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Validate all requirements are covered by architectural decisions.
|
|
7
|
+
- ⚠️ No time estimates.
|
|
8
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
9
|
+
|
|
10
|
+
## Execution protocols
|
|
11
|
+
|
|
12
|
+
- 🎯 Show analysis before taking action.
|
|
13
|
+
- ✅ Run validation checks on the complete architecture.
|
|
14
|
+
- ⚠️ Present A/P/C menu after generating validation results.
|
|
15
|
+
- 💾 Only save when the user chooses C.
|
|
16
|
+
- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading the next step.
|
|
17
|
+
|
|
18
|
+
## Collaboration menu (A/P/C)
|
|
19
|
+
|
|
20
|
+
- **A (Advanced Elicitation)** — address complex architectural issues found.
|
|
21
|
+
- **P (Party Mode)** — review validation from multiple perspectives.
|
|
22
|
+
- **C (Continue)** — save validation results and complete the architecture.
|
|
23
|
+
|
|
24
|
+
## Context boundaries
|
|
25
|
+
|
|
26
|
+
- Complete architecture document is available.
|
|
27
|
+
- All decisions, patterns, and structure are defined.
|
|
28
|
+
- Focus on validation, gap analysis, and coherence.
|
|
29
|
+
|
|
30
|
+
## Task
|
|
31
|
+
|
|
32
|
+
Validate the complete architecture for coherence, completeness, and readiness.
|
|
33
|
+
|
|
34
|
+
## Validation sequence
|
|
35
|
+
|
|
36
|
+
### 1. Coherence validation
|
|
37
|
+
|
|
38
|
+
- Decision compatibility
|
|
39
|
+
- Pattern consistency
|
|
40
|
+
- Structure alignment
|
|
41
|
+
|
|
42
|
+
### 2. Requirements coverage validation
|
|
43
|
+
|
|
44
|
+
- Epic/feature coverage
|
|
45
|
+
- Functional requirements coverage
|
|
46
|
+
- Non-functional requirements coverage
|
|
47
|
+
|
|
48
|
+
### 3. Implementation readiness validation
|
|
49
|
+
|
|
50
|
+
- Decision completeness
|
|
51
|
+
- Structure completeness
|
|
52
|
+
- Pattern completeness
|
|
53
|
+
|
|
54
|
+
### 4. Gap analysis
|
|
55
|
+
|
|
56
|
+
Identify critical, important, and nice-to-have gaps.
|
|
57
|
+
|
|
58
|
+
### 5. Generate validation content
|
|
59
|
+
|
|
60
|
+
Append to `architecture.md`:
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
## Architecture Validation Results
|
|
64
|
+
|
|
65
|
+
### Coherence Validation
|
|
66
|
+
...
|
|
67
|
+
|
|
68
|
+
### Requirements Coverage Validation
|
|
69
|
+
...
|
|
70
|
+
|
|
71
|
+
### Implementation Readiness Validation
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
### Gap Analysis Results
|
|
75
|
+
...
|
|
76
|
+
|
|
77
|
+
### Validation Issues Addressed
|
|
78
|
+
...
|
|
79
|
+
|
|
80
|
+
### Architecture Completeness Checklist
|
|
81
|
+
|
|
82
|
+
**Requirements Analysis**
|
|
83
|
+
- [ ] Project context thoroughly analyzed
|
|
84
|
+
- [ ] Scale and complexity assessed
|
|
85
|
+
- [ ] Technical constraints identified
|
|
86
|
+
- [ ] Cross-cutting concerns mapped
|
|
87
|
+
|
|
88
|
+
**Architectural Decisions**
|
|
89
|
+
- [ ] Critical decisions documented with versions
|
|
90
|
+
- [ ] Technology stack fully specified
|
|
91
|
+
- [ ] Integration patterns defined
|
|
92
|
+
- [ ] Performance considerations addressed
|
|
93
|
+
|
|
94
|
+
**Implementation Patterns**
|
|
95
|
+
- [ ] Naming conventions established
|
|
96
|
+
- [ ] Structure patterns defined
|
|
97
|
+
- [ ] Communication patterns specified
|
|
98
|
+
- [ ] Process patterns documented
|
|
99
|
+
|
|
100
|
+
**Project Structure**
|
|
101
|
+
- [ ] Complete directory structure defined
|
|
102
|
+
- [ ] Component boundaries established
|
|
103
|
+
- [ ] Integration points mapped
|
|
104
|
+
- [ ] Requirements to structure mapping complete
|
|
105
|
+
|
|
106
|
+
### Architecture Readiness Assessment
|
|
107
|
+
|
|
108
|
+
**Overall Status:** [READY FOR IMPLEMENTATION / READY WITH MINOR GAPS / NOT READY]
|
|
109
|
+
**Confidence Level:** [high/medium/low]
|
|
110
|
+
**Key Strengths:** ...
|
|
111
|
+
**Areas for Future Enhancement:** ...
|
|
112
|
+
|
|
113
|
+
### Implementation Handoff
|
|
114
|
+
|
|
115
|
+
**AI Agent Guidelines:**
|
|
116
|
+
- Follow all architectural decisions exactly as documented.
|
|
117
|
+
- Use implementation patterns consistently.
|
|
118
|
+
- Respect project structure and boundaries.
|
|
119
|
+
- Refer to this document for all architectural questions.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Next step
|
|
123
|
+
|
|
124
|
+
After C, load `./step-08-complete.md`.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Step 8: Architecture Completion & Handoff
|
|
2
|
+
|
|
3
|
+
## Mandatory execution rules
|
|
4
|
+
|
|
5
|
+
- 🛑 Never generate content without user input.
|
|
6
|
+
- ✅ Treat this as collaborative completion.
|
|
7
|
+
- 🎯 Provide clear next steps for implementation.
|
|
8
|
+
- ⚠️ No time estimates.
|
|
9
|
+
- ✅ Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
|
|
10
|
+
|
|
11
|
+
## Execution protocols
|
|
12
|
+
|
|
13
|
+
- 🎯 Show completion summary and implementation guidance.
|
|
14
|
+
- 📖 Update frontmatter with final workflow state.
|
|
15
|
+
- 🚫 This is the final step.
|
|
16
|
+
|
|
17
|
+
## Task
|
|
18
|
+
|
|
19
|
+
Complete the architecture workflow and guide the user to the next phase.
|
|
20
|
+
|
|
21
|
+
## Completion sequence
|
|
22
|
+
|
|
23
|
+
### 1. Summarize achievements
|
|
24
|
+
|
|
25
|
+
Congratulate the user and summarize what was built together:
|
|
26
|
+
|
|
27
|
+
- Architecture document path
|
|
28
|
+
- Number of ADRs produced
|
|
29
|
+
- Key decisions made
|
|
30
|
+
- Patterns defined
|
|
31
|
+
- Validation status
|
|
32
|
+
|
|
33
|
+
### 2. Update frontmatter
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
status: ready-for-stories
|
|
37
|
+
owner: Tony Stark
|
|
38
|
+
updated: "{{date}}"
|
|
39
|
+
stepsCompleted: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
40
|
+
workflowType: architecture
|
|
41
|
+
lastStep: 8
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. Next steps guidance
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Architecture complete. Next:
|
|
48
|
+
1. Hawkeye: run wize-tea-risk to build the global risk profile.
|
|
49
|
+
2. Tony: run wize-create-epics-and-stories to slice the work.
|
|
50
|
+
3. Use `/wize` (or `/wize-help`) anytime to check what comes next.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## On complete
|
|
54
|
+
|
|
55
|
+
Run `{workflow.on_complete}` if non-empty.
|
|
56
|
+
|
|
57
|
+
## Workflow complete
|
|
58
|
+
|
|
59
|
+
The architecture is now the single source of truth for all technical decisions, ensuring consistent implementation across the project lifecycle.
|
|
@@ -1,64 +1,71 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
code: wize-create-architecture
|
|
4
|
+
description: "Use quando o PRD e UX design estiverem prontos e precisar projetar a arquitetura do sistema com componentes, sequências e ADRs."
|
|
3
5
|
name: Create Architecture
|
|
4
6
|
phase: 3-solutioning
|
|
5
7
|
owner: wize-agent-architect # Tony Stark
|
|
6
|
-
status:
|
|
8
|
+
status: ready
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
# Create Architecture
|
|
10
12
|
|
|
11
|
-
**Goal.** Design the system inside Fury's frame
|
|
13
|
+
**Goal.** Design the system inside Fury's frame through collaborative, step-by-step discovery. Produces `.wize/solutioning/architecture.md` + `.wize/solutioning/adrs/` that multiple AI agents can implement consistently.
|
|
14
|
+
|
|
15
|
+
Tony Stark drives. Pepper Potts and Nick Fury may be invoked via `wize-party-mode` or `wize-advanced-elicitation` at any step.
|
|
12
16
|
|
|
13
17
|
## Inputs
|
|
14
|
-
|
|
15
|
-
- `.wize/planning/
|
|
16
|
-
- `.wize/planning/
|
|
17
|
-
- `.wize/planning/
|
|
18
|
-
- `.wize/
|
|
19
|
-
- `.wize/
|
|
18
|
+
|
|
19
|
+
- `.wize/planning/prd.md` (required)
|
|
20
|
+
- `.wize/planning/ux/ux-scenarios.md` and `.wize/planning/ux/ux-design/` (when available)
|
|
21
|
+
- `.wize/planning/tech-vision.md`
|
|
22
|
+
- `.wize/planning/nfr-principles.md`
|
|
23
|
+
- `.wize/solutioning/design-system/` (when available)
|
|
24
|
+
- Stack catalogs from active overlays
|
|
25
|
+
- `.wize/knowledge/document-project/` (brownfield only)
|
|
20
26
|
|
|
21
27
|
## Outputs
|
|
28
|
+
|
|
22
29
|
- `.wize/solutioning/architecture.md`
|
|
23
|
-
- `.wize/solutioning/adrs/
|
|
30
|
+
- `.wize/solutioning/adrs/ADR-NNN-{slug}.md`
|
|
31
|
+
|
|
32
|
+
## Workflow architecture
|
|
33
|
+
|
|
34
|
+
This skill uses **micro-file architecture**:
|
|
35
|
+
|
|
36
|
+
- Each step is a self-contained file with embedded rules.
|
|
37
|
+
- Sequential progression with user control at each step.
|
|
38
|
+
- Document state tracked in frontmatter (`stepsCompleted`).
|
|
39
|
+
- Append-only document building through the conversation.
|
|
40
|
+
- Never proceed to a step file if the current step indicates the user must approve continuation.
|
|
41
|
+
|
|
42
|
+
## On activation
|
|
43
|
+
|
|
44
|
+
1. Load `.wize/config/project.toml` and `.wize/config/user.toml`.
|
|
45
|
+
2. Resolve `user_name`, `communication_language`, `document_output_language`, `output_folder`, and the active profiles.
|
|
46
|
+
3. Greet the user in `communication_language`.
|
|
47
|
+
4. Read fully and follow `./steps/step-01-init.md`.
|
|
24
48
|
|
|
25
49
|
## Steps
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|---|---|---|
|
|
49
|
-
|
|
50
|
-
## Data model
|
|
51
|
-
…
|
|
52
|
-
|
|
53
|
-
## Cross-cutting
|
|
54
|
-
- Auth: …
|
|
55
|
-
- Observability: …
|
|
56
|
-
- Errors: …
|
|
57
|
-
|
|
58
|
-
## NFR check
|
|
59
|
-
- Performance: …
|
|
60
|
-
- Security: …
|
|
61
|
-
- Reliability: …
|
|
62
|
-
- Accessibility: …
|
|
63
|
-
- Cost: …
|
|
64
|
-
```
|
|
50
|
+
|
|
51
|
+
1. `step-01-init.md` — detect continuation, discover inputs, create `architecture.md` from template.
|
|
52
|
+
2. `step-02-context.md` — analyze PRD, UX, and research for architectural implications.
|
|
53
|
+
3. `step-03-starter.md` — discover technical preferences and evaluate starter templates.
|
|
54
|
+
4. `step-04-decisions.md` — make core architectural decisions (data, auth, API, frontend, infra).
|
|
55
|
+
5. `step-05-patterns.md` — define implementation patterns that prevent agent conflicts.
|
|
56
|
+
6. `step-06-structure.md` — map requirements to concrete project structure and boundaries.
|
|
57
|
+
7. `step-07-validation.md` — validate coherence, coverage, and implementation readiness.
|
|
58
|
+
8. `step-08-complete.md` — finalize frontmatter and hand off to implementation.
|
|
59
|
+
|
|
60
|
+
## Global step rules
|
|
61
|
+
|
|
62
|
+
- Always read the complete step file before acting.
|
|
63
|
+
- Speak in `communication_language`.
|
|
64
|
+
- Write artifacts in `document_output_language`.
|
|
65
|
+
- Never generate content without user input or confirmation.
|
|
66
|
+
- Every code reference uses CWD-relative `path:line` format.
|
|
67
|
+
- No time estimates — AI development speed has fundamentally changed.
|
|
68
|
+
|
|
69
|
+
## Hand-off
|
|
70
|
+
|
|
71
|
+
> Architecture and ADRs are in `.wize/solutioning/`. Sequences hit the NFR targets. Hawkeye can write `tea-risk.md` against this. Tony continues with `wize-create-epics-and-stories`.
|
|
@@ -1,24 +1,101 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
code: wize-create-epics-and-stories
|
|
4
|
+
description: "Use quando a arquitetura estiver definida e precisar fatiar o escopo em epics e stories com acceptance criteria."
|
|
3
5
|
name: Create Epics and Stories
|
|
4
6
|
phase: 3-solutioning
|
|
5
7
|
owner: wize-agent-architect # Tony Stark
|
|
6
|
-
status:
|
|
8
|
+
status: ready
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
# Create Epics and Stories
|
|
10
12
|
|
|
11
|
-
**Goal.** Slice the PRD + architecture into epics (each ships value) and stories (each is one focused PR-sized unit).
|
|
13
|
+
**Goal.** Slice the PRD + architecture into **epics** (each ships value end-to-end) and **stories** (each is one focused PR-sized unit Shuri can implement and Hawkeye can test).
|
|
14
|
+
|
|
15
|
+
Tony drives. Output lands in `.wize/solutioning/epics/` and `.wize/solutioning/stories/`.
|
|
16
|
+
|
|
17
|
+
> **No estimates.** Epics and stories never carry a time or effort estimate (hours, days, story points, S/M/L/XL) — at any step. AI development speed has made them noise that only burns time and tokens. The only sizing question is binary: **does a story fit one PR?** If not, slice it.
|
|
18
|
+
|
|
19
|
+
When slicing raises decisions the PRD doesn't answer — priority order, sequencing, protected behaviors, what's out of a story — offer a short `wize-grill` pass with the user instead of guessing. Decisions land in the epic/story fields; unresolved ones become open questions with owners.
|
|
12
20
|
|
|
13
21
|
## Inputs
|
|
14
|
-
|
|
22
|
+
|
|
23
|
+
Read central docs first, then expand by dependency — don't load unrelated files for padding:
|
|
24
|
+
|
|
25
|
+
- `AGENTS.md` + `.wize/config/project.toml` — active profiles, languages, conventions.
|
|
26
|
+
- `.wize/planning/prd.md` — the AC source (never reword ACs downstream).
|
|
15
27
|
- `.wize/solutioning/architecture.md`
|
|
28
|
+
- `.wize/planning/ux/ux-design/` (every story references one or more screens)
|
|
29
|
+
- `.wize/knowledge/document-project/` — brownfield baseline, if present.
|
|
16
30
|
|
|
17
31
|
## Outputs
|
|
32
|
+
|
|
18
33
|
- `.wize/solutioning/epics/{NN}-{slug}.md`
|
|
19
|
-
- `.wize/solutioning/stories/{NN}
|
|
34
|
+
- `.wize/solutioning/stories/{epic-NN}/{story-id}.md`
|
|
35
|
+
|
|
36
|
+
## Epic shape
|
|
37
|
+
|
|
38
|
+
An epic:
|
|
39
|
+
- Ships **value** on its own (a user can do the thing after this epic, even if the next one improves it).
|
|
40
|
+
- Lasts 1–3 sprints when in flight.
|
|
41
|
+
- Has 3–10 stories.
|
|
42
|
+
- Has a single trigger-map row as its anchor.
|
|
43
|
+
|
|
44
|
+
Epic file:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
---
|
|
48
|
+
epic_id: 01-onboarding
|
|
49
|
+
status: ready
|
|
50
|
+
owner: Tony Stark + Maria Hill
|
|
51
|
+
linked_prd: E01
|
|
52
|
+
trigger_map_row: 1
|
|
53
|
+
priority: 1
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# Epic 01: Sign-up + first invite
|
|
57
|
+
|
|
58
|
+
## Outcome
|
|
59
|
+
A first-time team admin signs up, lands in onboarding, and invites at least one teammate within 5 minutes (trigger-map row 1 + 2).
|
|
60
|
+
|
|
61
|
+
## Stories
|
|
62
|
+
- E01-S01: Sign-up empty + happy path (AC-01-1, AC-01-2)
|
|
63
|
+
- E01-S02: Sign-up error states (AC-01-3, AC-01-4)
|
|
64
|
+
- E01-S03: Onboarding step 1 — invite first teammate (AC-02-1, AC-02-2)
|
|
65
|
+
- E01-S04: Email delivery + retry (AC-02-3)
|
|
66
|
+
- E01-S05: Team list empty + with first member (AC-03-1, AC-03-2)
|
|
67
|
+
|
|
68
|
+
## Dependencies
|
|
69
|
+
- Design tokens by Mantis (S0 — already done)
|
|
70
|
+
- Resend account configured (Tony, before S04)
|
|
71
|
+
|
|
72
|
+
## Success
|
|
73
|
+
All ACs of all stories PASS gate. Telemetry shows `teammate_invited` ≥ 80% of `signup_completed` users within 24h in the beta cohort.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Story shape — INVEST
|
|
77
|
+
|
|
78
|
+
Each story passes:
|
|
79
|
+
- **I**ndependent — can be implemented without waiting for another in-flight story.
|
|
80
|
+
- **N**egotiable — wording can move; intent stays.
|
|
81
|
+
- **V**aluable — a real outcome to a real user (or a clear test path that proves a slice).
|
|
82
|
+
- **S**mall — fits in one PR, tests included. This is the *only* sizing test; no time or point estimate (see **No estimates** above).
|
|
83
|
+
- **T**estable — every AC is observable.
|
|
84
|
+
|
|
85
|
+
If a story is XL, slice it before merging it to `stories/`.
|
|
20
86
|
|
|
21
|
-
##
|
|
87
|
+
## Slicing patterns (Tony's defaults)
|
|
88
|
+
|
|
89
|
+
| Pattern | When |
|
|
90
|
+
|---|---|
|
|
91
|
+
| Walking skeleton | When you need the full user path to exist (even with stubs) before going deep on any single screen. |
|
|
92
|
+
| By user role | Admin vs member often slice naturally. |
|
|
93
|
+
| By acceptance criterion | One AC = one PR when ACs are independent. |
|
|
94
|
+
| By happy / error path | Ship happy path first; error states next story. |
|
|
95
|
+
| By back-end / front-end | Avoid unless the back-end can ship usable without UI; otherwise it bundles. |
|
|
96
|
+
| By feature flag | When a story partially ships, use a flag and write the flag retirement story now. |
|
|
97
|
+
|
|
98
|
+
## Story file template
|
|
22
99
|
|
|
23
100
|
```markdown
|
|
24
101
|
---
|
|
@@ -26,23 +103,85 @@ story_id: E01-S03
|
|
|
26
103
|
epic: 01-onboarding
|
|
27
104
|
status: ready-for-dev
|
|
28
105
|
priority: 2
|
|
29
|
-
|
|
30
|
-
|
|
106
|
+
linked_screens: [onboarding-step-1, invite-modal]
|
|
107
|
+
linked_acs: [AC-02-1, AC-02-2]
|
|
31
108
|
---
|
|
32
109
|
|
|
33
|
-
# Story:
|
|
110
|
+
# Story: Onboarding step 1 — invite first teammate
|
|
34
111
|
|
|
35
112
|
## Context
|
|
36
|
-
|
|
113
|
+
Comes right after sign-up. The user lands here with no team yet. The screen is the moment-of-truth from S1: if the user invites a teammate here, the product earned its value moment.
|
|
114
|
+
|
|
115
|
+
## Sources of truth (Shuri reads before coding)
|
|
116
|
+
- `AGENTS.md` + `.wize/config/project.toml` · `.wize/knowledge/document-project/*`.
|
|
117
|
+
- `prd.md` (AC source) · `architecture.md` · `ux-design/onboarding-step-1.md` · parent epic `01-onboarding.md`.
|
|
118
|
+
- The TEA test contract for this story · related code + tests already on this path.
|
|
37
119
|
|
|
38
120
|
## Acceptance criteria
|
|
39
|
-
- AC-1
|
|
40
|
-
- AC-2
|
|
121
|
+
- **AC-02-1:** Given a new admin on `/onboarding`, When they enter a valid email and click "Send invite", Then a `teammate_invited` event fires and the screen advances to "Invite sent" within 1s.
|
|
122
|
+
- **AC-02-2:** Given an invalid email, When the user blurs the field, Then error text appears (200ms) identifying which rule failed.
|
|
41
123
|
|
|
42
|
-
##
|
|
43
|
-
-
|
|
124
|
+
## Restrictions
|
|
125
|
+
- **Out of scope:** bulk invite → E01-S07; custom invite message → E02-S03.
|
|
126
|
+
- **Protected behaviors:** existing sign-up + session flow must not change.
|
|
127
|
+
- **Compatibility:** `(team_id, email)` idempotency key — don't break existing invite rows.
|
|
128
|
+
- **Security:** validate email at the server boundary; auth context required on `inviteTeammate`.
|
|
44
129
|
|
|
45
130
|
## Notes for Shuri (Dev)
|
|
46
|
-
- Touch points:
|
|
47
|
-
-
|
|
131
|
+
- Touch points: `app/(onboarding)/invite/page.tsx`, new server action `inviteTeammate`, `lib/email/send-invite.ts`.
|
|
132
|
+
- Reuse `Button`, `Input`, `Banner` from design system.
|
|
133
|
+
- Add `data-testid="invite-form"`, `"invite-email"`, `"invite-cta"` (Hawkeye depends on these).
|
|
134
|
+
|
|
135
|
+
## Validation contract
|
|
136
|
+
- **AC → test:** AC-02-1 → E2E `invite happy path` + unit `validateInviteEmail`; AC-02-2 → unit `invalid email` + component error-state.
|
|
137
|
+
- **Required checks:** the unit/integration/E2E split Hawkeye declares below, plus lint, format, type-check, build. Authz asserted on the server action.
|
|
138
|
+
- **States:** loading, empty, error rendered and asserted.
|
|
139
|
+
|
|
140
|
+
## Notes for Hawkeye (TEA)
|
|
141
|
+
- Tests required: 2 unit (validation), 1 integration (server action calls mailer with right args), 1 E2E (happy path on Playwright).
|
|
142
|
+
- Mocks: outbound email via MSW; auth context via fixture.
|
|
143
|
+
- NFR sample: response p95 ≤ 800ms locally (NFR 1.A allows up to 1s end-to-end).
|
|
144
|
+
|
|
145
|
+
## Done means
|
|
146
|
+
Every AC has a passing test (mapped above), gate PASS/CONCERNS, story `status: ready-for-review`, knowledge axes updated if touched.
|
|
48
147
|
```
|
|
148
|
+
|
|
149
|
+
## Steps
|
|
150
|
+
|
|
151
|
+
### 1. From PRD backbone → epics
|
|
152
|
+
|
|
153
|
+
Each backbone story in the PRD becomes one epic. Name epics by outcome, not by feature: "Sign-up + first invite," not "Auth screens."
|
|
154
|
+
|
|
155
|
+
### 2. From scenarios → stories
|
|
156
|
+
|
|
157
|
+
For each epic, walk the linked scenarios in `ux-scenarios.md`. Slice into stories by the patterns above. Aim for 3–7 stories per epic.
|
|
158
|
+
|
|
159
|
+
### 3. ACs map exactly
|
|
160
|
+
|
|
161
|
+
Every story declares the AC IDs it advances (from PRD). The union of stories per epic equals the AC set of that epic — no gaps, no overlap.
|
|
162
|
+
|
|
163
|
+
### 3.5 Fill the contract fields
|
|
164
|
+
|
|
165
|
+
Each story carries its own **sources of truth**, **restrictions** (out-of-scope + protected behaviors + compatibility + security), and a **validation contract** (AC → test map + required checks). These aren't optional prose — they are what makes AC → code → test → gate traceable. A story missing them is not ready for dev.
|
|
166
|
+
|
|
167
|
+
### 4. Slice check (no estimates)
|
|
168
|
+
|
|
169
|
+
Don't estimate stories — size them by one question: does each fit a single PR? Anything that doesn't gets sliced before it lands in `stories/`. If most stories feel too big to slice cleanly, the slicing pattern is too coarse; revisit it.
|
|
170
|
+
|
|
171
|
+
### 5. Hand off
|
|
172
|
+
|
|
173
|
+
- Mark all epics + stories `status: ready-for-dev`.
|
|
174
|
+
- Trigger `wize-check-implementation-readiness` (Tony, with Hawkeye on risk profile).
|
|
175
|
+
- After ready, Hill runs sprint planning.
|
|
176
|
+
|
|
177
|
+
## Anti-patterns Tony rejects
|
|
178
|
+
|
|
179
|
+
- **Stories without AC links.** No traceability → no gate later.
|
|
180
|
+
- **Stories that "ship a back-end."** Bundle with the front-end consumer unless a different team uses it independently.
|
|
181
|
+
- **XL stories.** Slice further or split into two PRs.
|
|
182
|
+
- **"Epic" that is one story.** Then it's a story.
|
|
183
|
+
- **Stories that share `testid` namespace.** They'll collide.
|
|
184
|
+
|
|
185
|
+
## Hand-off
|
|
186
|
+
|
|
187
|
+
> Epics and stories at `.wize/solutioning/`. 5 epics, 28 stories. All have ACs from the PRD. Run `wize-check-implementation-readiness`; Hawkeye, `tea-risk.md` next.
|