@luanpdd/kit-mcp 1.34.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +2 -2
  3. package/bin/mcp.js +6 -6
  4. package/bin/ui.js +74 -74
  5. package/gates/ai-prompt-stability.md +120 -120
  6. package/gates/budget-description.md +68 -68
  7. package/gates/confidence.md +29 -29
  8. package/gates/dependency-check.md +33 -33
  9. package/gates/dept-cycle-prevention.md +179 -179
  10. package/gates/golden-signals-coverage.md +133 -133
  11. package/gates/legacy-refactor-safety.md +178 -178
  12. package/gates/multi-tenant-rls-coverage.md +102 -102
  13. package/gates/no-personal-uuid.md +72 -72
  14. package/gates/obs-agents-mcp-supabase.md +86 -86
  15. package/gates/obs-skills-frontmatter.md +76 -76
  16. package/gates/observability-coverage.md +151 -151
  17. package/gates/omm-no-regression.md +83 -83
  18. package/gates/postmortem-template-required.md +127 -127
  19. package/gates/prr-checklist-coverage.md +128 -128
  20. package/gates/regression.md +32 -32
  21. package/gates/release-pipeline-policy.md +132 -132
  22. package/gates/secrets-scan.md +33 -33
  23. package/gates/service-role-not-in-user-facing.md +113 -113
  24. package/gates/skill-must-include.md +71 -71
  25. package/gates/sync-idempotent.md +62 -62
  26. package/gates/verify-phase-goal.md +34 -34
  27. package/kit/agents/designer-ui.md +216 -216
  28. package/kit/agents/workflow-generator.md +537 -0
  29. package/kit/commands/adicionar-backlog.md +1 -1
  30. package/kit/commands/adicionar-fase.md +1 -1
  31. package/kit/commands/adicionar-tarefa.md +1 -1
  32. package/kit/commands/auditar-observabilidade.md +103 -103
  33. package/kit/commands/auditar-toil.md +129 -129
  34. package/kit/commands/caracterizar-prompt.md +195 -195
  35. package/kit/commands/criar-workflow.md +158 -0
  36. package/kit/commands/definir-perfil.md +1 -1
  37. package/kit/commands/definir-slo.md +108 -108
  38. package/kit/commands/fio.md +1 -1
  39. package/kit/commands/golden-signals.md +142 -142
  40. package/kit/commands/instrumentar-fase.md +200 -200
  41. package/kit/commands/investigar-producao.md +162 -162
  42. package/kit/commands/observabilidade.md +118 -118
  43. package/kit/commands/postmortem.md +179 -179
  44. package/kit/commands/prr.md +205 -205
  45. package/kit/commands/publicar-rapido.md +207 -207
  46. package/kit/commands/risk-budget.md +220 -220
  47. package/kit/commands/sre.md +230 -230
  48. package/kit/file-manifest.json +5 -2
  49. package/kit/framework/references/output-style.md +22 -22
  50. package/kit/hooks/post-apply-migration.js +199 -199
  51. package/kit/hooks/sidecar-tool-publisher.js +210 -210
  52. package/kit/skills/_shared-dados-distribuidos/glossary.md +224 -224
  53. package/kit/skills/_shared-legacy/glossary.md +389 -389
  54. package/kit/skills/_shared-multi-tenant/glossary.md +186 -186
  55. package/kit/skills/_shared-observability/glossary.md +396 -396
  56. package/kit/skills/_shared-sre/glossary.md +712 -712
  57. package/kit/skills/_shared-supabase/glossary.md +234 -234
  58. package/kit/skills/blameless-postmortems/SKILL.md +340 -340
  59. package/kit/skills/burn-rate-alerting/SKILL.md +258 -258
  60. package/kit/skills/cascading-failures/SKILL.md +311 -311
  61. package/kit/skills/core-analysis-loop/SKILL.md +352 -352
  62. package/kit/skills/distributed-tracing/SKILL.md +362 -362
  63. package/kit/skills/dynamic-workflow-authoring/SKILL.md +327 -0
  64. package/kit/skills/eliminating-toil/SKILL.md +243 -243
  65. package/kit/skills/event-based-slos/SKILL.md +296 -296
  66. package/kit/skills/four-golden-signals/SKILL.md +314 -314
  67. package/kit/skills/hermetic-builds/SKILL.md +323 -323
  68. package/kit/skills/legacy-monster-methods/SKILL.md +444 -444
  69. package/kit/skills/llm-as-dependency/SKILL.md +436 -436
  70. package/kit/skills/load-shedding-graceful-degradation/SKILL.md +396 -396
  71. package/kit/skills/observability-driven-development/SKILL.md +315 -315
  72. package/kit/skills/observability-maturity-model/SKILL.md +222 -222
  73. package/kit/skills/opentelemetry-standard/SKILL.md +351 -351
  74. package/kit/skills/production-readiness-review/SKILL.md +305 -305
  75. package/kit/skills/release-engineering/SKILL.md +367 -367
  76. package/kit/skills/retry-strategies/SKILL.md +372 -372
  77. package/kit/skills/sre-risk-management/SKILL.md +221 -221
  78. package/kit/skills/structured-events/SKILL.md +265 -265
  79. package/kit/skills/supabase-cron-queues/SKILL.md +275 -275
  80. package/kit/skills/supabase-database-functions/SKILL.md +332 -332
  81. package/kit/skills/supabase-declarative-schema/SKILL.md +183 -183
  82. package/kit/skills/supabase-pgvector-rag/SKILL.md +253 -253
  83. package/kit/skills/supabase-postgres-style/SKILL.md +138 -138
  84. package/kit/skills/supabase-storage/SKILL.md +234 -234
  85. package/kit/skills/telemetry-pipelines/SKILL.md +259 -259
  86. package/kit/skills/telemetry-sampling/SKILL.md +256 -256
  87. package/kit/skills/ui-anti-padroes-ia/SKILL.md +261 -261
  88. package/kit/skills/ui-contexto-produto/SKILL.md +248 -248
  89. package/kit/skills/ui-cor-estrategia/SKILL.md +213 -213
  90. package/kit/skills/ui-critica-auditoria/SKILL.md +260 -260
  91. package/kit/skills/ui-motion-funcional/SKILL.md +264 -264
  92. package/kit/skills/ui-ritmo-espacial/SKILL.md +259 -259
  93. package/kit/skills/ui-tipografia/SKILL.md +211 -211
  94. package/package.json +1 -1
  95. package/src/cli/index.js +1114 -1114
  96. package/src/cli/render.js +194 -194
  97. package/src/cli/upgrade-check.js +135 -135
  98. package/src/core/error-redaction.js +76 -76
  99. package/src/core/failures.js +153 -153
  100. package/src/core/gate-runner.js +205 -205
  101. package/src/core/gates.js +82 -82
  102. package/src/core/logger.js +170 -170
  103. package/src/core/manifest-verify.js +174 -174
  104. package/src/core/metrics.js +268 -268
  105. package/src/core/notify.js +60 -60
  106. package/src/core/path-safety.js +141 -141
  107. package/src/core/replays.js +120 -120
  108. package/src/core/ui.js +185 -185
  109. package/src/mcp-server/install.js +149 -149
  110. package/src/mcp-server/roots.js +124 -124
  111. package/src/ui/auto-spawn.js +113 -113
  112. package/src/ui/browser.js +78 -78
  113. package/src/ui/client.js +130 -130
  114. package/src/ui/events.js +65 -65
  115. package/src/ui/lockfile.js +191 -191
  116. package/src/ui/port.js +67 -67
  117. package/src/ui/server.js +547 -547
  118. package/src/ui/wrapper.js +129 -129
