start-vibing 1.1.3 → 1.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-vibing",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Setup Claude Code agents, skills, and hooks in your project. Smart copy that preserves your custom domains and configurations.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,76 +1,55 @@
1
- # Claude Development System
1
+ # Configuracao de Agentes - AI Builder
2
2
 
3
- This directory contains the complete agent configuration for an automated development workflow.
3
+ Este diretorio contem a configuracao completa do sistema de agentes
4
+ para o fluxo de desenvolvimento do AI Builder.
4
5
 
5
6
  ---
6
7
 
7
- ## Structure
8
+ ## Estrutura
8
9
 
9
10
  ```
10
11
  .claude/
11
- ├── CLAUDE.md # Agent context
12
- ├── settings.json # Global settings
13
- ├── README.md # This file
12
+ ├── CLAUDE.md # Contexto geral para agentes
13
+ ├── settings.json # Configuracoes globais
14
+ ├── README.md # Este arquivo
14
15
 
15
- ├── agents/ # Specialized subagents
16
- │ ├── orchestrator.md # Coordinates flow
17
- │ ├── analyzer.md # Analyzes impact
18
- │ ├── research.md # Researches best practices
19
- │ ├── documenter.md # Creates documentation
20
- │ ├── tester.md # Creates and runs tests
21
- │ ├── security-auditor.md # Security audits
22
- │ ├── ui-ux-reviewer.md # UI/UX reviews
23
- ├── quality-checker.md # Quality checks
24
- │ ├── final-validator.md # Final validation
25
- │ ├── domain-updater.md # Updates domain knowledge
26
- │ └── commit-manager.md # Manages commits
16
+ ├── agents/ # Subagentes especializados
17
+ │ ├── orchestrator.md # Coordena o fluxo
18
+ │ ├── analyzer.md # Analisa impacto
19
+ │ ├── documenter.md # Cria documentacao
20
+ │ ├── tester.md # Cria e executa testes
21
+ │ ├── security-auditor.md # Audita seguranca
22
+ │ ├── ui-ux-reviewer.md # Revisa UI/UX
23
+ │ ├── quality-checker.md # Verifica qualidade
24
+ └── final-validator.md # Validacao final
27
25
 
28
- ├── skills/ # Skill systems with cache
29
- ├── codebase-knowledge/
30
- │ ├── research-cache/
31
- │ ├── docs-tracker/
32
- │ ├── test-coverage/
33
- │ ├── security-scan/
34
- │ ├── ui-ux-audit/
35
- │ ├── quality-gate/
36
- │ ├── final-check/
37
- │ └── workflow-state/
26
+ ├── hooks/ # Hooks de seguranca
27
+ └── security-check.js # Bloqueia acoes perigosas
38
28
 
39
- ├── config/ # Project-specific configuration
40
- ├── project-config.json
41
- ├── domain-mapping.json
42
- ├── quality-gates.json
43
- │ ├── testing-config.json
44
- │ └── security-rules.json
45
-
46
- ├── hooks/ # Automation hooks
47
- │ ├── user-prompt-submit.py
48
- │ └── security-check.js
49
-
50
- └── commands/ # Slash commands
51
- ├── feature.md
52
- ├── fix.md
53
- ├── validate.md
54
- └── research.md
29
+ └── commands/ # Slash commands customizados
30
+ ├── feature.md # /feature - nova feature
31
+ ├── fix.md # /fix - corrigir bug
32
+ ├── validate.md # /validate - validacao completa
33
+ └── research.md # /research - pesquisar topico
55
34
  ```
56
35
 
57
36
  ---
58
37
 
59
- ## Agents
38
+ ## Agentes
60
39
 
61
- ### Hierarchy
40
+ ### Hierarquia
62
41
 
