anchi-kit 2.2.0 → 2.3.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.

Potentially problematic release.


This version of anchi-kit might be problematic. Click here for more details.

Files changed (51) hide show
  1. package/.cursor/commands/entity.md +135 -0
  2. package/.cursor/commands/memory/add.md +65 -0
  3. package/.cursor/commands/memory/load.md +74 -0
  4. package/.cursor/commands/memory/save.md +68 -0
  5. package/.cursor/commands/memory.md +141 -0
  6. package/README.md +427 -127
  7. package/package.json +1 -1
  8. package/src/cli.js +6 -0
  9. package/src/commands/memory.js +158 -0
  10. package/src/lib/contextDatabase.js +362 -0
  11. package/src/lib/memoryManager.js +250 -0
  12. package/.antigravity/agent/code-reviewer.md +0 -141
  13. package/.antigravity/agent/debugger.md +0 -75
  14. package/.antigravity/agent/docs-manager.md +0 -120
  15. package/.antigravity/agent/git-manager.md +0 -60
  16. package/.antigravity/agent/planner-researcher.md +0 -101
  17. package/.antigravity/agent/planner.md +0 -88
  18. package/.antigravity/agent/project-manager.md +0 -113
  19. package/.antigravity/agent/researcher.md +0 -174
  20. package/.antigravity/agent/solution-brainstormer.md +0 -90
  21. package/.antigravity/agent/system-architecture.md +0 -193
  22. package/.antigravity/agent/tester.md +0 -96
  23. package/.antigravity/agent/ui-ux-designer.md +0 -233
  24. package/.antigravity/agent/ui-ux-developer.md +0 -98
  25. package/.antigravity/command/cook.md +0 -7
  26. package/.antigravity/command/debug.md +0 -10
  27. package/.antigravity/command/design/3d.md +0 -65
  28. package/.antigravity/command/design/fast.md +0 -18
  29. package/.antigravity/command/design/good.md +0 -21
  30. package/.antigravity/command/design/screenshot.md +0 -22
  31. package/.antigravity/command/design/video.md +0 -22
  32. package/.antigravity/command/docs/init.md +0 -11
  33. package/.antigravity/command/docs/summarize.md +0 -10
  34. package/.antigravity/command/docs/update.md +0 -18
  35. package/.antigravity/command/fix/ci.md +0 -8
  36. package/.antigravity/command/fix/fast.md +0 -11
  37. package/.antigravity/command/fix/hard.md +0 -15
  38. package/.antigravity/command/fix/logs.md +0 -16
  39. package/.antigravity/command/fix/test.md +0 -18
  40. package/.antigravity/command/fix/types.md +0 -10
  41. package/.antigravity/command/git/cm.md +0 -5
  42. package/.antigravity/command/git/cp.md +0 -4
  43. package/.antigravity/command/plan/ci.md +0 -12
  44. package/.antigravity/command/plan/two.md +0 -13
  45. package/.antigravity/command/plan.md +0 -10
  46. package/.antigravity/command/test.md +0 -7
  47. package/.antigravity/command/watzup.md +0 -8
  48. package/ANTIGRAVITY.md +0 -36
  49. package/GEMINI.md +0 -75
  50. package/scripts/prepare-release-assets.cjs +0 -97
  51. package/scripts/send-discord-release.cjs +0 -204
package/README.md CHANGED
@@ -1,134 +1,363 @@
1
1
  # anchi-kit
2
2
 
3
- Template toàn diện cho việc phát triển webapp với **Cursor AI**.
3
+ **Cursor AI Toolkit** - Bộ công cụ hoàn chỉnh hỗ trợ làm việc với Cursor AI cho cá nhân và team.
4
4
 
5
- > **Bắt đầu:** `/start` - Entry point cho mọi dự án
5
+ > 🚀 **Version 2.2.0** | 70+ commands | 6 profiles | 3 presets
6
6
 
7
7
  ---
