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.
- package/.cursor/commands/entity.md +135 -0
- package/.cursor/commands/memory/add.md +65 -0
- package/.cursor/commands/memory/load.md +74 -0
- package/.cursor/commands/memory/save.md +68 -0
- package/.cursor/commands/memory.md +141 -0
- package/README.md +427 -127
- package/package.json +1 -1
- package/src/cli.js +6 -0
- package/src/commands/memory.js +158 -0
- package/src/lib/contextDatabase.js +362 -0
- package/src/lib/memoryManager.js +250 -0
- package/.antigravity/agent/code-reviewer.md +0 -141
- package/.antigravity/agent/debugger.md +0 -75
- package/.antigravity/agent/docs-manager.md +0 -120
- package/.antigravity/agent/git-manager.md +0 -60
- package/.antigravity/agent/planner-researcher.md +0 -101
- package/.antigravity/agent/planner.md +0 -88
- package/.antigravity/agent/project-manager.md +0 -113
- package/.antigravity/agent/researcher.md +0 -174
- package/.antigravity/agent/solution-brainstormer.md +0 -90
- package/.antigravity/agent/system-architecture.md +0 -193
- package/.antigravity/agent/tester.md +0 -96
- package/.antigravity/agent/ui-ux-designer.md +0 -233
- package/.antigravity/agent/ui-ux-developer.md +0 -98
- package/.antigravity/command/cook.md +0 -7
- package/.antigravity/command/debug.md +0 -10
- package/.antigravity/command/design/3d.md +0 -65
- package/.antigravity/command/design/fast.md +0 -18
- package/.antigravity/command/design/good.md +0 -21
- package/.antigravity/command/design/screenshot.md +0 -22
- package/.antigravity/command/design/video.md +0 -22
- package/.antigravity/command/docs/init.md +0 -11
- package/.antigravity/command/docs/summarize.md +0 -10
- package/.antigravity/command/docs/update.md +0 -18
- package/.antigravity/command/fix/ci.md +0 -8
- package/.antigravity/command/fix/fast.md +0 -11
- package/.antigravity/command/fix/hard.md +0 -15
- package/.antigravity/command/fix/logs.md +0 -16
- package/.antigravity/command/fix/test.md +0 -18
- package/.antigravity/command/fix/types.md +0 -10
- package/.antigravity/command/git/cm.md +0 -5
- package/.antigravity/command/git/cp.md +0 -4
- package/.antigravity/command/plan/ci.md +0 -12
- package/.antigravity/command/plan/two.md +0 -13
- package/.antigravity/command/plan.md +0 -10
- package/.antigravity/command/test.md +0 -7
- package/.antigravity/command/watzup.md +0 -8
- package/ANTIGRAVITY.md +0 -36
- package/GEMINI.md +0 -75
- package/scripts/prepare-release-assets.cjs +0 -97
- package/scripts/send-discord-release.cjs +0 -204
package/README.md
CHANGED
|
@@ -1,134 +1,363 @@
|
|
|
1
1
|
# anchi-kit
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
>
|
|
5
|
+
> 🚀 **Version 2.2.0** | 70+ commands | 6 profiles | 3 presets
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 📖 Mục Lục
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
- [Ứng Dụng](#-ứng-dụng)
|
|
12
|
+
- [Lợi Ích](#-lợi-ích)
|
|
13
|
+
- [Cài Đặt](#-cài-đặt)
|
|
14
|
+
- [Pipeline Cá 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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
## 🚀
|
|
70
|
+
## 🚀 Cài Đặt
|
|
28
71
|
|
|
29
|
-
###
|
|
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-
|
|
79
|
+
cd your-project
|
|
33
80
|
npx anchi-kit init
|
|
34
81
|
```
|
|
35
82
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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 #
|
|
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
|
-
###
|
|
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
|
-
|
|
57
|
-
|
|
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
|
|
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
|
-
|
|
134
|
+
### Bước 3: Workflow Hàng Ngày
|
|
63
135
|
|
|
64
136
|
```
|
|
65
|
-
|
|
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
|
-
|
|
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
|
-
|
|
74
|
-
|
|
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
|
-
##
|
|
186
|
+
## 👥 Pipeline Cho Team
|
|
80
187
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
389
|
+
## ⚙️ Configuration
|
|
159
390
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
421
|
+
```bash
|
|
422
|
+
# Cài đặt hooks
|
|
423
|
+
./scripts/install-hooks.ps1 # Windows
|
|
424
|
+
./scripts/install-hooks.sh # macOS/Linux
|
|
425
|
+
```
|
|
172
426
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
-
##
|
|
433
|
+
## 📁 Cấu Trúc Files
|
|
181
434
|
|
|
182
435
|
```
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
|
198
|
-
| AI không hiểu
|
|
199
|
-
| Không biết
|
|
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
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');
|