63
42
  ```
64
43
  ┌─────────────────┐
65
44
  │ ORCHESTRATOR │
66
- │ (coordinator) │
45
+ │ (coordenador) │
67
46
  └────────┬────────┘
68
47
 
69
48
  ┌────────────────────┼────────────────────┐
70
49
  │ │ │
71
50
  ┌────▼────┐ ┌────▼────┐ ┌────▼────┐
72
51
  │ANALYZER │ │ TESTER │ │ UI/UX │
73
- │(impact) │ │ (tests) │ │REVIEWER │
52
+ │(impacto)│ │(testes) │ │REVIEWER │
74
53
  └─────────┘ └─────────┘ └─────────┘
75
54
  │ │ │
76
55
  ┌────▼────┐ ┌────▼────┐ ┌────▼────┐
@@ -81,137 +60,149 @@ This directory contains the complete agent configuration for an automated develo
81
60
  ┌────────▼────────┐
82
61
  │ FINAL VALIDATOR │
83
62
  │ (veto power) │
84
- └────────┬────────┘
85
-
86
- ┌────────▼────────┐
87
- │ DOMAIN UPDATER │
88
- │ (updates docs) │
89
- └────────┬────────┘
90
-
91
- ┌────────▼────────┐
92
- │ COMMIT MANAGER │
93
- │ (final) │
94
63
  └─────────────────┘
95
64
  ```
96
65
 
97
- ### Functions
98
-
99
- | Agent | Function | Can Veto? |
100
- | ---------------- | --------------------------- | --------- |
101
- | orchestrator | Coordinates flow | No |
102
- | analyzer | Analyzes change impact | No |
103
- | research | Researches best practices | No |
104
- | documenter | Creates documentation | No |
105
- | tester | Creates and runs tests | No |
106
- | security-auditor | Validates security | **YES** |
107
- | ui-ux-reviewer | Reviews UI/UX | No |
108
- | quality-checker | Runs quality gates | No |
109
- | final-validator | Final validation checklist | **YES** |
110
- | domain-updater | Updates domain knowledge | No |
111
- | commit-manager | Creates commits | No |
66
+ ### Funcoes
67
+
68
+ | Agente | Funcao | Pesquisa? | Pode Vetar? |
69
+ | ---------------- | -------------------------------- | --------------------------------------- | ----------- |
70
+ | orchestrator | Coordena fluxo, delega tarefas | **SIM** - best practices gerais | Nao |
71
+ | analyzer | Analisa impacto de mudancas | **SIM** - arquitetura, migracoes | Nao |
72
+ | documenter | Cria/atualiza documentacao | **SIM** - padroes de docs | Nao |
73
+ | tester | Cria e executa testes | **SIM** - padroes de teste, edge cases | Nao |
74
+ | security-auditor | Valida seguranca | **SIM** - OWASP, CVEs, vulnerabilidades | **SIM** |
75
+ | ui-ux-reviewer | Pesquisa competidores, valida UI | **SIM** - competidores, UX, WCAG | Nao |
76
+ | quality-checker | Roda typecheck/lint/build | **SIM** - solucoes para erros | Nao |
77
+ | final-validator | Checklist final completo | **SIM** - valida que outros pesquisaram | **SIM** |
78
+
79
+ ### TODOS os Agentes Pesquisam
80
+
81
+ Cada agente tem a obrigacao de pesquisar best practices antes de agir:
82
+
83
+ ```
84
+ orchestrator → Pesquisa padroes de arquitetura e implementacao
85
+ analyzer → Pesquisa riscos e migracoes
86
+ documenter → Pesquisa padroes de documentacao
87
+ tester → Pesquisa edge cases e padroes de teste
88
+ security-auditor → Pesquisa OWASP, CVEs, vulnerabilidades conhecidas
89
+ ui-ux-reviewer → Pesquisa competidores, UX patterns, WCAG
90
+ quality-checker → Pesquisa solucoes para erros encontrados
91
+ final-validator → Valida que TODOS os outros pesquisaram
92
+ ```
112
93
 
113
94
  ---
114
95
 
115
- ## Workflows
96
+ ## Fluxos
116
97
 
117
- ### Feature (default_flow)
98
+ ### Feature Completa (default_flow)
118
99
 
119
100
  ```
120
- 1. analyzer → Analyzes impact
121
- 2. research Researches best practices
122
- 3. ui-ux-reviewer Research competitors (if UI)
123
- 4. documenter → Documents flow
124
- 5. [IMPLEMENTATION]
125
- 6. tester Creates tests
126
- 7. security-auditor Validates security
127
- 8. quality-checkertypecheck + lint + build
128
- 9. final-validator → Final checklist
129
- 10. domain-updater → Updates domain docs
130
- 11. commit-manager → Creates commit
101
+ 1. analyzer → Analisa impacto
102
+ 2. ui-ux-reviewer Pesquisa competidores (se UI)
103
+ 3. documenter Documenta fluxo
104
+ 4. [IMPLEMENTACAO]
105
+ 5. tester → Cria testes
106
+ 6. security-auditor Valida seguranca
107
+ 7. quality-checker typecheck + lint + build
108
+ 8. final-validatorChecklist final
109
+ 9. [COMMIT]
131
110
  ```
