anchi-kit 2.0.2 → 2.0.3
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/.cursor/UX_GUIDELINES.md +126 -0
- package/.cursor/commands/cook.md +44 -1
- package/.cursor/commands/fix.md +34 -1
- package/.cursor/commands/plan.md +38 -0
- package/.cursor/commands/start.md +10 -6
- package/package.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# 💬 UX Guidelines for anchi-kit
|
|
2
|
+
|
|
3
|
+
> Hướng dẫn tương tác với user để AI thân thiện và dễ sử dụng hơn.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Welcome Messages
|
|
8
|
+
|
|
9
|
+
Mỗi command nên bắt đầu với greeting ngắn gọn:
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
👋 /[command] đang chạy!
|
|
13
|
+
[Mô tả ngắn về command sẽ làm gì]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Ví dụ:**
|
|
17
|
+
```markdown
|
|
18
|
+
👋 /plan đang chạy!
|
|
19
|
+
Tôi sẽ tạo kế hoạch chi tiết cho feature của bạn.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Progress Indicators
|
|
25
|
+
|
|
26
|
+
Khi thực hiện nhiều bước, show progress:
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
📊 Đang thực hiện...
|
|
30
|
+
|
|
31
|
+
[1/4] 🔍 Phân tích yêu cầu...
|
|
32
|
+
[2/4] 📚 Đọc codebase liên quan...
|
|
33
|
+
[3/4] 📝 Tạo kế hoạch...
|
|
34
|
+
[4/4] ✅ Hoàn tất!
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 3. Interactive Confirmations
|
|
40
|
+
|
|
41
|
+
Thay vì `[Y/n]`, dùng format rõ ràng:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
📋 **Tóm tắt thay đổi:**
|
|
45
|
+
• Tạo: `user.service.ts`
|
|
46
|
+
• Sửa: `api/users/route.ts`
|
|
47
|
+
• Thêm: 2 types
|
|
48
|
+
|
|
49
|
+
👉 **Tiếp tục?**
|
|
50
|
+
- Gõ `ok` hoặc `y` để thực hiện
|
|
51
|
+
- Gõ feedback để tôi điều chỉnh
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 4. Friendly Error Messages
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
❌ **Lỗi:** [Mô tả ngắn]
|
|
60
|
+
|
|
61
|
+
💡 **Gợi ý:**
|
|
62
|
+
• [Cách fix 1]
|
|
63
|
+
• [Cách fix 2]
|
|
64
|
+
|
|
65
|
+
📌 **Thử lại:** [Command gợi ý]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 5. Quick Actions Menu
|
|
71
|
+
|
|
72
|
+
Sau mỗi command, suggest next steps:
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
✅ **Xong!**
|
|
76
|
+
|
|
77
|
+
📌 **Tiếp theo:**
|
|
78
|
+
• `/cook "Phase 1"` - Bắt đầu implement
|
|
79
|
+
• `/review` - Review trước khi làm
|
|
80
|
+
• Feedback - Để tôi điều chỉnh
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 6. Session Summary Cards
|
|
86
|
+
|
|
87
|
+
Cuối session quan trọng, show summary:
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
┌─────────────────────────────────────┐
|
|
91
|
+
│ 📊 SUMMARY │
|
|
92
|
+
├─────────────────────────────────────┤
|
|
93
|
+
│ ✅ Created: X files │
|
|
94
|
+
│ 📝 Modified: Y files │
|
|
95
|
+
│ 🧪 Tests: Passed │
|
|
96
|
+
├─────────────────────────────────────┤
|
|
97
|
+
│ 📌 Next: /cook "Phase 2" │
|
|
98
|
+
└─────────────────────────────────────┘
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Tone Guidelines
|
|
104
|
+
|
|
105
|
+
| ❌ Tránh | ✅ Nên dùng |
|
|
106
|
+
|---------|------------|
|
|
107
|
+
| Formal, dài dòng | Ngắn gọn, thân thiện |
|
|
108
|
+
| Technical jargon | Giải thích đơn giản |
|
|
109
|
+
| Y/n | ok/feedback |
|
|
110
|
+
| Error occurred | ❌ Lỗi: [chi tiết] |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Emoji Usage
|
|
115
|
+
|
|
116
|
+
| Emoji | Ý nghĩa |
|
|
117
|
+
|-------|---------|
|
|
118
|
+
| 👋 | Welcome |
|
|
119
|
+
| 📊 | Progress/Summary |
|
|
120
|
+
| ✅ | Success/Done |
|
|
121
|
+
| ❌ | Error |
|
|
122
|
+
| 💡 | Tip/Suggestion |
|
|
123
|
+
| 📌 | Next steps |
|
|
124
|
+
| ⚠️ | Warning |
|
|
125
|
+
| 🔍 | Analyzing |
|
|
126
|
+
| 📝 | Writing/Creating |
|
package/.cursor/commands/cook.md
CHANGED
|
@@ -97,4 +97,47 @@ Analyze `.cursor/skills/*` and activate only what's needed:
|
|
|
97
97
|
- **Don't over-engineer**: Simple solutions preferred
|
|
98
98
|
- **Ask once**: Batch related questions together
|
|
99
99
|
- **Skip liberally**: Not every task needs every stage
|
|
100
|
-
- **User approval**: Always get approval before destructive changes
|
|
100
|
+
- **User approval**: Always get approval before destructive changes
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## UX Guidelines (REQUIRED)
|
|
105
|
+
|
|
106
|
+
**Read `.cursor/UX_GUIDELINES.md` for interaction patterns.**
|
|
107
|
+
|
|
108
|
+
### Welcome
|
|
109
|
+
```
|
|
110
|
+
👋 /cook đang chạy!
|
|
111
|
+
[Mô tả ngắn task sẽ làm]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Progress (cho multi-step)
|
|
115
|
+
```
|
|
116
|
+
📊 Đang thực hiện...
|
|
117
|
+
|
|
118
|
+
[1/4] 🔍 Research...
|
|
119
|
+
[2/4] 📝 Plan...
|
|
120
|
+
[3/4] 💻 Implement...
|
|
121
|
+
[4/4] 🧪 Test...
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Summary Card (cuối session)
|
|
125
|
+
```
|
|
126
|
+
┌─────────────────────────────────────┐
|
|
127
|
+
│ 📊 SUMMARY │
|
|
128
|
+
├─────────────────────────────────────┤
|
|
129
|
+
│ ✅ Created: X files │
|
|
130
|
+
│ 📝 Modified: Y files │
|
|
131
|
+
│ 🧪 Tests: Passed │
|
|
132
|
+
├─────────────────────────────────────┤
|
|
133
|
+
│ 📌 Next: /cook "Phase 2" │
|
|
134
|
+
└─────────────────────────────────────┘
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Quick Actions
|
|
138
|
+
```
|
|
139
|
+
📌 **Tiếp theo:**
|
|
140
|
+
• `/review` - Review code
|
|
141
|
+
• `/test` - Run tests
|
|
142
|
+
• `/cook "Next phase"` - Tiếp tục
|
|
143
|
+
```
|
package/.cursor/commands/fix.md
CHANGED
|
@@ -91,4 +91,37 @@ User disagrees with routing?
|
|
|
91
91
|
|
|
92
92
|
- `detailed-description` = Enhanced prompt with context
|
|
93
93
|
- Skip pre-requisites for obvious quick fixes
|
|
94
|
-
- Trust user's judgment on complexity
|
|
94
|
+
- Trust user's judgment on complexity
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## UX Guidelines (REQUIRED)
|
|
99
|
+
|
|
100
|
+
**Read `.cursor/UX_GUIDELINES.md` for interaction patterns.**
|
|
101
|
+
|
|
102
|
+
### Welcome
|
|
103
|
+
```
|
|
104
|
+
👋 /fix đang chạy!
|
|
105
|
+
Tôi sẽ giúp bạn debug và fix issue này.
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Friendly Error Messages
|
|
109
|
+
```
|
|
110
|
+
❌ **Lỗi:** [Mô tả ngắn gọn]
|
|
111
|
+
|
|
112
|
+
💡 **Gợi ý:**
|
|
113
|
+
• [Cách fix 1]
|
|
114
|
+
• [Cách fix 2]
|
|
115
|
+
|
|
116
|
+
📌 **Thử:** [Command suggestion]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Quick Actions (cuối)
|
|
120
|
+
```
|
|
121
|
+
✅ Issue đã fix!
|
|
122
|
+
|
|
123
|
+
📌 **Tiếp theo:**
|
|
124
|
+
• `/test` - Verify fix
|
|
125
|
+
• `/review` - Review changes
|
|
126
|
+
• `/cook` - Continue with next task
|
|
127
|
+
```
|
package/.cursor/commands/plan.md
CHANGED
|
@@ -70,3 +70,41 @@ Before delegating to plan subcommands, check for existing active plan:
|
|
|
70
70
|
- You MAY skip pre-requisites reading if task is obvious and simple
|
|
71
71
|
- You MAY ask user which planning mode they prefer
|
|
72
72
|
- You MAY combine insights from previous conversations
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## UX Guidelines (REQUIRED)
|
|
77
|
+
|
|
78
|
+
**Read `.cursor/UX_GUIDELINES.md` for interaction patterns.**
|
|
79
|
+
|
|
80
|
+
### Welcome
|
|
81
|
+
```
|
|
82
|
+
👋 /plan đang chạy!
|
|
83
|
+
Tôi sẽ tạo kế hoạch chi tiết cho feature của bạn.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Progress
|
|
87
|
+
```
|
|
88
|
+
[1/3] 🔍 Phân tích yêu cầu...
|
|
89
|
+
[2/3] 📚 Đọc codebase liên quan...
|
|
90
|
+
[3/3] 📝 Tạo kế hoạch...
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Confirmation (thay vì Y/n)
|
|
94
|
+
```
|
|
95
|
+
📋 **Tóm tắt kế hoạch:**
|
|
96
|
+
• [Bước 1]
|
|
97
|
+
• [Bước 2]
|
|
98
|
+
|
|
99
|
+
👉 Gõ `ok` để tiếp tục, hoặc feedback để điều chỉnh
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Quick Actions (cuối command)
|
|
103
|
+
```
|
|
104
|
+
✅ Plan đã tạo!
|
|
105
|
+
|
|
106
|
+
📌 **Tiếp theo:**
|
|
107
|
+
• `/cook "Phase 1"` - Implement
|
|
108
|
+
• `/review` - Review trước
|
|
109
|
+
• Feedback - Để tôi điều chỉnh
|
|
110
|
+
```
|
|
@@ -4,16 +4,20 @@ description: ⚡⚡⚡⚡ Bắt đầu sử dụng anchi-kit - Entry point cho m
|
|
|
4
4
|
|
|
5
5
|
# INSTRUCTION: Follow this workflow exactly
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Read `.cursor/UX_GUIDELINES.md` first for interaction patterns.**
|
|
8
|
+
|
|
9
|
+
**IMMEDIATELY show welcome and ask:**
|
|
8
10
|
|
|
9
11
|
```
|
|
10
|
-
|
|
12
|
+
👋 Chào mừng đến với anchi-kit!
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
1️⃣ **Dự án có sẵn** - Đã có code, muốn tích hợp anchi-kit
|
|
14
|
-
2️⃣ **Dự án mới** - Bắt đầu từ đầu
|
|
14
|
+
Tôi sẽ giúp bạn setup dự án. Chỉ cần trả lời 1 câu hỏi:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
📂 Dự án của bạn là:
|
|
17
|
+
1️⃣ Dự án có sẵn - Đã có code
|
|
18
|
+
2️⃣ Dự án mới - Bắt đầu từ đầu
|
|
19
|
+
|
|
20
|
+
👉 Gõ 1 hoặc 2:
|
|
17
21
|
```
|
|
18
22
|
|
|
19
23
|
**Wait for user response before doing anything else.**
|
package/package.json
CHANGED