@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.
- package/README.md +1 -1
- package/bin/cli.js +2 -2
- package/bin/mcp.js +6 -6
- package/bin/ui.js +74 -74
- package/gates/ai-prompt-stability.md +120 -120
- package/gates/budget-description.md +68 -68
- package/gates/confidence.md +29 -29
- package/gates/dependency-check.md +33 -33
- package/gates/dept-cycle-prevention.md +179 -179
- package/gates/golden-signals-coverage.md +133 -133
- package/gates/legacy-refactor-safety.md +178 -178
- package/gates/multi-tenant-rls-coverage.md +102 -102
- package/gates/no-personal-uuid.md +72 -72
- package/gates/obs-agents-mcp-supabase.md +86 -86
- package/gates/obs-skills-frontmatter.md +76 -76
- package/gates/observability-coverage.md +151 -151
- package/gates/omm-no-regression.md +83 -83
- package/gates/postmortem-template-required.md +127 -127
- package/gates/prr-checklist-coverage.md +128 -128
- package/gates/regression.md +32 -32
- package/gates/release-pipeline-policy.md +132 -132
- package/gates/secrets-scan.md +33 -33
- package/gates/service-role-not-in-user-facing.md +113 -113
- package/gates/skill-must-include.md +71 -71
- package/gates/sync-idempotent.md +62 -62
- package/gates/verify-phase-goal.md +34 -34
- package/kit/agents/designer-ui.md +216 -216
- package/kit/agents/workflow-generator.md +537 -0
- package/kit/commands/adicionar-backlog.md +1 -1
- package/kit/commands/adicionar-fase.md +1 -1
- package/kit/commands/adicionar-tarefa.md +1 -1
- package/kit/commands/auditar-observabilidade.md +103 -103
- package/kit/commands/auditar-toil.md +129 -129
- package/kit/commands/caracterizar-prompt.md +195 -195
- package/kit/commands/criar-workflow.md +158 -0
- package/kit/commands/definir-perfil.md +1 -1
- package/kit/commands/definir-slo.md +108 -108
- package/kit/commands/fio.md +1 -1
- package/kit/commands/golden-signals.md +142 -142
- package/kit/commands/instrumentar-fase.md +200 -200
- package/kit/commands/investigar-producao.md +162 -162
- package/kit/commands/observabilidade.md +118 -118
- package/kit/commands/postmortem.md +179 -179
- package/kit/commands/prr.md +205 -205
- package/kit/commands/publicar-rapido.md +207 -207
- package/kit/commands/risk-budget.md +220 -220
- package/kit/commands/sre.md +230 -230
- package/kit/file-manifest.json +5 -2
- package/kit/framework/references/output-style.md +22 -22
- package/kit/hooks/post-apply-migration.js +199 -199
- package/kit/hooks/sidecar-tool-publisher.js +210 -210
- package/kit/skills/_shared-dados-distribuidos/glossary.md +224 -224
- package/kit/skills/_shared-legacy/glossary.md +389 -389
- package/kit/skills/_shared-multi-tenant/glossary.md +186 -186
- package/kit/skills/_shared-observability/glossary.md +396 -396
- package/kit/skills/_shared-sre/glossary.md +712 -712
- package/kit/skills/_shared-supabase/glossary.md +234 -234
- package/kit/skills/blameless-postmortems/SKILL.md +340 -340
- package/kit/skills/burn-rate-alerting/SKILL.md +258 -258
- package/kit/skills/cascading-failures/SKILL.md +311 -311
- package/kit/skills/core-analysis-loop/SKILL.md +352 -352
- package/kit/skills/distributed-tracing/SKILL.md +362 -362
- package/kit/skills/dynamic-workflow-authoring/SKILL.md +327 -0
- package/kit/skills/eliminating-toil/SKILL.md +243 -243
- package/kit/skills/event-based-slos/SKILL.md +296 -296
- package/kit/skills/four-golden-signals/SKILL.md +314 -314
- package/kit/skills/hermetic-builds/SKILL.md +323 -323
- package/kit/skills/legacy-monster-methods/SKILL.md +444 -444
- package/kit/skills/llm-as-dependency/SKILL.md +436 -436
- package/kit/skills/load-shedding-graceful-degradation/SKILL.md +396 -396
- package/kit/skills/observability-driven-development/SKILL.md +315 -315
- package/kit/skills/observability-maturity-model/SKILL.md +222 -222
- package/kit/skills/opentelemetry-standard/SKILL.md +351 -351
- package/kit/skills/production-readiness-review/SKILL.md +305 -305
- package/kit/skills/release-engineering/SKILL.md +367 -367
- package/kit/skills/retry-strategies/SKILL.md +372 -372
- package/kit/skills/sre-risk-management/SKILL.md +221 -221
- package/kit/skills/structured-events/SKILL.md +265 -265
- package/kit/skills/supabase-cron-queues/SKILL.md +275 -275
- package/kit/skills/supabase-database-functions/SKILL.md +332 -332
- package/kit/skills/supabase-declarative-schema/SKILL.md +183 -183
- package/kit/skills/supabase-pgvector-rag/SKILL.md +253 -253
- package/kit/skills/supabase-postgres-style/SKILL.md +138 -138
- package/kit/skills/supabase-storage/SKILL.md +234 -234
- package/kit/skills/telemetry-pipelines/SKILL.md +259 -259
- package/kit/skills/telemetry-sampling/SKILL.md +256 -256
- package/kit/skills/ui-anti-padroes-ia/SKILL.md +261 -261
- package/kit/skills/ui-contexto-produto/SKILL.md +248 -248
- package/kit/skills/ui-cor-estrategia/SKILL.md +213 -213
- package/kit/skills/ui-critica-auditoria/SKILL.md +260 -260
- package/kit/skills/ui-motion-funcional/SKILL.md +264 -264
- package/kit/skills/ui-ritmo-espacial/SKILL.md +259 -259
- package/kit/skills/ui-tipografia/SKILL.md +211 -211
- package/package.json +1 -1
- package/src/cli/index.js +1114 -1114
- package/src/cli/render.js +194 -194
- package/src/cli/upgrade-check.js +135 -135
- package/src/core/error-redaction.js +76 -76
- package/src/core/failures.js +153 -153
- package/src/core/gate-runner.js +205 -205
- package/src/core/gates.js +82 -82
- package/src/core/logger.js +170 -170
- package/src/core/manifest-verify.js +174 -174
- package/src/core/metrics.js +268 -268
- package/src/core/notify.js +60 -60
- package/src/core/path-safety.js +141 -141
- package/src/core/replays.js +120 -120
- package/src/core/ui.js +185 -185
- package/src/mcp-server/install.js +149 -149
- package/src/mcp-server/roots.js +124 -124
- package/src/ui/auto-spawn.js +113 -113
- package/src/ui/browser.js +78 -78
- package/src/ui/client.js +130 -130
- package/src/ui/events.js +65 -65
- package/src/ui/lockfile.js +191 -191
- package/src/ui/port.js +67 -67
- package/src/ui/server.js +547 -547
- 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/
|