flyee 0.1.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/LICENSE +21 -0
- package/README.md +134 -0
- package/bin/install.js +357 -0
- package/bridge/bridge.py +1780 -0
- package/bridge/local_tracker.py +722 -0
- package/core/agents/backend-specialist.md +266 -0
- package/core/agents/code-archaeologist.md +106 -0
- package/core/agents/database-architect.md +226 -0
- package/core/agents/debugger.md +225 -0
- package/core/agents/devops-engineer.md +323 -0
- package/core/agents/documentation-writer.md +104 -0
- package/core/agents/explorer-agent.md +73 -0
- package/core/agents/frontend-specialist.md +743 -0
- package/core/agents/game-developer.md +162 -0
- package/core/agents/mobile-developer.md +377 -0
- package/core/agents/orchestrator.md +416 -0
- package/core/agents/penetration-tester.md +188 -0
- package/core/agents/performance-optimizer.md +187 -0
- package/core/agents/product-manager.md +112 -0
- package/core/agents/product-owner.md +95 -0
- package/core/agents/project-planner.md +470 -0
- package/core/agents/qa-automation-engineer.md +103 -0
- package/core/agents/security-auditor.md +170 -0
- package/core/agents/seo-specialist.md +111 -0
- package/core/agents/stitch-designer.md +190 -0
- package/core/agents/tdd-reviewer.md +282 -0
- package/core/agents/test-engineer.md +158 -0
- package/core/scripts/auto_preview.py +148 -0
- package/core/scripts/checklist.py +243 -0
- package/core/scripts/cost_report.py +149 -0
- package/core/scripts/doc-sync-check.py +461 -0
- package/core/scripts/parse_user_stories.py +79 -0
- package/core/scripts/prepare_notion_updates.py +172 -0
- package/core/scripts/print_create_payload.py +18 -0
- package/core/scripts/session_manager.py +120 -0
- package/core/scripts/task_complete.py +127 -0
- package/core/scripts/verify_all.py +327 -0
- package/core/skills/analytics-strategy/SKILL.md +128 -0
- package/core/skills/api-patterns/SKILL.md +81 -0
- package/core/skills/api-patterns/api-style.md +42 -0
- package/core/skills/api-patterns/auth.md +24 -0
- package/core/skills/api-patterns/documentation.md +26 -0
- package/core/skills/api-patterns/graphql.md +41 -0
- package/core/skills/api-patterns/rate-limiting.md +31 -0
- package/core/skills/api-patterns/response.md +37 -0
- package/core/skills/api-patterns/rest.md +40 -0
- package/core/skills/api-patterns/scripts/api_validator.py +211 -0
- package/core/skills/api-patterns/security-testing.md +122 -0
- package/core/skills/api-patterns/trpc.md +41 -0
- package/core/skills/api-patterns/versioning.md +22 -0
- package/core/skills/app-builder/SKILL.md +75 -0
- package/core/skills/app-builder/agent-coordination.md +71 -0
- package/core/skills/app-builder/feature-building.md +53 -0
- package/core/skills/app-builder/project-detection.md +34 -0
- package/core/skills/app-builder/scaffolding.md +118 -0
- package/core/skills/app-builder/tech-stack.md +40 -0
- package/core/skills/app-builder/templates/SKILL.md +39 -0
- package/core/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/core/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/core/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/core/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/core/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/core/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/core/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/core/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/core/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/core/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/core/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/core/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/core/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/core/skills/architecture/SKILL.md +55 -0
- package/core/skills/architecture/context-discovery.md +43 -0
- package/core/skills/architecture/examples.md +94 -0
- package/core/skills/architecture/pattern-selection.md +68 -0
- package/core/skills/architecture/patterns-reference.md +50 -0
- package/core/skills/architecture/trade-off-analysis.md +77 -0
- package/core/skills/atomic-design/SKILL.md +282 -0
- package/core/skills/atomic-design/references/classification-guide.md +132 -0
- package/core/skills/atomic-design/references/quality-checklist.md +60 -0
- package/core/skills/atomic-design/references/stacks/stack-blade.md +254 -0
- package/core/skills/atomic-design/references/stacks/stack-nextjs.md +272 -0
- package/core/skills/atomic-design/references/stacks/stack-react.md +239 -0
- package/core/skills/atomic-design/references/stacks/stack-vue.md +224 -0
- package/core/skills/bash-linux/SKILL.md +199 -0
- package/core/skills/behavioral-modes/SKILL.md +242 -0
- package/core/skills/brainstorming/SKILL.md +163 -0
- package/core/skills/brainstorming/dynamic-questioning.md +373 -0
- package/core/skills/checkpointing-patterns/SKILL.md +163 -0
- package/core/skills/clean-code/SKILL.md +201 -0
- package/core/skills/code-review-checklist/SKILL.md +109 -0
- package/core/skills/code-truth-validation/SKILL.md +149 -0
- package/core/skills/component-library-discovery/SKILL.md +154 -0
- package/core/skills/content-strategy/SKILL.md +222 -0
- package/core/skills/context-budget/SKILL.md +155 -0
- package/core/skills/context-gathering-patterns/SKILL.md +278 -0
- package/core/skills/cost-tracking/SKILL.md +206 -0
- package/core/skills/database-design/SKILL.md +52 -0
- package/core/skills/database-design/database-selection.md +43 -0
- package/core/skills/database-design/indexing.md +39 -0
- package/core/skills/database-design/migrations.md +48 -0
- package/core/skills/database-design/optimization.md +36 -0
- package/core/skills/database-design/orm-selection.md +30 -0
- package/core/skills/database-design/schema-design.md +56 -0
- package/core/skills/database-design/scripts/schema_validator.py +172 -0
- package/core/skills/deployment-procedures/SKILL.md +295 -0
- package/core/skills/design-md/README.md +34 -0
- package/core/skills/design-md/SKILL.md +172 -0
- package/core/skills/design-md/examples/DESIGN.md +154 -0
- package/core/skills/design-system-enforcement/SKILL.md +339 -0
- package/core/skills/doc.md +177 -0
- package/core/skills/document-registry/SKILL.md +130 -0
- package/core/skills/documentation-publishing/SKILL.md +174 -0
- package/core/skills/documentation-templates/SKILL.md +194 -0
- package/core/skills/enhance-prompt/README.md +34 -0
- package/core/skills/enhance-prompt/SKILL.md +204 -0
- package/core/skills/enhance-prompt/references/KEYWORDS.md +114 -0
- package/core/skills/frontend-design/SKILL.md +430 -0
- package/core/skills/frontend-design/animation-guide.md +331 -0
- package/core/skills/frontend-design/color-system.md +311 -0
- package/core/skills/frontend-design/decision-trees.md +418 -0
- package/core/skills/frontend-design/motion-graphics.md +306 -0
- package/core/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/core/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/core/skills/frontend-design/typography-system.md +345 -0
- package/core/skills/frontend-design/ux-psychology.md +541 -0
- package/core/skills/frontend-design/visual-effects.md +383 -0
- package/core/skills/game-development/2d-games/SKILL.md +119 -0
- package/core/skills/game-development/3d-games/SKILL.md +135 -0
- package/core/skills/game-development/SKILL.md +167 -0
- package/core/skills/game-development/game-art/SKILL.md +185 -0
- package/core/skills/game-development/game-audio/SKILL.md +190 -0
- package/core/skills/game-development/game-design/SKILL.md +129 -0
- package/core/skills/game-development/mobile-games/SKILL.md +108 -0
- package/core/skills/game-development/multiplayer/SKILL.md +132 -0
- package/core/skills/game-development/pc-games/SKILL.md +144 -0
- package/core/skills/game-development/vr-ar/SKILL.md +123 -0
- package/core/skills/game-development/web-games/SKILL.md +150 -0
- package/core/skills/geo-fundamentals/SKILL.md +156 -0
- package/core/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/core/skills/git-workflow/SKILL.md +263 -0
- package/core/skills/history-check-patterns/SKILL.md +125 -0
- package/core/skills/i18n-localization/SKILL.md +154 -0
- package/core/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/core/skills/integration-completeness/SKILL.md +219 -0
- package/core/skills/intelligent-routing/SKILL.md +370 -0
- package/core/skills/lint-and-validate/SKILL.md +45 -0
- package/core/skills/lint-and-validate/scripts/lint_runner.py +173 -0
- package/core/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/core/skills/local-verification/SKILL.md +195 -0
- package/core/skills/mcp-builder/SKILL.md +176 -0
- package/core/skills/mobile-design/SKILL.md +394 -0
- package/core/skills/mobile-design/decision-trees.md +516 -0
- package/core/skills/mobile-design/mobile-backend.md +491 -0
- package/core/skills/mobile-design/mobile-color-system.md +420 -0
- package/core/skills/mobile-design/mobile-debugging.md +122 -0
- package/core/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/core/skills/mobile-design/mobile-navigation.md +458 -0
- package/core/skills/mobile-design/mobile-performance.md +767 -0
- package/core/skills/mobile-design/mobile-testing.md +356 -0
- package/core/skills/mobile-design/mobile-typography.md +433 -0
- package/core/skills/mobile-design/platform-android.md +666 -0
- package/core/skills/mobile-design/platform-ios.md +561 -0
- package/core/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/core/skills/mobile-design/touch-psychology.md +537 -0
- package/core/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/core/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/core/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/core/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/core/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/core/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/core/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/core/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/core/skills/nextjs-react-expert/SKILL.md +267 -0
- package/core/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/core/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/core/skills/nodejs-best-practices/SKILL.md +333 -0
- package/core/skills/notion-task-patterns/SKILL.md +2529 -0
- package/core/skills/page-specifications/SKILL.md +367 -0
- package/core/skills/parallel-agents/SKILL.md +175 -0
- package/core/skills/performance-profiling/SKILL.md +143 -0
- package/core/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/core/skills/plan-writing/SKILL.md +190 -0
- package/core/skills/powershell-windows/SKILL.md +167 -0
- package/core/skills/project-foundation/SKILL.md +117 -0
- package/core/skills/project-setup/SKILL.md +141 -0
- package/core/skills/project-tracking-patterns/SKILL.md +357 -0
- package/core/skills/project-type-discovery/SKILL.md +239 -0
- package/core/skills/python-patterns/SKILL.md +441 -0
- package/core/skills/qa-test-generation/SKILL.md +156 -0
- package/core/skills/react-components/README.md +36 -0
- package/core/skills/react-components/SKILL.md +47 -0
- package/core/skills/react-components/examples/gold-standard-card.tsx +80 -0
- package/core/skills/react-components/package-lock.json +231 -0
- package/core/skills/react-components/package.json +16 -0
- package/core/skills/react-components/resources/architecture-checklist.md +15 -0
- package/core/skills/react-components/resources/component-template.tsx +37 -0
- package/core/skills/react-components/resources/stitch-api-reference.md +14 -0
- package/core/skills/react-components/resources/style-guide.json +27 -0
- package/core/skills/react-components/scripts/fetch-stitch.sh +30 -0
- package/core/skills/react-components/scripts/validate.js +68 -0
- package/core/skills/red-team-tactics/SKILL.md +199 -0
- package/core/skills/remotion/README.md +105 -0
- package/core/skills/remotion/SKILL.md +393 -0
- package/core/skills/remotion/examples/WalkthroughComposition.tsx +78 -0
- package/core/skills/remotion/examples/screens.json +56 -0
- package/core/skills/remotion/resources/composition-checklist.md +124 -0
- package/core/skills/remotion/resources/screen-slide-template.tsx +123 -0
- package/core/skills/remotion/scripts/download-stitch-asset.sh +38 -0
- package/core/skills/seo-fundamentals/SKILL.md +129 -0
- package/core/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/core/skills/server-management/SKILL.md +161 -0
- package/core/skills/session-resilience/SKILL.md +199 -0
- package/core/skills/shadcn-ui/README.md +248 -0
- package/core/skills/shadcn-ui/SKILL.md +326 -0
- package/core/skills/shadcn-ui/examples/auth-layout.tsx +177 -0
- package/core/skills/shadcn-ui/examples/data-table.tsx +313 -0
- package/core/skills/shadcn-ui/examples/form-pattern.tsx +177 -0
- package/core/skills/shadcn-ui/resources/component-catalog.md +481 -0
- package/core/skills/shadcn-ui/resources/customization-guide.md +516 -0
- package/core/skills/shadcn-ui/resources/migration-guide.md +463 -0
- package/core/skills/shadcn-ui/resources/setup-guide.md +412 -0
- package/core/skills/shadcn-ui/scripts/verify-setup.sh +134 -0
- package/core/skills/state-machine/SKILL.md +264 -0
- package/core/skills/stitch-loop/README.md +54 -0
- package/core/skills/stitch-loop/SKILL.md +203 -0
- package/core/skills/stitch-loop/examples/SITE.md +73 -0
- package/core/skills/stitch-loop/examples/next-prompt.md +25 -0
- package/core/skills/stitch-loop/resources/baton-schema.md +61 -0
- package/core/skills/stitch-loop/resources/site-template.md +104 -0
- package/core/skills/systematic-debugging/SKILL.md +109 -0
- package/core/skills/tailwind-patterns/SKILL.md +284 -0
- package/core/skills/tdd-validation/SKILL.md +243 -0
- package/core/skills/tdd-workflow/SKILL.md +284 -0
- package/core/skills/testing-patterns/SKILL.md +196 -0
- package/core/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/core/skills/ui-ux-discovery/SKILL.md +329 -0
- package/core/skills/ui-validation/SKILL.md +190 -0
- package/core/skills/ui-validation/scripts/ui_antipattern_check.py +317 -0
- package/core/skills/verification-gate/SKILL.md +205 -0
- package/core/skills/vulnerability-scanner/SKILL.md +276 -0
- package/core/skills/vulnerability-scanner/checklists.md +121 -0
- package/core/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/core/skills/web-design-guidelines/SKILL.md +57 -0
- package/core/skills/webapp-testing/SKILL.md +187 -0
- package/core/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/core/templates/ARCHITECTURE.template.md +407 -0
- package/core/templates/project-resources.example.json +71 -0
- package/core/workflows/atomic.md +182 -0
- package/core/workflows/brainstorm.md +134 -0
- package/core/workflows/check-task.md +242 -0
- package/core/workflows/copy-collect.md +306 -0
- package/core/workflows/create-agent.md +33 -0
- package/core/workflows/create-skill.md +39 -0
- package/core/workflows/create-workflow.md +33 -0
- package/core/workflows/create.md +92 -0
- package/core/workflows/debug.md +186 -0
- package/core/workflows/demand.md +443 -0
- package/core/workflows/deploy.md +260 -0
- package/core/workflows/discovery.md +267 -0
- package/core/workflows/document.md +272 -0
- package/core/workflows/ds-components.md +296 -0
- package/core/workflows/ds-init.md +58 -0
- package/core/workflows/ds-refactor.md +245 -0
- package/core/workflows/ds-references.md +197 -0
- package/core/workflows/ds-styleguide.md +237 -0
- package/core/workflows/ds-token-diff.md +103 -0
- package/core/workflows/ds-tokens.md +317 -0
- package/core/workflows/ds-validate.md +309 -0
- package/core/workflows/execute.md +483 -0
- package/core/workflows/extract-template.md +278 -0
- package/core/workflows/fix-failed-tests.md +160 -0
- package/core/workflows/init-project.md +386 -0
- package/core/workflows/legacy-project.md +849 -0
- package/core/workflows/log.md +97 -0
- package/core/workflows/new-project.md +610 -0
- package/core/workflows/new-project.md.bak +3292 -0
- package/core/workflows/new-task.md +404 -0
- package/core/workflows/orchestrate.md +237 -0
- package/core/workflows/page-build.md +296 -0
- package/core/workflows/plan.md +89 -0
- package/core/workflows/prd.md +255 -0
- package/core/workflows/preview.md +81 -0
- package/core/workflows/review-page.md +304 -0
- package/core/workflows/status.md +86 -0
- package/core/workflows/stitch.md +226 -0
- package/core/workflows/task-complete.md +473 -0
- package/core/workflows/task-update.md +163 -0
- package/core/workflows/tdd.md +344 -0
- package/core/workflows/test.md +251 -0
- package/core/workflows/ui-ux-pro-max.md +437 -0
- package/core/workflows/ux-mobile-optimize.md +262 -0
- package/core/workflows/ux-mobile-validate.md +297 -0
- package/engine-files/GEMINI.md +69 -0
- package/package.json +47 -0
- package/runtime-adapters/antigravity.js +26 -0
- package/runtime-adapters/claude.js +57 -0
- package/runtime-adapters/codex.js +51 -0
- package/runtime-adapters/copilot.js +51 -0
- package/runtime-adapters/cursor.js +51 -0
- package/runtime-adapters/gemini-cli.js +30 -0
- package/runtime-adapters/opencode.js +51 -0
- package/runtime-adapters/windsurf.js +51 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Plan and implement UI
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
description: AI-powered design intelligence with 50+ styles, 95+ color palettes, and automated design system generation
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ui-ux-pro-max
|
|
10
|
+
|
|
11
|
+
Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations.
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
Check if Python is installed:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python3 --version || python --version
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
If Python is not installed, install it based on user's OS:
|
|
22
|
+
|
|
23
|
+
**macOS:**
|
|
24
|
+
```bash
|
|
25
|
+
brew install python3
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Ubuntu/Debian:**
|
|
29
|
+
```bash
|
|
30
|
+
sudo apt update && sudo apt install python3
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Windows:**
|
|
34
|
+
```powershell
|
|
35
|
+
winget install Python.Python.3.12
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## How to Use This Workflow
|
|
41
|
+
|
|
42
|
+
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
|
|
43
|
+
|
|
44
|
+
> [!CAUTION]
|
|
45
|
+
> **SKILL OBRIGATÓRIA:** Este workflow gera RECOMENDAÇÕES. Para Design System FINAL, seguir skill `ui-ux-discovery` que inclui perguntas granulares ao usuário.
|
|
46
|
+
|
|
47
|
+
### Step 1: Analyze User Requirements
|
|
48
|
+
|
|
49
|
+
Extract key information from user request:
|
|
50
|
+
- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
|
|
51
|
+
- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
|
|
52
|
+
- **Industry**: healthcare, fintech, gaming, education, etc.
|
|
53
|
+
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
|
|
54
|
+
|
|
55
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
56
|
+
|
|
57
|
+
**Always start with `--design-system`** to get comprehensive recommendations with reasoning:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This command:
|
|
64
|
+
1. Searches 5 domains in parallel (product, style, color, landing, typography)
|
|
65
|
+
2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
|
|
66
|
+
3. Returns complete design system: pattern, style, colors, typography, effects
|
|
67
|
+
4. Includes anti-patterns to avoid
|
|
68
|
+
|
|
69
|
+
**Example:**
|
|
70
|
+
```bash
|
|
71
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Step 2.5: User Preference Questions (REQUIRED) ⭐
|
|
75
|
+
|
|
76
|
+
> [!CAUTION]
|
|
77
|
+
> **BLOQUEADOR:** Antes de finalizar Design System, fazer perguntas granulares ao usuário.
|
|
78
|
+
> Seguir skill `ui-ux-discovery` → PASSO 3: Perguntas Granulares.
|
|
79
|
+
|
|
80
|
+
**Perguntas por Aspecto:**
|
|
81
|
+
1. 🎨 **CORES** - Manter/Modernizar/Definir manual?
|
|
82
|
+
2. ✏️ **TIPOGRAFIA** - Manter/Modernizar/Definir manual?
|
|
83
|
+
3. 📐 **LAYOUT** - Manter estrutura/Reorganizar/Definir manual?
|
|
84
|
+
4. ✨ **EFEITOS** - Quais incluir? (Glassmorphism, Gradients, Dark mode, etc.)
|
|
85
|
+
5. 🖼️ **LOGO** - Manter/Atualizar/Novo/N/A?
|
|
86
|
+
|
|
87
|
+
**AGUARDAR** respostas ANTES de gerar Design System final.
|
|
88
|
+
|
|
89
|
+
### Step 2.6: Store Reference Images (If Provided) ⭐
|
|
90
|
+
|
|
91
|
+
> **Skill:** `ui-ux-discovery` → PASSO 1.5
|
|
92
|
+
|
|
93
|
+
Se o usuário fornecer **imagens de referência** (screenshots, mockups, inspirações):
|
|
94
|
+
|
|
95
|
+
1. **Criar pasta:** `design-system/{projeto}/references/`
|
|
96
|
+
2. **Copiar imagens** para essa pasta
|
|
97
|
+
3. **Documentar** no MASTER.md
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Exemplo
|
|
101
|
+
mkdir -p design-system/{projeto}/references/
|
|
102
|
+
cp "{path_imagem}" design-system/{projeto}/references/
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
> [!CAUTION]
|
|
106
|
+
> **NÃO** deixar imagens de referência apenas no brain/conversation. **SEMPRE** copiar para o projeto.
|
|
107
|
+
|
|
108
|
+
### Step 2b: Persist Design System (Master + Overrides Pattern)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
To save the design system for hierarchical retrieval across sessions, add `--persist`:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
This creates:
|
|
118
|
+
- `design-system/MASTER.md` — Global Source of Truth with all design rules
|
|
119
|
+
- `design-system/pages/` — Folder for page-specific overrides
|
|
120
|
+
|
|
121
|
+
**With page-specific override:**
|
|
122
|
+
```bash
|
|
123
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
This also creates:
|
|
127
|
+
- `design-system/pages/dashboard.md` — Page-specific deviations from Master
|
|
128
|
+
|
|
129
|
+
**How hierarchical retrieval works:**
|
|
130
|
+
1. When building a specific page (e.g., "Checkout"), first check `design-system/pages/checkout.md`
|
|
131
|
+
2. If the page file exists, its rules **override** the Master file
|
|
132
|
+
3. If not, use `design-system/MASTER.md` exclusively
|
|
133
|
+
|
|
134
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
135
|
+
|
|
136
|
+
After getting the design system, use domain searches to get additional details:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**When to use detailed searches:**
|
|
143
|
+
|
|
144
|
+
| Need | Domain | Example |
|
|
145
|
+
|------|--------|---------|
|
|
146
|
+
| More style options | `style` | `--domain style "glassmorphism dark"` |
|
|
147
|
+
| Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
|
|
148
|
+
| UX best practices | `ux` | `--domain ux "animation accessibility"` |
|
|
149
|
+
| Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
|
|
150
|
+
| Landing structure | `landing` | `--domain landing "hero social-proof"` |
|
|
151
|
+
|
|
152
|
+
### Step 4: Stack Guidelines (Default: html-tailwind)
|
|
153
|
+
|
|
154
|
+
Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`
|
|
161
|
+
, `jetpack-compose`
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Search Reference
|
|
165
|
+
|
|
166
|
+
### Available Domains
|
|
167
|
+
|
|
168
|
+
| Domain | Use For | Example Keywords |
|
|
169
|
+
|--------|---------|------------------|
|
|
170
|
+
| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
|
|
171
|
+
| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
|
|
172
|
+
| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
|
|
173
|
+
| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
|
|
174
|
+
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
|
|
175
|
+
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
|
|
176
|
+
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
|
|
177
|
+
| `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
|
|
178
|
+
| `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
|
|
179
|
+
| `prompt` | AI prompts, CSS keywords | (style name) |
|
|
180
|
+
|
|
181
|
+
### Available Stacks
|
|
182
|
+
|
|
183
|
+
| Stack | Focus |
|
|
184
|
+
|-------|-------|
|
|
185
|
+
| `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
|
|
186
|
+
| `react` | State, hooks, performance, patterns |
|
|
187
|
+
| `nextjs` | SSR, routing, images, API routes |
|
|
188
|
+
| `vue` | Composition API, Pinia, Vue Router |
|
|
189
|
+
| `svelte` | Runes, stores, SvelteKit |
|
|
190
|
+
| `swiftui` | Views, State, Navigation, Animation |
|
|
191
|
+
| `react-native` | Components, Navigation, Lists |
|
|
192
|
+
| `flutter` | Widgets, State, Layout, Theming |
|
|
193
|
+
| `shadcn` | shadcn/ui components, theming, forms, patterns |
|
|
194
|
+
| `jetpack-compose` | Composables, Modifiers, State Hoisting, Recomposition |
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Example Workflow
|
|
199
|
+
|
|
200
|
+
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
|
|
201
|
+
|
|
202
|
+
### Step 1: Analyze Requirements
|
|
203
|
+
- Product type: Beauty/Spa service
|
|
204
|
+
- Style keywords: elegant, professional, soft
|
|
205
|
+
- Industry: Beauty/Wellness
|
|
206
|
+
- Stack: html-tailwind (default)
|
|
207
|
+
|
|
208
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
|
|
215
|
+
|
|
216
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Get UX guidelines for animation and accessibility
|
|
220
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
|
|
221
|
+
|
|
222
|
+
# Get alternative typography options if needed
|
|
223
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Step 4: Stack Guidelines
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Then:** Synthesize design system + detailed searches and implement the design.
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Output Formats
|
|
237
|
+
|
|
238
|
+
The `--design-system` flag supports two output formats:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# ASCII box (default) - best for terminal display
|
|
242
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
|
|
243
|
+
|
|
244
|
+
# Markdown - best for documentation
|
|
245
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Tips for Better Results
|
|
251
|
+
|
|
252
|
+
1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
|
|
253
|
+
2. **Search multiple times** - Different keywords reveal different insights
|
|
254
|
+
3. **Combine domains** - Style + Typography + Color = Complete design system
|
|
255
|
+
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
|
|
256
|
+
5. **Use stack flag** - Get implementation-specific best practices
|
|
257
|
+
6. **Iterate** - If first search doesn't match, try different keywords
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Common Rules for Professional UI
|
|
262
|
+
|
|
263
|
+
These are frequently overlooked issues that make UI look unprofessional:
|
|
264
|
+
|
|
265
|
+
### Icons & Visual Elements
|
|
266
|
+
|
|
267
|
+
| Rule | Do | Don't |
|
|
268
|
+
|------|----|----- |
|
|
269
|
+
| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
|
|
270
|
+
| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
|
|
271
|
+
| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
|
|
272
|
+
| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
|
|
273
|
+
|
|
274
|
+
### Interaction & Cursor
|
|
275
|
+
|
|
276
|
+
| Rule | Do | Don't |
|
|
277
|
+
|------|----|----- |
|
|
278
|
+
| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
|
|
279
|
+
| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
|
|
280
|
+
| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
|
|
281
|
+
|
|
282
|
+
### Light/Dark Mode Contrast
|
|
283
|
+
|
|
284
|
+
| Rule | Do | Don't |
|
|
285
|
+
|------|----|----- |
|
|
286
|
+
| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
|
|
287
|
+
| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
|
|
288
|
+
| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
|
|
289
|
+
| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
|
|
290
|
+
|
|
291
|
+
### Layout & Spacing
|
|
292
|
+
|
|
293
|
+
| Rule | Do | Don't |
|
|
294
|
+
|------|----|----- |
|
|
295
|
+
| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
|
|
296
|
+
| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
|
|
297
|
+
| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## Pre-Delivery Checklist
|
|
302
|
+
|
|
303
|
+
Before delivering UI code, verify these items:
|
|
304
|
+
|
|
305
|
+
### Visual Quality
|
|
306
|
+
- [ ] No emojis used as icons (use SVG instead)
|
|
307
|
+
- [ ] All icons from consistent icon set (Heroicons/Lucide)
|
|
308
|
+
- [ ] Brand logos are correct (verified from Simple Icons)
|
|
309
|
+
- [ ] Hover states don't cause layout shift
|
|
310
|
+
- [ ] Use theme colors directly (bg-primary) not var() wrapper
|
|
311
|
+
|
|
312
|
+
### Interaction
|
|
313
|
+
- [ ] All clickable elements have `cursor-pointer`
|
|
314
|
+
- [ ] Hover states provide clear visual feedback
|
|
315
|
+
- [ ] Transitions are smooth (150-300ms)
|
|
316
|
+
- [ ] Focus states visible for keyboard navigation
|
|
317
|
+
|
|
318
|
+
### Light/Dark Mode
|
|
319
|
+
- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
|
|
320
|
+
- [ ] Glass/transparent elements visible in light mode
|
|
321
|
+
- [ ] Borders visible in both modes
|
|
322
|
+
- [ ] Test both modes before delivery
|
|
323
|
+
|
|
324
|
+
### Layout
|
|
325
|
+
- [ ] Floating elements have proper spacing from edges
|
|
326
|
+
- [ ] No content hidden behind fixed navbars
|
|
327
|
+
- [ ] Responsive at 375px, 768px, 1024px, 1440px
|
|
328
|
+
- [ ] No horizontal scroll on mobile
|
|
329
|
+
|
|
330
|
+
### Accessibility
|
|
331
|
+
- [ ] All images have alt text
|
|
332
|
+
- [ ] Form inputs have labels
|
|
333
|
+
- [ ] Color is not the only indicator
|
|
334
|
+
- [ ] `prefers-reduced-motion` respected
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 🛑 VALIDAÇÃO AUTOMATIZADA (OBRIGATÓRIO)
|
|
339
|
+
|
|
340
|
+
> [!CAUTION]
|
|
341
|
+
> **BLOQUEADOR:** Antes de marcar UI Styling como completo, você DEVE executar validação.
|
|
342
|
+
> Se QUALQUER violação for encontrada, CORRIJA antes de prosseguir.
|
|
343
|
+
|
|
344
|
+
### Executar Validação
|
|
345
|
+
|
|
346
|
+
> **Skill:** `ui-validation`
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
python .agent/skills/ui-validation/scripts/ui_antipattern_check.py .
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
### Interpretação dos Resultados
|
|
353
|
+
|
|
354
|
+
| Resultado | Ação |
|
|
355
|
+
|-----------|------|
|
|
356
|
+
| **🔴 ERRORS** | ❌ CORRIGIR antes de prosseguir |
|
|
357
|
+
| **🟡 WARNINGS** | ⚠️ Considerar correção |
|
|
358
|
+
| **✅ PASSED** | ✅ Pode prosseguir |
|
|
359
|
+
|
|
360
|
+
### Passo 3: Correção Obrigatória
|
|
361
|
+
|
|
362
|
+
Se violações forem encontradas:
|
|
363
|
+
|
|
364
|
+
1. **Para emojis**: Importe ícones de `lucide-react` ou `@heroicons/react`
|
|
365
|
+
```tsx
|
|
366
|
+
// ❌ ERRADO
|
|
367
|
+
<div>🔍</div>
|
|
368
|
+
|
|
369
|
+
// ✅ CORRETO
|
|
370
|
+
import { MagnifyingGlassIcon } from "@heroicons/react/24/outline";
|
|
371
|
+
<MagnifyingGlassIcon className="w-6 h-6" />
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
2. **Para cursor-pointer**: Adicione ao className
|
|
375
|
+
```tsx
|
|
376
|
+
// ❌ ERRADO
|
|
377
|
+
<Link href="/blog">Blog</Link>
|
|
378
|
+
|
|
379
|
+
// ✅ CORRETO
|
|
380
|
+
<Link href="/blog" className="cursor-pointer hover:text-primary">Blog</Link>
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Passo 4: Re-validar
|
|
384
|
+
|
|
385
|
+
Após correções, execute novamente os comandos. **Só prosseguir quando TODAS as validações passarem.**
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## 🔗 Workflow Integrations
|
|
390
|
+
|
|
391
|
+
> [!IMPORTANT]
|
|
392
|
+
> Este workflow é chamado **automaticamente** pelos seguintes workflows:
|
|
393
|
+
|
|
394
|
+
| Workflow | Fase | Quando Chamado |
|
|
395
|
+
|----------|------|----------------|
|
|
396
|
+
| `/new-project` | Phase 2.5 (Design System) | Após TDD aprovado, antes do Breakdown |
|
|
397
|
+
| `/new-project` | Phase 5.3 (UI Styling) | Durante implementação de componentes UI |
|
|
398
|
+
| `/discovery` | Fase 4 (Design System) | Após TDD, antes de criar tasks |
|
|
399
|
+
| `/legacy-project` | Phase 5.5 (Design System) | Após TDD Reverso aprovado |
|
|
400
|
+
| `/new-task` | Fase 3.7 (UI Styling) | Se feature envolve mudanças de UI |
|
|
401
|
+
| `/create` | Step 4 (Design System) | Antes de Application Building |
|
|
402
|
+
|
|
403
|
+
### Como é Integrado
|
|
404
|
+
|
|
405
|
+
**1. Em novos projetos (`/new-project`)**:
|
|
406
|
+
```bash
|
|
407
|
+
# Phase 2.5: Definição inicial do Design System
|
|
408
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "{tipo} {indústria}" --design-system --persist -p "{Projeto}"
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
**2. Durante implementação (`/new-task`, `/new-project Phase 5.3`)**:
|
|
412
|
+
```bash
|
|
413
|
+
# Verificar guidelines do stack
|
|
414
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "{componente}" --stack {html-tailwind|react|nextjs}
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
**3. Em projetos legados (`/legacy-project`)**:
|
|
418
|
+
```bash
|
|
419
|
+
# Analisar UI existente e propor melhorias
|
|
420
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "{tipo} {indústria}" --design-system -p "{Projeto}"
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Hierarquia de Design System
|
|
424
|
+
|
|
425
|
+
```
|
|
426
|
+
design-system/
|
|
427
|
+
├── MASTER.md ← Source of Truth global (gerado aqui)
|
|
428
|
+
└── pages/
|
|
429
|
+
├── dashboard.md ← Override para dashboard
|
|
430
|
+
├── checkout.md ← Override para checkout
|
|
431
|
+
└── ...
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**Regra de Carregamento:**
|
|
435
|
+
1. Verificar se existe `design-system/pages/{pagina}.md`
|
|
436
|
+
2. Se existe → Usar override
|
|
437
|
+
3. Se não → Usar `design-system/MASTER.md`
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Responsible for proposing mobile-first UX improvements for pages or flows that are already usable
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## 1. Purpose (Authority Scope)
|
|
6
|
+
|
|
7
|
+
Mobile UX Optimization (Governed Proposal Workflow) is responsible for **proposing mobile-first UX improvements** for pages or flows that are already usable, aiming to:
|
|
8
|
+
|
|
9
|
+
* Reduce cognitive load on mobile
|
|
10
|
+
* Improve action clarity and flow efficiency
|
|
11
|
+
* Enhance perceived usability without redesign
|
|
12
|
+
* Increase effectiveness of existing UI on small screens
|
|
13
|
+
|
|
14
|
+
### Explicitly NOT allowed:
|
|
15
|
+
|
|
16
|
+
* Create or modify design tokens
|
|
17
|
+
* Create or modify components
|
|
18
|
+
* Redesign layouts or visual identity
|
|
19
|
+
* Rewrite copy or content
|
|
20
|
+
* Apply changes automatically
|
|
21
|
+
* Bypass Design System or validation gates
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 2. Execution Preconditions
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"ux_mobile": "validated | minor_issues_only",
|
|
30
|
+
"page": "exists",
|
|
31
|
+
"page_build": "completed",
|
|
32
|
+
"design_system": "validated",
|
|
33
|
+
"authorization": "explicit"
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Rules:
|
|
38
|
+
|
|
39
|
+
* ❌ Cannot run before `/ux-mobile-validate`
|
|
40
|
+
* ❌ Cannot run if `blocking` issues exist
|
|
41
|
+
* ❌ Cannot run without explicit authorization
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 3. Required Inputs
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"page": "/route",
|
|
50
|
+
"optimization_goals": [
|
|
51
|
+
"reduce_cognitive_load",
|
|
52
|
+
"improve_primary_action",
|
|
53
|
+
"streamline_interaction"
|
|
54
|
+
],
|
|
55
|
+
"constraints": {
|
|
56
|
+
"max_proposals": 5,
|
|
57
|
+
"allowed_scope": "page-build"
|
|
58
|
+
},
|
|
59
|
+
"control": {
|
|
60
|
+
"confidence_level": "low | medium | high",
|
|
61
|
+
"risk_tolerance": "low | medium",
|
|
62
|
+
"strict_mode": true
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Notes:
|
|
68
|
+
|
|
69
|
+
* `optimization_goals` must be explicitly stated
|
|
70
|
+
* `allowed_scope` is **never** broader than `page-build`
|
|
71
|
+
* `max_proposals` limits AI overreach
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 4. Optimization Scope (What can be suggested)
|
|
76
|
+
|
|
77
|
+
### 4.1 Layout Recomposition (Mobile-Only)
|
|
78
|
+
|
|
79
|
+
Allowed proposals:
|
|
80
|
+
|
|
81
|
+
* Reordering existing sections
|
|
82
|
+
* Collapsing content using **existing patterns**
|
|
83
|
+
* Moving secondary content below primary actions
|
|
84
|
+
* Reducing vertical height of sections
|
|
85
|
+
|
|
86
|
+
❌ No creation of new structures
|
|
87
|
+
❌ No desktop layout changes
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
### 4.2 Action & Flow Optimization
|
|
92
|
+
|
|
93
|
+
Allowed proposals:
|
|
94
|
+
|
|
95
|
+
* Re-prioritizing existing CTAs
|
|
96
|
+
* Reducing competing actions
|
|
97
|
+
* Improving visibility of primary action
|
|
98
|
+
* Suggesting sticky behavior **only if already supported**
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### 4.3 Content Density & Grouping
|
|
103
|
+
|
|
104
|
+
Allowed proposals:
|
|
105
|
+
|
|
106
|
+
* Grouping related information
|
|
107
|
+
* Delaying non-essential content
|
|
108
|
+
* Reducing above-the-fold noise
|
|
109
|
+
* Improving scanability
|
|
110
|
+
|
|
111
|
+
⚠️ Copy is never rewritten
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
### 4.4 Interaction Efficiency
|
|
116
|
+
|
|
117
|
+
Allowed proposals:
|
|
118
|
+
|
|
119
|
+
* Reducing interaction steps
|
|
120
|
+
* Avoiding hover-dependent behaviors
|
|
121
|
+
* Improving touch feedback using existing states
|
|
122
|
+
* Minimizing unnecessary gestures
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 5. Proposal Model (Structured Output)
|
|
127
|
+
|
|
128
|
+
Each proposal **must** include:
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"id": "UXO-001",
|
|
133
|
+
"goal": "Improve primary CTA clarity on mobile",
|
|
134
|
+
"current_state": "Primary CTA competes with two secondary actions",
|
|
135
|
+
"proposal": "Move secondary CTAs below the fold and visually de-emphasize them on mobile",
|
|
136
|
+
"affected_sections": ["Hero"],
|
|
137
|
+
"mobile_only": true,
|
|
138
|
+
"allowed_fix_scope": "page-build",
|
|
139
|
+
"risk_level": "low | medium",
|
|
140
|
+
"expected_impact": "medium",
|
|
141
|
+
"requires_ds_change": false
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Rules:
|
|
146
|
+
|
|
147
|
+
* `requires_ds_change` must always be `false`
|
|
148
|
+
* `mobile_only` must be `true`
|
|
149
|
+
* If risk is `high` → proposal must be dropped
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 6. Output Contract
|
|
154
|
+
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"ux_mobile_optimization": {
|
|
158
|
+
"status": "completed",
|
|
159
|
+
"proposal_count": 3,
|
|
160
|
+
"confidence_level": "medium",
|
|
161
|
+
"proposals": [ /* proposal objects */ ]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 7. Next-Step Behavior
|
|
169
|
+
|
|
170
|
+
### Mandatory rule:
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
/ux-mobile-optimize
|
|
174
|
+
→ proposals generated
|
|
175
|
+
→ human approval required
|
|
176
|
+
→ /page-build (extend, scoped)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Example:
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
{
|
|
183
|
+
"next_step": {
|
|
184
|
+
"action": "/page-build",
|
|
185
|
+
"mode": "extend",
|
|
186
|
+
"scope": ["Hero", "Pricing"],
|
|
187
|
+
"origin": "ux-mobile-optimize"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
❌ Cannot auto-apply changes
|
|
193
|
+
❌ Cannot change scope without approval
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 8. Logging & Audit
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{
|
|
201
|
+
"audit": {
|
|
202
|
+
"optimized_at": "ISO-8601",
|
|
203
|
+
"design_system_version": "x.y.z",
|
|
204
|
+
"ux_mobile_validation_reference": "PASS",
|
|
205
|
+
"proposal_count": 3,
|
|
206
|
+
"risk_tolerance": "low"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 9. Hard Constraints (Non-Negotiable)
|
|
214
|
+
|
|
215
|
+
* Optimization never creates UI
|
|
216
|
+
* Optimization never alters tokens
|
|
217
|
+
* Optimization never alters visual identity
|
|
218
|
+
* Optimization never bypasses validation
|
|
219
|
+
* Optimization always requires approval
|
|
220
|
+
* Optimization is always mobile-first
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 10. Final Project State
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"ux_mobile": "optimized_pending_apply"
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
After `/page-build` execution:
|
|
233
|
+
|
|
234
|
+
```json
|
|
235
|
+
{
|
|
236
|
+
"ux_mobile": "optimized_applied"
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 11. Why This Complements `/ux-mobile-validate`
|
|
243
|
+
|
|
244
|
+
| Validate | Optimize |
|
|
245
|
+
| ------------------ | ------------------- |
|
|
246
|
+
| Detects problems | Improves experience |
|
|
247
|
+
| Can block flow | Never blocks |
|
|
248
|
+
| Enforces usability | Enhances usability |
|
|
249
|
+
| Reactive | Proactive |
|
|
250
|
+
| Mandatory | Optional |
|
|
251
|
+
|
|
252
|
+
Together they create:
|
|
253
|
+
|
|
254
|
+
> **Mobile UX = Usable by rule, improved by intent**
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## 12. Canonical Definition
|
|
259
|
+
|
|
260
|
+
> **`/ux-mobile-optimize` is a governed, proposal-only workflow that improves mobile UX strictly within the boundaries of the existing Design System, components, and page composition — without redesign, mutation, or autonomous execution.**
|
|
261
|
+
|
|
262
|
+
---
|