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
|
@@ -1,36 +1,198 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
code: wize-design-system
|
|
4
|
+
description: "Use quando o UX design estiver avançando e precisar estabelecer a baseline do design system (tokens, componentes, grids)."
|
|
3
5
|
name: Design System
|
|
4
6
|
phase: 3-solutioning
|
|
5
7
|
owner: wize-agent-ux-designer # Mantis (WDS Freya — Phase 7)
|
|
6
8
|
absorbs: "WDS Freya — Phase 7 (Design System)"
|
|
7
|
-
status:
|
|
9
|
+
status: ready
|
|
8
10
|
---
|
|
9
11
|
|
|
10
12
|
# Design System
|
|
11
13
|
|
|
12
|
-
**Goal.** Establish design tokens and a baseline component library
|
|
14
|
+
**Goal.** Establish design tokens and a baseline component library Shuri implements consistently. Mantis defines what; Tony picks the runtime; Shuri builds. Hawkeye verifies a11y and consistency at gate.
|
|
15
|
+
|
|
16
|
+
Mantis drives. Output lands in `.wize/solutioning/design-system/`.
|
|
13
17
|
|
|
14
18
|
## Inputs
|
|
15
|
-
|
|
19
|
+
|
|
20
|
+
- `.wize/planning/ux/ux-design/` (every component the specs use)
|
|
21
|
+
- `.wize/planning/nfr-principles.md` (a11y and perf budgets)
|
|
22
|
+
- Overlay playbooks (active):
|
|
23
|
+
- `web-overlay/playbooks/wcag-aa.md`, `responsive-breakpoints.md`, `semantic-html.md`
|
|
24
|
+
- `app-overlay/playbooks/apple-hig.md`, `material-design-3.md`, `touch-targets-and-gestures.md`
|
|
16
25
|
|
|
17
26
|
## Outputs
|
|
18
|
-
|
|
19
|
-
- `.wize/solutioning/design-system/
|
|
20
|
-
- `.wize/solutioning/design-system/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
|
|
28
|
+
- `.wize/solutioning/design-system/tokens.json` — single source of truth.
|
|
29
|
+
- `.wize/solutioning/design-system/components/{Component}.md` — one per component.
|
|
30
|
+
- `.wize/solutioning/design-system/README.md` — index + theming guide.
|
|
31
|
+
|
|
32
|
+
## Tokens (the only acceptable way to ship styles)
|
|
33
|
+
|
|
34
|
+
Mantis defines the tokens; Tony picks the runtime (Tailwind, CSS modules, Vanilla Extract, Compose theme, SwiftUI tokens). The names below are framework-agnostic.
|
|
35
|
+
|
|
36
|
+
### Color (semantic + raw scale)
|
|
37
|
+
|
|
38
|
+
| Semantic | Light | Dark | Contrast pair |
|
|
39
|
+
|---|---|---|---|
|
|
40
|
+
| `surface.base` | #FFFFFF | #0B0F14 | text.primary |
|
|
41
|
+
| `surface.raised` | #F5F7FA | #121821 | text.primary |
|
|
42
|
+
| `text.primary` | #0B0F14 | #E5E7EB | surface.base |
|
|
43
|
+
| `text.secondary` | #4B5563 | #9CA3AF | surface.base |
|
|
44
|
+
| `accent.brand` | #6F49FF | #8B6FFF | text.onAccent |
|
|
45
|
+
| `text.onAccent` | #FFFFFF | #FFFFFF | accent.brand |
|
|
46
|
+
| `success` | #058E5C | #34D399 | text.onSuccess |
|
|
47
|
+
| `warning` | #C9621E | #F59E0B | text.onWarning |
|
|
48
|
+
| `error` | #B42318 | #FCA5A5 | text.onError |
|
|
49
|
+
| `border.default` | #E5E7EB | #2A313A | — |
|
|
50
|
+
| `border.focus` | accent.brand | accent.brand | — |
|
|
51
|
+
|
|
52
|
+
Validate every pair against WCAG AA (≥ 4.5:1 normal, ≥ 3:1 large). Run before you commit.
|
|
53
|
+
|
|
54
|
+
### Typography
|
|
55
|
+
|
|
56
|
+
| Token | Family | Size | Weight | Line | Letter |
|
|
57
|
+
|---|---|---|---|---|---|
|
|
58
|
+
| `display.l` | Inter Display | clamp(2.5rem, 5vw, 3.5rem) | 700 | 1.05 | -0.02em |
|
|
59
|
+
| `display.m` | Inter Display | clamp(2rem, 4vw, 2.5rem) | 700 | 1.1 | -0.01em |
|
|
60
|
+
| `heading.l` | Inter | clamp(1.5rem, 3vw, 2rem) | 600 | 1.2 | -0.01em |
|
|
61
|
+
| `heading.m` | Inter | 1.25rem | 600 | 1.3 | 0 |
|
|
62
|
+
| `heading.s` | Inter | 1rem | 600 | 1.4 | 0 |
|
|
63
|
+
| `body.l` | Inter | 1.125rem | 400 | 1.6 | 0 |
|
|
64
|
+
| `body.m` | Inter | 1rem | 400 | 1.55 | 0 |
|
|
65
|
+
| `body.s` | Inter | 0.875rem | 400 | 1.5 | 0 |
|
|
66
|
+
| `caption` | Inter | 0.75rem | 500 | 1.4 | 0.01em |
|
|
67
|
+
|
|
68
|
+
Use rem for body; clamp() for fluid headings (see `responsive-breakpoints.md`).
|
|
69
|
+
|
|
70
|
+
### Spacing scale (4px base, geometric)
|
|
71
|
+
|
|
72
|
+
`0` 0 · `1` 4 · `2` 8 · `3` 12 · `4` 16 · `5` 24 · `6` 32 · `7` 48 · `8` 64 · `9` 96 · `10` 128
|
|
73
|
+
|
|
74
|
+
### Radius
|
|
75
|
+
|
|
76
|
+
`none` 0 · `sm` 4 · `md` 8 · `lg` 12 · `xl` 16 · `pill` 999.
|
|
77
|
+
|
|
78
|
+
### Elevation
|
|
79
|
+
|
|
80
|
+
| Token | Light | Dark (tonal) |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| `e1` | 0 1px 2px rgba(0,0,0,.06) | surface.raised |
|
|
83
|
+
| `e2` | 0 2px 4px rgba(0,0,0,.08) | surface.raised + 4% |
|
|
84
|
+
| `e3` | 0 4px 12px rgba(0,0,0,.10) | surface.raised + 8% |
|
|
85
|
+
| `e4` | 0 12px 24px rgba(0,0,0,.12) | surface.raised + 12% |
|
|
86
|
+
|
|
87
|
+
App overlay: prefer tonal elevation per Material 3.
|
|
88
|
+
|
|
89
|
+
### Motion
|
|
90
|
+
|
|
91
|
+
| Token | Duration | Easing |
|
|
92
|
+
|---|---|---|
|
|
93
|
+
| `motion.micro` | 100ms | `ease-out` |
|
|
94
|
+
| `motion.transition` | 200ms | `cubic-bezier(0.2, 0, 0, 1)` |
|
|
95
|
+
| `motion.page` | 300ms | `cubic-bezier(0.4, 0, 0.2, 1)` |
|
|
96
|
+
| `motion.spring.subtle` | (spring) | mass 1, stiff 350, damp 30 |
|
|
97
|
+
|
|
98
|
+
Honor `prefers-reduced-motion`. Replace transforms with fades.
|
|
99
|
+
|
|
100
|
+
## Components — the baseline set
|
|
101
|
+
|
|
102
|
+
Each component has its own `.md` doc with: purpose, anatomy, states (default/hover/focus/active/disabled/loading), variants, accessibility, do/don't, snippets.
|
|
103
|
+
|
|
104
|
+
| Component | Mandatory states | Notes |
|
|
105
|
+
|---|---|---|
|
|
106
|
+
| Button | default, hover, focus, active, disabled, loading | variants: primary, secondary, tertiary, destructive, ghost |
|
|
107
|
+
| Input | default, focus, error, disabled, success | always has visible label |
|
|
108
|
+
| Select | default, open, focus, disabled | native first; custom only when needed |
|
|
109
|
+
| Textarea | as Input | auto-grow optional |
|
|
110
|
+
| Checkbox | unchecked, checked, indeterminate, focus, disabled | native input + custom skin |
|
|
111
|
+
| Radio | unchecked, checked, focus, disabled | grouped under fieldset |
|
|
112
|
+
| Toggle/Switch | off, on, focus, disabled | `role="switch" aria-checked` |
|
|
113
|
+
| Card | default, raised, interactive | elevation tokens |
|
|
114
|
+
| Modal / Dialog | open, closing | focus trap + ESC + restore |
|
|
115
|
+
| Sheet (app) | half / full | drag handle |
|
|
116
|
+
| Tabs | active, inactive, focus | keyboard arrows |
|
|
117
|
+
| Accordion | collapsed, expanded, focus | `<details>` when possible |
|
|
118
|
+
| Toast / Snackbar | info, success, warning, error | `role="status"` or `alert` |
|
|
119
|
+
| Tooltip | hidden, visible | `aria-describedby`, touch alt |
|
|
120
|
+
| Menu | closed, open, focus | keyboard navigation |
|
|
121
|
+
| Dropdown | (synonym of Menu / Combobox) | follow ARIA combobox |
|
|
122
|
+
| Badge | default, success, warning, error | contrast ≥ 4.5:1 |
|
|
123
|
+
| Avatar | image, initials, placeholder | 1:1 ratio, alt text |
|
|
124
|
+
| Skeleton | static, shimmer | respect reduced-motion |
|
|
125
|
+
| Empty state | default | message + primary action |
|
|
126
|
+
| Loading | spinner / progress | accessible announcement |
|
|
127
|
+
|
|
128
|
+
## Component template (one per component)
|
|
129
|
+
|
|
130
|
+
```markdown
|
|
131
|
+
---
|
|
132
|
+
component: Button
|
|
133
|
+
status: ready
|
|
134
|
+
owner: Mantis
|
|
135
|
+
linked_screens: [signup-empty, team-list-empty, …]
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
# Button
|
|
139
|
+
|
|
140
|
+
## Purpose
|
|
141
|
+
Trigger an action. Never use for navigation between routes.
|
|
142
|
+
|
|
143
|
+
## Anatomy
|
|
144
|
+
[icon?] [label] [icon?] · padding by size · radius `md`
|
|
145
|
+
|
|
146
|
+
## Variants
|
|
147
|
+
- `primary` — main action; one per screen region.
|
|
148
|
+
- `secondary` — alternative action.
|
|
149
|
+
- `tertiary` — text-only.
|
|
150
|
+
- `destructive` — irreversible action.
|
|
151
|
+
- `ghost` — minimal chrome, e.g., toolbar.
|
|
152
|
+
|
|
153
|
+
## Sizes
|
|
154
|
+
- `sm` (height 32, label `body.s`)
|
|
155
|
+
- `md` (height 40, label `body.m`)
|
|
156
|
+
- `lg` (height 48, label `body.m`)
|
|
157
|
+
|
|
158
|
+
## States
|
|
159
|
+
|
|
160
|
+
| State | Treatment |
|
|
161
|
+
|---|---|
|
|
162
|
+
| default | accent.brand bg, text.onAccent label |
|
|
163
|
+
| hover | accent.brand 10% darker |
|
|
164
|
+
| focus | 2px outline `border.focus`, offset 2px |
|
|
165
|
+
| active | accent.brand 15% darker |
|
|
166
|
+
| disabled | opacity 0.4, `aria-disabled="true"`, cursor not-allowed |
|
|
167
|
+
| loading | spinner replaces icon; label unchanged; click ignored |
|
|
168
|
+
|
|
169
|
+
## Accessibility
|
|
170
|
+
- Native `<button>`.
|
|
171
|
+
- `aria-label` when icon-only.
|
|
172
|
+
- Visible focus ring always (don't override).
|
|
173
|
+
- 24×24 px hit area minimum (web), 44pt (iOS), 48dp (Android).
|
|
174
|
+
- Min contrast on label ≥ 4.5:1.
|
|
175
|
+
|
|
176
|
+
## Don't
|
|
177
|
+
- Use `<div onclick>`.
|
|
178
|
+
- Remove the focus ring without replacement.
|
|
179
|
+
- Use destructive for "Continue".
|
|
180
|
+
- Stack > 2 primary buttons on a screen.
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Theming + overlays
|
|
184
|
+
|
|
185
|
+
- **Web overlay:** tokens emit as CSS custom properties; dark mode toggled via `[data-theme="dark"]` on `<html>`.
|
|
186
|
+
- **App overlay (iOS):** tokens as SwiftUI environment values; dark mode auto.
|
|
187
|
+
- **App overlay (Android):** tokens as Compose `MaterialTheme` extensions; honor `dynamicColorScheme` when allowed.
|
|
188
|
+
|
|
189
|
+
## Anti-patterns Mantis rejects
|
|
190
|
+
|
|
191
|
+
- **Hex in components.** Everything via tokens.
|
|
192
|
+
- **One-off components shipped without doc.** Add to the system or refuse to merge.
|
|
193
|
+
- **Component matrix without states.** A button without disabled+loading isn't a button.
|
|
194
|
+
- **Component that fails axe.** Failed at definition; don't ship.
|
|
195
|
+
|
|
196
|
+
## Hand-off
|
|
197
|
+
|
|
198
|
+
> Tokens + 20 components at `.wize/solutioning/design-system/`. Tony picks the runtime (Tailwind / Vanilla Extract / SwiftUI tokens / Compose theme); Shuri implements. Hawkeye references this in `tea-design.md`: a11y + visual regression hooks point at these tokens.
|
|
@@ -1,33 +1,161 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
code: wize-nfr-principles
|
|
4
|
+
description: "Use quando o PRD estiver validado e precisar definir os princípios de NFR (perf, segurança, confiabilidade, acessibilidade, custo) que guiarão a arquitetura."
|
|
3
5
|
name: NFR Principles
|
|
4
|
-
phase:
|
|
6
|
+
phase: 3-solutioning
|
|
5
7
|
owner: wize-agent-solution-strategist # Nick Fury
|
|
6
|
-
status:
|
|
8
|
+
status: ready
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
# NFR Principles
|
|
10
12
|
|
|
11
|
-
**Goal.** Define non-functional non-negotiables Tony must design against and Hawkeye must verify.
|
|
13
|
+
**Goal.** Define non-functional non-negotiables Tony must design against and Hawkeye must verify. Hill defers to this when sizing scope. Mantis respects the a11y/perf bars in UX specs. Shuri implements with these targets in hand.
|
|
14
|
+
|
|
15
|
+
Fury drives. Output lands in `.wize/planning/nfr-principles.md`.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
- `.wize/planning/prd.md`
|
|
20
|
+
- `.wize/planning/tech-vision.md`
|
|
21
|
+
- `.wize/planning/brief.md` (compliance constraints, audience implications)
|
|
22
|
+
- Overlay perf playbooks if active:
|
|
23
|
+
- `web-overlay/playbooks/web-perf-budgets.md`
|
|
24
|
+
- `app-overlay/playbooks/mobile-perf-budgets.md`
|
|
25
|
+
- `web-overlay/playbooks/wcag-aa.md`
|
|
26
|
+
- `app-overlay/playbooks/apple-hig.md`, `material-design-3.md`
|
|
27
|
+
|
|
28
|
+
## Outputs
|
|
12
29
|
|
|
13
|
-
## Output
|
|
14
30
|
- `.wize/planning/nfr-principles.md`
|
|
15
31
|
|
|
16
|
-
## Categories
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
32
|
+
## Categories (always cover these six)
|
|
33
|
+
|
|
34
|
+
For each, write **non-negotiable** + **stretch** + **deferred** (with trigger). Use the playbooks as starting points; **tighten** if PRD demands, never loosen below playbook recommendations.
|
|
35
|
+
|
|
36
|
+
### 1. Performance
|
|
37
|
+
|
|
38
|
+
| Tier | Targets |
|
|
39
|
+
|---|---|
|
|
40
|
+
| Non-negotiable | LCP ≤ 2.5s mobile, INP ≤ 200ms, CLS ≤ 0.1 (web) — cold start ≤ 1.5s mid-range (app) |
|
|
41
|
+
| Stretch | LCP ≤ 1.8s, INP ≤ 100ms |
|
|
42
|
+
| Deferred | Server-side LCP for edge regions — revisit when audience > 30% non-NA |
|
|
43
|
+
|
|
44
|
+
### 2. Security
|
|
45
|
+
|
|
46
|
+
| Tier | Items |
|
|
47
|
+
|---|---|
|
|
48
|
+
| Non-negotiable | OWASP Top 10 covered; auth via {{vendor}}; tokens never logged; secrets via {{provider}}; RLS on every table with user_id |
|
|
49
|
+
| Stretch | SOC2 type-I controls in place by {{date}} |
|
|
50
|
+
| Deferred | SOC2 type-II — revisit at $1M ARR |
|
|
51
|
+
|
|
52
|
+
### 3. Reliability
|
|
53
|
+
|
|
54
|
+
| Tier | Targets |
|
|
55
|
+
|---|---|
|
|
56
|
+
| Non-negotiable | 99.9% uptime in primary region; error budget 0.1%/month; retries idempotent with deduplication key |
|
|
57
|
+
| Stretch | 99.95% uptime |
|
|
58
|
+
| Deferred | Multi-region active/active — revisit per tech-vision deferred |
|
|
59
|
+
|
|
60
|
+
### 4. Maintainability
|
|
61
|
+
|
|
62
|
+
| Tier | Items |
|
|
63
|
+
|---|---|
|
|
64
|
+
| Non-negotiable | Lint + format on commit; > 80% test coverage on logic modules; ADRs for every architectural decision; deps audited monthly |
|
|
65
|
+
| Stretch | < 5% files over 300 LOC; cyclomatic complexity < 15 per function |
|
|
66
|
+
| Deferred | Auto-doc generation — revisit when API consumers > 3 |
|
|
67
|
+
|
|
68
|
+
### 5. Accessibility
|
|
69
|
+
|
|
70
|
+
| Tier | Items |
|
|
71
|
+
|---|---|
|
|
72
|
+
| Non-negotiable | WCAG 2.2 AA on every shipped page; keyboard-complete; axe in CI |
|
|
73
|
+
| Stretch | AAA on critical flows (signup, billing) |
|
|
74
|
+
| Deferred | Full screen-reader manual audit every release — revisit at next compliance review |
|
|
75
|
+
|
|
76
|
+
### 6. Cost
|
|
77
|
+
|
|
78
|
+
| Tier | Targets |
|
|
79
|
+
|---|---|
|
|
80
|
+
| Non-negotiable | Total infra ≤ ${{X}}/month under {{load}}; degradation strategy documented for 10× spike |
|
|
81
|
+
| Stretch | Cost-per-active-user ≤ ${{Y}} |
|
|
82
|
+
| Deferred | Per-feature cost attribution — revisit when finance asks |
|
|
83
|
+
|
|
84
|
+
## Steps
|
|
85
|
+
|
|
86
|
+
### 1. Read the playbooks first
|
|
87
|
+
|
|
88
|
+
If web/app overlays are active, the perf and a11y playbooks already hold real targets calibrated to mid-range device + 3G fast. Use them as starting point.
|
|
89
|
+
|
|
90
|
+
### 2. Tighten by audience
|
|
91
|
+
|
|
92
|
+
Mid-range mobile is the playbook baseline. If your PRD audience is *more* constrained (emerging markets, kiosk hardware, healthcare older devices), tighten. Don't loosen.
|
|
93
|
+
|
|
94
|
+
### 3. Map every non-negotiable to a verifier
|
|
95
|
+
|
|
96
|
+
Every non-negotiable must answer the question: *Who and how do we verify this on every release?*
|
|
97
|
+
|
|
98
|
+
- LCP → `web-perf-budgets.md` lighthouse-ci config.
|
|
99
|
+
- WCAG → axe in CI + Hawkeye review.
|
|
100
|
+
- Uptime → SLO defined in `.wize/solutioning/observability.md` (Tony).
|
|
101
|
+
- Error budget → tracked in {{tool}}.
|
|
102
|
+
|
|
103
|
+
A non-negotiable with no verifier is a wish.
|
|
104
|
+
|
|
105
|
+
### 4. Tell the story (one paragraph)
|
|
106
|
+
|
|
107
|
+
Open the doc with a paragraph: *why these numbers, and what trade-offs they imply.* Future readers re-litigate non-negotiables every six months; the story saves that hour.
|
|
108
|
+
|
|
109
|
+
### 5. Hand off
|
|
110
|
+
|
|
111
|
+
Mark `status: aligned`. Tony reads before architecture; Hawkeye reads before risk profile.
|
|
112
|
+
|
|
113
|
+
## Output template
|
|
23
114
|
|
|
24
|
-
## Template
|
|
25
115
|
```markdown
|
|
26
|
-
|
|
116
|
+
---
|
|
117
|
+
status: aligned
|
|
118
|
+
owner: Nick Fury
|
|
119
|
+
created: YYYY-MM-DD
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
# NFR Principles — {{project_name}}
|
|
123
|
+
|
|
124
|
+
## Why these numbers
|
|
125
|
+
|
|
126
|
+
{{One paragraph: target audience, country mix, device class, compliance frame. Why we picked these targets specifically.}}
|
|
127
|
+
|
|
128
|
+
## Performance
|
|
129
|
+
| Tier | Targets | Verifier |
|
|
130
|
+
|---|---|---|
|
|
131
|
+
| Non-negotiable | LCP ≤ 2.5s mobile (CWV), INP ≤ 200ms, CLS ≤ 0.1 | lighthouse-ci + web-vitals beacon |
|
|
132
|
+
| Stretch | LCP ≤ 1.8s | same |
|
|
133
|
+
| Deferred | Multi-region LCP — trigger: EU DAU > 5k | — |
|
|
27
134
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
135
|
+
## Security
|
|
136
|
+
…
|
|
137
|
+
|
|
138
|
+
## Reliability
|
|
139
|
+
…
|
|
140
|
+
|
|
141
|
+
## Maintainability
|
|
142
|
+
…
|
|
143
|
+
|
|
144
|
+
## Accessibility
|
|
145
|
+
…
|
|
146
|
+
|
|
147
|
+
## Cost
|
|
32
148
|
…
|
|
33
149
|
```
|
|
150
|
+
|
|
151
|
+
## Anti-patterns Fury rejects
|
|
152
|
+
|
|
153
|
+
- **Targets without numbers.** "Fast." Wrong. "p95 server response ≤ 200ms."
|
|
154
|
+
- **Stretch targets that are actually goals.** If you must hit it, it's non-negotiable.
|
|
155
|
+
- **No verifier.** Every non-negotiable answers *who verifies, with what tool, on what cadence*.
|
|
156
|
+
- **Loosening below the playbook.** Tightening is fine. Loosening is a smell — escalate.
|
|
157
|
+
- **Cost left blank.** Cost is always an NFR.
|
|
158
|
+
|
|
159
|
+
## Hand-off
|
|
160
|
+
|
|
161
|
+
> NFRs at `.wize/planning/nfr-principles.md`. Tony, architecture must respect items 1.A and 4.A from day one (perf and ADR discipline). Hawkeye, your gate policy can stay advisory but NFR gate per epic is mandatory. Hill, scope must keep the budget headroom for item 6.A.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
code: wize-project-context
|
|
4
|
+
description: "Use quando precisar estabelecer ou atualizar o contexto do projeto (stack, convenções, restrições) para orientar a solução."
|
|
5
|
+
name: Project Context
|
|
6
|
+
phase: 3-solutioning
|
|
7
|
+
owner: wize-agent-architect # Tony Stark
|
|
8
|
+
status: ready
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Project Context
|
|
12
|
+
|
|
13
|
+
**Goal.** Consolidate the 5 foundational artifacts (brief, PRD, UX, architecture, risk profile) into a single `.wize/knowledge/project-context.md` so other agents (Shuri, Hawkeye, Mantis, Wizer) can read the project in one shot instead of stitching it from 5 files.
|
|
14
|
+
|
|
15
|
+
Tony drives. Peggy polishes prose. Wizer is on call for cross-cutting drift.
|
|
16
|
+
|
|
17
|
+
## When to run
|
|
18
|
+
|
|
19
|
+
- After Phase 3 closeout (architecture + ADRs + risk profile all exist).
|
|
20
|
+
- After any major change to brief / PRD / architecture (rerun).
|
|
21
|
+
- Before sprint planning if context feels stale.
|
|
22
|
+
|
|
23
|
+
## When NOT to run
|
|
24
|
+
|
|
25
|
+
- During greenfield with no artifacts yet (run only after brief + PRD exist).
|
|
26
|
+
- As a CI step (manual; expensive to run on every commit).
|
|
27
|
+
|
|
28
|
+
## Inputs
|
|
29
|
+
|
|
30
|
+
- `.wize/planning/brief.md` — Vision, Audience.
|
|
31
|
+
- `.wize/planning/prd.md` — Goals, scope.
|
|
32
|
+
- `.wize/planning/ux/ux-design/index.md` — UX stack, key screens.
|
|
33
|
+
- `.wize/solutioning/architecture.md` — Tech stack, components.
|
|
34
|
+
- `.wize/solutioning/adrs/*.md` — Key decisions.
|
|
35
|
+
- `.wize/implementation/tea/risk-profile.md` — Active risks.
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
- `.wize/knowledge/project-context.md` (5 sections, YAML frontmatter, `last_updated` date).
|
|
40
|
+
|
|
41
|
+
## Steps
|
|
42
|
+
|
|
43
|
+
### 1. Vision and Audience
|
|
44
|
+
|
|
45
|
+
Copy from `brief.md` (or `prd.md` if brief is missing). One paragraph each. Mark the source file in a comment.
|
|
46
|
+
|
|
47
|
+
### 2. Tech stack
|
|
48
|
+
|
|
49
|
+
From `architecture.md`, list: runtime, framework, database, key libraries, build tool. One bullet per item. Skip items that are "TBD".
|
|
50
|
+
|
|
51
|
+
### 3. Key ADRs
|
|
52
|
+
|
|
53
|
+
List the 5 most recent ADRs from `.wize/solutioning/adrs/`. For each: title, decision, why. Older ADRs are out of scope; refer to `adrs/index.md` for the full list.
|
|
54
|
+
|
|
55
|
+
### 4. Active risks
|
|
56
|
+
|
|
57
|
+
Copy from `risk-profile.md` the top 5 risks (highest prob × impact). One bullet per risk with the mitigation. Defer the rest.
|
|
58
|
+
|
|
59
|
+
### 5. Active sprint
|
|
60
|
+
|
|
61
|
+
Read `.wize/implementation/sprint-status.yaml` and include: sprint number, capacity, in-progress stories. Skip if no active sprint.
|
|
62
|
+
|
|
63
|
+
### 6. Hand off
|
|
64
|
+
|
|
65
|
+
Output is a markdown file. Wizer uses this file to seed `/wize`, `/wize-help`, `/wize-dev-story`, and `/wize-onboarding` reads.
|
|
66
|
+
|
|
67
|
+
## Output template
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
---
|
|
71
|
+
generated: YYYY-MM-DD
|
|
72
|
+
last_updated: YYYY-MM-DD
|
|
73
|
+
sources:
|
|
74
|
+
- .wize/planning/brief.md
|
|
75
|
+
- .wize/planning/prd.md
|
|
76
|
+
- .wize/planning/ux/ux-design/index.md
|
|
77
|
+
- .wize/solutioning/architecture.md
|
|
78
|
+
- .wize/solutioning/adrs/
|
|
79
|
+
- .wize/implementation/tea/risk-profile.md
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
# Project Context — {project_name}
|
|
83
|
+
|
|
84
|
+
## Vision
|
|
85
|
+
{paragraph from brief.md}
|
|
86
|
+
|
|
87
|
+
## Audience
|
|
88
|
+
{paragraph from brief.md or prd.md}
|
|
89
|
+
|
|
90
|
+
## Tech stack
|
|
91
|
+
- Runtime: {value}
|
|
92
|
+
- Framework: {value}
|
|
93
|
+
- Database: {value}
|
|
94
|
+
- Key libraries: {value}
|
|
95
|
+
- Build: {value}
|
|
96
|
+
|
|
97
|
+
## Key ADRs
|
|
98
|
+
1. **{title}** — {decision}. Why: {why}.
|
|
99
|
+
2. ...
|
|
100
|
+
|
|
101
|
+
## Active risks
|
|
102
|
+
1. **{R-id}** — {description}. Mitigation: {mitigation}.
|
|
103
|
+
2. ...
|
|
104
|
+
|
|
105
|
+
## Active sprint
|
|
106
|
+
- Sprint: {N}
|
|
107
|
+
- Capacity: {days}
|
|
108
|
+
- In-progress: {stories}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Anti-patterns Tony rejects
|
|
112
|
+
|
|
113
|
+
- Reading all 6 sources in full and dumping them. Summarize in 5 sections.
|
|
114
|
+
- Editing the project-context.md by hand. (Always re-run the workflow to keep `last_updated` honest.)
|
|
115
|
+
- Skipping the frontmatter. Other agents parse it.
|
|
116
|
+
- Including items marked "TBD". Surface them in the `Open questions` section instead.
|
|
117
|
+
|
|
118
|
+
## Hand-off
|
|
119
|
+
|
|
120
|
+
> "Project context updated at `.wize/knowledge/project-context.md`. {N} sources, 5 sections, {date}. Next: `/wize-onboarding` (Wizer) reads this for first contact."
|