@leejungkiin/awkit 1.0.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/CHANGELOG.md +27 -0
- package/README.md +146 -0
- package/VERSION +1 -0
- package/bin/awf.js +549 -0
- package/bin/awk.js +1759 -0
- package/core/AGENTS.md +39 -0
- package/core/GEMINI.md +202 -0
- package/core/GEMINI.md.bak +244 -0
- package/core/orchestrator.md +58 -0
- package/package.json +46 -0
- package/schemas/brain.schema.json +342 -0
- package/schemas/preferences.schema.json +95 -0
- package/schemas/session.schema.json +112 -0
- package/skill-packs/neural-memory/README.md +111 -0
- package/skill-packs/neural-memory/pack.json +35 -0
- package/skill-packs/neural-memory/schemas/brain-snapshot.json +167 -0
- package/skill-packs/neural-memory/skills/nm-memory-audit/SKILL.md +157 -0
- package/skill-packs/neural-memory/skills/nm-memory-evolution/SKILL.md +202 -0
- package/skill-packs/neural-memory/skills/nm-memory-intake/SKILL.md +135 -0
- package/skill-packs/neural-memory/skills/nm-memory-sync/SKILL.md +184 -0
- package/skill-packs/neural-memory/workflows/nm-import.md +73 -0
- package/skill-packs/neural-memory/workflows/nm-recall.md +67 -0
- package/skill-packs/neural-memory/workflows/nm-snapshot.md +69 -0
- package/skills/adaptive-language/SKILL.md +189 -0
- package/skills/ambient-brain/SKILL.md +314 -0
- package/skills/ambient-brain/brain-router.md +185 -0
- package/skills/ambient-brain/brain-templates.md +201 -0
- package/skills/auto-save/SKILL.md +223 -0
- package/skills/awf-adaptive-language/SKILL.md +189 -0
- package/skills/awf-context-help/SKILL.md +180 -0
- package/skills/awf-error-translator/SKILL.md +153 -0
- package/skills/awf-session-restore/SKILL.md +270 -0
- package/skills/awf-version-tracker/SKILL.md +32 -0
- package/skills/awf-version-tracker/scripts/snapshot.sh +22 -0
- package/skills/beads-manager/SKILL.md +323 -0
- package/skills/brainstorm-agent/SKILL.md +295 -0
- package/skills/context-help/SKILL.md +180 -0
- package/skills/error-translator/SKILL.md +153 -0
- package/skills/ios-engineer/SKILL.md +101 -0
- package/skills/memory-sync/SKILL.md +378 -0
- package/skills/memory-sync/memory-router.md +185 -0
- package/skills/memory-sync/memory-templates.md +201 -0
- package/skills/orchestrator/SKILL.md +193 -0
- package/skills/session-restore/SKILL.md +240 -0
- package/templates/CODEBASE.md +80 -0
- package/templates/brain.example.json +321 -0
- package/templates/preferences.example.json +21 -0
- package/templates/project-identity/android.json +28 -0
- package/templates/project-identity/backend-nestjs.json +24 -0
- package/templates/project-identity/expo.json +27 -0
- package/templates/project-identity/ios.json +27 -0
- package/templates/project-identity/web-nextjs.json +24 -0
- package/templates/session.example.json +53 -0
- package/templates/specs/design-template.md +166 -0
- package/templates/specs/requirements-template.md +65 -0
- package/templates/specs/tasks-template.md +132 -0
- package/templates/structures/android.txt +10 -0
- package/templates/structures/backend-nestjs.txt +6 -0
- package/templates/structures/expo.txt +9 -0
- package/templates/structures/ios.txt +9 -0
- package/templates/structures/web-nextjs.txt +6 -0
- package/templates/workflow_dual_mode_template.md +87 -0
- package/workflows/_uncategorized/README.md +339 -0
- package/workflows/_uncategorized/ads-creative.md +357 -0
- package/workflows/_uncategorized/ads-full-optimization.md +308 -0
- package/workflows/_uncategorized/ads-plan.md +247 -0
- package/workflows/_uncategorized/ads-user-analysis.md +337 -0
- package/workflows/_uncategorized/skill-health.md +35 -0
- package/workflows/_uncategorized/skill-rollback.md +35 -0
- package/workflows/ads/admob.md +62 -0
- package/workflows/ads/ads-analyst.md +201 -0
- package/workflows/ads/ads-audit.md +106 -0
- package/workflows/ads/ads-optimize.md +97 -0
- package/workflows/ads/ads-targeting.md +241 -0
- package/workflows/ads/adsExpert.md +160 -0
- package/workflows/ads/smali-ads-config.md +400 -0
- package/workflows/ads/smali-ads-flow.md +331 -0
- package/workflows/ads/smali-ads-interstitial.md +377 -0
- package/workflows/ads/smali-ads-native.md +382 -0
- package/workflows/context/auto-execution-workflow.md +291 -0
- package/workflows/context/auto-implement.md +211 -0
- package/workflows/context/codebase-sync.md +163 -0
- package/workflows/context/logic-reasoning-workflow.md +260 -0
- package/workflows/context/next.md +195 -0
- package/workflows/context/recap.md +212 -0
- package/workflows/context/save-brain.md +285 -0
- package/workflows/context/user-intent-analysis-workflow.md +206 -0
- package/workflows/expert/codeExpert.md +126 -0
- package/workflows/expert/debugExpert.md +136 -0
- package/workflows/expert/planExpert.md +112 -0
- package/workflows/git/cloudflare-tunnel.md +135 -0
- package/workflows/git/git-commit-workflow.md +75 -0
- package/workflows/git/hotfix.md +357 -0
- package/workflows/git/release-notes.md +160 -0
- package/workflows/git/rollback.md +52 -0
- package/workflows/git/smart-git-ops.md +103 -0
- package/workflows/lifecycle/brainstorm.md +377 -0
- package/workflows/lifecycle/code.md +663 -0
- package/workflows/lifecycle/debug.md +116 -0
- package/workflows/lifecycle/deploy.md +95 -0
- package/workflows/lifecycle/init.md +152 -0
- package/workflows/lifecycle/master-code-workflow.md +300 -0
- package/workflows/lifecycle/migration.md +196 -0
- package/workflows/lifecycle/plan.md +91 -0
- package/workflows/lifecycle/refactor.md +165 -0
- package/workflows/lifecycle/run.md +52 -0
- package/workflows/lifecycle/test.md +91 -0
- package/workflows/meta/customize.md +346 -0
- package/workflows/meta/file-protection-rules.md +129 -0
- package/workflows/meta/help.html +350 -0
- package/workflows/meta/project-identity-enforcement.md +180 -0
- package/workflows/mobile/app-analysis.md +64 -0
- package/workflows/mobile/maestro-qa-workflow.md +470 -0
- package/workflows/mobile/maestro-test-workflow.md +84 -0
- package/workflows/mobile/structure-clean-architect.md +271 -0
- package/workflows/mobile/turbo-mobile-build.md +190 -0
- package/workflows/quality/accessibility-audit.md +311 -0
- package/workflows/quality/audit.md +217 -0
- package/workflows/quality/bug-hunter.md +243 -0
- package/workflows/quality/code-janitor.md +209 -0
- package/workflows/quality/code-quality-rules.md +132 -0
- package/workflows/quality/performance-audit.md +343 -0
- package/workflows/quality/project-audit.md +61 -0
- package/workflows/quality/self-healing-test.md +192 -0
- package/workflows/quality/ui-review.md +130 -0
- package/workflows/quality/ux-audit.md +213 -0
- package/workflows/quality/visual-debug.md +34 -0
- package/workflows/roles/oracle.md +267 -0
- package/workflows/roles/product-manager-workflow.md +52 -0
- package/workflows/roles/qa-engineer-workflow.md +41 -0
- package/workflows/roles/tech-lead-workflow.md +45 -0
- package/workflows/roles/ui-ux-designer-workflow.md +42 -0
- package/workflows/roles/vibe-coding-master-workflow.md +52 -0
- package/workflows/ui/app-screen-analyzer.md +152 -0
- package/workflows/ui/create-feature.md +332 -0
- package/workflows/ui/create-spec-architect.md +184 -0
- package/workflows/ui/design-to-ui.md +308 -0
- package/workflows/ui/ui-first-methodology.md +279 -0
- package/workflows/ui/visualize.md +298 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 🎨 Phân tích ảnh thiết kế & tạo code UI
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
category: workflow
|
|
5
|
+
priority: medium
|
|
6
|
+
---
|
|
7
|
+
triggers:
|
|
8
|
+
- "keywords: design analysis, image analysis, ui evaluation"
|
|
9
|
+
- "file_patterns: *.png, *.jpg, *.design, *.mockup"
|
|
10
|
+
- "context: design review, implementation planning"
|
|
11
|
+
version: 1.0.0
|
|
12
|
+
track:
|
|
13
|
+
- quick
|
|
14
|
+
- method
|
|
15
|
+
- enterprise
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Design to Prompt Analysis Workflow
|
|
19
|
+
|
|
20
|
+
## Nguyên Tắc Cơ Bản
|
|
21
|
+
|
|
22
|
+
### Phân Tích Chi Tiết và Có Cấu Trúc
|
|
23
|
+
|
|
24
|
+
- **_BẮT BUỘC_** phân tích từng pixel và chi tiết trong hình ảnh
|
|
25
|
+
- **_BẮT BUỘC_** trích xuất tất cả tính năng có thể nhìn thấy
|
|
26
|
+
- **_BẮT BUỘC_** kết nối các tính năng với nhau để tạo thành hệ thống hoàn chỉnh
|
|
27
|
+
- **_BẮT BUỘC_** xác định tiềm năng AI và automation cho từng tính năng
|
|
28
|
+
- **_BẮT BUỘC_** phân tích marketing và monetization potential
|
|
29
|
+
|
|
30
|
+
### Quy Trình Phân Tích 4 Bước
|
|
31
|
+
|
|
32
|
+
#### Bước 1: Trích xuất Tính năng (Feature Extraction)
|
|
33
|
+
|
|
34
|
+
**Mục tiêu**: Liệt kê tất cả tính năng có thể nhìn thấy trong hình ảnh
|
|
35
|
+
|
|
36
|
+
**Quy trình**:
|
|
37
|
+
1. **Phân tích Layout**: Xác định cấu trúc màn hình và các vùng chức năng
|
|
38
|
+
2. **Liệt kê UI Elements**: Buttons, forms, lists, cards, navigation elements
|
|
39
|
+
3. **Xác định Data Points**: Text, numbers, images, icons có trong giao diện
|
|
40
|
+
4. **Phân tích Interactions**: Swipe, tap, scroll, input patterns
|
|
41
|
+
5. **Ghi nhận States**: Loading, empty, error, success states
|
|
42
|
+
|
|
43
|
+
**Output Format**:
|
|
44
|
+
```markdown
|
|
45
|
+
## Tính năng được trích xuất
|
|
46
|
+
|
|
47
|
+
### Màn hình chính
|
|
48
|
+
- [Tính năng 1]: Mô tả chi tiết
|
|
49
|
+
- [Tính năng 2]: Mô tả chi tiết
|
|
50
|
+
- [Tính năng 3]: Mô tả chi tiết
|
|
51
|
+
|
|
52
|
+
### Màn hình phụ
|
|
53
|
+
- [Tính năng 4]: Mô tả chi tiết
|
|
54
|
+
- [Tính năng 5]: Mô tả chi tiết
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Bước 2: Phân tích Chuyên sâu Tính năng (Feature Deep Dive)
|
|
58
|
+
|
|
59
|
+
**Mục tiêu**: Phân tích chi tiết từng tính năng về mặt kỹ thuật và business logic
|
|
60
|
+
|
|
61
|
+
**Quy trình**:
|
|
62
|
+
1. **Technical Analysis**: Database schema, API endpoints, algorithms
|
|
63
|
+
2. **Business Logic**: Rules, validations, calculations
|
|
64
|
+
3. **User Experience**: Flow, interactions, feedback
|
|
65
|
+
4. **Data Requirements**: Input, output, storage, processing
|
|
66
|
+
5. **Integration Points**: External services, third-party APIs
|
|
67
|
+
|
|
68
|
+
**Output Format**:
|
|
69
|
+
```markdown
|
|
70
|
+
## Phân tích chuyên sâu tính năng
|
|
71
|
+
|
|
72
|
+
### [Tên tính năng]
|
|
73
|
+
**Mục đích**: [Business purpose]
|
|
74
|
+
**Technical Requirements**:
|
|
75
|
+
- Database: [Schema requirements]
|
|
76
|
+
- API: [Endpoint specifications]
|
|
77
|
+
- Business Logic: [Rules and calculations]
|
|
78
|
+
- UI/UX: [Interaction patterns]
|
|
79
|
+
|
|
80
|
+
**Data Flow**:
|
|
81
|
+
1. [Step 1]: [Description]
|
|
82
|
+
2. [Step 2]: [Description]
|
|
83
|
+
3. [Step 3]: [Description]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### Bước 3: Kết nối Tính năng (Feature Connection)
|
|
87
|
+
|
|
88
|
+
**Mục tiêu**: Tạo ra hệ thống hoàn chỉnh bằng cách kết nối các tính năng
|
|
89
|
+
|
|
90
|
+
**Quy trình**:
|
|
91
|
+
1. **Data Relationships**: Cách dữ liệu liên kết giữa các tính năng
|
|
92
|
+
2. **User Flow**: Journey người dùng qua các tính năng
|
|
93
|
+
3. **System Architecture**: Cách các tính năng tương tác với nhau
|
|
94
|
+
4. **Dependencies**: Tính năng nào phụ thuộc vào tính năng nào
|
|
95
|
+
5. **Integration Points**: Cách tích hợp với hệ thống bên ngoài
|
|
96
|
+
|
|
97
|
+
**Output Format**:
|
|
98
|
+
```markdown
|
|
99
|
+
## Kết nối tính năng
|
|
100
|
+
|
|
101
|
+
### User Journey
|
|
102
|
+
1. [Starting Point] → [Feature A] → [Feature B] → [End Point]
|
|
103
|
+
|
|
104
|
+
### Data Relationships
|
|
105
|
+
- [Feature A] provides data to [Feature B]
|
|
106
|
+
- [Feature B] updates data for [Feature C]
|
|
107
|
+
- [Feature C] triggers action in [Feature A]
|
|
108
|
+
|
|
109
|
+
### System Architecture
|
|
110
|
+
- Frontend: [UI components and interactions]
|
|
111
|
+
- Backend: [API endpoints and business logic]
|
|
112
|
+
- Database: [Data models and relationships]
|
|
113
|
+
- External: [Third-party integrations]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### Bước 4: Tiềm năng AI (AI Potential)
|
|
117
|
+
|
|
118
|
+
**Mục tiêu**: Xác định cơ hội tích hợp AI và automation
|
|
119
|
+
|
|
120
|
+
**Quy trình**:
|
|
121
|
+
1. **Data Analysis**: Machine learning opportunities
|
|
122
|
+
2. **Automation**: Repetitive task automation
|
|
123
|
+
3. **Personalization**: User behavior analysis
|
|
124
|
+
4. **Prediction**: Forecasting and recommendations
|
|
125
|
+
5. **Natural Language**: Chat, voice, text processing
|
|
126
|
+
|
|
127
|
+
**Output Format**:
|
|
128
|
+
```markdown
|
|
129
|
+
## Tiềm năng AI
|
|
130
|
+
|
|
131
|
+
### Machine Learning Opportunities
|
|
132
|
+
- [Feature]: [ML use case and benefits]
|
|
133
|
+
- [Feature]: [ML use case and benefits]
|
|
134
|
+
|
|
135
|
+
### Automation Potential
|
|
136
|
+
- [Process]: [Automation opportunity]
|
|
137
|
+
- [Process]: [Automation opportunity]
|
|
138
|
+
|
|
139
|
+
### Personalization Features
|
|
140
|
+
- [Feature]: [Personalization approach]
|
|
141
|
+
- [Feature]: [Personalization approach]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Marketing & Monetization Analysis
|
|
145
|
+
|
|
146
|
+
### Target Market Analysis
|
|
147
|
+
|
|
148
|
+
**Primary Users**:
|
|
149
|
+
- Demographics: Age, gender, income, location
|
|
150
|
+
- Psychographics: Interests, behaviors, values
|
|
151
|
+
- Pain Points: Problems the app solves
|
|
152
|
+
- Use Cases: How users will use the app
|
|
153
|
+
|
|
154
|
+
**Market Size**:
|
|
155
|
+
- Total Addressable Market (TAM)
|
|
156
|
+
- Serviceable Addressable Market (SAM)
|
|
157
|
+
- Serviceable Obtainable Market (SOM)
|
|
158
|
+
|
|
159
|
+
### Cost vs. Revenue Analysis
|
|
160
|
+
|
|
161
|
+
**Development Costs**:
|
|
162
|
+
- Development time and resources
|
|
163
|
+
- Third-party service costs
|
|
164
|
+
- Infrastructure and hosting costs
|
|
165
|
+
- Marketing and user acquisition costs
|
|
166
|
+
|
|
167
|
+
**Revenue Streams**:
|
|
168
|
+
- Subscription models
|
|
169
|
+
- Freemium with premium features
|
|
170
|
+
- In-app purchases
|
|
171
|
+
- Advertising revenue
|
|
172
|
+
- Data monetization (if applicable)
|
|
173
|
+
|
|
174
|
+
**Break-even Analysis**:
|
|
175
|
+
- Monthly recurring revenue targets
|
|
176
|
+
- Customer acquisition cost
|
|
177
|
+
- Lifetime value calculations
|
|
178
|
+
- Payback period estimates
|
|
179
|
+
|
|
180
|
+
### Target Users & Cross-sell Features
|
|
181
|
+
|
|
182
|
+
**User Segments**:
|
|
183
|
+
- Power users: Advanced features, premium subscriptions
|
|
184
|
+
- Casual users: Basic features, freemium model
|
|
185
|
+
- Business users: Team features, enterprise pricing
|
|
186
|
+
|
|
187
|
+
**Cross-sell Opportunities**:
|
|
188
|
+
- Related services or products
|
|
189
|
+
- Premium feature upgrades
|
|
190
|
+
- Additional user accounts
|
|
191
|
+
- Complementary apps or services
|
|
192
|
+
|
|
193
|
+
## Ví Dụ Phân Tích: Tính Năng "Thời tiết"
|
|
194
|
+
|
|
195
|
+
### Bước 1: Trích xuất Tính năng
|
|
196
|
+
|
|
197
|
+
```markdown
|
|
198
|
+
## Tính năng Thời tiết
|
|
199
|
+
|
|
200
|
+
### Màn hình chính
|
|
201
|
+
- Weather Display: Hiển thị nhiệt độ, độ ẩm, tình trạng thời tiết
|
|
202
|
+
- Location Selection: Chọn thành phố, GPS location
|
|
203
|
+
- Forecast Cards: Dự báo 7 ngày với icons và nhiệt độ
|
|
204
|
+
- Weather Map: Bản đồ thời tiết với overlays
|
|
205
|
+
- Settings: Cài đặt đơn vị (Celsius/Fahrenheit), notifications
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Bước 2: Phân tích Chuyên sâu
|
|
209
|
+
|
|
210
|
+
```markdown
|
|
211
|
+
## Phân tích tính năng Thời tiết
|
|
212
|
+
|
|
213
|
+
**Mục đích**: Cung cấp thông tin thời tiết chính xác và dự báo cho người dùng
|
|
214
|
+
|
|
215
|
+
**Technical Requirements**:
|
|
216
|
+
- Database: User preferences, location history, cached weather data
|
|
217
|
+
- API: Weather service integration (OpenWeatherMap, AccuWeather)
|
|
218
|
+
- Business Logic: Unit conversion, location validation, data caching
|
|
219
|
+
- UI/UX: Responsive cards, smooth animations, offline support
|
|
220
|
+
|
|
221
|
+
**Data Flow**:
|
|
222
|
+
1. User opens app → Check cached data → Show last known weather
|
|
223
|
+
2. Get current location → Fetch fresh weather data → Update UI
|
|
224
|
+
3. User selects new location → Validate location → Fetch weather → Update display
|
|
225
|
+
4. Background refresh → Update data → Send notifications if enabled
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Bước 3: Kết nối Tính năng
|
|
229
|
+
|
|
230
|
+
```markdown
|
|
231
|
+
## Kết nối với hệ thống
|
|
232
|
+
|
|
233
|
+
### User Journey
|
|
234
|
+
1. App Launch → Location Permission → Weather Display → Forecast View → Settings
|
|
235
|
+
|
|
236
|
+
### Data Relationships
|
|
237
|
+
- Location Service provides coordinates to Weather API
|
|
238
|
+
- Weather API provides data to Weather Display
|
|
239
|
+
- User Preferences affect data presentation
|
|
240
|
+
- Notification Service uses weather data for alerts
|
|
241
|
+
|
|
242
|
+
### System Architecture
|
|
243
|
+
- Frontend: React Native components, Redux state management
|
|
244
|
+
- Backend: Node.js API, Redis caching, PostgreSQL storage
|
|
245
|
+
- External: Weather API, Location services, Push notifications
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Bước 4: Tiềm năng AI
|
|
249
|
+
|
|
250
|
+
```markdown
|
|
251
|
+
## AI Opportunities
|
|
252
|
+
|
|
253
|
+
### Machine Learning
|
|
254
|
+
- Weather Prediction: Improve forecast accuracy with local data
|
|
255
|
+
- User Behavior: Predict when users check weather most
|
|
256
|
+
- Personalization: Customize weather alerts based on user patterns
|
|
257
|
+
|
|
258
|
+
### Automation
|
|
259
|
+
- Smart Notifications: Alert users about weather changes affecting their schedule
|
|
260
|
+
- Location Learning: Automatically detect frequently visited locations
|
|
261
|
+
- Weather Patterns: Learn user preferences for weather information display
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## Implementation Guidelines
|
|
265
|
+
|
|
266
|
+
### Technical Documentation Generation
|
|
267
|
+
|
|
268
|
+
**Component Specifications**:
|
|
269
|
+
- Props and state requirements
|
|
270
|
+
- Event handlers and callbacks
|
|
271
|
+
- Styling and responsive behavior
|
|
272
|
+
- Accessibility considerations
|
|
273
|
+
|
|
274
|
+
**API Contract Specifications**:
|
|
275
|
+
- Endpoint definitions and parameters
|
|
276
|
+
- Request/response schemas
|
|
277
|
+
- Error handling and status codes
|
|
278
|
+
- Authentication and authorization
|
|
279
|
+
|
|
280
|
+
**Database Schema**:
|
|
281
|
+
- Entity relationships and constraints
|
|
282
|
+
- Indexing strategies
|
|
283
|
+
- Data validation rules
|
|
284
|
+
- Migration scripts
|
|
285
|
+
|
|
286
|
+
### Development Handoff
|
|
287
|
+
|
|
288
|
+
**Frontend Requirements**:
|
|
289
|
+
- UI component library specifications
|
|
290
|
+
- State management patterns
|
|
291
|
+
- Navigation and routing
|
|
292
|
+
- Performance optimization
|
|
293
|
+
|
|
294
|
+
**Backend Requirements**:
|
|
295
|
+
- API endpoint specifications
|
|
296
|
+
- Business logic implementation
|
|
297
|
+
- Database design and optimization
|
|
298
|
+
- Security and authentication
|
|
299
|
+
|
|
300
|
+
**Integration Requirements**:
|
|
301
|
+
- Third-party service integration
|
|
302
|
+
- Data synchronization patterns
|
|
303
|
+
- Error handling and recovery
|
|
304
|
+
- Monitoring and logging
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
**Success Criteria**: Complete feature analysis, technical specifications, AI opportunities identification, and implementation-ready documentation.
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Thiết kế UI đầy đủ trước tiên
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
category: workflow
|
|
5
|
+
priority: medium
|
|
6
|
+
triggers:
|
|
7
|
+
- "keywords: ui, design, interface, user experience"
|
|
8
|
+
- "context: new project, frontend development"
|
|
9
|
+
- "file_patterns: *.ui, *.design, *.mockup"
|
|
10
|
+
version: 1.0.0
|
|
11
|
+
track:
|
|
12
|
+
- quick
|
|
13
|
+
- method
|
|
14
|
+
- enterprise
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# UI First Methodology Workflow
|
|
18
|
+
|
|
19
|
+
## UI First Philosophy
|
|
20
|
+
|
|
21
|
+
**Core Principle**: Design and implement all user interfaces first, then build supporting backend logic
|
|
22
|
+
**Purpose**: Ensure every feature is testable and user-validated before complex logic implementation
|
|
23
|
+
**Benefit**: Reduce development risk, improve UX consistency, enable early user feedback
|
|
24
|
+
|
|
25
|
+
### Key Benefits
|
|
26
|
+
|
|
27
|
+
- **Early Validation**: Test user flows before investing in complex backend logic
|
|
28
|
+
- **Better UX**: Focus on user experience from the beginning
|
|
29
|
+
- **Reduced Risk**: Identify usability issues before heavy development
|
|
30
|
+
- **Faster Iteration**: UI changes are typically faster than backend refactoring
|
|
31
|
+
- **Complete Coverage**: Ensure every feature has a corresponding user interface
|
|
32
|
+
|
|
33
|
+
## UI First Implementation Rules
|
|
34
|
+
|
|
35
|
+
### Mandatory UI Coverage
|
|
36
|
+
|
|
37
|
+
**Screen Coverage Requirements**:
|
|
38
|
+
- ✅ Every CRUD operation MUST have dedicated UI screen
|
|
39
|
+
- ✅ All user stories MUST map to specific UI interactions
|
|
40
|
+
- ✅ Navigation between all features MUST be implemented
|
|
41
|
+
- ✅ Error states and loading states MUST have UI representation
|
|
42
|
+
|
|
43
|
+
**Validation Checkpoints**:
|
|
44
|
+
- [ ] Can user access all features through UI?
|
|
45
|
+
- [ ] Are all CRUD operations testable via interface?
|
|
46
|
+
- [ ] Do all user flows have complete screen sequences?
|
|
47
|
+
- [ ] Are error scenarios handled with appropriate UI feedback?
|
|
48
|
+
|
|
49
|
+
### UI Implementation Standards
|
|
50
|
+
|
|
51
|
+
**Component Structure**:
|
|
52
|
+
- Reusable UI components for consistent design
|
|
53
|
+
- Proper state management for user interactions
|
|
54
|
+
- Responsive design for multiple screen sizes
|
|
55
|
+
- Accessibility considerations for all users
|
|
56
|
+
|
|
57
|
+
**Navigation Patterns**:
|
|
58
|
+
- Clear navigation hierarchy
|
|
59
|
+
- Consistent back/forward behavior
|
|
60
|
+
- Breadcrumb or progress indicators where appropriate
|
|
61
|
+
- Deep linking support for web applications
|
|
62
|
+
|
|
63
|
+
### CRUD UI Requirements
|
|
64
|
+
|
|
65
|
+
**Create Operations**:
|
|
66
|
+
- Form-based input with validation
|
|
67
|
+
- Clear success/error feedback
|
|
68
|
+
- Cancel and save options
|
|
69
|
+
- Input validation with helpful messages
|
|
70
|
+
|
|
71
|
+
**Read Operations**:
|
|
72
|
+
- List views with search and filtering
|
|
73
|
+
- Detail views with comprehensive information
|
|
74
|
+
- Pagination for large datasets
|
|
75
|
+
- Empty states with helpful guidance
|
|
76
|
+
|
|
77
|
+
**Update Operations**:
|
|
78
|
+
- Inline editing where appropriate
|
|
79
|
+
- Form-based editing for complex data
|
|
80
|
+
- Clear save/cancel actions
|
|
81
|
+
- Change confirmation for destructive actions
|
|
82
|
+
|
|
83
|
+
**Delete Operations**:
|
|
84
|
+
- Confirmation dialogs for destructive actions
|
|
85
|
+
- Soft delete with restore options
|
|
86
|
+
- Bulk delete operations with confirmation
|
|
87
|
+
- Clear feedback on deletion results
|
|
88
|
+
|
|
89
|
+
## UI Design Standards
|
|
90
|
+
|
|
91
|
+
### Visual Consistency
|
|
92
|
+
|
|
93
|
+
**Design System**:
|
|
94
|
+
- Consistent color palette across all screens
|
|
95
|
+
- Typography hierarchy and spacing
|
|
96
|
+
- Icon library with consistent style
|
|
97
|
+
- Component library for reusable elements
|
|
98
|
+
|
|
99
|
+
**Layout Standards**:
|
|
100
|
+
- Grid system for consistent spacing
|
|
101
|
+
- Responsive breakpoints for different screen sizes
|
|
102
|
+
- Consistent header and navigation patterns
|
|
103
|
+
- Footer and branding consistency
|
|
104
|
+
|
|
105
|
+
### Responsive Design
|
|
106
|
+
|
|
107
|
+
**Mobile-First Approach**:
|
|
108
|
+
- Design for mobile screens first
|
|
109
|
+
- Progressive enhancement for larger screens
|
|
110
|
+
- Touch-friendly interface elements
|
|
111
|
+
- Optimized for mobile performance
|
|
112
|
+
|
|
113
|
+
**Breakpoint Strategy**:
|
|
114
|
+
- Mobile: 320px - 768px
|
|
115
|
+
- Tablet: 768px - 1024px
|
|
116
|
+
- Desktop: 1024px+
|
|
117
|
+
- Large Desktop: 1440px+
|
|
118
|
+
|
|
119
|
+
### Accessibility Design
|
|
120
|
+
|
|
121
|
+
**WCAG 2.1 AA Compliance**:
|
|
122
|
+
- Color contrast ratios meet standards
|
|
123
|
+
- Keyboard navigation support
|
|
124
|
+
- Screen reader compatibility
|
|
125
|
+
- Focus indicators for interactive elements
|
|
126
|
+
|
|
127
|
+
**Inclusive Design**:
|
|
128
|
+
- Alternative text for images
|
|
129
|
+
- Captions for video content
|
|
130
|
+
- High contrast mode support
|
|
131
|
+
- Font size adjustment options
|
|
132
|
+
|
|
133
|
+
## User Flow Design
|
|
134
|
+
|
|
135
|
+
### Primary User Flows
|
|
136
|
+
|
|
137
|
+
**Onboarding Flow**:
|
|
138
|
+
- Welcome screen with app introduction
|
|
139
|
+
- Account creation or login
|
|
140
|
+
- Feature tour or tutorial
|
|
141
|
+
- Initial setup and preferences
|
|
142
|
+
|
|
143
|
+
**Core Feature Flows**:
|
|
144
|
+
- Main feature access and usage
|
|
145
|
+
- Data input and management
|
|
146
|
+
- Search and discovery
|
|
147
|
+
- Settings and preferences
|
|
148
|
+
|
|
149
|
+
### Secondary User Flows
|
|
150
|
+
|
|
151
|
+
**Error Recovery Flows**:
|
|
152
|
+
- Network error handling
|
|
153
|
+
- Validation error recovery
|
|
154
|
+
- Session timeout handling
|
|
155
|
+
- Data sync conflict resolution
|
|
156
|
+
|
|
157
|
+
**Advanced Feature Flows**:
|
|
158
|
+
- Power user features
|
|
159
|
+
- Administrative functions
|
|
160
|
+
- Integration with external services
|
|
161
|
+
- Data export and import
|
|
162
|
+
|
|
163
|
+
## UI State Management
|
|
164
|
+
|
|
165
|
+
### Loading States
|
|
166
|
+
|
|
167
|
+
**Skeleton Screens**:
|
|
168
|
+
- Show content structure while loading
|
|
169
|
+
- Maintain layout stability
|
|
170
|
+
- Provide visual feedback
|
|
171
|
+
- Reduce perceived loading time
|
|
172
|
+
|
|
173
|
+
**Progress Indicators**:
|
|
174
|
+
- Show progress for long operations
|
|
175
|
+
- Provide estimated completion time
|
|
176
|
+
- Allow cancellation where appropriate
|
|
177
|
+
- Clear success/failure feedback
|
|
178
|
+
|
|
179
|
+
### Error States
|
|
180
|
+
|
|
181
|
+
**Error Handling**:
|
|
182
|
+
- Clear error messages
|
|
183
|
+
- Suggested recovery actions
|
|
184
|
+
- Fallback options
|
|
185
|
+
- Contact support information
|
|
186
|
+
|
|
187
|
+
**Empty States**:
|
|
188
|
+
- Helpful empty state messages
|
|
189
|
+
- Call-to-action buttons
|
|
190
|
+
- Onboarding guidance
|
|
191
|
+
- Feature discovery hints
|
|
192
|
+
|
|
193
|
+
### Success States
|
|
194
|
+
|
|
195
|
+
**Success Feedback**:
|
|
196
|
+
- Clear success confirmation
|
|
197
|
+
- Next action suggestions
|
|
198
|
+
- Progress indicators
|
|
199
|
+
- Celebration animations (when appropriate)
|
|
200
|
+
|
|
201
|
+
## Implementation Guidelines
|
|
202
|
+
|
|
203
|
+
### UI Development Priority
|
|
204
|
+
|
|
205
|
+
1. **UI Implementation Tasks** (Priority 1)
|
|
206
|
+
- Screen layouts and components
|
|
207
|
+
- Navigation and routing
|
|
208
|
+
- User interaction handlers
|
|
209
|
+
- Form validation and feedback
|
|
210
|
+
|
|
211
|
+
2. **Integration Tasks** (Priority 2)
|
|
212
|
+
- API integration with UI
|
|
213
|
+
- Data binding and state management
|
|
214
|
+
- Error handling in UI context
|
|
215
|
+
|
|
216
|
+
3. **Backend Logic Tasks** (Priority 3)
|
|
217
|
+
- Business logic implementation
|
|
218
|
+
- Database operations
|
|
219
|
+
- Background processing
|
|
220
|
+
|
|
221
|
+
### Platform-Specific Considerations
|
|
222
|
+
|
|
223
|
+
**Mobile Applications**:
|
|
224
|
+
- Touch gesture support
|
|
225
|
+
- Platform-specific navigation patterns
|
|
226
|
+
- Performance optimization for mobile
|
|
227
|
+
- Offline functionality
|
|
228
|
+
|
|
229
|
+
**Web Applications**:
|
|
230
|
+
- Cross-browser compatibility
|
|
231
|
+
- SEO optimization
|
|
232
|
+
- Progressive Web App features
|
|
233
|
+
- Desktop interaction patterns
|
|
234
|
+
|
|
235
|
+
**Desktop Applications**:
|
|
236
|
+
- Keyboard shortcuts
|
|
237
|
+
- Menu systems
|
|
238
|
+
- Window management
|
|
239
|
+
- System integration
|
|
240
|
+
|
|
241
|
+
## Quality Assurance
|
|
242
|
+
|
|
243
|
+
### UI Testing Strategy
|
|
244
|
+
|
|
245
|
+
**Visual Testing**:
|
|
246
|
+
- Screenshot comparison testing
|
|
247
|
+
- Cross-browser visual validation
|
|
248
|
+
- Responsive design testing
|
|
249
|
+
- Accessibility testing
|
|
250
|
+
|
|
251
|
+
**Interaction Testing**:
|
|
252
|
+
- User flow testing
|
|
253
|
+
- Form validation testing
|
|
254
|
+
- Navigation testing
|
|
255
|
+
- Error handling testing
|
|
256
|
+
|
|
257
|
+
**Performance Testing**:
|
|
258
|
+
- Loading time optimization
|
|
259
|
+
- Animation performance
|
|
260
|
+
- Memory usage monitoring
|
|
261
|
+
- Battery impact (mobile)
|
|
262
|
+
|
|
263
|
+
### Success Metrics
|
|
264
|
+
|
|
265
|
+
**UI Completion Metrics**:
|
|
266
|
+
- Screen coverage percentage
|
|
267
|
+
- User flow completion rate
|
|
268
|
+
- Feature accessibility through UI
|
|
269
|
+
- CRUD operation UI coverage
|
|
270
|
+
|
|
271
|
+
**Quality Metrics**:
|
|
272
|
+
- Design consistency score
|
|
273
|
+
- Accessibility compliance
|
|
274
|
+
- Performance benchmarks
|
|
275
|
+
- User satisfaction ratings
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
**Success Criteria**: Complete UI coverage for all features, consistent design system, accessible interfaces, and smooth user flows.
|