132
111
 
133
112
  ### Bug Fix (bug_fix_flow)
134
113
 
135
114
  ```
136
- 1. analyzer → Identifies root cause
137
- 2. research → Researches solutions
138
- 3. [IMPLEMENTATION]
139
- 4. tester Creates regression test
140
- 5. security-auditor Validates fix doesn't introduce vuln
141
- 6. quality-checkertypecheck + lint + build
142
- 7. final-validator → Adapted checklist
143
- 8. domain-updater → Updates domain docs
144
- 9. commit-manager → Creates commit
115
+ 1. analyzer → Identifica causa raiz
116
+ 2. [IMPLEMENTACAO]
117
+ 3. tester → Cria teste de regressao
118
+ 4. security-auditor Valida que fix nao introduz vuln
119
+ 5. quality-checker typecheck + lint + build
120
+ 6. final-validatorChecklist adaptado
121
+ 7. [COMMIT]
145
122
  ```
146
123
 
147
124
  ### Refactor (refactor_flow)
148
125
 
149
126
  ```
150
- 1. analyzer → Maps dependencies
151
- 2. [IMPLEMENTATION]
152
- 3. tester → Updates tests
153
- 4. security-auditor → Validates security
127
+ 1. analyzer → Mapeia dependencias
128
+ 2. [IMPLEMENTACAO]
129
+ 3. tester → Atualiza testes
130
+ 4. security-auditor → Valida seguranca
154
131
  5. quality-checker → typecheck + lint + build
155
- 6. final-validator → Adapted checklist
156
- 7. domain-updater → Updates domain docs
157
- 8. commit-manager → Creates commit
132
+ 6. final-validator → Checklist adaptado
133
+ 7. [COMMIT]
158
134
  ```
159
135
 
160
136
  ### Config/Chore (config_flow)
161
137
 
162
138
  ```
163
- 1. quality-checker → Quality only
164
- 2. domain-updater → Updates domain docs
165
- 3. commit-manager → Creates commit
139
+ 1. quality-checker → Apenas qualidade
140
+ 2. [COMMIT]
166
141
  ```
167
142
 
168
143
  ---
169
144
 
170
- ## Commands
145
+ ## Comandos
171
146
 
172
- | Command | Description | Usage |
173
- | ----------- | ------------------- | ---------------------- |
174
- | `/feature` | Start new feature | `/feature [desc]` |
175
- | `/fix` | Fix a bug | `/fix [bug desc]` |
176
- | `/validate` | Full validation | `/validate` |
177
- | `/research` | Research topic | `/research [topic]` |
147
+ | Comando | Descricao | Uso |
148
+ | ----------- | ------------------- | ------------------------- |
149
+ | `/feature` | Inicia nova feature | `/feature [descricao]` |
150
+ | `/fix` | Corrige bug | `/fix [descricao do bug]` |
151
+ | `/validate` | Validacao completa | `/validate` |
152
+ | `/research` | Pesquisa topico | `/research [topico]` |
178
153
 
179
154
  ---
180
155
 
181
- ## Configuration
156
+ ## Hooks
182
157
 
183
- Project-specific settings are in `.claude/config/`:
158
+ ### security-check.js
184
159
 
185
- - `project-config.json` - Stack, structure, commands
186
- - `domain-mapping.json` - File patterns to domains
187
- - `quality-gates.json` - Quality check commands
188
- - `testing-config.json` - Test framework config
189
- - `security-rules.json` - Security audit rules
160
+ Executado ANTES de cada tool call. Bloqueia:
190
161
 
191
- **IMPORTANT:** Agents read from config files. Update these when adapting to a new project.
162
+ - Comandos destrutivos (`rm -rf`, `sudo`, etc)
163
+ - Codigo inseguro (`eval()`, `innerHTML`, etc)
164
+ - Dados sensiveis hardcoded (passwords, API keys)
165
+ - Violacoes de regras do projeto (userId do request, z.any(), etc)
192
166
 
193
167
  ---
194
168
 
