@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.
Files changed (139) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +146 -0
  3. package/VERSION +1 -0
  4. package/bin/awf.js +549 -0
  5. package/bin/awk.js +1759 -0
  6. package/core/AGENTS.md +39 -0
  7. package/core/GEMINI.md +202 -0
  8. package/core/GEMINI.md.bak +244 -0
  9. package/core/orchestrator.md +58 -0
  10. package/package.json +46 -0
  11. package/schemas/brain.schema.json +342 -0
  12. package/schemas/preferences.schema.json +95 -0
  13. package/schemas/session.schema.json +112 -0
  14. package/skill-packs/neural-memory/README.md +111 -0
  15. package/skill-packs/neural-memory/pack.json +35 -0
  16. package/skill-packs/neural-memory/schemas/brain-snapshot.json +167 -0
  17. package/skill-packs/neural-memory/skills/nm-memory-audit/SKILL.md +157 -0
  18. package/skill-packs/neural-memory/skills/nm-memory-evolution/SKILL.md +202 -0
  19. package/skill-packs/neural-memory/skills/nm-memory-intake/SKILL.md +135 -0
  20. package/skill-packs/neural-memory/skills/nm-memory-sync/SKILL.md +184 -0
  21. package/skill-packs/neural-memory/workflows/nm-import.md +73 -0
  22. package/skill-packs/neural-memory/workflows/nm-recall.md +67 -0
  23. package/skill-packs/neural-memory/workflows/nm-snapshot.md +69 -0
  24. package/skills/adaptive-language/SKILL.md +189 -0
  25. package/skills/ambient-brain/SKILL.md +314 -0
  26. package/skills/ambient-brain/brain-router.md +185 -0
  27. package/skills/ambient-brain/brain-templates.md +201 -0
  28. package/skills/auto-save/SKILL.md +223 -0
  29. package/skills/awf-adaptive-language/SKILL.md +189 -0
  30. package/skills/awf-context-help/SKILL.md +180 -0
  31. package/skills/awf-error-translator/SKILL.md +153 -0
  32. package/skills/awf-session-restore/SKILL.md +270 -0
  33. package/skills/awf-version-tracker/SKILL.md +32 -0
  34. package/skills/awf-version-tracker/scripts/snapshot.sh +22 -0
  35. package/skills/beads-manager/SKILL.md +323 -0
  36. package/skills/brainstorm-agent/SKILL.md +295 -0
  37. package/skills/context-help/SKILL.md +180 -0
  38. package/skills/error-translator/SKILL.md +153 -0
  39. package/skills/ios-engineer/SKILL.md +101 -0
  40. package/skills/memory-sync/SKILL.md +378 -0
  41. package/skills/memory-sync/memory-router.md +185 -0
  42. package/skills/memory-sync/memory-templates.md +201 -0
  43. package/skills/orchestrator/SKILL.md +193 -0
  44. package/skills/session-restore/SKILL.md +240 -0
  45. package/templates/CODEBASE.md +80 -0
  46. package/templates/brain.example.json +321 -0
  47. package/templates/preferences.example.json +21 -0
  48. package/templates/project-identity/android.json +28 -0
  49. package/templates/project-identity/backend-nestjs.json +24 -0
  50. package/templates/project-identity/expo.json +27 -0
  51. package/templates/project-identity/ios.json +27 -0
  52. package/templates/project-identity/web-nextjs.json +24 -0
  53. package/templates/session.example.json +53 -0
  54. package/templates/specs/design-template.md +166 -0
  55. package/templates/specs/requirements-template.md +65 -0
  56. package/templates/specs/tasks-template.md +132 -0
  57. package/templates/structures/android.txt +10 -0
  58. package/templates/structures/backend-nestjs.txt +6 -0
  59. package/templates/structures/expo.txt +9 -0
  60. package/templates/structures/ios.txt +9 -0
  61. package/templates/structures/web-nextjs.txt +6 -0
  62. package/templates/workflow_dual_mode_template.md +87 -0
  63. package/workflows/_uncategorized/README.md +339 -0
  64. package/workflows/_uncategorized/ads-creative.md +357 -0
  65. package/workflows/_uncategorized/ads-full-optimization.md +308 -0
  66. package/workflows/_uncategorized/ads-plan.md +247 -0
  67. package/workflows/_uncategorized/ads-user-analysis.md +337 -0
  68. package/workflows/_uncategorized/skill-health.md +35 -0
  69. package/workflows/_uncategorized/skill-rollback.md +35 -0
  70. package/workflows/ads/admob.md +62 -0
  71. package/workflows/ads/ads-analyst.md +201 -0
  72. package/workflows/ads/ads-audit.md +106 -0
  73. package/workflows/ads/ads-optimize.md +97 -0
  74. package/workflows/ads/ads-targeting.md +241 -0
  75. package/workflows/ads/adsExpert.md +160 -0
  76. package/workflows/ads/smali-ads-config.md +400 -0
  77. package/workflows/ads/smali-ads-flow.md +331 -0
  78. package/workflows/ads/smali-ads-interstitial.md +377 -0
  79. package/workflows/ads/smali-ads-native.md +382 -0
  80. package/workflows/context/auto-execution-workflow.md +291 -0
  81. package/workflows/context/auto-implement.md +211 -0
  82. package/workflows/context/codebase-sync.md +163 -0
  83. package/workflows/context/logic-reasoning-workflow.md +260 -0
  84. package/workflows/context/next.md +195 -0
  85. package/workflows/context/recap.md +212 -0
  86. package/workflows/context/save-brain.md +285 -0
  87. package/workflows/context/user-intent-analysis-workflow.md +206 -0
  88. package/workflows/expert/codeExpert.md +126 -0
  89. package/workflows/expert/debugExpert.md +136 -0
  90. package/workflows/expert/planExpert.md +112 -0
  91. package/workflows/git/cloudflare-tunnel.md +135 -0
  92. package/workflows/git/git-commit-workflow.md +75 -0
  93. package/workflows/git/hotfix.md +357 -0
  94. package/workflows/git/release-notes.md +160 -0
  95. package/workflows/git/rollback.md +52 -0
  96. package/workflows/git/smart-git-ops.md +103 -0
  97. package/workflows/lifecycle/brainstorm.md +377 -0
  98. package/workflows/lifecycle/code.md +663 -0
  99. package/workflows/lifecycle/debug.md +116 -0
  100. package/workflows/lifecycle/deploy.md +95 -0
  101. package/workflows/lifecycle/init.md +152 -0
  102. package/workflows/lifecycle/master-code-workflow.md +300 -0
  103. package/workflows/lifecycle/migration.md +196 -0
  104. package/workflows/lifecycle/plan.md +91 -0
  105. package/workflows/lifecycle/refactor.md +165 -0
  106. package/workflows/lifecycle/run.md +52 -0
  107. package/workflows/lifecycle/test.md +91 -0
  108. package/workflows/meta/customize.md +346 -0
  109. package/workflows/meta/file-protection-rules.md +129 -0
  110. package/workflows/meta/help.html +350 -0
  111. package/workflows/meta/project-identity-enforcement.md +180 -0
  112. package/workflows/mobile/app-analysis.md +64 -0
  113. package/workflows/mobile/maestro-qa-workflow.md +470 -0
  114. package/workflows/mobile/maestro-test-workflow.md +84 -0
  115. package/workflows/mobile/structure-clean-architect.md +271 -0
  116. package/workflows/mobile/turbo-mobile-build.md +190 -0
  117. package/workflows/quality/accessibility-audit.md +311 -0
  118. package/workflows/quality/audit.md +217 -0
  119. package/workflows/quality/bug-hunter.md +243 -0
  120. package/workflows/quality/code-janitor.md +209 -0
  121. package/workflows/quality/code-quality-rules.md +132 -0
  122. package/workflows/quality/performance-audit.md +343 -0
  123. package/workflows/quality/project-audit.md +61 -0
  124. package/workflows/quality/self-healing-test.md +192 -0
  125. package/workflows/quality/ui-review.md +130 -0
  126. package/workflows/quality/ux-audit.md +213 -0
  127. package/workflows/quality/visual-debug.md +34 -0
  128. package/workflows/roles/oracle.md +267 -0
  129. package/workflows/roles/product-manager-workflow.md +52 -0
  130. package/workflows/roles/qa-engineer-workflow.md +41 -0
  131. package/workflows/roles/tech-lead-workflow.md +45 -0
  132. package/workflows/roles/ui-ux-designer-workflow.md +42 -0
  133. package/workflows/roles/vibe-coding-master-workflow.md +52 -0
  134. package/workflows/ui/app-screen-analyzer.md +152 -0
  135. package/workflows/ui/create-feature.md +332 -0
  136. package/workflows/ui/create-spec-architect.md +184 -0
  137. package/workflows/ui/design-to-ui.md +308 -0
  138. package/workflows/ui/ui-first-methodology.md +279 -0
  139. package/workflows/ui/visualize.md +298 -0
