wize-dev-kit 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +37 -0
- package/ARCH.md +77 -24
- package/CHANGELOG.md +14 -0
- package/DECISIONS.md +27 -1
- package/README.es.md +296 -0
- package/README.md +3 -2
- package/README.pt-BR.md +294 -0
- package/ROSTER.md +11 -3
- package/adapters/README.md +9 -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/kiro/README.md +30 -0
- package/adapters/kiro/adapter.yaml +8 -0
- package/adapters/kiro/render.js +21 -0
- 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/kiro.md +26 -0
- package/docs/harnesses/kiro.pt-BR.md +26 -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/check-eli5-all-adapters.js +3 -2
- package/tools/installer/baseline.js +138 -0
- package/tools/installer/commands/agent.js +197 -0
- package/tools/installer/commands/doctor.js +321 -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 +2 -0
- package/tools/installer/validators/run-all.js +3 -2
- package/tools/installer/version-check.js +117 -0
- package/tools/installer/wize-cli.js +501 -70
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: wize-pre-pr-check
|
|
3
|
+
name: wize-pre-pr-check
|
|
4
|
+
module: core
|
|
5
|
+
description: "Quando for abrir um Pull Request ou PR leia"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Pre-PR Check
|
|
9
|
+
|
|
10
|
+
**Goal.** Rodar os checks obrigatórios localmente antes de abrir um PR, falhando cedo e rápido. Evita ciclagem cara de CI no Actions — principalmente lint, format, build e testes rápidos. O objetivo é ser um portão (gate) antes de submeter código.
|
|
11
|
+
|
|
12
|
+
**Agnóstica de tecnologia.** Não prescreve ferramentas específicas; lê os comandos disponíveis no repositório e executa o que for aplicável.
|
|
13
|
+
|
|
14
|
+
## When to run
|
|
15
|
+
|
|
16
|
+
- Imediatamente antes de `git push` para uma branch de PR.
|
|
17
|
+
- Antes de abrir o PR no GitHub/GitLab.
|
|
18
|
+
- Após `git commit` na branch de feature, como sanity check.
|
|
19
|
+
- A qualquer momento durante o desenvolvimento — fail fast.
|
|
20
|
+
|
|
21
|
+
## When NOT to run
|
|
22
|
+
|
|
23
|
+
- Quando o CI já está verde e o PR está em revisão (o gate já passou).
|
|
24
|
+
- Quando o repositório não tem scripts/ferramentas de lint/test configurados.
|
|
25
|
+
|
|
26
|
+
## Operating contract
|
|
27
|
+
|
|
28
|
+
- **Leia o projeto antes de rodar.** Procura por `package.json`, `composer.json`, `Makefile`, `justfile`, `pyproject.toml`, `Cargo.toml`, etc. para descobrir os comandos de check existentes.
|
|
29
|
+
- **Só execute o que existir.** Se não houver `eslint`, pule o passo de lint. Se não houver `phpstan`, pule o passo de análise estática. Nunca exija uma ferramenta que não esteja configurada no repo.
|
|
30
|
+
- **Pare no primeiro erro.** A menos que o usuário peça `--continue`, um check que falha interrompe a cadeia — corrija antes de continuar.
|
|
31
|
+
- **Não seja um substituto completo do CI.** O CI continua sendo a fonte da verdade para testes de integração, e2e, banco de dados, Docker, etc. Este gate é para checks rápidos e baratos.
|
|
32
|
+
- **Custo zero no Actions.** Tudo roda localmente.
|
|
33
|
+
|
|
34
|
+
## Inputs
|
|
35
|
+
|
|
36
|
+
- Estado atual do working tree (staged + unstaged).
|
|
37
|
+
- Arquivos de config do projeto para descobrir comandos.
|
|
38
|
+
|
|
39
|
+
## Outputs
|
|
40
|
+
|
|
41
|
+
- Relatório compacto de quais checks passaram/falharam.
|
|
42
|
+
- Se falhou: mensagem de erro + arquivo(s) sugerido(s) para corrigir.
|
|
43
|
+
- Se passou: confirmação pronta para PR.
|
|
44
|
+
|
|
45
|
+
## Steps
|
|
46
|
+
|
|
47
|
+
### 1. Detectar stack
|
|
48
|
+
|
|
49
|
+
Procurar nos arquivos de config do projeto quais ferramentas estão disponíveis:
|
|
50
|
+
|
|
51
|
+
| Fonte | O que extrair |
|
|
52
|
+
|-------|---------------|
|
|
53
|
+
| `package.json` → `scripts` | `lint`, `format`, `format:check`, `type-check`, `build`, `test`, `test:unit` |
|
|
54
|
+
| `composer.json` → `scripts` | `test`, `phpstan`, `pint`, `phpcs` |
|
|
55
|
+
| `Makefile` / `justfile` | targets `lint`, `format`, `check`, `test` |
|
|
56
|
+
| `pyproject.toml` / `setup.cfg` | `flake8`, `black`, `mypy`, `pytest` |
|
|
57
|
+
| `Cargo.toml` | `cargo check`, `cargo test`, `cargo clippy`, `cargo fmt` |
|
|
58
|
+
| `.github/workflows/*.yml` | steps de `lint`, `format`, `build`, `test` (como referência, não para rodar) |
|
|
59
|
+
|
|
60
|
+
Heurística de prioridade: scripts do gerenciador de pacote local (`npm run`, `composer run`) > binários diretos (`vendor/bin/pint`) > comandos genéricos (`cargo clippy`).
|
|
61
|
+
|
|
62
|
+
### 2. Selecionar checks por velocidade
|
|
63
|
+
|
|
64
|
+
Separar em **rápido** (executa em segundos) e **lento** (minutos):
|
|
65
|
+
|
|
66
|
+
**Rápido (executar sempre):**
|
|
67
|
+
- Lint (ESLint, PHPStan, Clippy, Ruff, etc.)
|
|
68
|
+
- Format check (Prettier, Pint, Black, rustfmt)
|
|
69
|
+
- Type check (tsc, mypy)
|
|
70
|
+
- Análise estática (PHPStan, Psalm)
|
|
71
|
+
|
|
72
|
+
**Lento (executar quando houver mudanças relevantes):**
|
|
73
|
+
- Build (Vite, Webpack, Cargo build)
|
|
74
|
+
- Testes unitários (Vitest, Jest, Pest, pytest, `cargo test`)
|
|
75
|
+
- Guard-rails custom (scripts próprios do projeto, ex: `check:orphans`)
|
|
76
|
+
|
|
77
|
+
**Muito lento (opcional / em dia de merge):**
|
|
78
|
+
- Testes de integração
|
|
79
|
+
- E2E (Playwright, Cypress)
|
|
80
|
+
- Build de Docker
|
|
81
|
+
|
|
82
|
+
### 3. Rodar o gate
|
|
83
|
+
|
|
84
|
+
Na ordem: format → lint → type-check → build → testes unitários → guard-rails.
|
|
85
|
+
|
|
86
|
+
Comandos típicos por stack (detectados em tempo real, não hardcoded):
|
|
87
|
+
|
|
88
|
+
| Stack | Comandos comuns |
|
|
89
|
+
|-------|-----------------|
|
|
90
|
+
| Node/JS/TS | `npm run format:check`, `npm run lint`, `npm run check:type` (ou `tsc --noEmit`), `npm run build`, `npm run test` |
|
|
91
|
+
| PHP/Laravel | `vendor/bin/pint --test`, `vendor/bin/phpstan analyse`, `php artisan test` |
|
|
92
|
+
| Python | `black --check`, `ruff check`, `mypy`, `pytest` |
|
|
93
|
+
| Rust | `cargo fmt -- --check`, `cargo clippy`, `cargo check`, `cargo test` |
|
|
94
|
+
| Go | `gofmt -l`, `golangci-lint run`, `go test ./...` |
|
|
95
|
+
|
|
96
|
+
Se um check falhar, pare e reporte. Não prossiga para o próximo.
|
|
97
|
+
|
|
98
|
+
### 4. Reportar
|
|
99
|
+
|
|
100
|
+
Formato compacto, uma linha por check:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
✓ format:check (npm run format:check) — 0.8s
|
|
104
|
+
✓ lint (vendor/bin/pint --test) — 2.1s
|
|
105
|
+
✗ phpstan (vendor/bin/phpstan) — 4.5s → FAIL
|
|
106
|
+
app/Http/Controllers/LegalController.php:11 — FQCN não importado
|
|
107
|
+
→ Corrija antes de abrir o PR.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Se tudo passar:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
✓ format:check — PASS (0.8s)
|
|
114
|
+
✓ lint — PASS (2.1s)
|
|
115
|
+
✓ phpstan — PASS (4.5s)
|
|
116
|
+
✓ build — PASS (32s)
|
|
117
|
+
✓ test:unit — PASS (30s)
|
|
118
|
+
─────────────────────────────
|
|
119
|
+
Gate limpo. Pode abrir o PR.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Anti-patterns
|
|
123
|
+
|
|
124
|
+
- **Rodar checks que não existem no repo.** Se não há `composer.json`, não tente `vendor/bin/pint`.
|
|
125
|
+
- **Ignorar falhas de lint.** Lint fail = PR fail. Corrija antes.
|
|
126
|
+
- **Executar E2E localmente toda vez.** E2E é caro; deixe para o CI ou rode antes de merge.
|
|
127
|
+
- **Substituir o CI.** Este gate é complementar, não substituto.
|
|
128
|
+
|
|
129
|
+
## Hand-off
|
|
130
|
+
|
|
131
|
+
> Gate `wize-pre-pr-check` concluído. `{passados}/{total}` checks passaram. `{tempo_total}s`. Pronto para PR.
|
|
132
|
+
|
|
133
|
+
Se houve falha:
|
|
134
|
+
> Gate `wize-pre-pr-check` interrompido em `{check_falho}`. Corrija e re-execute antes de abrir o PR.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
code: wize-review-adversarial
|
|
4
|
+
description: "Use quando um artefato (story, arquitetura, PRD) precisar de revisão adversarial — testar a ideia sob quatro personas hostis."
|
|
3
5
|
name: Adversarial Review
|
|
4
6
|
module: core
|
|
5
7
|
status: stub
|
|
8
|
+
subtask: true
|
|
6
9
|
---
|
|
7
10
|
|
|
8
11
|
# Adversarial Review
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
code: wize-review-edge-case-hunter
|
|
4
|
+
description: "Use quando um código ou PR precisar de caça sistemática de edge cases ranqueados por probabilidade × impacto."
|
|
5
|
+
name: Edge Case Hunter
|
|
6
|
+
module: core
|
|
7
|
+
status: ready
|
|
8
|
+
subtask: true
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Edge Case Hunter
|
|
12
|
+
|
|
13
|
+
**Goal.** Focused edge-case pass on a code change. Returns a structured list of edge cases, ranked by likelihood × impact, with a hand-off to test or guard each one.
|
|
14
|
+
|
|
15
|
+
Shuri runs the hunt. Hawkeye on call for test design. Wizer on call for cross-cutting risk.
|
|
16
|
+
|
|
17
|
+
## When to use
|
|
18
|
+
|
|
19
|
+
- "Hunt edge cases in this PR."
|
|
20
|
+
- "What can break in this code?"
|
|
21
|
+
- "Give me the edge case list before I refactor."
|
|
22
|
+
|
|
23
|
+
## When NOT to use
|
|
24
|
+
|
|
25
|
+
- Full adversarial code review → use `wize-code-review`.
|
|
26
|
+
- Generate E2E test cases → use `wize-qa-generate-e2e-tests`.
|
|
27
|
+
- Quick-dev fix → use `wize-quick-dev`.
|
|
28
|
+
|
|
29
|
+
## Inputs
|
|
30
|
+
|
|
31
|
+
- A code change (diff, file, or story reference).
|
|
32
|
+
- A short scope statement (one sentence: what is this code trying to do?).
|
|
33
|
+
- Optional: the relevant story file (`.wize/solutioning/stories/{epic}/{story}.md`).
|
|
34
|
+
|
|
35
|
+
## Output
|
|
36
|
+
|
|
37
|
+
- A markdown list of edge cases, grouped by category, with line-level `file:line` references when possible.
|
|
38
|
+
- Suggested action per case: write a test, add a guard, accept, or defer.
|
|
39
|
+
|
|
40
|
+
## Steps
|
|
41
|
+
|
|
42
|
+
### 1. Scope
|
|
43
|
+
|
|
44
|
+
Read the change + the one-line scope statement. Confirm the boundary: what is in scope (changed code) and what is not (existing dependencies, framework). Reject if the scope is too broad (> 500 LOC); suggest slicing first.
|
|
45
|
+
|
|
46
|
+
### 2. Hunt (per area)
|
|
47
|
+
|
|
48
|
+
Walk 4 areas in order:
|
|
49
|
+
|
|
50
|
+
- **Input edges.** Empty, null, unicode, max length, malformed, wrong type, wrong encoding. Boundary values (0, 1, max, max+1).
|
|
51
|
+
- **State edges.** Concurrent writes, stale reads, missing state, mixed state (some fields set, others not), partial failure.
|
|
52
|
+
- **Time / race.** Timeouts, retries, clock skew, ordering, idempotency.
|
|
53
|
+
- **Integration edges.** Vendor down, slow vendor, malformed vendor response, network partition, version skew.
|
|
54
|
+
|
|
55
|
+
For each area, list specific cases in 1 line each. Cite `file:line` when relevant.
|
|
56
|
+
|
|
57
|
+
### 3. Rank
|
|
58
|
+
|
|
59
|
+
For each case, score:
|
|
60
|
+
|
|
61
|
+
- **Likelihood** (low / medium / high): probability of triggering.
|
|
62
|
+
- **Impact** (low / medium / high): what happens when it triggers.
|
|
63
|
+
|
|
64
|
+
Order cases by `(likelihood + impact)`. The top 5 are P0; the rest P1/P2.
|
|
65
|
+
|
|
66
|
+
### 4. Hand off
|
|
67
|
+
|
|
68
|
+
For each P0 case, propose an action:
|
|
69
|
+
|
|
70
|
+
- **Test** → the user adds a test.
|
|
71
|
+
- **Guard** → the user adds input validation or a defensive check.
|
|
72
|
+
- **Accept** → the user documents the risk and moves on.
|
|
73
|
+
- **Defer** → the user opens a follow-up story.
|
|
74
|
+
|
|
75
|
+
Output is a markdown table. The user picks what to apply.
|
|
76
|
+
|
|
77
|
+
## Output template
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
---
|
|
81
|
+
date: 2026-06-17
|
|
82
|
+
scope: "Refactor of validateInviteEmail — split into 3 helpers"
|
|
83
|
+
author: Shuri
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
# Edge cases — {scope}
|
|
87
|
+
|
|
88
|
+
## Top 5 (P0)
|
|
89
|
+
|
|
90
|
+
| # | Case | Likelihood | Impact | Action | Location |
|
|
91
|
+
|---|---|---|---|---|---|
|
|
92
|
+
| 1 | Empty email string | high | medium | test | src/validate.ts:42 |
|
|
93
|
+
| 2 | Email with leading/trailing whitespace | high | low | guard | src/validate.ts:55 |
|
|
94
|
+
| 3 | Email with internationalized TLD (e.g. .中国) | medium | medium | test | src/validate.ts:48 |
|
|
95
|
+
| 4 | Email longer than 254 chars | low | medium | guard | src/validate.ts:48 |
|
|
96
|
+
| 5 | Null vs undefined | high | low | test | src/validate.ts:33 |
|
|
97
|
+
|
|
98
|
+
## Other (P1/P2)
|
|
99
|
+
|
|
100
|
+
- Unicode normalization mismatch — P1 — test
|
|
101
|
+
- Two plus signs in local part — P2 — accept
|
|
102
|
+
- Trailing dot in domain — P2 — defer (open E06-S05)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Anti-patterns Shuri rejects
|
|
106
|
+
|
|
107
|
+
- Listing 50 cases per area. (Top 5 P0; cap at 15 total.)
|
|
108
|
+
- Auto-fixing (hunt, don't fix).
|
|
109
|
+
- Skipping the rank step. (Without rank, the user cannot prioritize.)
|
|
110
|
+
- Skipping the action per case. (An edge case without an action is just noise.)
|
|
111
|
+
- Hunting only one area (e.g., only input). (All 4 areas.)
|
|
112
|
+
|
|
113
|
+
## Hand-off
|
|
114
|
+
|
|
115
|
+
> "Edge case hunt complete. {N} cases ranked. P0: {M}. Next: implement P0 (Shuri) or open follow-up stories (Hill)."
|
|
@@ -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,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
code: wize-spec
|
|
4
|
+
description: "Use quando precisar destilar qualquer entrada de intenção (ideia, PRD, RFC, transcrição) em um contrato canônico SPEC.md para consumo downstream."
|
|
5
|
+
name: Spec
|
|
6
|
+
module: core
|
|
7
|
+
status: ready
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Spec
|
|
11
|
+
|
|
12
|
+
**Goal.** Distill any intent input into a canonical, preservation-validated machine contract for downstream Wize work.
|
|
13
|
+
|
|
14
|
+
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.
|
|
15
|
+
|
|
16
|
+
Peggy Carter edits prose; Tony, Maria Hill, and Shuri consume the spec downstream.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
- "Create a spec for this idea."
|
|
21
|
+
- "Distill this PRD into a spec."
|
|
22
|
+
- "Validate this spec."
|
|
23
|
+
- "Update the spec."
|
|
24
|
+
|
|
25
|
+
Multiple skills may call to update the same spec over time.
|
|
26
|
+
|
|
27
|
+
## Workspace
|
|
28
|
+
|
|
29
|
+
The spec is **always a folder** named `{output_folder}/specs/spec-{slug}/`.
|
|
30
|
+
|
|
31
|
+
`{slug}` describes the thing being specced, not the input shape:
|
|
32
|
+
|
|
33
|
+
- Source artifact already carries a slug (e.g., `prd-foo-bar-2026-05-23/`): inherit (`foo-bar`).
|
|
34
|
+
- Sparse, in-chat, or multi-source input: ask interactively. Headless callers must provide it.
|
|
35
|
+
- Same slug = same folder. A second invocation updates in place, preserving capability IDs.
|
|
36
|
+
|
|
37
|
+
Inside the spec folder:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
<spec-folder>/
|
|
41
|
+
SPEC.md ← uppercase, the kernel
|
|
42
|
+
<companion-1>.md ← optional, content-typed
|
|
43
|
+
<companion-2>.md
|
|
44
|
+
.decision-log.md ← canonical memory for this spec
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## The Operation
|
|
48
|
+
|
|
49
|
+
1. Read the input and its ancillary linked materials. If no input, ask or block.
|
|
50
|
+
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.
|
|
51
|
+
3. When input is structured and pre-sorted (PRD with addendum, brief from Pepper, UX spec from Mantis), trust the authored separation.
|
|
52
|
+
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.
|
|
53
|
+
5. Distill into the five-field kernel using `assets/spec-template.md`. When input is rich, extract directly. When input is sparse, choose:
|
|
54
|
+
- **express** — best-effort distill, every gap becomes an `open_questions[]` entry
|
|
55
|
+
- **guided** — walk the five fields with the user one at a time, `wize-grill` style: one question per turn, recommendation attached
|
|
56
|
+
6. Write lean: every sentence must earn its place.
|
|
57
|
+
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`.
|
|
58
|
+
|
|
59
|
+
## Load-bearing
|
|
60
|
+
|
|
61
|
+
A claim is **load-bearing** if any downstream consumer (skill, implementing agent, verification pass) would change a decision without it.
|
|
62
|
+
|
|
63
|
+
## Companions
|
|
64
|
+
|
|
65
|
+
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.
|
|
66
|
+
|
|
67
|
+
**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.
|
|
68
|
+
|
|
69
|
+
Companions are either:
|
|
70
|
+
|
|
71
|
+
- **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`).
|
|
72
|
+
- **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.
|
|
73
|
+
|
|
74
|
+
Two rules govern companions:
|
|
75
|
+
|
|
76
|
+
1. Name spec-authored companions for the content type they hold.
|
|
77
|
+
2. Diagrams always land in a companion, regardless of size. Mermaid/ASCII/image references live there; `SPEC.md` holds prose only.
|
|
78
|
+
|
|
79
|
+
Pre-existing project-wide docs (e.g., `.wize/knowledge/document-project/conventions.md`) that downstream needs are listed as **adopted companions**, never duplicated.
|
|
80
|
+
|
|
81
|
+
## Spec Law
|
|
82
|
+
|
|
83
|
+
1. Each capability has both `intent` and `success`.
|
|
84
|
+
2. Intents describe WHAT, not HOW.
|
|
85
|
+
3. Constraints actually bend design decisions.
|
|
86
|
+
4. Non-goals are explicit — at least one.
|
|
87
|
+
5. Success signal is concrete enough to test or demonstrate against.
|
|
88
|
+
6. Capability IDs are stable and unique — never reused, never renumbered.
|
|
89
|
+
7. Preservation — every load-bearing source claim lands in `SPEC.md` or a companion.
|
|
90
|
+
8. Lean prose — every sentence carries load-bearing content.
|
|
91
|
+
|
|
92
|
+
## Self-Validate
|
|
93
|
+
|
|
94
|
+
After every create or update, sweep the artifact in two passes:
|
|
95
|
+
|
|
96
|
+
- **Pass 1 — Coherence.** Judge against Spec Law rules 1–6 and 8. Calls made without direct confirmation become `assumptions[]`; gaps become `open_questions[]`.
|
|
97
|
+
- **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.
|
|
98
|
+
|
|
99
|
+
Append a one-paragraph verdict to `.decision-log.md`.
|
|
100
|
+
|
|
101
|
+
## Output
|
|
102
|
+
|
|
103
|
+
- **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.
|
|
104
|
+
- **Headless** — return JSON per `assets/headless-schemas.md`.
|
|
105
|
+
|
|
106
|
+
## After the spec is output
|
|
107
|
+
|
|
108
|
+
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.
|
|
109
|
+
|
|
110
|
+
## Hand-off
|
|
111
|
+
|
|
112
|
+
> 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,12 @@
|
|
|
1
|
+
project_type_id,requires_api_scan,requires_data_models,requires_state_management,requires_ui_components,requires_deployment_config,key_file_patterns,critical_directories,integration_scan_patterns,test_file_patterns,config_patterns,auth_security_patterns,schema_migration_patterns,entry_point_patterns,shared_code_patterns,monorepo_workspace_patterns,async_event_patterns,ci_cd_patterns,asset_patterns,hardware_interface_patterns,protocol_schema_patterns,localization_patterns,requires_hardware_docs,requires_asset_inventory
|
|
2
|
+
web,true,true,true,true,true,package.json;tsconfig.json;*.config.js;*.config.ts;vite.config.*;webpack.config.*;next.config.*;nuxt.config.*,src/;app/;pages/;components/;api/;lib/;styles/;public/;static/,*client.ts;*service.ts;*api.ts;fetch*.ts;axios*.ts;*http*.ts,*.test.ts;*.spec.ts;*.test.tsx;*.spec.tsx;**/__tests__/**;**/*.test.*;**/*.spec.*,.env*;config/*;*.config.*;.config/;settings/,*auth*.ts;*session*.ts;middleware/auth*;*.guard.ts;*authenticat*;*permission*;guards/,migrations/**;prisma/**;*.prisma;alembic/**;knex/**;*migration*.sql;*migration*.ts,main.ts;index.ts;app.ts;server.ts;_app.tsx;_app.ts;layout.tsx,shared/**;common/**;utils/**;lib/**;helpers/**;@*/**;packages/**,pnpm-workspace.yaml;lerna.json;nx.json;turbo.json;workspace.json;rush.json,*event*.ts;*queue*.ts;*subscriber*.ts;*consumer*.ts;*producer*.ts;*worker*.ts;jobs/**,.github/workflows/**;.gitlab-ci.yml;Jenkinsfile;.circleci/**;azure-pipelines.yml;bitbucket-pipelines.yml;.drone.yml,public/**;static/**;assets/**;images/**;media/**,N/A,*.proto;*.graphql;graphql/**;schema.graphql;*.avro;openapi.*;swagger.*,i18n/**;locales/**;lang/**;translations/**;messages/**;*.po;*.pot,false,false
|
|
3
|
+
mobile,true,true,true,true,true,package.json;pubspec.yaml;Podfile;build.gradle;app.json;capacitor.config.*;ionic.config.json,src/;app/;screens/;components/;services/;models/;assets/;ios/;android/,*client.ts;*service.ts;*api.ts;fetch*.ts;axios*.ts;*http*.ts,*.test.ts;*.test.tsx;*_test.dart;*.test.dart;**/__tests__/**,.env*;config/*;app.json;capacitor.config.*;google-services.json;GoogleService-Info.plist,*auth*.ts;*session*.ts;*authenticat*;*permission*;*biometric*;secure-store*,migrations/**;realm/**;*.realm;watermelondb/**;sqlite/**,main.ts;index.ts;App.tsx;App.ts;main.dart,shared/**;common/**;utils/**;lib/**;components/shared/**;@*/**,pnpm-workspace.yaml;lerna.json;nx.json;turbo.json,*event*.ts;*notification*.ts;*push*.ts;background-fetch*,fastlane/**;.github/workflows/**;.gitlab-ci.yml;bitbucket-pipelines.yml;appcenter-*,assets/**;Resources/**;res/**;*.xcassets;drawable*/;mipmap*/;images/**,N/A,*.proto;graphql/**;*.graphql,i18n/**;locales/**;translations/**;*.strings;*.xml,false,true
|
|
4
|
+
backend,true,true,false,false,true,package.json;requirements.txt;go.mod;Gemfile;pom.xml;build.gradle;Cargo.toml;*.csproj,src/;api/;services/;models/;routes/;controllers/;middleware/;handlers/;repositories/;domain/,*client.ts;*repository.ts;*service.ts;*connector*.ts;*adapter*.ts,*.test.ts;*.spec.ts;*_test.go;test_*.py;*Test.java;*_test.rs,.env*;config/*;*.config.*;application*.yml;application*.yaml;appsettings*.json;settings.py,*auth*.ts;*session*.ts;*authenticat*;*authorization*;middleware/auth*;guards/;*jwt*;*oauth*,migrations/**;alembic/**;flyway/**;liquibase/**;prisma/**;*.prisma;*migration*.sql;*migration*.ts;db/migrate,main.ts;index.ts;server.ts;app.ts;main.go;main.py;Program.cs;__init__.py,shared/**;common/**;utils/**;lib/**;core/**;@*/**;pkg/**,pnpm-workspace.yaml;lerna.json;nx.json;go.work,*event*.ts;*queue*.ts;*subscriber*.ts;*consumer*.ts;*producer*.ts;*worker*.ts;*handler*.ts;jobs/**;workers/**,.github/workflows/**;.gitlab-ci.yml;Jenkinsfile;.circleci/**;azure-pipelines.yml;.drone.yml,N/A,N/A,*.proto;*.graphql;graphql/**;*.avro;*.thrift;openapi.*;swagger.*;schema/**,N/A,false,false
|
|
5
|
+
cli,false,false,false,false,false,package.json;go.mod;Cargo.toml;setup.py;pyproject.toml;*.gemspec,src/;cmd/;cli/;bin/;lib/;commands/,N/A,*.test.ts;*_test.go;test_*.py;*.spec.ts;*_spec.rb,.env*;config/*;*.config.*;.*.rc;.*rc,N/A,N/A,main.ts;index.ts;cli.ts;main.go;main.py;__main__.py;bin/*,shared/**;common/**;utils/**;lib/**;helpers/**,N/A,N/A,.github/workflows/**;.gitlab-ci.yml;goreleaser.yml,N/A,N/A,N/A,N/A,false,false
|
|
6
|
+
library,false,false,false,false,false,package.json;setup.py;Cargo.toml;go.mod;*.gemspec;*.csproj;pom.xml,src/;lib/;dist/;pkg/;build/;target/,N/A,*.test.ts;*_test.go;test_*.py;*.spec.ts;*Test.java;*_test.rs,.*.rc;tsconfig.json;rollup.config.*;vite.config.*;webpack.config.*,N/A,N/A,index.ts;index.js;lib.rs;main.go;__init__.py,src/**;lib/**;core/**,N/A,N/A,.github/workflows/**;.gitlab-ci.yml;.circleci/**,N/A,N/A,N/A,N/A,false,false
|
|
7
|
+
desktop,false,false,true,true,true,package.json;Cargo.toml;*.csproj;CMakeLists.txt;tauri.conf.json;electron-builder.yml;wails.json,src/;app/;components/;main/;renderer/;resources/;assets/;build/,*service.ts;ipc*.ts;*bridge*.ts;*native*.ts;invoke*,*.test.ts;*.spec.ts;*_test.rs;*.spec.tsx,.env*;config/*;*.config.*;app.config.*;forge.config.*;builder.config.*,*auth*.ts;*session*.ts;keychain*;secure-storage*,N/A,main.ts;index.ts;main.js;src-tauri/main.rs;electron.ts,shared/**;common/**;utils/**;lib/**;components/shared/**,N/A,*event*.ts;*ipc*.ts;*message*.ts,.github/workflows/**;.gitlab-ci.yml;.circleci/**,resources/**;assets/**;icons/**;static/**;build/resources,N/A,N/A,i18n/**;locales/**;translations/**;lang/**,false,true
|
|
8
|
+
game,false,false,true,false,false,*.unity;*.godot;*.uproject;package.json;project.godot,Assets/;Scenes/;Scripts/;Prefabs/;Resources/;Content/;Source/;src/;scenes/;scripts/,N/A,*Test.cs;*_test.gd;*Test.cpp;*.test.ts,.env*;config/*;*.ini;settings/;GameSettings/,N/A,N/A,main.gd;Main.cs;GameManager.cs;main.cpp;index.ts,shared/**;common/**;utils/**;Core/**;Framework/**,N/A,N/A,.github/workflows/**;.gitlab-ci.yml,Assets/**;Scenes/**;Prefabs/**;Materials/**;Textures/**;Audio/**;Models/**;*.fbx;*.blend;*.shader;*.hlsl;*.glsl;Shaders/**;VFX/**,N/A,N/A,Localization/**;Languages/**;i18n/**,false,true
|
|
9
|
+
data,false,true,false,false,true,requirements.txt;pyproject.toml;dbt_project.yml;airflow.cfg;setup.py;Pipfile,dags/;pipelines/;models/;transformations/;notebooks/;sql/;etl/;jobs/,N/A,test_*.py;*_test.py;tests/**,.env*;config/*;profiles.yml;dbt_project.yml;airflow.cfg,N/A,migrations/**;dbt/models/**;*.sql;schemas/**,main.py;__init__.py;pipeline.py;dag.py,shared/**;common/**;utils/**;lib/**;helpers/**,N/A,*event*.py;*consumer*.py;*producer*.py;*worker*.py;jobs/**;tasks/**,.github/workflows/**;.gitlab-ci.yml;airflow/dags/**,N/A,N/A,*.proto;*.avro;schemas/**;*.parquet,N/A,false,false
|
|
10
|
+
extension,true,false,true,true,false,manifest.json;package.json;wxt.config.ts,src/;popup/;content/;background/;assets/;components/,*message.ts;*runtime.ts;*storage.ts;*tabs.ts,*.test.ts;*.spec.ts;*.test.tsx,.env*;wxt.config.*;webpack.config.*;vite.config.*,*auth*.ts;*session*.ts;*permission*,N/A,index.ts;popup.ts;background.ts;content.ts,shared/**;common/**;utils/**;lib/**,N/A,*message*.ts;*event*.ts;chrome.runtime*;browser.runtime*,.github/workflows/**,assets/**;icons/**;images/**;static/**,N/A,N/A,_locales/**;locales/**;i18n/**,false,false
|
|
11
|
+
infra,false,false,false,false,true,*.tf;*.tfvars;pulumi.yaml;cdk.json;*.yml;*.yaml;Dockerfile;docker-compose*.yml,terraform/;modules/;k8s/;charts/;playbooks/;roles/;policies/;stacks/,N/A,*_test.go;test_*.py;*_test.tf;*_spec.rb,.env*;*.tfvars;config/*;vars/;group_vars/;host_vars/,N/A,N/A,main.tf;index.ts;__main__.py;playbook.yml,modules/**;shared/**;common/**;lib/**,N/A,N/A,.github/workflows/**;.gitlab-ci.yml;.circleci/**,N/A,N/A,N/A,N/A,false,false
|
|
12
|
+
embedded,false,false,false,false,false,platformio.ini;CMakeLists.txt;*.ino;Makefile;*.ioc;mbed-os.lib,src/;lib/;include/;firmware/;drivers/;hal/;bsp/;components/,N/A,test_*.c;*_test.cpp;*_test.c;tests/**,.env*;config/*;sdkconfig;*.json;settings/,N/A,N/A,main.c;main.cpp;main.ino;app_main.c,lib/**;shared/**;common/**;drivers/**,N/A,N/A,.github/workflows/**;.gitlab-ci.yml,N/A,*.h;*.hpp;drivers/**;hal/**;bsp/**;pinout.*;peripheral*;gpio*;*.fzz;schematics/**,*.proto;mqtt*;coap*;modbus*,N/A,true,false
|
package/src/method-skills/1-analysis/wize-document-project/templates/api-contracts-template.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: baseline
|
|
3
|
+
owner: Pepper Potts + Tony Stark
|
|
4
|
+
created: {{date}}
|
|
5
|
+
last_refreshed: {{date}}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{project_name}} — API Contracts{{#if part_id}} — {{part_id}}{{/if}}
|
|
9
|
+
|
|
10
|
+
**Date:** {{date}}
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
{{api_overview}}
|
|
15
|
+
|
|
16
|
+
## Endpoints
|
|
17
|
+
|
|
18
|
+
{{#each endpoints}}
|
|
19
|
+
### {{name}}
|
|
20
|
+
- **Method:** {{method}}
|
|
21
|
+
- **Path:** `{{path}}`
|
|
22
|
+
- **Description:** {{description}}
|
|
23
|
+
|
|
24
|
+
#### Request
|
|
25
|
+
{{request_schema}}
|
|
26
|
+
|
|
27
|
+
#### Response
|
|
28
|
+
{{response_schema}}
|
|
29
|
+
|
|
30
|
+
#### Errors
|
|
31
|
+
{{#each errors}}
|
|
32
|
+
- **{{status}}** — {{description}}
|
|
33
|
+
{{/each}}
|
|
34
|
+
{{/each}}
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
_Generated using Wize Dev Kit `document-project` workflow_
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: baseline
|
|
3
|
+
owner: Pepper Potts + Tony Stark
|
|
4
|
+
created: {{date}}
|
|
5
|
+
last_refreshed: {{date}}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{project_name}} — Architecture{{#if part_id}} — {{part_id}}{{/if}}
|
|
9
|
+
|
|
10
|
+
**Date:** {{date}}
|
|
11
|
+
**Type:** {{project_type}}
|
|
12
|
+
**Architecture Pattern:** {{architecture_pattern}}
|
|
13
|
+
|
|
14
|
+
## Executive Summary
|
|
15
|
+
|
|
16
|
+
{{architecture_summary}}
|
|
17
|
+
|
|
18
|
+
## Entry Points
|
|
19
|
+
|
|
20
|
+
{{#each entry_points}}
|
|
21
|
+
- **`{{path}}`** — {{description}}
|
|
22
|
+
{{/each}}
|
|
23
|
+
|
|
24
|
+
## Components
|
|
25
|
+
|
|
26
|
+
{{#each components}}
|
|
27
|
+
### {{name}}
|
|
28
|
+
- **Responsibility:** {{responsibility}}
|
|
29
|
+
- **Location:** `{{location}}`
|
|
30
|
+
- **Depends on:** {{dependencies}}
|
|
31
|
+
- **Used by:** {{dependents}}
|
|
32
|
+
{{/each}}
|
|
33
|
+
|
|
34
|
+
## Data Flow
|
|
35
|
+
|
|
36
|
+
{{data_flow_description}}
|
|
37
|
+
|
|
38
|
+
## Integrations
|
|
39
|
+
|
|
40
|
+
{{#each integrations}}
|
|
41
|
+
- **{{name}}** — {{description}}
|
|
42
|
+
- **Type:** {{integration_type}}
|
|
43
|
+
- **Boundary:** {{boundary}}
|
|
44
|
+
{{/each}}
|
|
45
|
+
|
|
46
|
+
## Decisions & Trade-offs
|
|
47
|
+
|
|
48
|
+
{{#each decisions}}
|
|
49
|
+
- {{description}}
|
|
50
|
+
{{/each}}
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
_Generated using Wize Dev Kit `document-project` workflow_
|
package/src/method-skills/1-analysis/wize-document-project/templates/component-inventory-template.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: baseline
|
|
3
|
+
owner: Pepper Potts + Mantis
|
|
4
|
+
created: {{date}}
|
|
5
|
+
last_refreshed: {{date}}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{project_name}} — Component Inventory{{#if part_id}} — {{part_id}}{{/if}}
|
|
9
|
+
|
|
10
|
+
**Date:** {{date}}
|
|
11
|
+
**Type:** {{project_type}}
|
|
12
|
+
|
|
13
|
+
## Categorization
|
|
14
|
+
|
|
15
|
+
{{#each categories}}
|
|
16
|
+
### {{name}}
|
|
17
|
+
{{#each components}}
|
|
18
|
+
- **{{name}}** (`{{location}}`) — {{purpose}}
|
|
19
|
+
{{/each}}
|
|
20
|
+
{{/each}}
|
|
21
|
+
|
|
22
|
+
## Reuse
|
|
23
|
+
|
|
24
|
+
{{#each reusable_components}}
|
|
25
|
+
- **{{name}}** — {{usage_guidance}}
|
|
26
|
+
{{/each}}
|
|
27
|
+
|
|
28
|
+
## Design System
|
|
29
|
+
|
|
30
|
+
{{design_system_notes}}
|
|
31
|
+
|
|
32
|
+
## Component Dependencies
|
|
33
|
+
|
|
34
|
+
{{#each dependency_notes}}
|
|
35
|
+
- {{description}}
|
|
36
|
+
{{/each}}
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
_Generated using Wize Dev Kit `document-project` workflow_
|