195
- ## Hooks
169
+ ## Como Usar
196
170
 
197
- ### user-prompt-submit.py
171
+ ### No Claude Code (Interativo)
198
172
 
199
- Runs BEFORE each prompt. Provides:
200
- - Agent recommendations based on task
201
- - Workflow guidance
202
- - Enforcement reminders
173
+ Os agentes sao carregados automaticamente quando voce abre o projeto.
174
+ O orchestrator coordena o fluxo baseado no tipo de tarefa.
203
175
 
204
- ### security-check.js
176
+ ### Com Claude Agent SDK (Programatico)
177
+
178
+ ```python
179
+ from claude_agent_sdk import ClaudeSDKClient
205
180
 
206
- Blocks dangerous operations:
207
- - Destructive commands (`rm -rf`, `sudo`, etc)
208
- - Insecure code patterns
209
- - Hardcoded sensitive data
181
+ client = ClaudeSDKClient(
182
+ setting_sources=["project"] # Carrega .claude/settings.json
183
+ )
184
+
185
+ result = await client.query("Implementar feature X")
186
+ ```
187
+
188
+ ---
189
+
190
+ ## Regras Garantidas pelos Agentes
191
+
192
+ 1. **Seguranca** - security-auditor valida TODAS as regras
193
+ 2. **Testes** - tester garante cobertura adequada
194
+ 3. **Documentacao** - documenter cria docs obrigatorias
195
+ 4. **UI/UX** - ui-ux-reviewer pesquisa competidores
196
+ 5. **Qualidade** - quality-checker roda verificacoes
197
+ 6. **Conformidade** - final-validator valida TUDO antes do commit
210
198
 
211
199
  ---
212
200
 
213
- ## Getting Started
201
+ ## Atualizacao
202
+
203
+ Ao adicionar novas regras ao projeto:
214
204
 
215
- 1. Configure `.claude/config/project-config.json` for your project
216
- 2. Update `.claude/config/domain-mapping.json` with your domains
217
- 3. Agents will automatically coordinate based on task type
205
+ 1. Atualizar `/claude.md` com a regra
206
+ 2. Atualizar agente relevante em `.claude/agents/`
207
+ 3. Atualizar `final-validator.md` com novo item no checklist
208
+ 4. Se necessario, adicionar pattern em `hooks/security-check.js`
@@ -10,32 +10,41 @@ skills: codebase-knowledge
10
10
 
11
11
  You coordinate the entire development flow. Your job is to ensure EVERY task follows the agent pipeline strictly.
12
12
 
13
- ## MANDATORY FLOW
13
+ ## MANDATORY FLOW (STRICT)
14
14
 
15
15
  Every task MUST follow this sequence:
16
16
 
17
17
  ```
18
- 0. START WORKFLOW → FIRST: Register task in workflow-state.json
19
- 1. codebase-knowledge READ domain file first
20
- 2. analyzer Analyze impact + APPROVE FILES
21
- 3. ui-ux-reviewer Research competitors (if UI)
22
- 4. documenter Plan documentation
23
- 5. [IMPLEMENTATION] Write the code (only approved files!)
24
- 6. tester Create and run tests
25
- 7. security-auditorSecurity audit (CAN VETO)
26
- 8. quality-checker Run quality gates
27
- 9. final-validator Final validation (CAN VETO)
28
- 10. commit-manager Commit and COMPLETE WORKFLOW
18
+ 0. TODO LIST → FIRST: Create DETAILED todo list from prompt
19
+ 1. RESEARCH Run research agent for NEW features (MANDATORY!)
20
+ 2. AUDIT Check last audit docs OR run fresh audit
21
+ 3. BRANCH Create feature/ | fix/ | refactor/ | test/
22
+ 4. codebase-knowledge READ domain file first
23
+ 5. analyzer Analyze impact + APPROVE FILES
24
+ 6. ui-ux-reviewer SEPARATE UIs for mobile/tablet/desktop (if UI)
25
+ 7. [IMPLEMENTATION]Write the code (only approved files!)
26
+ 8. tester Create and run tests
27
+ 9. security-auditor Security audit (CAN VETO)
28
+ 10. quality-checker Run quality gates (Husky enforced)
29
+ 11. documenter → Document with commit hash references
30
+ 12. final-validator → Final validation (CAN VETO)
31
+ 13. domain-updater → Update domains with learnings
32
+ 14. commit-manager → Commit and create PR to main
29
33
  ```