@@ -0,0 +1,75 @@
1
+ ---
2
+ description: 📤 Commit & push code an toàn
3
+ ---
4
+
5
+ # /git-commit-workflow - Commit Message Standards
6
+
7
+ ## 🎯 Mục đích
8
+ Tạo commit message chuẩn semantic và thực hiện git operations an toàn.
9
+
10
+ ## 📋 Prerequisite
11
+ **BẮT BUỘC:** Phải chạy `/audit` trước khi commit.
12
+
13
+ ---
14
+
15
+ ## Phase 1: Stage Changes
16
+
17
+ // turbo
18
+ ```bash
19
+ # Check status
20
+ git status
21
+
22
+ # Stage files (avoid git add .)
23
+ git add <specific-files>
24
+
25
+ # Verify staged changes
26
+ git diff --staged
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Phase 2: Generate Commit Message
32
+
33
+ **Format:** `<type>(<scope>): <description>`
34
+
35
+ ### Types:
36
+ - `feat`: New feature
37
+ - `fix`: Bug fix
38
+ - `refactor`: Code restructuring (no behavior change)
39
+ - `style`: Formatting, whitespace
40
+ - `docs`: Documentation only
41
+ - `test`: Add/update tests
42
+ - `chore`: Maintenance, dependencies
43
+
44
+ ### Examples:
45
+ ```
46
+ feat(auth): implement biometric login
47
+ fix(payment): resolve subscription renewal issue
48
+ refactor(analytics): extract tracking logic to service
49
+ docs(readme): update installation instructions
50
+ ```
51
+
52
+ ---
53
+
54
+ ## Phase 3: Commit & Push
55
+
56
+ // turbo
57
+ ```bash
58
+ # Commit with semantic message
59
+ git commit -m "<generated-message>"
60
+
61
+ # Pull rebase if needed (shared branch)
62
+ git pull --rebase origin <branch>
63
+
64
+ # Push
65
+ git push origin <branch>
66
+ ```
67
+
68
+ ---
69
+
70
+ ## 🤖 Agent Rules
71
+
72
+ 1. **NEVER commit broken code**
73
+ 2. **ALWAYS suggest commit message** and wait for user confirmation
74
+ 3. **IF `/audit` not run yet** → Run it first
75
+ 4. **Auto-generate semantic commit message** based on changed files
@@ -0,0 +1,357 @@
1
+ ---
2
+ description: 🚨 Sửa lỗi khẩn cấp Production
3
+ ---
4
+
5
+ # WORKFLOW: /hotfix - Emergency Production Fix
6
+
7
+ **⚠️ CHỈ SỬ DỤNG KHI:**
8
+ - App đang crash trên production
9
+ - Critical security vulnerability được phát hiện
10
+ - Data loss đang xảy ra
11
+ - Service outage ảnh hưởng users
12
+
13
+ **KHÔNG dùng cho:**
14
+ - Bug nhỏ có thể đợi được
15
+ - Feature requests
16
+ - Performance improvements (trừ khi critical)
17
+
18
+ ---
19
+
20
+ ## 🎯 Mục tiêu
21
+
22
+ Sửa lỗi production **NHANH** và **AN TOÀN** nhất có thể, với documentation đầy đủ để tránh lặp lại.
23
+
24
+ ---
25
+
26
+ ## ⚡ FAST TRACK MODE (Bypass Spec-First)
27
+
28
+ Workflow này được phép **bypass** requirement tạo spec trước, NHƯNG phải tuân thủ các safety checks:
29
+
30
+ ```yaml
31
+ bypass_conditions:
32
+ - severity: CRITICAL (P0)
33
+ - user_impact: HIGH (>1000 users affected)
34
+ - time_sensitive: YES (must fix within hours)
35
+
36
+ safety_requirements:
37
+ - Must document root cause
38
+ - Must have rollback plan
39
+ - Must write post-mortem after fix
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Giai đoạn 1: Triage & Assessment (5-10 phút)
45
+
46
+ ### 1.1. Xác định mức độ nghiêm trọng
47
+
48
+ ```
49
+ P0 - CRITICAL: App không dùng được, data loss, security breach
50
+ P1 - HIGH: Tính năng chính bị lỗi, ảnh hưởng nhiều users
51
+ P2 - MEDIUM: Tính năng phụ lỗi, workaround có thể
52
+ P3 - LOW: UI glitch, minor bugs
53
+ ```
54
+
55
+ **Chỉ P0 và P1 mới được dùng /hotfix!**
56
+
57
+ ### 1.2. Thu thập thông tin
58
+
59
+ - [ ] Error logs/crash reports
60
+ - [ ] Steps to reproduce
61
+ - [ ] Affected versions (iOS/Android version, app version)
62
+ - [ ] Number of affected users
63
+ - [ ] When did it start?
64
+
65
+ ### 1.3. Rollback assessment
66
+
67
+ "Có thể rollback về version trước không?"
68
+ - **CÓ** → Rollback ngay, fix sau
69
+ - **KHÔNG** → Tiếp tục hotfix
70
+
71
+ ---
72
+
73
+ ## Giai đoạn 2: Root Cause Analysis (10-15 phút)
74
+
75
+ ### 2.1. Reproduce locally
76
+
77
+ 1. Checkout production branch
78
+ 2. Reproduce lỗi trong dev environment
79
+ 3. Confirm root cause
80
+
81
+ ### 2.2. Identify the culprit
82
+
83
+ - Recent commits? (`git log --since="2 days ago"`)
84
+ - Recent deployments?
85
+ - Third-party SDK updates?
86
+ - Backend API changes?
87
+
88
+ ### 2.3. Document findings
89
+
90
+ Tạo file `docs/ai/hotfix/YYYY-MM-DD-issue-name.md`:
91
+
92
+ ```markdown
93
+ # Hotfix: [Issue Name]
94
+
95
+ ## Severity: P0/P1
96
+
97
+ ## Impact
98
+ - Affected users: [number]
99
+ - Affected platforms: iOS/Android/Both
100
+ - Started: [timestamp]
101
+
102
+ ## Root Cause
103
+ [Detailed explanation]
104
+
105
+ ## Proposed Fix
106
+ [What you will change]
107
+
108
+ ## Risks
109
+ [What could go wrong]
110
+
111
+ ## Rollback Plan
112
+ [How to undo if fix fails]
113
+ ```
114
+
115
+ ---
116
+
117
+ ## Giai đoạn 3: Implement Fix (15-30 phút)
118
+
119
+ ### 3.1. Create hotfix branch
120
+
121
+ ```bash
122
+ git checkout production
123
+ git pull origin production
124
+ git checkout -b hotfix/YYYY-MM-DD-issue-name
125
+ ```
126
+
127
+ ### 3.2. Minimal change principle
128
+
129
+ **QUAN TRỌNG**: Chỉ sửa đúng cái bị lỗi, KHÔNG:
130
+ - Refactor code
131
+ - Add new features
132
+ - "Improve" things khác
133
+ - Change formatting
134
+
135
+ ### 3.3. Write targeted fix
136
+
137
+ Focus vào:
138
+ - Smallest possible change
139
+ - Defensive coding (null checks, try-catch)
140
+ - Backward compatibility
141
+
142
+ ### 3.4. Add safety guards
143
+
144
+ ```swift
145
+ // iOS Example
146
+ guard let data = fetchData() else {
147
+ // Fallback to safe default
148
+ logger.error("Hotfix: Data fetch failed, using fallback")
149
+ return defaultData
150
+ }
151
+ ```
152
+
153
+ ```kotlin
154
+ // Android Example
155
+ try {
156
+ riskyOperation()
157
+ } catch (e: Exception) {
158
+ // Log and gracefully degrade
159
+ FirebaseCrashlytics.getInstance().recordException(e)
160
+ showFallbackUI()
161
+ }
162
+ ```
163
+
164
+ ---
165
+
166
+ ## Giai đoạn 4: Testing (10-20 phút)
167
+
168
+ ### 4.1. Test the fix
169
+
170
+ - [ ] Verify fix works locally
171
+ - [ ] Test on affected device/OS version
172
+ - [ ] Test edge cases
173
+ - [ ] Verify no regression
174
+
175
+ ### 4.2. Quick smoke test
176
+
177
+ Test các tính năng chính:
178
+ - [ ] App launches
179
+ - [ ] Login works
180
+ - [ ] Core features work
181
+ - [ ] No new crashes
182
+
183
+ ### 4.3. Beta test (if possible)
184
+
185
+ - Deploy to internal testers
186
+ - Monitor for 15-30 minutes
187
+ - Check crash reports
188
+
189
+ ---
190
+
191
+ ## Giai đoạn 5: Deploy (Platform-specific)
192
+
193
+ ### iOS (TestFlight → App Store)
194
+
195
+ ```bash
196
+ # 1. Bump version
197
+ # Edit Info.plist: CFBundleShortVersionString = "1.2.3"
198
+ # CFBundleVersion = "123"
199
+
200
+ # 2. Build & Archive
201
+ xcodebuild archive -scheme YourApp -archivePath build/YourApp.xcarchive
202
+
203
+ # 3. Upload to TestFlight
204
+ xcodebuild -exportArchive -archivePath build/YourApp.xcarchive \
205
+ -exportPath build/ -exportOptionsPlist ExportOptions.plist
206
+
207
+ # 4. Submit for expedited review
208
+ # In App Store Connect: Request Expedited Review
209
+ # Explain the critical bug and user impact
210
+ ```
211
+
212
+ ### Android (Internal Test → Production)
213
+
214
+ ```bash
215
+ # 1. Bump version
216
+ # Edit build.gradle.kts:
217
+ # versionCode = 124
218
+ # versionName = "1.2.4"
219
+
220
+ # 2. Build release
221
+ ./gradlew bundleRelease
222
+
223
+ # 3. Upload to Play Console
224
+ # Internal testing → Production (phased rollout 10%)
225
+
226
+ # 4. Monitor crash reports
227
+ ```
228
+
229
+ ### Expo (EAS Update)
230
+
231
+ ```bash
232
+ # 1. Create hotfix update
233
+ eas update --branch production --message "Hotfix: [issue]"
234
+
235
+ # 2. Monitor rollout
236
+ eas update:view
237
+
238
+ # 3. If issues, rollback
239
+ eas update:rollback
240
+ ```
241
+
242
+ ---
243
+
244
+ ## Giai đoạn 6: Monitor (2-4 giờ)
245
+
246
+ ### 6.1. Watch metrics
247
+
248
+ - [ ] Crash rate (should decrease)
249
+ - [ ] Error logs (should reduce)
250
+ - [ ] User reports (should stop)
251
+ - [ ] App Store/Play Store reviews
252
+
253
+ ### 6.2. Phased rollout (if possible)
254
+
255
+ - Start with 10% users
256
+ - If stable after 1 hour → 50%
257
+ - If stable after 2 hours → 100%
258
+
259
+ ### 6.3. Rollback trigger
260
+
261
+ Rollback immediately if:
262
+ - Crash rate increases
263
+ - New critical bugs appear
264
+ - User complaints spike
265
+
266
+ ---
267
+
268
+ ## Giai đoạn 7: Post-Mortem (Sau khi stable)
269
+
270
+ ### 7.1. Write post-mortem
271
+
272
+ Cập nhật `docs/ai/hotfix/YYYY-MM-DD-issue-name.md`:
273
+
274
+ ```markdown
275
+ ## Timeline
276
+ - [HH:MM] Issue detected
277
+ - [HH:MM] Hotfix started
278
+ - [HH:MM] Fix deployed
279
+ - [HH:MM] Verified stable
280
+
281
+ ## What Went Wrong
282
+ [Detailed analysis]
283
+
284
+ ## What Went Right
285
+ [What helped us fix quickly]
286
+
287
+ ## Action Items
288
+ - [ ] Add test to prevent regression
289
+ - [ ] Update monitoring/alerts
290
+ - [ ] Improve deployment process
291
+ - [ ] Document learnings
292
+ ```
293
+
294
+ ### 7.2. Merge back to main
295
+
296
+ ```bash
297
+ # Merge hotfix to main branch
298
+ git checkout main
299
+ git merge hotfix/YYYY-MM-DD-issue-name
300
+ git push origin main
301
+ ```
302
+
303
+ ### 7.3. Create regression test
304
+
305
+ **BẮT BUỘC**: Thêm test để đảm bảo lỗi này không xảy ra lại.
306
+
307
+ ---
308
+
309
+ ## 🛡️ Safety Checklist
310
+
311
+ Trước khi deploy, confirm:
312
+
313
+ - [ ] Root cause đã được xác định rõ ràng
314
+ - [ ] Fix đã được test kỹ
315
+ - [ ] Rollback plan đã sẵn sàng
316
+ - [ ] Monitoring đã được setup
317
+ - [ ] Team đã được thông báo
318
+ - [ ] Documentation đã được viết
319
+
320
+ ---
321
+
322
+ ## 📊 Success Criteria
323
+
324
+ Hotfix được coi là thành công khi:
325
+
326
+ - ✅ Crash rate giảm về baseline
327
+ - ✅ Không có regression bugs
328
+ - ✅ User complaints dừng lại
329
+ - ✅ Post-mortem đã được viết
330
+ - ✅ Regression test đã được thêm
331
+
332
+ ---
333
+
334
+ ## ⚠️ NEXT STEPS
335
+
336
+ ```
337
+ 1️⃣ Monitor metrics trong 24h tiếp theo
338
+ 2️⃣ Schedule post-mortem meeting với team
339
+ 3️⃣ Tạo tasks để prevent tương tự: /plan
340
+ 4️⃣ Update runbook/documentation
341
+ ```
342
+
343
+ ---
344
+
345
+ ## 🔴 Emergency Contacts (Template)
346
+
347
+ ```
348
+ # Add your team's emergency contacts
349
+ - On-call engineer: [Name/Phone]
350
+ - Backend team lead: [Name/Phone]
351
+ - DevOps: [Name/Phone]
352
+ - Product manager: [Name/Phone]
353
+ ```
354
+
355
+ ---
356
+
357
+ **Remember**: Hotfix là last resort. Nếu không thực sự khẩn cấp, hãy dùng quy trình normal với `/plan` → `/code` → `/test`.
@@ -0,0 +1,160 @@
1
+ ---
2
+ description: 📝 Tạo Release Notes tự động
3
+ ---
4
+
5
+ # WORKFLOW: /release-notes - Automated Changelog Generation
6
+
7
+ Tự động tạo release notes từ git commits cho App Store và Play Store.
8
+
9
+ ---
10
+
11
+ ## Giai đoạn 1: Generate from Git
12
+
13
+ ### 1.1. Conventional Commits Format
14
+
15
+ Commits nên theo format:
16
+ ```
17
+ <type>(<scope>): <subject>
18
+
19
+ <body>
20
+
21
+ <footer>
22
+ ```
23
+
24
+ Types:
25
+ - `feat`: New feature
26
+ - `fix`: Bug fix
27
+ - `perf`: Performance improvement
28
+ - `docs`: Documentation
29
+ - `style`: UI/UX changes
30
+ - `refactor`: Code refactoring
31
+ - `test`: Tests
32
+ - `chore`: Maintenance
33
+
34
+ ### 1.2. Extract Commits
35
+
36
+ ```bash
37
+ # Get commits since last release
38
+ git log v1.0.0..HEAD --pretty=format:"%s" --no-merges
39
+
40
+ # Group by type
41
+ git log v1.0.0..HEAD --pretty=format:"%s" --no-merges | grep "^feat:"
42
+ git log v1.0.0..HEAD --pretty=format:"%s" --no-merges | grep "^fix:"
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Giai đoạn 2: Format for Platforms
48
+
49
+ ### App Store (English)
50
+
51
+ ```markdown
52
+ ## What's New in Version 1.1.0
53
+
54
+ ### New Features
55
+ • Added dark mode support
56
+ • Introduced offline mode for core features
57
+ • New onboarding experience
58
+
59
+ ### Improvements
60
+ • Faster app startup time
61
+ • Improved search performance
62
+ • Better error messages
63
+
64
+ ### Bug Fixes
65
+ • Fixed crash when uploading large images
66
+ • Resolved sync issues with cloud storage
67
+ • Fixed UI glitches on iPad
68
+
69
+ ---
70
+
71
+ Thank you for using [App Name]! We're constantly improving your experience.
72
+ ```
73
+
74
+ ### Play Store (English)
75
+
76
+ ```markdown
77
+ 🎉 What's New
78
+
79
+ ✨ New Features
80
+ • Dark mode is here!
81
+ • Work offline with core features
82
+ • Redesigned onboarding
83
+
84
+ ⚡ Improvements
85
+ • 50% faster startup
86
+ • Smoother search
87
+ • Clearer error messages
88
+
89
+ 🐛 Bug Fixes
90
+ • No more crashes when uploading
91
+ • Cloud sync works perfectly
92
+ • iPad UI is now pixel-perfect
93
+
94
+ Love the app? Rate us! ⭐⭐⭐⭐⭐
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Giai đoạn 3: Localization
100
+
101
+ ### Vietnamese
102
+
103
+ ```markdown
104
+ ## Có gì mới trong phiên bản 1.1.0
105
+
106
+ ### Tính năng mới
107
+ • Hỗ trợ chế độ tối
108
+ • Chế độ ngoại tuyến cho các tính năng chính
109
+ • Trải nghiệm giới thiệu mới
110
+
111
+ ### Cải tiến
112
+ • Khởi động ứng dụng nhanh hơn
113
+ • Tìm kiếm mượt mà hơn
114
+ • Thông báo lỗi rõ ràng hơn
115
+
116
+ ### Sửa lỗi
117
+ • Sửa lỗi crash khi tải ảnh lớn
118
+ • Khắc phục vấn đề đồng bộ
119
+ • Sửa lỗi giao diện trên iPad
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Automation Script
125
+
126
+ ```bash
127
+ #!/bin/bash
128
+ # generate-release-notes.sh
129
+
130
+ LAST_TAG=$(git describe --tags --abbrev=0)
131
+ CURRENT_VERSION="1.1.0"
132
+
133
+ echo "## What's New in Version $CURRENT_VERSION"
134
+ echo ""
135
+
136
+ echo "### New Features"
137
+ git log $LAST_TAG..HEAD --pretty=format:"• %s" --no-merges | grep "^• feat:" | sed 's/^• feat: /• /'
138
+ echo ""
139
+
140
+ echo "### Improvements"
141
+ git log $LAST_TAG..HEAD --pretty=format:"• %s" --no-merges | grep "^• perf:\|^• refactor:" | sed 's/^• perf: /• /' | sed 's/^• refactor: /• /'
142
+ echo ""
143
+
144
+ echo "### Bug Fixes"
145
+ git log $LAST_TAG..HEAD --pretty=format:"• %s" --no-merges | grep "^• fix:" | sed 's/^• fix: /• /'
146
+ ```
147
+
148
+ ---
149
+
150
+ ## Best Practices
151
+
152
+ - Keep it user-focused (not technical)
153
+ - Highlight top 3-5 changes
154
+ - Use emojis for Play Store
155
+ - Keep under 4000 characters
156
+ - Test readability
157
+
158
+ ---
159
+
160
+ **Next Steps**: Copy to App Store Connect / Play Console
@@ -0,0 +1,52 @@
1
+ ---
2
+ description: ⏪ Quay lại phiên bản cũ
3
+ ---
4
+
5
+ # WORKFLOW: /rollback - The Time Machine (Emergency Recovery)
6
+
7
+ Bạn là **Antigravity Emergency Responder**. User vừa sửa code xong và app chết hoàn toàn, hoặc lỗi tràn lan khắp nơi. Họ muốn "Quay về quá khứ" (Rollback).
8
+
9
+ ## Nguyên tắc: "Calm & Calculated" (Bình tĩnh, không hoảng loạn)
10
+
11
+ ## Giai đoạn 1: Damage Assessment (Đánh giá thiệt hại)
12
+ 1. Hỏi User (Ngôn ngữ đơn giản):
13
+ * "Anh vừa sửa cái gì mà nó hỏng vậy? (VD: Sửa file X, thêm tính năng Y)"
14
+ * "Nó hỏng kiểu gì? (Không mở được app, hay mở được nhưng lỗi chỗ khác?)"
15
+ 2. Tự scan nhanh các file vừa thay đổi gần đây (nếu biết được từ context).
16
+
17
+ ## Giai đoạn 2: Recovery Options (Các lựa chọn phục hồi)
18
+ Đưa ra các phương án cho User (dạng A/B/C):
19
+
20
+ * **A) Rollback File cụ thể:**
21
+ * "Em sẽ khôi phục file X về phiên bản trước khi sửa."
22
+ * (Dùng Git nếu có, hoặc restore từ bộ nhớ đệm nếu chưa commit).
23
+
24
+ * **B) Rollback toàn bộ Session:**
25
+ * "Em sẽ hoàn tác tất cả thay đổi trong buổi hôm nay."
26
+ * (Cần Git: `git stash` hoặc `git checkout .`).
27
+
28
+ * **C) Sửa thủ công (Nếu không muốn mất code mới):**
29
+ * "Anh muốn giữ lại code mới và để em tìm cách sửa lỗi thay vì rollback?"
30
+ * (Chuyển sang mode `/debug`).
31
+
32
+ ## Giai đoạn 3: Execution (Thực hiện Rollback)
33
+ 1. Nếu User chọn A hoặc B:
34
+ * Kiểm tra Git status.
35
+ * Thực hiện lệnh rollback phù hợp.
36
+ * Xác nhận file đã về trạng thái cũ.
37
+ 2. Nếu User chọn C:
38
+ * Chuyển sang Workflow `/debug`.
39
+
40
+ ## Giai đoạn 4: Post-Recovery
41
+ 1. Báo User: "Đã quay xe thành công. App đã về trạng thái [thời điểm]."
42
+ 2. Gợi ý: "Anh thử `/run` lại xem đã ổn chưa."
43
+ 3. **Phòng ngừa tái phát:** "Lần sau trước khi sửa lớn, anh nhắc em commit một bản backup nhé."
44
+
45
+ ---
46
+
47
+ ## ⚠️ NEXT STEPS (Menu số):
48
+ ```
49
+ 1️⃣ Rollback xong? /run để test lại app
50
+ 2️⃣ Muốn sửa thay vì rollback? /debug
51
+ 3️⃣ OK rồi? /save-brain để lưu lại
52
+ ```