@@ -1,260 +1,260 @@
1
- ---
2
- name: ui-critica-auditoria
3
- description: Use ao revisar UI implementada — critica (Nielsen 10 heuristicas + carga cognitiva /8 + tells-IA pass/fail) + auditoria (a11y/perf/theming/responsive P0-P3). Produz REVISAO-UI.md scored.
4
- ---
5
-
6
- # UI — Crítica & Auditoria
7
-
8
- ## Quando usar
9
-
10
- LLM carrega esta skill quando:
11
-
12
- - "Audite design / revise UI / está bom?"
13
- - "Está pronto para ship?"
14
- - "Score this design / quão ruim é o tell de IA?"
15
- - Antes de release de feature visível
16
- - Em PR de mudança visual significativa
17
-
18
- **NÃO use em:**
19
- - Work-in-progress (vai pontuar mal porque incompleto, não porque ruim)
20
- - Componente isolado fora de página real
21
- - Code-only review (precisa ver rendered)
22
-
23
- ## Regras absolutas
24
-
25
- **REGRA #1 (duas passadas independentes):** Rode **crítica** (LLM + heurísticas, subjetivo) E **auditoria** (5 dimensões, determinístico) **separadamente**. Não bias um pelo outro. Findings convergentes têm peso 2×.
26
-
27
- **REGRA #2 (P0-P3 severity definida):**
28
- - **P0** — Bloqueia release (a11y crítica, tell-IA deal-breaker, UX quebrado)
29
- - **P1** — Resolver neste sprint (gaps notáveis, tell parcial)
30
- - **P2** — Próximo ciclo (refinamento)
31
- - **P3** — Polimento (nice-to-have)
32
-
33
- **REGRA #3 (score antes da opinião):** Heuristic scores são numéricos (0-4), prioridade de fixes é opinião. Cliente pode discordar de prioridade, não de score.
34
-
35
- **REGRA #4 (route, don't fix):** Auditoria documenta, não corrige. Findings vão para:
36
- - a11y, contrast → `ui-cor-estrategia` + endurecer phase
37
- - tells de IA → `ui-anti-padroes-ia` patches
38
- - Performance → otimizar phase
39
- - Typography → `ui-tipografia` refactor
40
-
41
- ## Passada Crítica — Nielsen 10 (0-4 cada)
42
-
43
- | # | Heurística | Como medir |
44
- |---|-----------|------------|
45
- | 1 | Visibility of system status | Loading states? Optimistic UI? Toast feedback? |
46
- | 2 | Match with real world | Vocabulário do domínio? Ícones reconhecíveis? Locale-aware? |
47
- | 3 | User control & freedom | Undo? Cancel em modais? Botão back claro? Confirm em destrutivo? |
48
- | 4 | Consistency & standards | Mesmo padrão de botão em todas telas? CTAs consistentes? |
49
- | 5 | Error prevention | Validation inline? Confirm em destrutivo? Disable em estado inválido? |
50
- | 6 | Recognition over recall | Labels visíveis vs precisar lembrar? Recent items? Autocomplete? |
51
- | 7 | Flexibility & efficiency | Keyboard shortcuts? Power-user paths? Bulk actions? |
52
- | 8 | Aesthetic & minimalist | Algo na tela não é essencial? Card aninhado? Decoração gratuita? |
53
- | 9 | Help users recognize errors | Mensagem específica + recovery action? Não "Something went wrong" genérico? |
54
- | 10 | Help & documentation | Inline help em fields complexos? Empty state ensina? Onboarding presente? |
55
-
56
- **Scoring:**
57
- - 4 — Excelente, supera expectativa
58
- - 3 — Bom, alguns gaps menores
59
- - 2 — Cumprido parcialmente, gaps notáveis
60
- - 1 — Falha na maioria dos cenários
61
- - 0 — Ausente / quebrado
62
-
63
- ## Passada Crítica — Carga cognitiva (/8)
64
-
65
- Conte falhas. Para cada uma, +1 ao counter:
66
-
67
- 1. Mais de 7±2 elementos competindo por atenção em viewport inicial?
68
- 2. Hierarquia visual ambígua (qual é a ação primária)?
69
- 3. Vocabulary mismatch (jargão técnico em UI consumer)?
70
- 4. Decisões prematuras pedidas (escolha de plano antes de ver valor)?
71
- 5. Estado escondido (qual aba está ativa? qual filtro aplicado?)?
72
- 6. Confirmação ausente em destrutivo, ou excessiva em trivial?
73
- 7. Loading sem progress signal em > 1s waits?
74
- 8. Layout shift visível durante load (CLS > 0.1)?
75
-
76
- Score: 0-2 falhas = bom, 3-4 = preocupante, 5+ = redesign.
77
-
78
- ## Passada Crítica — Verdict de Tells-IA (pass/fail)
79
-
80
- Rode o detector da skill [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md). Verdict:
81
-
82
- - **PASS** — zero P0, ≤ 2 P1 com justificativa em DESIGN.md
83
- - **MARGINAL** — 1 P0 OU > 2 P1
84
- - **FAIL** — ≥ 2 P0 OU padrão sistêmico de tells
85
-
86
- Liste os tells específicos: `verdict: FAIL · gradiente-roxo · italic-serif-hero · card-aninhado`.
87
-
88
- ## Passada Auditoria — 5 dimensões (0-4 cada)
89
-
90
- ### D1 Accessibility (0-4)
91
-
92
- Check:
93
- - [ ] WCAG AA contrast pass para foreground/background pairs (`npx pa11y`)
94
- - [ ] Todo input tem `<label>` ou `aria-label`
95
- - [ ] Botão de ícone sem texto tem `aria-label`
96
- - [ ] Keyboard nav: Tab order lógico, focus visible
97
- - [ ] Semantic HTML (`<button>` não `<div onClick>`)
98
- - [ ] Skip-to-content em layouts longos
99
-
100
- ### D2 Performance (0-4)
101
-
102
- Check:
103
- - [ ] LCP < 2.5s (Lighthouse mobile)
104
- - [ ] CLS < 0.1
105
- - [ ] Bundle JS first-load < 200KB gzipped
106
- - [ ] Imagens com `loading="lazy"` e dimensions
107
- - [ ] Sem layout-thrashing animations (height/width transitions)
108
- - [ ] Lighthouse Perf score ≥ 90
109
-
110
- ### D3 Theming (0-4)
111
-
112
- Check:
113
- - [ ] Zero HEX/RGB hard-coded em components (use tokens)
114
- - [ ] Dark mode covered (se declarado em MARCA.md)
115
- - [ ] Tokens semânticos não nomes de cor (`--primary`, não `--blue-500`)
116
- - [ ] Sem `!important` em styles
117
- - [ ] CSS custom properties consistentes entre `:root` e `.dark`
118
-
119
- ### D4 Responsive (0-4)
120
-
121
- Check:
122
- - [ ] Breakpoints: mobile (375), tablet (768), desktop (1024+) todos testados
123
- - [ ] Touch targets ≥ 44×44 em mobile
124
- - [ ] Horizontal scroll só em data tables (nunca em layout)
125
- - [ ] Texto reflow em narrow (não cortado, não overflow)
126
- - [ ] Hover-only interactions têm equivalente touch
127
-
128
- ### D5 Anti-patterns (0-4)
129
-
130
- Rode o detector da [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md). Score:
131
- - 4 = zero P0/P1
132
- - 3 = 1 P1 documentado
133
- - 2 = 2-3 P1 OU 1 P0 documentado
134
- - 1 = ≥ 2 P0
135
- - 0 = sistêmico
136
-
137
- ## Output — REVISAO-UI.md
138
-
139
- ```markdown
140
- # Revisão de UI — {nome da feature/página}
141
-
142
- **Revisado:** {data}
143
- **Revisor:** designer-ui (kit)
144
- **Registro:** {marca | produto}
145
- **Baseline:** {DESIGN.md path | abstract defaults}
146
-
147
- ---
148
-
149
- ## TL;DR
150
-
151
- **Verdict tells-IA:** {PASS | MARGINAL | FAIL} — {tells}
152
- **Crítica total:** {soma dos 10 Nielsen}/40
153
- **Carga cognitiva:** {N}/8 falhas
154
- **Auditoria total:** {soma das 5 dimensões}/20
155
-
156
- **Recomendação:** {SHIP | FIX-P0-PRIMEIRO | REWORK}
157
-
158
- ---
159
-
160
- ## Passada Crítica
161
-
162
- ### Nielsen Heuristics
163
-
164
- | # | Heurística | Score | Key issue |
165
- |---|-----------|-------|-----------|
166
- | 1 | Visibility of status | {0-4} | {linha resumo} |
167
- | 2 | Match with real world | {0-4} | … |
168
- | 3 | User control | {0-4} | … |
169
- | … | … | … | … |
170
-
171
- **Subtotal:** {N}/40
172
-
173
- ### Falhas de Carga Cognitiva: {N}/8
174
-
175
- {lista de falhas com referência arquivo:linha}
176
-
177
- ### Tells-IA detectados
178
-
179
- {cole output do detector se houver hits}
180
-
181
- ---
182
-
183
- ## Passada Auditoria
184
-
185
- | Dimensão | Score | P0 | P1 | P2 | P3 |
186
- |-----------|-------|----|----|----|----|
187
- | Accessibility | {0-4} | … | … | … | … |
188
- | Performance | {0-4} | … | … | … | … |
189
- | Theming | {0-4} | … | … | … | … |
190
- | Responsive | {0-4} | … | … | … | … |
191
- | Anti-patterns | {0-4} | … | … | … | … |
192
-
193
- **Subtotal:** {N}/20
194
-
195
- ---
196
-
197
- ## Top 5 Priority Issues
198
-
199
- 1. **[P0]** {issue} — `{file:line}` — {fix opinion (route para qual skill)}
200
- 2. **[P0]** … — … — …
201
- 3. **[P1]** … — … — …
202
- 4. **[P1]** … — … — …
203
- 5. **[P2]** … — … — …
204
-
205
- ---
206
-
207
- ## Perguntas Provocativas
208
-
209
- (Questões "vale responder antes de shippar")
210
-
211
- 1. {ex: "Esta tela funciona em mobile com 1 mão? Você testou?"}
212
- 2. {ex: "O empty state ensina o usuário ou só diz 'No data'?"}
213
- 3. {ex: "Qual é a UMA ação que esta página existe para promover?"}
214
-
215
- ---
216
-
217
- ## Routing
218
-
219
- - P0/P1 a11y → `ui-cor-estrategia` + endurecer phase
220
- - P0/P1 tells → `ui-anti-padroes-ia` patches inline
221
- - Performance → otimizar phase
222
- - Typography → `ui-tipografia` audit
223
- - Layout → `ui-ritmo-espacial` audit
224
- ```
225
-
226
- ## Anti-patterns DESTA skill
227
-
228
- ### Anti-pattern 1: review em WIP
229
-
230
- **Errado:** rodar audit em página com placeholders, lorem ipsum, estados não implementados.
231
-
232
- **Por quê:** "incomplete work scores badly because it is not done, not because it is bad". Cliente acha que tem problema de design quando é só falta acabar.
233
-
234
- **Certo:** audit apenas em features completas. Para WIP use `ui-anti-padroes-ia` detector preventivo + checklist visual sem score.
235
-
236
- ### Anti-pattern 2: misturar crítica e auditoria
237
-
238
- **Errado:** rodar Nielsen + dimensões juntos, score combinado.
239
-
240
- **Por quê:** REGRA #1 — bias mútuo. LLM sabendo que tem tell-IA ajusta Nielsen down. Detector sabendo que Nielsen está alto sub-conta.
241
-
242
- **Certo:** dois reviews separados, mesclar findings no REVISAO-UI.md no fim.
243
-
244
- ### Anti-pattern 3: prioridade sem evidência
245
-
246
- **Errado:** "Priority 1: fix the gradient" sem citar arquivo, sem dizer por quê P0.
247
-
248
- **Por quê:** Não acionável. Outro dev não sabe onde fixar nem se realmente é P0.
249
-
250
- **Certo:** "**[P0]** Hero gradiente roxo (`Hero.tsx:42-48`) — T01 tell-IA, ship blocker. Fix: replace `bg-gradient-to-br from-purple-500 to-pink-500` with `bg-primary` per DESIGN.md > Cores > Destaque."
251
-
252
- ## Ver também
253
-
254
- - [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md) — feeds verdict de tells-IA + D5
255
- - [ui-contexto-produto](../ui-contexto-produto/SKILL.md) — baseline para audit
256
- - [ui-cor-estrategia](../ui-cor-estrategia/SKILL.md) — fixes para D1/D3
257
- - [ui-tipografia](../ui-tipografia/SKILL.md) — fixes para typography findings
258
- - [ui-ritmo-espacial](../ui-ritmo-espacial/SKILL.md) — fixes para D4 responsive
259
- - [ui-motion-funcional](../ui-motion-funcional/SKILL.md) — motion review
260
- - Nielsen 10 heuristics: https://www.nngroup.com/articles/ten-usability-heuristics/
1
+ ---
2
+ name: ui-critica-auditoria
3
+ description: Use ao revisar UI implementada — critica (Nielsen 10 heuristicas + carga cognitiva /8 + tells-IA pass/fail) + auditoria (a11y/perf/theming/responsive P0-P3). Produz REVISAO-UI.md scored.
4
+ ---
5
+
6
+ # UI — Crítica & Auditoria
7
+
8
+ ## Quando usar
9
+
10
+ LLM carrega esta skill quando:
11
+
12
+ - "Audite design / revise UI / está bom?"
13
+ - "Está pronto para ship?"
14
+ - "Score this design / quão ruim é o tell de IA?"
15
+ - Antes de release de feature visível
16
+ - Em PR de mudança visual significativa
17
+
18
+ **NÃO use em:**
19
+ - Work-in-progress (vai pontuar mal porque incompleto, não porque ruim)
20
+ - Componente isolado fora de página real
21
+ - Code-only review (precisa ver rendered)
22
+
23
+ ## Regras absolutas
24
+
25
+ **REGRA #1 (duas passadas independentes):** Rode **crítica** (LLM + heurísticas, subjetivo) E **auditoria** (5 dimensões, determinístico) **separadamente**. Não bias um pelo outro. Findings convergentes têm peso 2×.
26
+
27
+ **REGRA #2 (P0-P3 severity definida):**
28
+ - **P0** — Bloqueia release (a11y crítica, tell-IA deal-breaker, UX quebrado)
29
+ - **P1** — Resolver neste sprint (gaps notáveis, tell parcial)
30
+ - **P2** — Próximo ciclo (refinamento)
31
+ - **P3** — Polimento (nice-to-have)
32
+
33
+ **REGRA #3 (score antes da opinião):** Heuristic scores são numéricos (0-4), prioridade de fixes é opinião. Cliente pode discordar de prioridade, não de score.
34
+
35
+ **REGRA #4 (route, don't fix):** Auditoria documenta, não corrige. Findings vão para:
36
+ - a11y, contrast → `ui-cor-estrategia` + endurecer phase
37
+ - tells de IA → `ui-anti-padroes-ia` patches
38
+ - Performance → otimizar phase
39
+ - Typography → `ui-tipografia` refactor
40
+
41
+ ## Passada Crítica — Nielsen 10 (0-4 cada)
42
+
43
+ | # | Heurística | Como medir |
44
+ |---|-----------|------------|
45
+ | 1 | Visibility of system status | Loading states? Optimistic UI? Toast feedback? |
46
+ | 2 | Match with real world | Vocabulário do domínio? Ícones reconhecíveis? Locale-aware? |
47
+ | 3 | User control & freedom | Undo? Cancel em modais? Botão back claro? Confirm em destrutivo? |
48
+ | 4 | Consistency & standards | Mesmo padrão de botão em todas telas? CTAs consistentes? |
49
+ | 5 | Error prevention | Validation inline? Confirm em destrutivo? Disable em estado inválido? |
50
+ | 6 | Recognition over recall | Labels visíveis vs precisar lembrar? Recent items? Autocomplete? |
51
+ | 7 | Flexibility & efficiency | Keyboard shortcuts? Power-user paths? Bulk actions? |
52
+ | 8 | Aesthetic & minimalist | Algo na tela não é essencial? Card aninhado? Decoração gratuita? |
53
+ | 9 | Help users recognize errors | Mensagem específica + recovery action? Não "Something went wrong" genérico? |
54
+ | 10 | Help & documentation | Inline help em fields complexos? Empty state ensina? Onboarding presente? |
55
+
56
+ **Scoring:**
57
+ - 4 — Excelente, supera expectativa
58
+ - 3 — Bom, alguns gaps menores
59
+ - 2 — Cumprido parcialmente, gaps notáveis
60
+ - 1 — Falha na maioria dos cenários
61
+ - 0 — Ausente / quebrado
62
+
63
+ ## Passada Crítica — Carga cognitiva (/8)
64
+
65
+ Conte falhas. Para cada uma, +1 ao counter:
66
+
67
+ 1. Mais de 7±2 elementos competindo por atenção em viewport inicial?
68
+ 2. Hierarquia visual ambígua (qual é a ação primária)?
69
+ 3. Vocabulary mismatch (jargão técnico em UI consumer)?
70
+ 4. Decisões prematuras pedidas (escolha de plano antes de ver valor)?
71
+ 5. Estado escondido (qual aba está ativa? qual filtro aplicado?)?
72
+ 6. Confirmação ausente em destrutivo, ou excessiva em trivial?
73
+ 7. Loading sem progress signal em > 1s waits?
74
+ 8. Layout shift visível durante load (CLS > 0.1)?
75
+
76
+ Score: 0-2 falhas = bom, 3-4 = preocupante, 5+ = redesign.
77
+
78
+ ## Passada Crítica — Verdict de Tells-IA (pass/fail)
79
+
80
+ Rode o detector da skill [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md). Verdict:
81
+
82
+ - **PASS** — zero P0, ≤ 2 P1 com justificativa em DESIGN.md
83
+ - **MARGINAL** — 1 P0 OU > 2 P1
84
+ - **FAIL** — ≥ 2 P0 OU padrão sistêmico de tells
85
+
86
+ Liste os tells específicos: `verdict: FAIL · gradiente-roxo · italic-serif-hero · card-aninhado`.
87
+
88
+ ## Passada Auditoria — 5 dimensões (0-4 cada)
89
+
90
+ ### D1 Accessibility (0-4)
91
+
92
+ Check:
93
+ - [ ] WCAG AA contrast pass para foreground/background pairs (`npx pa11y`)
94
+ - [ ] Todo input tem `<label>` ou `aria-label`
95
+ - [ ] Botão de ícone sem texto tem `aria-label`
96
+ - [ ] Keyboard nav: Tab order lógico, focus visible
97
+ - [ ] Semantic HTML (`<button>` não `<div onClick>`)
98
+ - [ ] Skip-to-content em layouts longos
99
+
100
+ ### D2 Performance (0-4)
101
+
102
+ Check:
103
+ - [ ] LCP < 2.5s (Lighthouse mobile)
104
+ - [ ] CLS < 0.1
105
+ - [ ] Bundle JS first-load < 200KB gzipped
106
+ - [ ] Imagens com `loading="lazy"` e dimensions
107
+ - [ ] Sem layout-thrashing animations (height/width transitions)
108
+ - [ ] Lighthouse Perf score ≥ 90
109
+
110
+ ### D3 Theming (0-4)
111
+
112
+ Check:
113
+ - [ ] Zero HEX/RGB hard-coded em components (use tokens)
114
+ - [ ] Dark mode covered (se declarado em MARCA.md)
115
+ - [ ] Tokens semânticos não nomes de cor (`--primary`, não `--blue-500`)
116
+ - [ ] Sem `!important` em styles
117
+ - [ ] CSS custom properties consistentes entre `:root` e `.dark`
118
+
119
+ ### D4 Responsive (0-4)
120
+
121
+ Check:
122
+ - [ ] Breakpoints: mobile (375), tablet (768), desktop (1024+) todos testados
123
+ - [ ] Touch targets ≥ 44×44 em mobile
124
+ - [ ] Horizontal scroll só em data tables (nunca em layout)
125
+ - [ ] Texto reflow em narrow (não cortado, não overflow)
126
+ - [ ] Hover-only interactions têm equivalente touch
127
+
128
+ ### D5 Anti-patterns (0-4)
129
+
130
+ Rode o detector da [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md). Score:
131
+ - 4 = zero P0/P1
132
+ - 3 = 1 P1 documentado
133
+ - 2 = 2-3 P1 OU 1 P0 documentado
134
+ - 1 = ≥ 2 P0
135
+ - 0 = sistêmico
136
+
137
+ ## Output — REVISAO-UI.md
138
+
139
+ ```markdown
140
+ # Revisão de UI — {nome da feature/página}
141
+
142
+ **Revisado:** {data}
143
+ **Revisor:** designer-ui (kit)
144
+ **Registro:** {marca | produto}
145
+ **Baseline:** {DESIGN.md path | abstract defaults}
146
+
147
+ ---
148
+
149
+ ## TL;DR
150
+
151
+ **Verdict tells-IA:** {PASS | MARGINAL | FAIL} — {tells}
152
+ **Crítica total:** {soma dos 10 Nielsen}/40
153
+ **Carga cognitiva:** {N}/8 falhas
154
+ **Auditoria total:** {soma das 5 dimensões}/20
155
+
156
+ **Recomendação:** {SHIP | FIX-P0-PRIMEIRO | REWORK}
157
+
158
+ ---
159
+
160
+ ## Passada Crítica
161
+
162
+ ### Nielsen Heuristics
163
+
164
+ | # | Heurística | Score | Key issue |
165
+ |---|-----------|-------|-----------|
166
+ | 1 | Visibility of status | {0-4} | {linha resumo} |
167
+ | 2 | Match with real world | {0-4} | … |
168
+ | 3 | User control | {0-4} | … |
169
+ | … | … | … | … |
170
+
171
+ **Subtotal:** {N}/40
172
+
173
+ ### Falhas de Carga Cognitiva: {N}/8
174
+
175
+ {lista de falhas com referência arquivo:linha}
176
+
177
+ ### Tells-IA detectados
178
+
179
+ {cole output do detector se houver hits}
180
+
181
+ ---
182
+
183
+ ## Passada Auditoria
184
+
185
+ | Dimensão | Score | P0 | P1 | P2 | P3 |
186
+ |-----------|-------|----|----|----|----|
187
+ | Accessibility | {0-4} | … | … | … | … |
188
+ | Performance | {0-4} | … | … | … | … |
189
+ | Theming | {0-4} | … | … | … | … |
190
+ | Responsive | {0-4} | … | … | … | … |
191
+ | Anti-patterns | {0-4} | … | … | … | … |
192
+
193
+ **Subtotal:** {N}/20
194
+
195
+ ---
196
+
197
+ ## Top 5 Priority Issues
198
+
199
+ 1. **[P0]** {issue} — `{file:line}` — {fix opinion (route para qual skill)}
200
+ 2. **[P0]** … — … — …
201
+ 3. **[P1]** … — … — …
202
+ 4. **[P1]** … — … — …
203
+ 5. **[P2]** … — … — …
204
+
205
+ ---
206
+
207
+ ## Perguntas Provocativas
208
+
209
+ (Questões "vale responder antes de shippar")
210
+
211
+ 1. {ex: "Esta tela funciona em mobile com 1 mão? Você testou?"}
212
+ 2. {ex: "O empty state ensina o usuário ou só diz 'No data'?"}
213
+ 3. {ex: "Qual é a UMA ação que esta página existe para promover?"}
214
+
215
+ ---
216
+
217
+ ## Routing
218
+
219
+ - P0/P1 a11y → `ui-cor-estrategia` + endurecer phase
220
+ - P0/P1 tells → `ui-anti-padroes-ia` patches inline
221
+ - Performance → otimizar phase
222
+ - Typography → `ui-tipografia` audit
223
+ - Layout → `ui-ritmo-espacial` audit
224
+ ```
225
+
226
+ ## Anti-patterns DESTA skill
227
+
228
+ ### Anti-pattern 1: review em WIP
229
+
230
+ **Errado:** rodar audit em página com placeholders, lorem ipsum, estados não implementados.
231
+
232
+ **Por quê:** "incomplete work scores badly because it is not done, not because it is bad". Cliente acha que tem problema de design quando é só falta acabar.
233
+
234
+ **Certo:** audit apenas em features completas. Para WIP use `ui-anti-padroes-ia` detector preventivo + checklist visual sem score.
235
+
236
+ ### Anti-pattern 2: misturar crítica e auditoria
237
+
238
+ **Errado:** rodar Nielsen + dimensões juntos, score combinado.
239
+
240
+ **Por quê:** REGRA #1 — bias mútuo. LLM sabendo que tem tell-IA ajusta Nielsen down. Detector sabendo que Nielsen está alto sub-conta.
241
+
242
+ **Certo:** dois reviews separados, mesclar findings no REVISAO-UI.md no fim.
243
+
244
+ ### Anti-pattern 3: prioridade sem evidência
245
+
246
+ **Errado:** "Priority 1: fix the gradient" sem citar arquivo, sem dizer por quê P0.
247
+
248
+ **Por quê:** Não acionável. Outro dev não sabe onde fixar nem se realmente é P0.
249
+
250
+ **Certo:** "**[P0]** Hero gradiente roxo (`Hero.tsx:42-48`) — T01 tell-IA, ship blocker. Fix: replace `bg-gradient-to-br from-purple-500 to-pink-500` with `bg-primary` per DESIGN.md > Cores > Destaque."
251
+
252
+ ## Ver também
253
+
254
+ - [ui-anti-padroes-ia](../ui-anti-padroes-ia/SKILL.md) — feeds verdict de tells-IA + D5
255
+ - [ui-contexto-produto](../ui-contexto-produto/SKILL.md) — baseline para audit
256
+ - [ui-cor-estrategia](../ui-cor-estrategia/SKILL.md) — fixes para D1/D3
257
+ - [ui-tipografia](../ui-tipografia/SKILL.md) — fixes para typography findings
258
+ - [ui-ritmo-espacial](../ui-ritmo-espacial/SKILL.md) — fixes para D4 responsive
259
+ - [ui-motion-funcional](../ui-motion-funcional/SKILL.md) — motion review
260
+ - Nielsen 10 heuristics: https://www.nngroup.com/articles/ten-usability-heuristics/