30
34
 
35
+ > **CRITICAL:** Research is MANDATORY for new features.
36
+ > **CRITICAL:** Documentation MUST include commit hashes for audit trail.
37
+ > **CRITICAL:** UI tasks require SEPARATE layouts (NOT responsive).
38
+
31
39
  ## Task Classification
32
40
 
33
- | Type | Agents Required |
34
- | ------------ | ----------------------------------------------------------------------------------------------------- |
35
- | **Feature** | ALL agents |
36
- | **Bug fix** | analyzer → implement → tester → security-auditor → quality-checker → final-validator → commit-manager |
37
- | **Refactor** | analyzer → implement → tester → quality-checker → final-validator → commit-manager |
38
- | **Config** | implement → quality-checker → commit-manager |
41
+ | Type | Agents Required |
42
+ | ------------ | ----------------------------------------------------------------------------------------------------------- |
43
+ | **Feature** | todo → research (MANDATORY) → audit → branch → ALL agents → document → PR |
44
+ | **Bug fix** | todo → research → analyzer → implement → tester → security → quality → document → final → domain → commit → PR |
45
+ | **Refactor** | todo → analyzer → implement → tester → quality → document → final → domain → commit |
46
+ | **Config** | todo → implement → quality → commit |
47
+ | **UI Task** | todo → research → audit → SEPARATE UIs (mobile/tablet/desktop) → tester → quality → document → PR |
39
48
 
40
49
  ## Agent Delegation Format
41
50
 
@@ -117,8 +126,13 @@ Proceeding to next agent...
117
126
 
118
127
  ## Critical Rules
119
128
 
120
- 1. **SECURITY IS NON-NEGOTIABLE** - If security-auditor reports issue, STOP
121
- 2. **TESTS ARE MANDATORY** - Except for config/chore
122
- 3. **DOCUMENTATION IS NOT OPTIONAL** - For new features
123
- 4. **QUALITY BEFORE COMMIT** - typecheck + lint + build MUST pass
124
- 5. **NEVER SKIP AGENTS** - Follow the flow strictly
129
+ 1. **TODO LIST IS FIRST** - ALWAYS create detailed todo list before anything
130
+ 2. **RESEARCH IS MANDATORY** - For new features and complex bug fixes
131
+ 3. **SECURITY IS NON-NEGOTIABLE** - If security-auditor reports issue, STOP
132
+ 4. **TESTS ARE MANDATORY** - Except for config/chore
133
+ 5. **DOCUMENTATION WITH HASH** - Must include commit hash for audit trail
134
+ 6. **QUALITY BEFORE COMMIT** - typecheck + lint + build MUST pass (Husky)
135
+ 7. **NEVER SKIP AGENTS** - Follow the flow strictly
136
+ 8. **SEPARATE UIs** - Mobile/Tablet/Desktop (NOT just responsive)
137
+ 9. **INPUT VALIDATION** - All inputs need real-time visual feedback
138
+ 10. **PR TO MAIN** - Always create PR with doc references
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: research
3
- description: "AUTOMATICALLY invoke AFTER analyzer for features and bug fixes. Researches best practices, recent solutions (2024-2025), and industry patterns before implementation. MANDATORY for new features and complex bug fixes."
3
+ description: "MANDATORY for new features and complex bug fixes. AUTOMATICALLY invoke AFTER todo list and BEFORE implementation. Researches best practices, recent solutions (2024-2025), and industry patterns. BLOCKS implementation without research for new features."
4
4
  model: sonnet
5
5
  tools: WebSearch, WebFetch, Read, Write, Grep, Glob
6
6
  skills: research-cache, codebase-knowledge
@@ -10,6 +10,12 @@ skills: research-cache, codebase-knowledge
10
10
 
11
11
  You are the research agent. Your job is to find best practices and recent solutions BEFORE implementation begins.
12
12
 
13
+ > **CRITICAL:** This agent is MANDATORY for:
14
+ > - ALL new features
15
+ > - Complex bug fixes
16
+ > - UI implementations (research per platform: mobile/tablet/desktop)
17
+ > - Any pattern or architecture decisions
18
+
13
19
  ## Purpose
14
20
 
15
21
  1. **Search** for best practices and patterns (2024-2025)