8
8
 
9
- ## 🎯 3 Architecture Presets
9
+ ## 📖 Mục Lục
10
10
 
11
- | Preset | Khi dùng | Command |
12
- |--------|----------|---------|
13
- | 🚀 **Rapid** | Demo, MVP, hackathon (< 2 tuần) | `/use-preset rapid` |
14
- | 🏢 **Professional** | Sản phẩm thương mại (1-6 tháng) | `/use-preset professional` |
15
- | 🏛️ **Enterprise** | Dự án lớn, DDD (> 6 tháng) | `/use-preset enterprise` |
11
+ - [Ứng Dụng](#-ứng-dụng)
12
+ - [Lợi Ích](#-lợi-ích)
13
+ - [Cài Đặt](#-cài-đặt)
14
+ - [Pipeline Nhân](#-pipeline-cho-cá-nhân)
15
+ - [Pipeline Team](#-pipeline-cho-team)
16
+ - [Commands](#-tất-cả-commands)
17
+ - [Presets](#️-architecture-presets)
18
+ - [Configuration](#-configuration)
16
19
 
17
- ```
18
- 🚀 Rapid ──────► 🏢 Professional ──────► 🏛️ Enterprise
19
- (SQLite) (PostgreSQL) (DDD + Events)
20
- (Flat) (Modules) (Full DDD)
21
- ```
20
+ ---
21
+
22
+ ## 🎯 Ứng Dụng
23
+
24
+ ### Ai nên dùng?
25
+
26
+ | Đối tượng | Ứng dụng | Lợi ích |
27
+ |-----------|----------|---------|
28
+ | **Cá nhân** | Side project, freelance | Coding nhanh x3, AI review |
29
+ | **Startup** | MVP, prototype | Ship trong 1-2 tuần |
30
+ | **Team nhỏ** | 2-10 người | Workflow chuẩn, code consistent |
31
+ | **Enterprise** | Dự án lớn | DDD patterns, maintainable |
32
+
33
+ ### Phù hợp với dự án nào?
34
+
35
+ - ✅ Web app (Next.js, React, Vue)
36
+ - ✅ API backend (Node.js, Express)
37
+ - ✅ Full-stack application
38
+ - ✅ SaaS products
39
+ - ✅ E-commerce
40
+ - ✅ Dashboard & Admin panel
41
+
42
+ ---
43
+
44
+ ## ✨ Lợi Ích
45
+
46
+ ### Cho Cá Nhân
47
+
48
+ | Lợi ích | Chi tiết |
49
+ |---------|----------|
50
+ | ⚡ **Tốc độ x3** | AI tự động plan, implement, test - bạn chỉ review |
51
+ | 🧠 **Context thông minh** | AI hiểu codebase qua docs và skills |
52
+ | 🔄 **Auto mode** | `/plan:auto` và `/cook:auto` giảm 80% input |
53
+ | 📝 **Documentation** | Tự động update docs khi code thay đổi |
54
+ | 🐛 **Debug nhanh** | AI phân tích logs, suggest fix |
55
+ | 🎨 **Code quality** | Auto review, suggest improvements |
56
+
57
+ ### Cho Team
22
58
 
23
- **Các preset tương thích - dễ dàng upgrade khi cần!**
59
+ | Lợi ích | Chi tiết |
60
+ |---------|----------|
61
+ | 📋 **Workflow chuẩn** | Tất cả dùng chung quy trình, commands |
62
+ | 🔍 **Code review x2** | AI review trước, human review sau |
63
+ | 🚀 **Onboarding 1 ngày** | Member mới productive ngay |
64
+ | 📊 **Consistency** | Code style, naming, patterns nhất quán |
65
+ | 🤝 **Collaboration** | Plan approval, PR templates |
66
+ | 📈 **Scalable** | Migrate từ rapid → professional → enterprise |
24
67
 
25
68
  ---
26
69
 
27
- ## 🚀 Quick Start
70
+ ## 🚀 Cài Đặt
28
71
 
29
- ### Phương thức 1: Smart Install (Khuyến nghị)
72
+ ### Yêu Cầu
73
+ - Node.js 18+
74
+ - Git
75
+ - Cursor IDE
30
76
 
77
+ ### Cài Đặt Smart (Khuyến nghị)
31
78
  ```bash
32
- cd your-existing-project
79
+ cd your-project
33
80
  npx anchi-kit init
34
81
  ```
35
82
 
36
- > 💡 **v2.0**: Chọn role profile + tech auto-detect + skill packs
37
-
38
- **Profiles sẵn:**
39
- | Profile | tả |
40
- |---------|-------|
41
- | Minimal | Core commands (5 files) |
42
- | Developer | Daily coding |
43
- | UI/UX | Frontend & design |
44
- | Full Stack | Everything |
45
-
46
- ### Phương thức 2: Cài Nhanh
83
+ Wizard sẽ hỏi:
84
+ 1. Chọn profile (Developer, UI/UX, Lead, etc.)
85
+ 2. Auto-detect tech stack
86
+ 3. Suggest skill packs phù hợp
47
87
 
88
+ ### Cài Đặt Nhanh
48
89
  ```bash
49
- npx anchi-kit install # Tất cả files
90
+ npx anchi-kit install # Cài tất cả
50
91
  npx anchi-kit uninstall # Gỡ cài đặt
51
92
  ```
52
93
 
53
- ### Phương thức 3: Tạo Dự Án Mới
94
+ ### Kiểm Tra Setup
95
+ ```bash
96
+ npx anchi-kit doctor
97
+ ```
98
+
99
+ Output:
100
+ ```
101
+ 🩺 anchi-kit Doctor
102
+ ═══════════════════════════════════════════════════════════════
103
+
104
+ ✅ .cursor folder
105
+ ✅ Commands (74 files)
106
+ ✅ Agents (12 files)
107
+ ✅ .cursorrules
108
+ ✅ Config file
109
+
110
+ ✅ All checks passed! anchi-kit is healthy.
111
+ ```
54
112
 
113
+ ---
114
+
115
+ ## 👤 Pipeline Cho Cá Nhân
116
+
117
+ ### Bước 1: Setup (1 lần)
55
118
  ```bash
56
- git clone https://github.com/ANCHI-STE/anchi-webkit-dev.git my-project
57
- cd my-project && cursor .
119
+ npx anchi-kit init
120
+ Chọn: Developer hoặc Full Stack profile
121
+ → Mở project trong Cursor
58
122
  ```
59
123
 
60
- ### Bước tiếp theo
124
+ ### Bước 2: Khởi Động
125
+ ```
126
+ Mở Chat Panel (Ctrl+L)
127
+ Gõ: /start
128
+
129
+ AI hỏi:
130
+ 1️⃣ Dự án có sẵn - AI scan codebase
131
+ 2️⃣ Dự án mới - Chọn preset
132
+ ```
61
133
 
62
- Mở **Chat Panel** (`Ctrl+L`) chạy:
134
+ ### Bước 3: Workflow Hàng Ngày
63
135
 
64
136
  ```
65
- /start
137
+ 📋 STANDARD WORKFLOW
138
+
139
+ ┌─────────────────────────────────────────────────────────────┐
140
+ │ /plan "Feature" → AI tạo kế hoạch chi tiết │
141
+ │ ↓ │
142
+ │ Review plan → OK hoặc feedback để điều chỉnh │
143
+ │ ↓ │
144
+ │ /cook "Phase 1" → AI implement code │
145
+ │ ↓ │
146
+ │ /test → AI viết và chạy tests │
147
+ │ ↓ │
148
+ │ /review → AI review code │
149
+ │ ↓ │
150
+ │ git commit & push → Done! 🎉 │
151
+ └─────────────────────────────────────────────────────────────┘
66
152
  ```
67
153
 
68
- AI sẽ hỏi:
69
- - **"1" (Dự án có sẵn)** → Auto scan → Fill docs
70
- - **"2" (Dự án mới)** → Chọn preset → Setup
154
+ ### Bước 4: Auto Mode (Nhanh hơn)
71
155
 
72
156
  ```
73
- /plan "First feature"
74
- /cook "Phase 1"
157
+ 📋 AUTO-PILOT WORKFLOW
158
+
159
+ /plan:auto "Add user authentication"
160
+
161
+ AI tự động:
162
+ [1/4] 🔍 Analyzing...
163
+ [2/4] 📝 Creating plan...
164
+ [3/4] ✅ Auto-approved (simple task)
165
+ [4/4] 🚀 Starting implementation...
166
+
167
+ /cook:auto "Continue"
168
+
169
+ AI implement liên tục, chỉ hỏi khi:
170
+ - Gặp error
171
+ - Tests fail
172
+ - Cần clarification
75
173
  ```
76
174
 
175
+ ### Tips Cá Nhân
176
+
177
+ | Situation | Command |
178
+ |-----------|---------|
179
+ | Feature mới | `/plan` → `/cook` |
180
+ | Fix bug nhanh | `/fix:fast` |
181
+ | Không biết bắt đầu | `/scout` → `/suggest` |
182
+ | Tìm hiểu code | `/context "topic"` |
183
+
77
184
  ---
78
185
 
79
- ## Commands Hay Dùng
186
+ ## 👥 Pipeline Cho Team
80
187
 
81
- | Command | tả |
82
- |---------|-------|
83
- | `/start` | **🔥 Entry point** - Bắt đầu mọi dự án |
84
- | `/use-preset [name]` | Chọn architecture (rapid/professional/enterprise) |
85
- | `/plan "..."` | Lập kế hoạch feature |
86
- | `/plan:auto "..."` | Auto-pilot planning |
87
- | `/cook "..."` | Implement theo plan |
88
- | `/cook:auto "..."` | Auto-pilot implementation |
89
- | `/scout "..."` | Tìm hiểu codebase |
90
- | `/fix "..."` | Sửa bug |
91
- | `/generate:page` | **NEW** Tạo page boilerplate |
92
- | `/generate:api` | **NEW** Tạo API route |
93
- | `/generate:component` | **NEW** Tạo component |
94
- | `/context` | **NEW** Xem AI context |
95
- | `/suggest` | **NEW** AI gợi ý action |
96
-
97
- ---
98
-
99
- ## 📂 Cấu Trúc Template
100
-
101
- ```
102
- anchi-kit/
103
-
104
- ├── src/ # CLI source code
105
- │ └── cli.js # npx anchi-kit install
106
-
107
- ├── scripts/ # Setup & install scripts
108
- │ ├── install.ps1 # Windows install
109
- │ ├── install.sh # macOS/Linux install
110
- │ └── setup-*.ps1/.sh # Preset setup scripts
111
-
112
- ├── presets/ # 3 Architecture Presets
113
- │ ├── rapid-mvp/ # 🚀 Quick development
114
- │ ├── professional/ # 🏢 Scalable production
115
- │ ├── enterprise/ # 🏛️ Full DDD
116
- │ └── MIGRATION_GUIDE.md # Hướng dẫn migrate
117
-
118
- ├── .cursor/ # Cursor AI config
119
- │ ├── agents/ # AI agents
120
- │ ├── commands/ # Slash commands
121
- │ └── skills/ # Knowledge modules
122
-
123
- ├── docs/ # Documentation templates
124
- ├── .cursorrules # Current preset rules
125
- ├── CURSOR.md # AI instructions
126
- └── README.md # File này
127
- ```
128
-
129
- ---
130
-
131
- ## 🎯 Preset Comparison
188
+ ### Bước 1: Lead Setup
189
+
190
+ ```bash
191
+ # Lead cài đặt đầu tiên
192
+ npx anchi-kit init
193
+ Chọn: Lead profile
194
+ Config team.yaml
195
+ Push to repo
196
+ ```
197
+
198
+ ### Bước 2: Config Team
199
+
200
+ ```yaml
201
+ # .cursor/team.yaml
202
+ team:
203
+ name: "My Team"
204
+ project: "E-commerce Platform"
205
+
206
+ members:
207
+ - name: Duong
208
+ role: lead
209
+ github: "@duong"
210
+ - name: Nam
211
+ role: frontend
212
+ - name: Linh
213
+ role: backend
214
+
215
+ roles:
216
+ lead:
217
+ profile: fullstack
218
+ can_approve: true
219
+ frontend:
220
+ profile: ui_ux
221
+ backend:
222
+ profile: developer
223
+
224
+ workflows:
225
+ feature:
226
+ require_plan: true
227
+ require_review: true
228
+ approvers: [lead]
229
+ hotfix:
230
+ require_plan: false
231
+ require_review: false
232
+ ```
233
+
234
+ ### Bước 3: Members Setup
235
+
236
+ ```bash
237
+ # Mỗi member clone và cài đặt
238
+ git clone [repo]
239
+ cd project
240
+ npx anchi-kit init
241
+ → Chọn profile theo role của mình
242
+ ```
243
+
244
+ ### Bước 4: Team Workflow
245
+
246
+ ```
247
+ 📋 TEAM WORKFLOW
248
+
249
+ ┌─────────────────────────────────────────────────────────────┐
250
+ │ DEVELOPER LEAD │
251
+ ├─────────────────────────────────────────────────────────────┤
252
+ │ /plan "Feature" │
253
+ │ ↓ │
254
+ │ Gửi plan (Slack/PR) ─────────→ Review plan │
255
+ │ ↓ ↓ │
256
+ │ Chờ approve ←───────── ✅ Approve │
257
+ │ ↓ │
258
+ │ /cook "Phase 1" │
259
+ │ ↓ │
260
+ │ /review │
261
+ │ ↓ │
262
+ │ Create PR ─────────→ Review PR │
263
+ │ ↓ ↓ │
264
+ │ Done! 🎉 ←───────── ✅ Merge │
265
+ └─────────────────────────────────────────────────────────────┘
266
+ ```
267
+
268
+ ### Workflow Templates
269
+
270
+ | Template | Dùng khi | Steps |
271
+ |----------|----------|-------|
272
+ | `feature.yaml` | Feature mới | plan → approve → cook → review → PR |
273
+ | `hotfix.yaml` | Fix gấp | fix:fast → test → commit |
274
+ | `release.yaml` | Release | summary → changelog → test → tag |
275
+
276
+ ---
277
+
278
+ ## ⚡ Tất Cả Commands
279
+
280
+ ### 🎯 Core Commands
281
+
282
+ | Command | Mô tả | Khi dùng |
283
+ |---------|-------|----------|
284
+ | `/start` | Entry point | Bắt đầu dự án |
285
+ | `/use-preset [name]` | Chọn preset | Setup architecture |
286
+ | `/summary` | Tổng hợp project info | Update docs |
287
+
288
+ ### 📋 Planning Commands
289
+
290
+ | Command | Mô tả | Khi dùng |
291
+ |---------|-------|----------|
292
+ | `/plan "..."` | Lập kế hoạch chi tiết | Feature mới |
293
+ | `/plan:fast` | Plan nhanh | Task đơn giản |
294
+ | `/plan:auto` | Auto-pilot planning | Muốn nhanh |
295
+ | `/plan:hard` | Plan siêu chi tiết | Task phức tạp |
296
+ | `/brainstorm "..."` | Brainstorm ideas | Explore options |
297
+
298
+ ### 💻 Coding Commands
299
+
300
+ | Command | Mô tả | Khi dùng |
301
+ |---------|-------|----------|
302
+ | `/cook "..."` | Implement theo plan | Standard workflow |
303
+ | `/cook:auto` | Auto-pilot implement | Muốn nhanh |
304
+ | `/code` | Quick code | Thay đổi nhỏ |
305
+ | `/debug` | Debug issue | Có bug phức tạp |
306
+
307
+ ### 🛠️ Fixing Commands
308
+
309
+ | Command | Mô tả | Khi dùng |
310
+ |---------|-------|----------|
311
+ | `/fix "..."` | Phân tích và sửa bug | Bug thường |
312
+ | `/fix:fast` | Sửa nhanh | Bug đơn giản |
313
+ | `/fix:types` | Sửa TypeScript errors | TS errors |
314
+ | `/fix:ui` | Sửa UI/CSS | UI broken |
315
+ | `/fix:test` | Sửa test failures | Tests fail |
316
+
317
+ ### 🔍 Exploration Commands
318
+
319
+ | Command | Mô tả | Khi dùng |
320
+ |---------|-------|----------|
321
+ | `/scout "..."` | Tìm hiểu codebase | Code mới |
322
+ | `/context` | Xem AI context | Debug AI |
323
+ | `/context "topic"` | Find related files | Tìm files |
324
+ | `/suggest` | AI gợi ý action | Không biết làm gì |
325
+
326
+ ### 📝 Generation Commands
327
+
328
+ | Command | Mô tả | Khi dùng |
329
+ |---------|-------|----------|
330
+ | `/generate:page` | Tạo page | New page |
331
+ | `/generate:api` | Tạo API route | New endpoint |
332
+ | `/generate:component` | Tạo component | New component |
333
+
334
+ ### 🎨 Design Commands
335
+
336
+ | Command | Mô tả | Khi dùng |
337
+ |---------|-------|----------|
338
+ | `/design-ui "..."` | Thiết kế UI | Design trước code |
339
+ | `/design-domain "..."` | Thiết kế domain | DDD |
340
+
341
+ ### ✅ Quality Commands
342
+
343
+ | Command | Mô tả | Khi dùng |
344
+ |---------|-------|----------|
345
+ | `/review` | Code review | Trước commit |
346
+ | `/test` | Viết tests | After implement |
347
+ | `/docs:update` | Update docs | After changes |
348
+
349
+ ### 📊 Git Commands
350
+
351
+ | Command | Mô tả | Khi dùng |
352
+ |---------|-------|----------|
353
+ | `/git:cm` | Smart commit message | Commit |
354
+ | `/git:pr` | Tạo PR description | Create PR |
355
+
356
+ ---
357
+
358
+ ## 🏗️ Architecture Presets
359
+
360
+ ### So Sánh
132
361
 
133
362
  | Feature | 🚀 Rapid | 🏢 Professional | 🏛️ Enterprise |
134
363
  |---------|----------|-----------------|----------------|
@@ -140,63 +369,134 @@ anchi-kit/
140
369
  | **Team Size** | 1-2 | 3-10 | 10+ |
141
370
  | **Timeline** | < 2 tuần | 1-6 tháng | > 6 tháng |
142
371
 
143
- ---
372
+ ### Chọn Preset
144
373
 
145
- ## 🔄 Migration
374
+ ```bash
375
+ /use-preset rapid # Demo, MVP, hackathon
376
+ /use-preset professional # Sản phẩm thương mại
377
+ /use-preset enterprise # Dự án lớn, DDD
378
+ ```
146
379
 
147
- Khi cần upgrade:
380
+ ### Migrate
148
381
 
382
+ ```bash
383
+ /migrate-to professional # Upgrade từ rapid
384
+ /migrate-to enterprise # Upgrade từ professional
149
385
  ```
150
- # Professional → Enterprise
151
- /migrate-to enterprise
152
- ```
153
-
154
- Xem chi tiết: [MIGRATION_GUIDE.md](./presets/MIGRATION_GUIDE.md)
155
386
 
156
387
  ---
157
388
 
158
- ## 📖 Tài Liệu
389
+ ## ⚙️ Configuration
159
390
 
160
- | File | Mô tả |
161
- |------|-------|
162
- | [BEGINNER_GUIDE_VI.md](./BEGINNER_GUIDE_VI.md) | Hướng dẫn người mới |
163
- | [CONTRIBUTING.md](./CONTRIBUTING.md) | Hướng dẫn đóng góp |
164
- | [docs/WORKFLOW.md](./docs/WORKFLOW.md) | **🔥 Pipeline + Git workflow** |
165
- | [docs/FAQ.md](./docs/FAQ.md) | Câu hỏi thường gặp |
166
- | [CURSOR.md](./CURSOR.md) | AI instructions |
167
- | [CHANGELOG.md](./CHANGELOG.md) | Version history |
168
- | [presets/](./presets/) | Architecture presets |
169
- | [.cursor/skills/SKILLS_INDEX.md](./.cursor/skills/SKILLS_INDEX.md) | Skill mapping |
391
+ ### anchi-kit.config.yaml
392
+
393
+ ```yaml
394
+ # .cursor/anchi-kit.config.yaml
395
+ version: "2.2"
396
+ profile: developer
397
+
398
+ model_preference:
399
+ default: auto # Tự chọn model
400
+ complex: opus # Task phức tạp
401
+ economy: haiku # Task đơn giản
402
+
403
+ features:
404
+ auto_commit: false # Tự commit sau /cook
405
+ progress_indicators: true
406
+ summary_cards: true
407
+ quick_actions: true
408
+
409
+ team:
410
+ role: frontend # Role của bạn trong team
411
+ notifications: true
412
+
413
+ hooks:
414
+ enabled: false # Git hooks
415
+ pre_commit: [review:fast]
416
+ post_merge: [docs:update]
417
+ ```
418
+
419
+ ### Git Hooks
170
420
 
171
- ### Setup Scripts
421
+ ```bash
422
+ # Cài đặt hooks
423
+ ./scripts/install-hooks.ps1 # Windows
424
+ ./scripts/install-hooks.sh # macOS/Linux
425
+ ```
172
426
 
173
- | OS | Scripts |
174
- |----|---------|
175
- | Windows | `scripts/setup-*.ps1` |
176
- | macOS/Linux | `scripts/setup-*.sh` |
427
+ Hooks sẽ remind:
428
+ - Pre-commit: `/review:fast`
429
+ - Post-merge: `/docs:update`
177
430
 
178
431
  ---
179
432
 
180
- ## 📋 Workflow Chuẩn
433
+ ## 📁 Cấu Trúc Files
181
434
 
182
435
  ```
183
- 1. /use-preset [name] → Chọn architecture
184
- 2. Điền docs/ tả dự án
185
- 3. /plan "feature" → Lập kế hoạch
186
- 4. /cook "phase" → Code
187
- 5. /review & /test → Quality
188
- 6. git commit & push → Deploy
436
+ .cursor/
437
+ ├── commands/ # 70+ slash commands
438
+ │ ├── plan.md, cook.md, fix.md, ...
439
+ │ └── generate/ # Generation commands
440
+ ├── agents/ # 12 AI agents
441
+ │ ├── planner.md
442
+ │ ├── fullstack-developer.md
443
+ │ └── ...
444
+ ├── skills/ # Knowledge modules
445
+ │ ├── frontend-development/
446
+ │ ├── backend-patterns/
447
+ │ └── ...
448
+ ├── anchi-kit.config.yaml # User config
449
+ ├── team.yaml # Team config
450
+ ├── hooks.yaml # Git hooks config
451
+ └── workflows/ # Workflow templates
452
+ ├── feature.yaml
453
+ ├── hotfix.yaml
454
+ └── release.yaml
189
455
  ```
190
456
 
191
457
  ---
192
458
 
459
+ ## 🛠️ CLI Commands
460
+
461
+ | Command | Mô tả |
462
+ |---------|-------|
463
+ | `npx anchi-kit init` | Smart Install (chọn profile) |
464
+ | `npx anchi-kit install` | Cài tất cả files |
465
+ | `npx anchi-kit update` | Kiểm tra cập nhật |
466
+ | `npx anchi-kit uninstall` | Gỡ cài đặt |
467
+ | `npx anchi-kit doctor` | Kiểm tra setup health |
468
+
469
+ ---
470
+
193
471
  ## 🆘 Troubleshooting
194
472
 
195
473
  | Vấn đề | Giải pháp |
196
474
  |--------|-----------|
197
- | Commands không hoạt động | Dùng trong Chat Panel (`Ctrl+L`), restart Cursor |
198
- | AI không hiểu dự án | Tag files: `@.cursorrules @docs/PROJECT.md` |
199
- | Không biết chọn preset | Hỏi Team Lead hoặc dùng `professional` |
475
+ | Commands không work | Dùng trong Chat Panel (Ctrl+L), không phải Terminal |
476
+ | AI không hiểu context | Tag files: `@.cursorrules @docs/PROJECT.md` |
477
+ | Không biết bắt đầu | Chạy `/start` |
478
+ | Setup có vấn đề | Chạy `npx anchi-kit doctor` |
479
+ | Muốn reset | Chạy `npx anchi-kit uninstall` rồi `init` lại |
480
+
481
+ ---
482
+
483
+ ## 🔗 Links
484
+
485
+ - **GitHub:** https://github.com/ANCHI-STE/anchi-webkit-dev
486
+ - **npm:** https://npmjs.com/package/anchi-kit
487
+ - [Changelog](./CHANGELOG.md)
488
+
489
+ ---
490
+
491
+ ## 📖 Tài Liệu Thêm
492
+
493
+ | File | Mô tả |
494
+ |------|-------|
495
+ | [USAGE_GUIDE.md](./USAGE_GUIDE.md) | Hướng dẫn sử dụng chi tiết |
496
+ | [BEGINNER_GUIDE_VI.md](./BEGINNER_GUIDE_VI.md) | Hướng dẫn người mới (Tiếng Việt) |
497
+ | [docs/ONBOARDING.md](./docs/ONBOARDING.md) | Checklist onboarding |
498
+ | [docs/WORKFLOW.md](./docs/WORKFLOW.md) | Team workflow chi tiết |
499
+ | [docs/FAQ.md](./docs/FAQ.md) | Câu hỏi thường gặp |
200
500
 
201
501
  ---
202
502
 
@@ -206,4 +506,4 @@ MIT License
206
506
 
207
507
  ---
208
508
 
209
- **Built with ❤️ by Anchi Team**
509
+ **v2.2.0** | Built with ❤️ by Anchi Team
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anchi-kit",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Cursor AI toolkit - Install into any existing project. Includes commands, agents, skills, and architecture presets.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -269,6 +269,11 @@ async function main() {
269
269
  await doctor();
270
270
  break;
271
271
 
272
+ case 'memory':
273
+ const { memory } = require('./commands/memory');
274
+ await memory(args[1], args[2]);
275
+ break;
276
+
272
277
  default:
273
278
  showHelp();
274
279
  break;
@@ -285,6 +290,7 @@ function showHelp() {
285
290
  log.success(' npx anchi-kit update Kiểm tra cập nhật');
286
291
  log.success(' npx anchi-kit uninstall Gỡ cài đặt');
287
292
  log.success(' npx anchi-kit doctor Kiểm tra setup health');
293
+ log.success(' npx anchi-kit memory Quản lý project context');
288
294
  console.log('');
289
295
  console.log('Documentation:');
290
296
  console.log(' https://github.com/ANCHI-STE/anchi-webkit-dev');