anchi-toolkit 1.0.0 → 1.2.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/.ai-audit/README.md +53 -0
- package/.ai-memory/README.md +137 -0
- package/.ai-memory/context.json +26 -0
- package/.ai-memory/decisions.json +3 -0
- package/.antigravity/agent-skill-index.yaml +24 -0
- package/.antigravity/anchi-toolkit.config.yaml +12 -0
- package/.antigravity/docs/README.md +9 -0
- package/.antigravity/skills/_template.md +30 -0
- package/.antigravity/team.yaml +154 -0
- package/.antigravity/workflows/config.md +144 -0
- package/.antigravity/workflows/demo.md +50 -0
- package/.antigravity/workflows/help.md +11 -4
- package/.antigravity/workflows/skill-learn.md +48 -0
- package/.antigravity/workflows/start.md +38 -117
- package/.antigravity/workflows/status.md +8 -8
- package/.antigravity/workflows/undo.md +7 -7
- package/.cursor/agent-skill-index.yaml +39 -0
- package/.cursor/agents/graph-architect.md +30 -0
- package/.cursor/agents/trend-watcher.md +24 -0
- package/.cursor/commands/config.md +144 -0
- package/.cursor/commands/demo.md +50 -0
- package/.cursor/commands/do.md +127 -90
- package/.cursor/commands/help.md +23 -16
- package/.cursor/commands/skill-learn.md +48 -0
- package/.cursor/commands/start.md +38 -117
- package/.cursor/commands/status.md +19 -19
- package/.cursor/commands/undo.md +19 -19
- package/.cursor/orchestration.yaml +18 -0
- package/.cursor/skills/_template.md +30 -0
- package/ANTIGRAVITY.md +84 -0
- package/CURSOR.md +50 -157
- package/LICENSE +17 -14
- package/README.md +64 -89
- package/docs/ALL_COMMANDS.md +31 -73
- package/docs/CI_CD.md +44 -0
- package/docs/COMPARISON.md +65 -0
- package/docs/ROADMAP.md +45 -161
- package/docs/WORKFLOW.md +56 -317
- package/package.json +9 -2
- package/presets/ci-cd/ai-review.yml +49 -0
- package/scripts/install-hooks.ps1 +21 -7
- package/scripts/install-hooks.sh +18 -3
- package/src/cli.js +111 -59
- package/src/commands/clean.js +87 -0
- package/src/commands/doctor.js +88 -21
- package/src/commands/init.js +22 -2
- package/src/commands/uninstall.js +17 -2
- package/src/lib/configManager.js +20 -5
- package/src/lib/memoryManager.js +7 -4
- package/docs/CODEBASE.md +0 -178
- package/docs/COMMAND_MAPPING.md +0 -217
- package/docs/FAQ.md +0 -174
- package/docs/ONBOARDING.md +0 -111
- package/docs/ORCHESTRATION_RUNTIME.md +0 -173
- package/docs/WALKTHROUGH.md +0 -192
- /package/.cursor/{anchi-kit.config.yaml → anchi-toolkit.config.yaml} +0 -0
package/docs/CODEBASE.md
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# Codebase Summary - Technical Details
|
|
2
|
-
|
|
3
|
-
> 💻 **Purpose:** TECHNICAL document - HOW the code is structured
|
|
4
|
-
>
|
|
5
|
-
> **For planning/requirements:** See [PROJECT.md](./PROJECT.md)
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 📊 Quick Stats
|
|
10
|
-
|
|
11
|
-
| Metric | Value |
|
|
12
|
-
|--------|-------|
|
|
13
|
-
| **Total Files** | [X] |
|
|
14
|
-
| **Components** | [X] |
|
|
15
|
-
| **API Routes** | [X] |
|
|
16
|
-
| **DB Models** | [X] |
|
|
17
|
-
| **Last Updated** | [DD/MM/YYYY] |
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 📦 Tech Stack
|
|
22
|
-
|
|
23
|
-
### Frontend
|
|
24
|
-
|
|
25
|
-
| Technology | Version | Purpose |
|
|
26
|
-
|------------|---------|---------|
|
|
27
|
-
| Next.js | 14.x | Framework |
|
|
28
|
-
| TypeScript | 5.x | Language |
|
|
29
|
-
| TailwindCSS | 3.x | Styling |
|
|
30
|
-
| shadcn/ui | - | UI Components |
|
|
31
|
-
|
|
32
|
-
### Backend
|
|
33
|
-
|
|
34
|
-
| Technology | Version | Purpose |
|
|
35
|
-
|------------|---------|---------|
|
|
36
|
-
| Next.js API | 14.x | API Routes |
|
|
37
|
-
| Prisma | 5.x | ORM |
|
|
38
|
-
| Zod | 3.x | Validation |
|
|
39
|
-
|
|
40
|
-
### Database
|
|
41
|
-
|
|
42
|
-
| Type | Technology |
|
|
43
|
-
|------|------------|
|
|
44
|
-
| Primary | [PostgreSQL/SQLite] |
|
|
45
|
-
| Cache | [Redis] (optional) |
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 📂 Project Structure
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
src/
|
|
53
|
-
├── app/ # Next.js App Router
|
|
54
|
-
│ ├── (public)/ # Public routes
|
|
55
|
-
│ ├── (auth)/ # Auth routes
|
|
56
|
-
│ └── api/ # API routes
|
|
57
|
-
├── components/
|
|
58
|
-
│ ├── ui/ # Base UI components
|
|
59
|
-
│ └── features/ # Feature components
|
|
60
|
-
├── lib/ # Utilities
|
|
61
|
-
├── modules/ # Feature modules
|
|
62
|
-
├── hooks/ # Custom hooks
|
|
63
|
-
└── types/ # TypeScript types
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 🔧 Core Modules
|
|
69
|
-
|
|
70
|
-
### [Module 1: Authentication]
|
|
71
|
-
|
|
72
|
-
**Path:** `src/modules/auth/` or `src/lib/auth/`
|
|
73
|
-
|
|
74
|
-
| File | Purpose |
|
|
75
|
-
|------|---------|
|
|
76
|
-
| `auth.ts` | Auth config |
|
|
77
|
-
| `providers.ts` | OAuth providers |
|
|
78
|
-
|
|
79
|
-
### [Module 2: ...]
|
|
80
|
-
|
|
81
|
-
**Path:** `src/modules/[name]/`
|
|
82
|
-
|
|
83
|
-
| File | Purpose |
|
|
84
|
-
|------|---------|
|
|
85
|
-
| ... | ... |
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 🗄️ Database Models
|
|
90
|
-
|
|
91
|
-
| Model | Key Fields | Relations |
|
|
92
|
-
|-------|------------|-----------|
|
|
93
|
-
| User | id, email, name | Account, Session |
|
|
94
|
-
| [Model] | [fields] | [relations] |
|
|
95
|
-
|
|
96
|
-
**Schema:** `prisma/schema.prisma`
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## 🔌 API Endpoints
|
|
101
|
-
|
|
102
|
-
### Auth
|
|
103
|
-
|
|
104
|
-
| Method | Endpoint | Description |
|
|
105
|
-
|--------|----------|-------------|
|
|
106
|
-
| POST | `/api/auth/login` | User login |
|
|
107
|
-
| POST | `/api/auth/register` | User register |
|
|
108
|
-
|
|
109
|
-
### [Resource]
|
|
110
|
-
|
|
111
|
-
| Method | Endpoint | Description |
|
|
112
|
-
|--------|----------|-------------|
|
|
113
|
-
| GET | `/api/[resource]` | List all |
|
|
114
|
-
| POST | `/api/[resource]` | Create |
|
|
115
|
-
| PUT | `/api/[resource]/:id` | Update |
|
|
116
|
-
| DELETE | `/api/[resource]/:id` | Delete |
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## 🪝 Custom Hooks
|
|
121
|
-
|
|
122
|
-
| Hook | Path | Purpose |
|
|
123
|
-
|------|------|---------|
|
|
124
|
-
| `useAuth` | `src/hooks/useAuth.ts` | Auth state |
|
|
125
|
-
| `useDebounce` | `src/hooks/useDebounce.ts` | Input debounce |
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## 🛠️ Utilities
|
|
130
|
-
|
|
131
|
-
| Utility | Path | Purpose |
|
|
132
|
-
|---------|------|---------|
|
|
133
|
-
| `cn` | `src/lib/utils.ts` | Tailwind class merge |
|
|
134
|
-
| `fetcher` | `src/lib/fetcher.ts` | API fetcher |
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## ⚙️ Configuration Files
|
|
139
|
-
|
|
140
|
-
| File | Purpose |
|
|
141
|
-
|------|---------|
|
|
142
|
-
| `.env` | Environment variables |
|
|
143
|
-
| `next.config.js` | Next.js config |
|
|
144
|
-
| `tailwind.config.js` | Tailwind config |
|
|
145
|
-
| `prisma/schema.prisma` | DB schema |
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
## 📦 Key Dependencies
|
|
150
|
-
|
|
151
|
-
| Package | Version | Purpose |
|
|
152
|
-
|---------|---------|---------|
|
|
153
|
-
| next | 14.x | Framework |
|
|
154
|
-
| prisma | 5.x | ORM |
|
|
155
|
-
| zod | 3.x | Validation |
|
|
156
|
-
| react-hook-form | 7.x | Forms |
|
|
157
|
-
|
|
158
|
-
Run `npm list --depth=0` for full list.
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## 🐛 Known Issues / Tech Debt
|
|
163
|
-
|
|
164
|
-
| Issue | Location | Priority |
|
|
165
|
-
|-------|----------|----------|
|
|
166
|
-
| [Issue] | [path] | High/Med/Low |
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## 📝 Recent Code Changes
|
|
171
|
-
|
|
172
|
-
| Date | Change | Files |
|
|
173
|
-
|------|--------|-------|
|
|
174
|
-
| [Date] | [Description] | [files] |
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
> 💡 **Note:** File này focus vào TECHNICAL. Xem [PROJECT.md](./PROJECT.md) cho planning/requirements.
|
package/docs/COMMAND_MAPPING.md
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
# Command → Agent/Skill Mapping
|
|
2
|
-
|
|
3
|
-
> Ánh xạ các commands với agents và skills tương ứng
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🎯 Core Commands
|
|
8
|
-
|
|
9
|
-
### `/plan`
|
|
10
|
-
```yaml
|
|
11
|
-
Agents:
|
|
12
|
-
- planner.md # Lập kế hoạch chi tiết
|
|
13
|
-
|
|
14
|
-
Skills:
|
|
15
|
-
- planning/ # Phương pháp lập kế hoạch
|
|
16
|
-
- sequential-thinking/ # Tư duy logic
|
|
17
|
-
- problem-solving/ # Giải quyết vấn đề
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### `/cook`
|
|
21
|
-
```yaml
|
|
22
|
-
Agents:
|
|
23
|
-
- fullstack-developer.md # Implement code
|
|
24
|
-
- researcher.md # Nghiên cứu solutions
|
|
25
|
-
- code-reviewer.md # Review trước khi xong
|
|
26
|
-
|
|
27
|
-
Skills:
|
|
28
|
-
- frontend-development/ # UI/Frontend code
|
|
29
|
-
- backend-development/ # API/Backend code
|
|
30
|
-
- web-frameworks/ # Next.js, React patterns
|
|
31
|
-
- databases/ # Database queries
|
|
32
|
-
- sequential-thinking/ # Logic phức tạp
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### `/fix`
|
|
36
|
-
```yaml
|
|
37
|
-
Agents:
|
|
38
|
-
- debugger.md # Debug và phân tích lỗi
|
|
39
|
-
- tester.md # Verify fixes
|
|
40
|
-
|
|
41
|
-
Skills:
|
|
42
|
-
- debugging/ # Debug techniques
|
|
43
|
-
- problem-solving/ # Root cause analysis
|
|
44
|
-
- code-review/ # Identify issues
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### `/scout`
|
|
48
|
-
```yaml
|
|
49
|
-
Agents:
|
|
50
|
-
- scout.md # Explore codebase
|
|
51
|
-
- scout-external.md # External resources
|
|
52
|
-
- researcher.md # Deep research
|
|
53
|
-
|
|
54
|
-
Skills:
|
|
55
|
-
- research/ # Tìm kiếm thông tin
|
|
56
|
-
- docs-seeker/ # Đọc documentation
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### `/test`
|
|
60
|
-
```yaml
|
|
61
|
-
Agents:
|
|
62
|
-
- tester.md # Viết và chạy tests
|
|
63
|
-
|
|
64
|
-
Skills:
|
|
65
|
-
- code-review/ # Quality checks
|
|
66
|
-
- debugging/ # Test failure analysis
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 📝 Generate Commands
|
|
72
|
-
|
|
73
|
-
### `/generate:page`
|
|
74
|
-
```yaml
|
|
75
|
-
Agents:
|
|
76
|
-
- fullstack-developer.md
|
|
77
|
-
- ui-ux-designer.md
|
|
78
|
-
|
|
79
|
-
Skills:
|
|
80
|
-
- frontend-development/
|
|
81
|
-
- frontend-design/
|
|
82
|
-
- ui-styling/
|
|
83
|
-
- web-frameworks/ # Next.js page patterns
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### `/generate:api`
|
|
87
|
-
```yaml
|
|
88
|
-
Agents:
|
|
89
|
-
- fullstack-developer.md
|
|
90
|
-
- database-admin.md
|
|
91
|
-
|
|
92
|
-
Skills:
|
|
93
|
-
- backend-development/
|
|
94
|
-
- databases/
|
|
95
|
-
- web-frameworks/
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### `/generate:component`
|
|
99
|
-
```yaml
|
|
100
|
-
Agents:
|
|
101
|
-
- ui-ux-designer.md
|
|
102
|
-
- design-system-architect.md
|
|
103
|
-
|
|
104
|
-
Skills:
|
|
105
|
-
- frontend-development/
|
|
106
|
-
- frontend-design/
|
|
107
|
-
- ui-styling/
|
|
108
|
-
- aesthetic/
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## 🎨 Design Commands
|
|
114
|
-
|
|
115
|
-
### `/design/ui`
|
|
116
|
-
```yaml
|
|
117
|
-
Agents:
|
|
118
|
-
- ui-ux-designer.md
|
|
119
|
-
- design-system-architect.md
|
|
120
|
-
|
|
121
|
-
Skills:
|
|
122
|
-
- frontend-design/
|
|
123
|
-
- frontend-design-pro/
|
|
124
|
-
- ui-ux-pro-max/
|
|
125
|
-
- aesthetic/
|
|
126
|
-
- ui-styling/
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### `/design/domain`
|
|
130
|
-
```yaml
|
|
131
|
-
Agents:
|
|
132
|
-
- ddd-architect.md
|
|
133
|
-
|
|
134
|
-
Skills:
|
|
135
|
-
- ddd-modular-monolith/
|
|
136
|
-
- backend-development/
|
|
137
|
-
- databases/
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## 🔧 Utility Commands
|
|
143
|
-
|
|
144
|
-
### `/context`
|
|
145
|
-
```yaml
|
|
146
|
-
Agents:
|
|
147
|
-
- scout.md
|
|
148
|
-
|
|
149
|
-
Skills:
|
|
150
|
-
- research/
|
|
151
|
-
- docs-seeker/
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### `/memory`
|
|
155
|
-
```yaml
|
|
156
|
-
Skills:
|
|
157
|
-
- common/ # Project context
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### `/git:commit`, `/git:pr`
|
|
161
|
-
```yaml
|
|
162
|
-
Agents:
|
|
163
|
-
- git-manager.md
|
|
164
|
-
|
|
165
|
-
Skills:
|
|
166
|
-
- devops/
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
### `/docs:update`
|
|
170
|
-
```yaml
|
|
171
|
-
Agents:
|
|
172
|
-
- docs-manager.md
|
|
173
|
-
|
|
174
|
-
Skills:
|
|
175
|
-
- document-skills/
|
|
176
|
-
- docs-seeker/
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## 📊 Special Commands
|
|
182
|
-
|
|
183
|
-
### `/brainstorm`
|
|
184
|
-
```yaml
|
|
185
|
-
Agents:
|
|
186
|
-
- brainstormer.md
|
|
187
|
-
|
|
188
|
-
Skills:
|
|
189
|
-
- problem-solving/
|
|
190
|
-
- sequential-thinking/
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
### `/integrate:*` (sepay, polar)
|
|
194
|
-
```yaml
|
|
195
|
-
Agents:
|
|
196
|
-
- fullstack-developer.md
|
|
197
|
-
|
|
198
|
-
Skills:
|
|
199
|
-
- payment-integration/
|
|
200
|
-
- backend-development/
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## 🔗 Quick Reference
|
|
206
|
-
|
|
207
|
-
| Command | Primary Agent | Key Skills |
|
|
208
|
-
|---------|---------------|------------|
|
|
209
|
-
| `/plan` | planner | planning, sequential-thinking |
|
|
210
|
-
| `/cook` | fullstack-developer | frontend, backend, web-frameworks |
|
|
211
|
-
| `/fix` | debugger | debugging, problem-solving |
|
|
212
|
-
| `/scout` | scout | research, docs-seeker |
|
|
213
|
-
| `/test` | tester | code-review, debugging |
|
|
214
|
-
| `/generate:page` | ui-ux-designer | frontend-design, web-frameworks |
|
|
215
|
-
| `/generate:api` | fullstack-developer | backend, databases |
|
|
216
|
-
| `/design/ui` | design-system-architect | ui-ux-pro-max, aesthetic |
|
|
217
|
-
| `/design/domain` | ddd-architect | ddd-modular-monolith |
|
package/docs/FAQ.md
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
# ❓ FAQ - Câu Hỏi Thường Gặp
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## 🔧 Commands & Cursor
|
|
6
|
-
|
|
7
|
-
### Q: Commands không hoạt động?
|
|
8
|
-
**A:**
|
|
9
|
-
1. Kiểm tra đang dùng **Chat Panel** (`Ctrl+L`), không phải Terminal
|
|
10
|
-
2. Restart Cursor
|
|
11
|
-
3. Kiểm tra folder `.cursor/commands/` có files
|
|
12
|
-
|
|
13
|
-
### Q: AI không hiểu context dự án?
|
|
14
|
-
**A:** Tag files vào câu hỏi:
|
|
15
|
-
```
|
|
16
|
-
@.cursorrules @docs/PROJECT.md
|
|
17
|
-
|
|
18
|
-
[Câu hỏi của bạn]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Q: Command nào dùng trước?
|
|
22
|
-
**A:** Workflow chuẩn:
|
|
23
|
-
```
|
|
24
|
-
/plan → /cook → /test → /review
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Q: Sự khác biệt /plan:fast và /plan:hard?
|
|
28
|
-
**A:**
|
|
29
|
-
- `/plan:fast` - Task đơn giản, nhanh
|
|
30
|
-
- `/plan:hard` - Task phức tạp, cần phân tích kỹ
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## 📦 Presets
|
|
35
|
-
|
|
36
|
-
### Q: Chọn preset nào?
|
|
37
|
-
**A:**
|
|
38
|
-
| Timeline | Team Size | Chọn |
|
|
39
|
-
|----------|-----------|------|
|
|
40
|
-
| < 2 tuần | 1-2 người | `rapid` |
|
|
41
|
-
| 1-6 tháng | 3-10 người | `professional` |
|
|
42
|
-
| > 6 tháng | 10+ người | `enterprise` |
|
|
43
|
-
|
|
44
|
-
### Q: Có thể đổi preset giữa chừng?
|
|
45
|
-
**A:** Có, xem `presets/MIGRATION_GUIDE.md`
|
|
46
|
-
|
|
47
|
-
### Q: Setup script bị lỗi?
|
|
48
|
-
**A:**
|
|
49
|
-
1. Kiểm tra đã cài Node.js 18+
|
|
50
|
-
2. Chạy với quyền admin (Windows) hoặc sudo (Linux)
|
|
51
|
-
3. Xóa `node_modules/` và chạy lại
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## 🔀 Git & GitHub
|
|
56
|
-
|
|
57
|
-
### Q: Branch naming?
|
|
58
|
-
**A:**
|
|
59
|
-
```
|
|
60
|
-
feature/[name] # New feature
|
|
61
|
-
fix/[name] # Bug fix
|
|
62
|
-
hotfix/[name] # Critical fix
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Q: Commit message format?
|
|
66
|
-
**A:** Conventional Commits:
|
|
67
|
-
```
|
|
68
|
-
feat(scope): description
|
|
69
|
-
fix(scope): description
|
|
70
|
-
docs(scope): description
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Q: CI failed, làm gì?
|
|
74
|
-
**A:**
|
|
75
|
-
1. Check GitHub Actions logs
|
|
76
|
-
2. Fix lỗi locally
|
|
77
|
-
3. Push lại
|
|
78
|
-
|
|
79
|
-
### Q: PR cần bao nhiêu approval?
|
|
80
|
-
**A:** Tối thiểu 1 approval (configurable)
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## 🗄️ Database
|
|
85
|
-
|
|
86
|
-
### Q: Làm sao reset database?
|
|
87
|
-
**A:**
|
|
88
|
-
```bash
|
|
89
|
-
npx prisma db push --force-reset
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Q: Migration lỗi?
|
|
93
|
-
**A:**
|
|
94
|
-
```bash
|
|
95
|
-
npx prisma migrate reset
|
|
96
|
-
npx prisma generate
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Q: Rapid dùng SQLite, muốn đổi sang PostgreSQL?
|
|
100
|
-
**A:**
|
|
101
|
-
1. Update `DATABASE_URL` trong `.env`
|
|
102
|
-
2. Chạy `npx prisma migrate dev`
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## 🎨 UI/Styling
|
|
107
|
-
|
|
108
|
-
### Q: Thêm component shadcn/ui?
|
|
109
|
-
**A:**
|
|
110
|
-
```bash
|
|
111
|
-
npx shadcn-ui@latest add [component-name]
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Q: Customize theme?
|
|
115
|
-
**A:** Edit `tailwind.config.ts` và `globals.css`
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## 🧪 Testing
|
|
120
|
-
|
|
121
|
-
### Q: Chạy tests?
|
|
122
|
-
**A:**
|
|
123
|
-
```bash
|
|
124
|
-
npm test # Unit tests
|
|
125
|
-
npm run test:e2e # E2E tests (nếu có)
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Q: Test coverage?
|
|
129
|
-
**A:**
|
|
130
|
-
```bash
|
|
131
|
-
npm run test:coverage
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## 🚀 Deployment
|
|
137
|
-
|
|
138
|
-
### Q: Deploy lên Vercel?
|
|
139
|
-
**A:**
|
|
140
|
-
1. Connect GitHub repo
|
|
141
|
-
2. Set environment variables
|
|
142
|
-
3. Deploy
|
|
143
|
-
|
|
144
|
-
### Q: Environment variables?
|
|
145
|
-
**A:** Không commit `.env`, dùng `.env.example` làm template
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
## 💡 Tips
|
|
150
|
-
|
|
151
|
-
### Q: Làm sao code nhanh hơn?
|
|
152
|
-
**A:**
|
|
153
|
-
1. Luôn `/plan` trước khi code
|
|
154
|
-
2. Dùng `/scout` khi chưa quen codebase
|
|
155
|
-
3. Chia task nhỏ
|
|
156
|
-
4. Commit thường xuyên
|
|
157
|
-
|
|
158
|
-
### Q: AI response quá dài?
|
|
159
|
-
**A:** Thêm vào prompt: "Trả lời ngắn gọn"
|
|
160
|
-
|
|
161
|
-
### Q: Muốn AI follow style cụ thể?
|
|
162
|
-
**A:** Cập nhật `.cursorrules` hoặc `docs/code-standards.md`
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## 🆘 Vẫn Stuck?
|
|
167
|
-
|
|
168
|
-
1. Search trong `docs/`
|
|
169
|
-
2. Hỏi trong team chat
|
|
170
|
-
3. Hỏi Team Lead
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
> 💡 Có câu hỏi mới? Thêm vào file này để giúp team!
|
package/docs/ONBOARDING.md
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# 📋 Onboarding Checklist
|
|
2
|
-
|
|
3
|
-
Checklist cho member mới vào team. Đánh dấu `[x]` khi hoàn thành.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🗓️ Day 1: Setup Environment
|
|
8
|
-
|
|
9
|
-
### Software Installation
|
|
10
|
-
- [ ] Node.js 18+ installed
|
|
11
|
-
- [ ] Git installed
|
|
12
|
-
- [ ] Cursor IDE installed
|
|
13
|
-
- [ ] Đăng nhập Cursor (Google/GitHub)
|
|
14
|
-
|
|
15
|
-
### Project Setup
|
|
16
|
-
- [ ] Cài anchi-toolkit: `npx anchi-toolkit init` (chọn profile phù hợp)
|
|
17
|
-
- [ ] Mở project: `cursor .`
|
|
18
|
-
- [ ] Chạy `/start` và chọn option
|
|
19
|
-
- [ ] Chọn preset: `/use-preset [name]`
|
|
20
|
-
|
|
21
|
-
### Verification
|
|
22
|
-
- [ ] Chạy `npm run dev` thành công
|
|
23
|
-
- [ ] Truy cập localhost:3000
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 📖 Day 1: Read Documentation
|
|
28
|
-
|
|
29
|
-
### Required Reading
|
|
30
|
-
- [ ] `.cursorrules` - Biết preset và conventions
|
|
31
|
-
- [ ] `docs/PROJECT.md` - Hiểu dự án
|
|
32
|
-
- [ ] `docs/WORKFLOW.md` - Workflow chuẩn
|
|
33
|
-
- [ ] `BEGINNER_GUIDE_VI.md` - Hướng dẫn sử dụng
|
|
34
|
-
|
|
35
|
-
### Optional Reading
|
|
36
|
-
- [ ] `docs/code-standards.md` - Chi tiết coding standards
|
|
37
|
-
- [ ] `docs/system-architecture.md` - Kiến trúc hệ thống
|
|
38
|
-
- [ ] `docs/WORKFLOW.md` - Git workflow (đã merged)
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## 🔧 Day 1: Practice Commands
|
|
43
|
-
|
|
44
|
-
### Essential Commands
|
|
45
|
-
- [ ] Thử `/scout "Tổng quan project"`
|
|
46
|
-
- [ ] Thử `/plan "Simple test task"`
|
|
47
|
-
- [ ] Thử `/cook "Phase 1"` (cancel nếu không cần)
|
|
48
|
-
|
|
49
|
-
### Verify Understanding
|
|
50
|
-
- [ ] Biết cách mở Chat Panel (`Ctrl+L`)
|
|
51
|
-
- [ ] Biết cách tag files (`@filename`)
|
|
52
|
-
- [ ] Biết phím tắt cơ bản
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## ✅ Day 1: First Task
|
|
57
|
-
|
|
58
|
-
### Complete First Task
|
|
59
|
-
- [ ] Nhận task từ Team Lead
|
|
60
|
-
- [ ] `/plan "task description"`
|
|
61
|
-
- [ ] Review plan
|
|
62
|
-
- [ ] `/cook "phase 1"`
|
|
63
|
-
- [ ] `/test` hoặc manual test
|
|
64
|
-
- [ ] `/review`
|
|
65
|
-
- [ ] Git commit và push
|
|
66
|
-
- [ ] Create Pull Request
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## 📝 Day 2-3: Deep Dive
|
|
71
|
-
|
|
72
|
-
### Codebase Understanding
|
|
73
|
-
- [ ] Dùng `/scout` để tìm hiểu modules chính
|
|
74
|
-
- [ ] Đọc `docs/CODEBASE.md`
|
|
75
|
-
- [ ] Hiểu folder structure
|
|
76
|
-
|
|
77
|
-
### Team Integration
|
|
78
|
-
- [ ] Join team channels (Slack/Discord)
|
|
79
|
-
- [ ] Attend standup meetings
|
|
80
|
-
- [ ] Ask questions khi stuck
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## 🎯 Week 1: Milestones
|
|
85
|
-
|
|
86
|
-
- [ ] Hoàn thành 3+ tasks
|
|
87
|
-
- [ ] Có ít nhất 1 PR merged
|
|
88
|
-
- [ ] Comfortable với workflow
|
|
89
|
-
- [ ] Có thể giúp đỡ member mới khác
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## 📞 Contacts
|
|
94
|
-
|
|
95
|
-
| Role | Person | Contact |
|
|
96
|
-
|------|--------|---------|
|
|
97
|
-
| Team Lead | [Name] | [Email/Slack] |
|
|
98
|
-
| Tech Lead | [Name] | [Email/Slack] |
|
|
99
|
-
| Buddy | [Name] | [Email/Slack] |
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## 🆘 Stuck?
|
|
104
|
-
|
|
105
|
-
1. Xem `docs/FAQ.md`
|
|
106
|
-
2. Hỏi trong Chat Panel: `@.cursorrules explain this project`
|
|
107
|
-
3. Hỏi Team Lead/Buddy
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
> ✅ Khi hoàn thành tất cả, báo Team Lead để nhận badge "Onboarded"!
|