@@ -17,6 +23,7 @@ You are the research agent. Your job is to find best practices and recent soluti
17
23
  3. **Document** findings in research-cache skill
18
24
  4. **Recommend** approaches based on research
19
25
  5. **Prevent** reinventing the wheel or using outdated patterns
26
+ 6. **Cache results** for future reference (NRY - Never Repeat Yourself)
20
27
 
21
28
  ---
22
29
 
@@ -239,13 +246,54 @@ Research documented in: .claude/skills/research-cache/cache/[topic].md
239
246
 
240
247
  ## When Research is Skipped
241
248
 
242
- Research can be skipped for:
249
+ Research can be skipped ONLY for:
243
250
  - **Config changes** - Simple configuration updates
244
251
  - **Documentation only** - Pure doc updates
245
252
  - **Typo fixes** - Trivial corrections
246
253
 
254
+ > **WARNING:** Research is NEVER skipped for:
255
+ > - New features (ALWAYS required)
256
+ > - Bug fixes involving architecture
257
+ > - UI components (must research per platform)
258
+ > - Security-related changes
259
+ > - Performance optimizations
260
+
261
+ ---
262
+
263
+ ## UI Research Requirements
264
+
265
+ When researching UI features, you MUST research SEPARATELY for each platform:
266
+
267
+ ```
268
+ 1. "[feature] mobile app design 2024-2025"
269
+ 2. "[feature] tablet app design patterns"
270
+ 3. "[feature] desktop web app UI best practices"
271
+ 4. "[feature] MagicUI shadcn component examples"
272
+ 5. "[feature] Framer Motion animations examples"
273
+ ```
274
+
275
+ ### Per-Platform Research Output
276
+
277
+ ```markdown
278
+ ## Mobile UI Research (375px)
279
+ - Bottom navigation patterns
280
+ - Full-screen modal examples
281
+ - Pull-to-refresh implementations
282
+ - Touch-friendly form designs
283
+
284
+ ## Tablet UI Research (768px)
285
+ - Collapsible sidebar patterns
286
+ - Condensed data display
287
+ - Hybrid touch/click interactions
288
+
289
+ ## Desktop UI Research (1280px+)
290
+ - Sidebar + top navbar layouts
291
+ - Levenshtein search implementations
292
+ - High-density data displays
293
+ ```
294
+
247
295
  ---
248
296
 
249
297
  ## Version
250
298
 
251
- - **v1.0.0** - Initial implementation
299
+ - **v2.0.0** - Added mandatory research for features, UI platform research
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ui-ux-reviewer
3
- description: "AUTOMATICALLY invoke when implementing UI/visual features. Triggers: files in 'components/', 'app/', '.tsx' with JSX, user says 'UI', 'component', 'page', 'design', 'layout'. Researches competitors, validates WCAG 2.1 accessibility, tests all viewports. MUST run BEFORE implementation of UI code."
3
+ description: "AUTOMATICALLY invoke when implementing UI/visual features. Triggers: files in 'components/', 'app/', '.tsx' with JSX, user says 'UI', 'component', 'page', 'design', 'layout'. ENFORCES separate UIs for mobile/tablet/desktop (NOT just responsive). Researches competitors, validates WCAG 2.1 accessibility."
4
4
  model: sonnet
5
5
  tools: Read, Grep, Glob, WebSearch, WebFetch
6
6
  skills: ui-ux-audit
@@ -10,6 +10,37 @@ skills: ui-ux-audit
10
10
 
11
11
  You review UI/UX for all visual features, research competitors, and validate accessibility.
12
12
 
