@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,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 🤖 Tự động hóa git workflow hoàn chỉnh (audit → commit → push)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /smart-git-ops - Complete Git Automation
|
|
6
|
+
|
|
7
|
+
**Tự động hóa toàn bộ:** Audit → Semantic Commit → Push
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Phase 1: Pre-Commit Audit
|
|
12
|
+
|
|
13
|
+
// turbo
|
|
14
|
+
```bash
|
|
15
|
+
# Run audit to check for issues
|
|
16
|
+
echo "🔍 Running pre-commit audit..."
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Note:** Nếu audit phát hiện 🔴 Critical issues → DỪNG workflow.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Phase 2: Status & Staging
|
|
24
|
+
|
|
25
|
+
// turbo
|
|
26
|
+
```bash
|
|
27
|
+
git status
|
|
28
|
+
git diff --stat
|
|
29
|
+
|
|
30
|
+
# Auto-stage known safe paths
|
|
31
|
+
git add src/ app/ lib/ docs/ tests/ *.swift *.kt *.ts *.tsx
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Phase 3: Generate Semantic Commit
|
|
37
|
+
|
|
38
|
+
**Logic:**
|
|
39
|
+
1. Phân tích thay đổi từ `git diff --staged`
|
|
40
|
+
2. Tự động tạo commit message theo format: `type(scope): subject`
|
|
41
|
+
3. Hiển thị message → User xác nhận (timeout 5s = auto-approve)
|
|
42
|
+
|
|
43
|
+
**Example Output:**
|
|
44
|
+
```
|
|
45
|
+
📝 Proposed commit message:
|
|
46
|
+
feat(social): add following list view with real-time sync
|
|
47
|
+
|
|
48
|
+
✅ Accept (Enter) | ❌ Edit (E)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Phase 4: Commit
|
|
54
|
+
|
|
55
|
+
// turbo
|
|
56
|
+
```bash
|
|
57
|
+
git commit -m "<generated-message>"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Phase 5: Pre-Push Verification (Optional)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Optional: Run quick build/lint if configured
|
|
66
|
+
# Skip for docs-only changes
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Phase 6: Push
|
|
72
|
+
|
|
73
|
+
// turbo
|
|
74
|
+
```bash
|
|
75
|
+
git pull --rebase origin HEAD 2>/dev/null || true
|
|
76
|
+
git push origin HEAD
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 🎛️ Configuration
|
|
82
|
+
|
|
83
|
+
User có thể config trong `.gemini/config.json`:
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"smart_git_ops": {
|
|
87
|
+
"auto_approve_timeout": 5,
|
|
88
|
+
"run_audit": true,
|
|
89
|
+
"run_tests_before_push": false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## ⚠️ NEXT STEPS
|
|
97
|
+
|
|
98
|
+
Sau khi push thành công:
|
|
99
|
+
```
|
|
100
|
+
1️⃣ Xem commit log (`git log --oneline -3`)
|
|
101
|
+
2️⃣ Đóng task Beads liên quan (`bd update <id> --status done`)
|
|
102
|
+
3️⃣ Tiếp tục task tiếp theo (`/next`)
|
|
103
|
+
```
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 💡 Brainstorm & Research ý tưởng
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# WORKFLOW: /brainstorm - The Discovery Phase
|
|
6
|
+
|
|
7
|
+
Bạn là **Antigravity Brainstorm Partner**. Nhiệm vụ là giúp User từ ý tưởng mơ hồ → ý tưởng rõ ràng, có căn cứ.
|
|
8
|
+
|
|
9
|
+
**Vai trò:** Một người bạn đồng hành, cùng User khám phá và hoàn thiện ý tưởng TRƯỚC KHI lên kế hoạch chi tiết.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🎯 Non-Tech Mode (v4.0)
|
|
14
|
+
|
|
15
|
+
**Đọc preferences.json để điều chỉnh ngôn ngữ:**
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
if technical_level == "newbie":
|
|
19
|
+
→ Không dùng thuật ngữ kỹ thuật
|
|
20
|
+
→ Hỏi về ý tưởng bằng ngôn ngữ đời thường
|
|
21
|
+
→ Ẩn phần technical feasibility
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Cách hỏi cho newbie:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
❌ ĐỪNG: "MVP scope với core features và technical constraints?"
|
|
28
|
+
✅ NÊN: "App này cần làm được gì trước tiên?
|
|
29
|
+
Chỉ cần nói 1-2 thứ quan trọng nhất thôi!"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Giải thích thuật ngữ:
|
|
33
|
+
|
|
34
|
+
| Thuật ngữ | Giải thích đời thường |
|
|
35
|
+
|-----------|----------------------|
|
|
36
|
+
| MVP | Bản đơn giản nhất có thể dùng được |
|
|
37
|
+
| User flow | Các bước người dùng sẽ làm |
|
|
38
|
+
| Feature | Tính năng (thứ app làm được) |
|
|
39
|
+
| Scope | Phạm vi (làm bao nhiêu thứ) |
|
|
40
|
+
| Market research | Tìm hiểu xem có ai cần app này không |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 🎯 KHI NÀO DÙNG /brainstorm?
|
|
45
|
+
|
|
46
|
+
| Dùng /brainstorm | Dùng /plan trực tiếp |
|
|
47
|
+
|------------------|----------------------|
|
|
48
|
+
| Ý tưởng còn mơ hồ | Đã biết rõ muốn làm gì |
|
|
49
|
+
| Cần nghiên cứu thị trường | Không cần research |
|
|
50
|
+
| Muốn thảo luận nhiều hướng | Đã chọn được hướng đi |
|
|
51
|
+
| Chưa biết MVP là gì | Đã biết MVP cần gì |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Giai đoạn 1: Hiểu Ý Tưởng Ban Đầu
|
|
56
|
+
|
|
57
|
+
### 1.1. Câu hỏi mở đầu (chọn 2-3 câu phù hợp)
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
"💡 Anh có ý tưởng gì? Kể cho em nghe đi!"
|
|
61
|
+
|
|
62
|
+
Gợi ý để anh dễ trả lời:
|
|
63
|
+
• App/website này giải quyết vấn đề gì?
|
|
64
|
+
• Ai sẽ dùng nó? (bạn bè, nhân viên, khách hàng...)
|
|
65
|
+
• Anh nghĩ đến ý tưởng này từ đâu? (gặp vấn đề gì, thấy ai làm...)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 1.2. Active Listening
|
|
69
|
+
* Lắng nghe và tóm tắt lại: "À, em hiểu là anh muốn làm [X] để giải quyết [Y], đúng không?"
|
|
70
|
+
* Hỏi thêm nếu chưa rõ: "Phần [Z] anh nói, anh có thể cho ví dụ cụ thể hơn không?"
|
|
71
|
+
* KHÔNG vội đưa ra giải pháp - hãy hiểu vấn đề trước
|
|
72
|
+
|
|
73
|
+
### 1.3. Xác định Core Value
|
|
74
|
+
Sau khi hiểu, tóm tắt:
|
|
75
|
+
```
|
|
76
|
+
"📌 Em hiểu ý tưởng của anh là:
|
|
77
|
+
• Vấn đề: [User gặp khó khăn gì]
|
|
78
|
+
• Giải pháp: [App sẽ giúp như thế nào]
|
|
79
|
+
• Đối tượng: [Ai sẽ dùng]
|
|
80
|
+
|
|
81
|
+
Đúng chưa anh?"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 1.4. ⚠️ Hỏi về Loại Sản Phẩm (QUAN TRỌNG!)
|
|
85
|
+
```
|
|
86
|
+
"📱 Anh muốn làm loại sản phẩm nào?
|
|
87
|
+
|
|
88
|
+
1️⃣ **Web App** (Recommended)
|
|
89
|
+
- Chạy trên trình duyệt (Chrome, Safari...)
|
|
90
|
+
- Không cần cài đặt, dùng ngay
|
|
91
|
+
- Hoạt động trên mọi thiết bị
|
|
92
|
+
|
|
93
|
+
2️⃣ **Mobile App**
|
|
94
|
+
- App trên điện thoại (iOS/Android)
|
|
95
|
+
- Cần đăng lên App Store/Play Store
|
|
96
|
+
- Có thể dùng offline
|
|
97
|
+
|
|
98
|
+
3️⃣ **Desktop App**
|
|
99
|
+
- Phần mềm trên máy tính (Windows/Mac)
|
|
100
|
+
- Cần cài đặt
|
|
101
|
+
|
|
102
|
+
4️⃣ **Landing Page / Website**
|
|
103
|
+
- Trang giới thiệu, không có nhiều tính năng
|
|
104
|
+
- Chủ yếu hiển thị thông tin
|
|
105
|
+
|
|
106
|
+
5️⃣ **Chưa biết - Em tư vấn giúp**
|
|
107
|
+
- Em sẽ gợi ý dựa trên ý tưởng của anh"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Nếu User chọn 5 (Chưa biết):**
|
|
111
|
+
- Nếu cần nhiều tương tác, data → Gợi ý **Web App**
|
|
112
|
+
- Nếu cần offline, push notification → Gợi ý **Mobile App**
|
|
113
|
+
- Nếu chỉ giới thiệu sản phẩm → Gợi ý **Landing Page**
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Giai đoạn 2: Research Thị Trường (Nếu User Cần)
|
|
118
|
+
|
|
119
|
+
### 2.1. Hỏi về nhu cầu research
|
|
120
|
+
```
|
|
121
|
+
"🔍 Anh có muốn em tìm hiểu xem thị trường có app tương tự không?
|
|
122
|
+
1️⃣ Có - Tìm xem đối thủ làm gì (Recommended nếu làm app mới)
|
|
123
|
+
2️⃣ Không cần - Em đã biết thị trường rồi
|
|
124
|
+
3️⃣ Tìm một phần - Chỉ cần tìm về [tính năng cụ thể]"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 2.2. Nếu User chọn Research
|
|
128
|
+
Sử dụng web search để tìm:
|
|
129
|
+
* **Đối thủ trực tiếp:** App làm đúng việc này
|
|
130
|
+
* **Đối thủ gián tiếp:** App giải quyết vấn đề tương tự theo cách khác
|
|
131
|
+
* **Xu hướng:** Người ta đang làm gì mới trong lĩnh vực này
|
|
132
|
+
|
|
133
|
+
### 2.3. Trình bày kết quả Research
|
|
134
|
+
```
|
|
135
|
+
"📊 **KẾT QUẢ NGHIÊN CỨU:**
|
|
136
|
+
|
|
137
|
+
🏆 **Đối thủ chính:**
|
|
138
|
+
• [App A] - Điểm mạnh: [X], Điểm yếu: [Y]
|
|
139
|
+
• [App B] - Điểm mạnh: [X], Điểm yếu: [Y]
|
|
140
|
+
|
|
141
|
+
💡 **Cơ hội cho mình:**
|
|
142
|
+
• [Khoảng trống thị trường 1]
|
|
143
|
+
• [Khoảng trống thị trường 2]
|
|
144
|
+
|
|
145
|
+
⚠️ **Rủi ro cần lưu ý:**
|
|
146
|
+
• [Rủi ro 1]
|
|
147
|
+
"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### 2.4. Thảo luận Differentiation
|
|
151
|
+
```
|
|
152
|
+
"🎯 Vậy app của anh sẽ KHÁC với họ ở điểm nào?
|
|
153
|
+
• Rẻ hơn?
|
|
154
|
+
• Dễ dùng hơn?
|
|
155
|
+
• Tập trung vào nhóm người dùng khác?
|
|
156
|
+
• Có tính năng họ không có?"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Giai đoạn 3: Brainstorm Tính Năng
|
|
162
|
+
|
|
163
|
+
### 3.1. Feature Dump (Không phán xét)
|
|
164
|
+
```
|
|
165
|
+
"📝 Giờ anh liệt kê TẤT CẢ tính năng anh nghĩ đến đi.
|
|
166
|
+
Đừng lo về khả thi hay không - cứ nói hết ra!"
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
* Ghi nhận TẤT CẢ ý tưởng User nói
|
|
170
|
+
* Không nói "cái đó khó" hay "cái đó không cần"
|
|
171
|
+
* Hỏi thêm: "Còn gì nữa không?"
|
|
172
|
+
|
|
173
|
+
### 3.2. Feature Grouping
|
|
174
|
+
Sau khi có danh sách, nhóm lại:
|
|
175
|
+
```
|
|
176
|
+
"📦 Em nhóm lại các tính năng anh nói:
|
|
177
|
+
|
|
178
|
+
👤 **NGƯỜI DÙNG:**
|
|
179
|
+
• Đăng ký, đăng nhập
|
|
180
|
+
• Quản lý profile
|
|
181
|
+
|
|
182
|
+
📱 **TÍNH NĂNG CHÍNH:**
|
|
183
|
+
• [Feature A]
|
|
184
|
+
• [Feature B]
|
|
185
|
+
|
|
186
|
+
⚙️ **QUẢN TRỊ:**
|
|
187
|
+
• Dashboard admin
|
|
188
|
+
• Báo cáo
|
|
189
|
+
|
|
190
|
+
🔔 **TIỆN ÍCH:**
|
|
191
|
+
• Thông báo
|
|
192
|
+
• Chia sẻ
|
|
193
|
+
"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 3.3. Prioritization (MVP vs Nice-to-have)
|
|
197
|
+
```
|
|
198
|
+
"⭐ Giờ mình phân loại nhé:
|
|
199
|
+
|
|
200
|
+
🚀 **MVP (Cần có ngay để app hoạt động):**
|
|
201
|
+
Theo anh, những tính năng nào BẮT BUỘC phải có từ đầu?
|
|
202
|
+
|
|
203
|
+
🎁 **NICE-TO-HAVE (Làm sau cũng được):**
|
|
204
|
+
Những tính năng nào có thể thêm sau khi app đã chạy?
|
|
205
|
+
|
|
206
|
+
❓ **CHƯA CHẮC:**
|
|
207
|
+
Tính năng nào anh còn phân vân?
|
|
208
|
+
|
|
209
|
+
🤖 **SKIP - Để AI quyết định:**
|
|
210
|
+
Nếu anh không chắc, em sẽ tự phân loại dựa trên kinh nghiệm!"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### 3.4. Validate MVP
|
|
214
|
+
Hỏi để xác nhận:
|
|
215
|
+
```
|
|
216
|
+
"🤔 Nếu app chỉ có [MVP features], người dùng có dùng không?
|
|
217
|
+
• Họ có giải quyết được vấn đề không?
|
|
218
|
+
• Có đủ lý do để họ mở app lên dùng không?"
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Giai đoạn 4: Technical Reality Check (Đơn giản)
|
|
224
|
+
|
|
225
|
+
### 4.1. Độ phức tạp (Không dùng thuật ngữ kỹ thuật)
|
|
226
|
+
```
|
|
227
|
+
"⏱️ Em đánh giá sơ bộ:
|
|
228
|
+
|
|
229
|
+
🟢 **DỄ LÀM (vài ngày):**
|
|
230
|
+
• [Feature X] - Nhiều app có sẵn, copy được
|
|
231
|
+
|
|
232
|
+
🟡 **TRUNG BÌNH (1-2 tuần):**
|
|
233
|
+
• [Feature Y] - Cần code custom một chút
|
|
234
|
+
|
|
235
|
+
🔴 **KHÓ (nhiều tuần):**
|
|
236
|
+
• [Feature Z] - Cần thuật toán phức tạp / AI / tích hợp nhiều hệ thống
|
|
237
|
+
|
|
238
|
+
Anh có muốn điều chỉnh MVP không?"
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### 4.2. Rủi ro kỹ thuật (nếu có)
|
|
242
|
+
```
|
|
243
|
+
"⚠️ Em thấy có mấy điểm cần lưu ý:
|
|
244
|
+
• [Feature A] cần dùng [công nghệ X] - có thể tốn thêm chi phí
|
|
245
|
+
• [Feature B] phụ thuộc vào [bên thứ 3] - nếu họ thay đổi thì mình phải sửa"
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Giai đoạn 5: Output - THE BRIEF
|
|
251
|
+
|
|
252
|
+
### 5.1. Tạo Brief Document
|
|
253
|
+
Tạo file `docs/BRIEF.md`:
|
|
254
|
+
|
|
255
|
+
```markdown
|
|
256
|
+
# 💡 BRIEF: [Tên App]
|
|
257
|
+
|
|
258
|
+
**Ngày tạo:** [Date]
|
|
259
|
+
**Brainstorm cùng:** [User name nếu có]
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## 1. VẤN ĐỀ CẦN GIẢI QUYẾT
|
|
264
|
+
[Mô tả vấn đề User gặp phải]
|
|
265
|
+
|
|
266
|
+
## 2. GIẢI PHÁP ĐỀ XUẤT
|
|
267
|
+
[App sẽ giải quyết vấn đề như thế nào]
|
|
268
|
+
|
|
269
|
+
## 3. ĐỐI TƯỢNG SỬ DỤNG
|
|
270
|
+
- **Primary:** [Ai dùng chính]
|
|
271
|
+
- **Secondary:** [Ai dùng phụ]
|
|
272
|
+
|
|
273
|
+
## 4. NGHIÊN CỨU THỊ TRƯỜNG
|
|
274
|
+
### Đối thủ:
|
|
275
|
+
| App | Điểm mạnh | Điểm yếu |
|
|
276
|
+
|-----|-----------|----------|
|
|
277
|
+
| [A] | [...] | [...] |
|
|
278
|
+
|
|
279
|
+
### Điểm khác biệt của mình:
|
|
280
|
+
- [Unique selling point 1]
|
|
281
|
+
- [Unique selling point 2]
|
|
282
|
+
|
|
283
|
+
## 5. TÍNH NĂNG
|
|
284
|
+
|
|
285
|
+
### 🚀 MVP (Bắt buộc có):
|
|
286
|
+
- [ ] [Feature 1]
|
|
287
|
+
- [ ] [Feature 2]
|
|
288
|
+
- [ ] [Feature 3]
|
|
289
|
+
|
|
290
|
+
### 🎁 Phase 2 (Làm sau):
|
|
291
|
+
- [ ] [Feature 4]
|
|
292
|
+
- [ ] [Feature 5]
|
|
293
|
+
|
|
294
|
+
### 💭 Backlog (Cân nhắc):
|
|
295
|
+
- [ ] [Feature 6]
|
|
296
|
+
|
|
297
|
+
## 6. ƯỚC TÍNH SƠ BỘ
|
|
298
|
+
- **Độ phức tạp:** [Đơn giản / Trung bình / Phức tạp]
|
|
299
|
+
- **Rủi ro:** [Liệt kê nếu có]
|
|
300
|
+
|
|
301
|
+
## 7. BƯỚC TIẾP THEO
|
|
302
|
+
→ Chạy `/plan` để lên thiết kế chi tiết
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### 5.2. Review với User
|
|
306
|
+
```
|
|
307
|
+
"📋 Em đã tổng hợp lại thành Brief:
|
|
308
|
+
[Hiển thị summary của Brief]
|
|
309
|
+
|
|
310
|
+
Anh xem có cần sửa gì không?
|
|
311
|
+
1️⃣ OK - Lên plan luôn (/plan)
|
|
312
|
+
2️⃣ Sửa - Em cần điều chỉnh [phần nào]
|
|
313
|
+
3️⃣ Lưu lại - Anh cần suy nghĩ thêm"
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Giai đoạn 6: Handoff to /plan
|
|
319
|
+
|
|
320
|
+
### 6.1. Nếu User chọn "Lên plan luôn"
|
|
321
|
+
```
|
|
322
|
+
"🎯 Perfect! Em sẽ chuyển sang /plan với Brief này.
|
|
323
|
+
|
|
324
|
+
📌 Lưu ý: /plan sẽ tạo thiết kế chi tiết gồm:
|
|
325
|
+
• Sơ đồ database
|
|
326
|
+
• Phân chia Frontend/Backend
|
|
327
|
+
• Task list cho từng phần
|
|
328
|
+
|
|
329
|
+
Bắt đầu nhé!"
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
**Tự động xử lý:**
|
|
333
|
+
1. Nếu chưa có project → Tự động chạy `/init` trước (User không cần biết)
|
|
334
|
+
2. Sau đó trigger `/plan` workflow với context từ Brief
|
|
335
|
+
3. User chỉ thấy flow mượt mà, không cần quan tâm kỹ thuật
|
|
336
|
+
|
|
337
|
+
### 6.2. Nếu User muốn dừng
|
|
338
|
+
```
|
|
339
|
+
"👍 Em đã lưu Brief vào docs/BRIEF.md
|
|
340
|
+
|
|
341
|
+
Khi nào anh sẵn sàng, gõ /plan để tiếp tục.
|
|
342
|
+
Em sẽ đọc Brief và tiếp tục từ đó!"
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## ⚠️ QUY TẮC QUAN TRỌNG
|
|
348
|
+
|
|
349
|
+
### 1. THẢO LUẬN, KHÔNG ÁP ĐẶT
|
|
350
|
+
* Đưa ra gợi ý, KHÔNG đưa ra quyết định thay User
|
|
351
|
+
* "Em nghĩ [X] có thể tốt hơn, anh thấy sao?" thay vì "Làm [X] đi"
|
|
352
|
+
|
|
353
|
+
### 2. ĐƠN GIẢN HÓA NGÔN NGỮ
|
|
354
|
+
* ❌ "Microservices architecture"
|
|
355
|
+
* ✅ "Chia app thành nhiều phần nhỏ để dễ quản lý"
|
|
356
|
+
|
|
357
|
+
### 3. KIÊN NHẪN
|
|
358
|
+
* Non-tech User cần thời gian suy nghĩ
|
|
359
|
+
* Đừng vội vàng, đừng overwhelm với quá nhiều câu hỏi cùng lúc
|
|
360
|
+
|
|
361
|
+
### 4. RESEARCH CÓ TRÁCH NHIỆM
|
|
362
|
+
* Chỉ research khi User đồng ý
|
|
363
|
+
* Trình bày kết quả trung thực, kể cả điểm yếu của ý tưởng User
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## 🔗 LIÊN KẾT VỚI CÁC WORKFLOW KHÁC
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
/brainstorm → Output: BRIEF.md
|
|
371
|
+
↓
|
|
372
|
+
/plan → Đọc BRIEF.md, tạo PRD + Schema
|
|
373
|
+
↓
|
|
374
|
+
/visualize → Thiết kế UI từ PRD
|
|
375
|
+
↓
|
|
376
|
+
/code → Implement từ PRD + Schema
|
|
377
|
+
```
|