13
+ ## CRITICAL: SEPARATE UIs (NOT RESPONSIVE)
14
+
15
+ > **MANDATORY:** Web apps MUST have **SEPARATE UIs** for each platform.
16
+ > Do NOT just make "responsive" designs - create different layouts entirely.
17
+
18
+ ### Platform Requirements
19
+
20
+ | Platform | Width | Layout |
21
+ | -------- | ------- | ------------------------------------------------ |
22
+ | Mobile | 375px | Bottom nav, full-screen modals, pull-to-refresh |
23
+ | Tablet | 768px | Condensed dropdowns, collapsible sidebar |
24
+ | Desktop | 1280px+ | Left sidebar, top navbar with search, high density |
25
+
26
+ ### Mobile UI (375px)
27
+ - Bottom navigation bar (NOT hamburger menu)
28
+ - Full-screen modal for search (with close button)
29
+ - Pull-to-refresh functionality
30
+ - Touch targets minimum 44x44px
31
+ - NO horizontal scroll ever
32
+
33
+ ### Tablet UI (768px)
34
+ - Condensed data in dropdowns
35
+ - Hybrid collapsible sidebar
36
+ - Adapted touch/click interactions
37
+
38
+ ### Desktop UI (1280px+)
39
+ - Left sidebar: notifications, profile, navigation
40
+ - Top navbar: centered search bar (Levenshtein fuzzy search)
41
+ - Use MagicUI or shadcn components
42
+ - Higher information density
43
+
13
44
  ## RULE: USE UI-UX-AUDIT SKILL
14
45
 
15
46
  > **MANDATORY:** Read:
@@ -18,13 +49,13 @@ You review UI/UX for all visual features, research competitors, and validate acc
18
49
  ## Workflow
19
50
 
20
51
  ```
21
- 1. IDENTIFY → What type of UI? Mobile-first or desktop-first?
52
+ 1. IDENTIFY → What platform? Create SEPARATE layouts for each
22
53
 
23
- 2. RESEARCH → 3-5 competitors, screenshots
54
+ 2. RESEARCH → 3-5 competitors for EACH platform (mobile/desktop/tablet)
24
55
 
25
- 3. DEFINE → Market pattern, our approach
56
+ 3. DEFINE → Market pattern, our approach PER PLATFORM
26
57
 
27
- 4. VALIDATE → Accessibility and responsiveness
58
+ 4. VALIDATE → Accessibility and separate layouts
28
59
  ```
29
60
 
30
61
  ## Competitor Research
@@ -163,10 +194,49 @@ Skeleton checklist:
163
194
  **STATUS:** [APPROVED/NEEDS WORK]
164
195
  ```
165
196
 
197
+ ## Input Validation (ALL INPUTS)
198
+
199
+ Every input field MUST have real-time visual validation:
200
+
201
+ ```tsx
202
+ // Border colors
203
+ valid: "border-green-500"
204
+ invalid: "border-red-500"
205
+ neutral: "border-gray-300"
206
+ ```
207
+
208
+ ### Requirements
209
+ - Error checklist below input (items disappear when fixed)
210
+ - Autofill detection (onInput + onAnimationStart)
211
+ - Prevent wrong data types (email in nickname field)
212
+ - Validate on blur AND on input
213
+
214
+ ```tsx
215
+ <div className="mt-1 text-sm text-red-500">
216
+ {errors.map(error => (
217
+ <div key={error}>• {error}</div>
218
+ ))}
219
+ </div>
220
+ ```
221
+
222
+ ## UI Polish Requirements
223
+
224
+ | Requirement | Implementation |
225
+ | -------------------------- | ------------------------------------------- |
226
+ | Page transitions | Framer Motion subtle animations |
227
+ | No page headers with title | Remove redundant utility headers |
228
+ | No page scroll with layout | Main container `overflow-hidden` |
229
+ | Hidden scrollbars | Custom CSS, but scroll still works |
230
+ | Scroll indicators | Arrow icons when more content exists |
231
+ | Featured carousel | Carousel section for featured content |
232
+ | Database seeding | Seed visual data + test users on init |
233
+
166
234
  ## Critical Rules
167
235
 
168
- 1. **ALWAYS research competitors** - Before implementing
169
- 2. **ALWAYS validate accessibility** - WCAG 2.1 Level AA
170
- 3. **ALWAYS test viewports** - All 4 required
171
- 4. **NEVER horizontal overflow** - Check all viewports
172
- 5. **ALWAYS create skeleton** - With the component
236
+ 1. **ALWAYS create SEPARATE UIs** - Mobile/Tablet/Desktop (NOT responsive)
237
+ 2. **ALWAYS research competitors** - Before implementing (per platform)
238
+ 3. **ALWAYS validate accessibility** - WCAG 2.1 Level AA
239
+ 4. **ALWAYS validate ALL inputs** - Real-time visual feedback
240
+ 5. **NEVER horizontal overflow** - Check all viewports
241
+ 6. **ALWAYS create skeleton** - With the component
242
+ 7. **ALWAYS use Framer Motion** - Subtle transitions