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.
Files changed (56) hide show
  1. package/.ai-audit/README.md +53 -0
  2. package/.ai-memory/README.md +137 -0
  3. package/.ai-memory/context.json +26 -0
  4. package/.ai-memory/decisions.json +3 -0
  5. package/.antigravity/agent-skill-index.yaml +24 -0
  6. package/.antigravity/anchi-toolkit.config.yaml +12 -0
  7. package/.antigravity/docs/README.md +9 -0
  8. package/.antigravity/skills/_template.md +30 -0
  9. package/.antigravity/team.yaml +154 -0
  10. package/.antigravity/workflows/config.md +144 -0
  11. package/.antigravity/workflows/demo.md +50 -0
  12. package/.antigravity/workflows/help.md +11 -4
  13. package/.antigravity/workflows/skill-learn.md +48 -0
  14. package/.antigravity/workflows/start.md +38 -117
  15. package/.antigravity/workflows/status.md +8 -8
  16. package/.antigravity/workflows/undo.md +7 -7
  17. package/.cursor/agent-skill-index.yaml +39 -0
  18. package/.cursor/agents/graph-architect.md +30 -0
  19. package/.cursor/agents/trend-watcher.md +24 -0
  20. package/.cursor/commands/config.md +144 -0
  21. package/.cursor/commands/demo.md +50 -0
  22. package/.cursor/commands/do.md +127 -90
  23. package/.cursor/commands/help.md +23 -16
  24. package/.cursor/commands/skill-learn.md +48 -0
  25. package/.cursor/commands/start.md +38 -117
  26. package/.cursor/commands/status.md +19 -19
  27. package/.cursor/commands/undo.md +19 -19
  28. package/.cursor/orchestration.yaml +18 -0
  29. package/.cursor/skills/_template.md +30 -0
  30. package/ANTIGRAVITY.md +84 -0
  31. package/CURSOR.md +50 -157
  32. package/LICENSE +17 -14
  33. package/README.md +64 -89
  34. package/docs/ALL_COMMANDS.md +31 -73
  35. package/docs/CI_CD.md +44 -0
  36. package/docs/COMPARISON.md +65 -0
  37. package/docs/ROADMAP.md +45 -161
  38. package/docs/WORKFLOW.md +56 -317
  39. package/package.json +9 -2
  40. package/presets/ci-cd/ai-review.yml +49 -0
  41. package/scripts/install-hooks.ps1 +21 -7
  42. package/scripts/install-hooks.sh +18 -3
  43. package/src/cli.js +111 -59
  44. package/src/commands/clean.js +87 -0
  45. package/src/commands/doctor.js +88 -21
  46. package/src/commands/init.js +22 -2
  47. package/src/commands/uninstall.js +17 -2
  48. package/src/lib/configManager.js +20 -5
  49. package/src/lib/memoryManager.js +7 -4
  50. package/docs/CODEBASE.md +0 -178
  51. package/docs/COMMAND_MAPPING.md +0 -217
  52. package/docs/FAQ.md +0 -174
  53. package/docs/ONBOARDING.md +0 -111
  54. package/docs/ORCHESTRATION_RUNTIME.md +0 -173
  55. package/docs/WALKTHROUGH.md +0 -192
  56. /package/.cursor/{anchi-kit.config.yaml → anchi-toolkit.config.yaml} +0 -0
@@ -92,11 +92,11 @@ argument-hint: [optional: specific area]
92
92
  2. Update 3 outdated dependencies
93
93
 
94
94
  💡 Suggestions:
95
- • /test:coverage - View coverage details
96
- • /fix "update dependencies"
97
- • /cook "payment-integration Phase 3"
95
+ • /test --coverage - View coverage details
96
+ • /do "update dependencies"
97
+ • /do "payment-integration Phase 3"
98
98
 
99
- 📌 Next: /auto:pro "continue payment integration"
99
+ 📌 Next: /do "continue payment integration"
100
100
  ```
101
101
 
102
102
  ---
@@ -145,19 +145,19 @@ status:
145
145
  coverage: 80
146
146
  outdated_deps: 5
147
147
  ```
148
-
149
- ---
150
-
151
- ## Dynamic Orchestration
152
-
153
- > **AI MUST read orchestration config before execution**
154
-
155
- ```
156
- 1. READ .cursor/agent-skill-index.yaml
157
- 2. CHECK command_mapping for this command
158
- 3. APPLY skill activation rules
159
- 4. CHECK .cursor/failure-modes.yaml
160
- 5. LOG decision to .ai-audit/
161
- ```
162
-
148
+
149
+ ---
150
+
151
+ ## Dynamic Orchestration
152
+
153
+ > **AI MUST read orchestration config before execution**
154
+
155
+ ```
156
+ 1. READ .cursor/agent-skill-index.yaml
157
+ 2. CHECK command_mapping for this command
158
+ 3. APPLY skill activation rules
159
+ 4. CHECK .cursor/failure-modes.yaml
160
+ 5. LOG decision to .ai-audit/
161
+ ```
162
+
163
163
  [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)
@@ -61,14 +61,14 @@ argument-hint: [optional: steps to undo or commit hash]
61
61
  ╔═════════════════════════════════════════════════════════════╗
62
62
  ║ # │ Time │ Action │ Files Changed ║
63
63
  ╠═════════════════════════════════════════════════════════════╣
64
- ║ 1 │ 2 min │ /cook LoginForm │ 3 files ║
65
- ║ 2 │ 10 min │ /generate:api │ 2 files ║
64
+ ║ 1 │ 2 min │ /do LoginForm │ 3 files ║
65
+ ║ 2 │ 10 min │ /generate --api │ 2 files ║
66
66
  ║ 3 │ 15 min │ /theme dark │ 2 files ║
67
- ║ 4 │ 30 min │ /auto:rapid │ 8 files ║
67
+ ║ 4 │ 30 min │ /do "feature" │ 8 files ║
68
68
  ╚═════════════════════════════════════════════════════════════╝
69
69
 
70
70
  📋 Latest Action Details (#1):
71
- Command: /cook "Add LoginForm"
71
+ Command: /do "Add LoginForm"
72
72
  Time: 2 minutes ago
73
73
 
74
74
  Files to restore:
@@ -148,19 +148,19 @@ undo:
148
148
  backup_dir: .undo/
149
149
  confirm_before: true
150
150
  ```
151
-
152
- ---
153
-
154
- ## Dynamic Orchestration
155
-
156
- > **AI MUST read orchestration config before execution**
157
-
158
- ```
159
- 1. READ .cursor/agent-skill-index.yaml
160
- 2. CHECK command_mapping for this command
161
- 3. APPLY skill activation rules
162
- 4. CHECK .cursor/failure-modes.yaml
163
- 5. LOG decision to .ai-audit/
164
- ```
165
-
151
+
152
+ ---
153
+
154
+ ## Dynamic Orchestration
155
+
156
+ > **AI MUST read orchestration config before execution**
157
+
158
+ ```
159
+ 1. READ .cursor/agent-skill-index.yaml
160
+ 2. CHECK command_mapping for this command
161
+ 3. APPLY skill activation rules
162
+ 4. CHECK .cursor/failure-modes.yaml
163
+ 5. LOG decision to .ai-audit/
164
+ ```
165
+
166
166
  [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)
@@ -53,6 +53,18 @@ chains:
53
53
  input: design
54
54
  output: implementation
55
55
 
56
+ # Self-Correction Chain (New)
57
+ post_mortem:
58
+ - agent: failure-analyst
59
+ input: [error_log, user_feedback]
60
+ output: root_cause_analysis
61
+ - agent: rules-architect
62
+ input: root_cause_analysis
63
+ output: new_failure_mode_rule
64
+ - agent: docs-manager
65
+ input: new_failure_mode_rule
66
+ output: update_failure_modes_yaml
67
+
56
68
  # ═══════════════════════════════════════════════════════════════
57
69
  # RISK-BASED EXECUTION
58
70
  # ═══════════════════════════════════════════════════════════════
@@ -78,7 +90,10 @@ risk_levels:
78
90
  auto_approve: false
79
91
  require_review: true
80
92
  require_test: true
93
+ require_review: true
94
+ require_test: true
81
95
  require_lead_approval: true
96
+ strict_approval: true # Token Switching required
82
97
 
83
98
  critical:
84
99
  keywords: ["delete", "drop", "migrate", "production", "deploy"]
@@ -86,7 +101,10 @@ risk_levels:
86
101
  auto_approve: false
87
102
  require_review: true
88
103
  require_test: true
104
+ require_review: true
105
+ require_test: true
89
106
  require_lead_approval: true
107
+ strict_approval: true # Token Switching required
90
108
  require_backup: true
91
109
 
92
110
  # ═══════════════════════════════════════════════════════════════
@@ -0,0 +1,30 @@
1
+ # Skill: [Skill Name]
2
+
3
+ **Description:** [Short description of the technology/framework]
4
+
5
+ ## 🎯 Activation Criteria
6
+
7
+ - **Files:** `[file_patterns]`
8
+ - **Dependencies:** `[package_names]`
9
+ - **Keywords:** `[keywords]`
10
+
11
+ ## ✅ Best Practices (Rules)
12
+
13
+ 1. **[Rule 1]:** [Description]
14
+ 2. **[Rule 2]:** [Description]
15
+ 3. **[Naming Convention]:** [Description]
16
+
17
+ ## ❌ Anti-Patterns (Do Not Do)
18
+
19
+ 1. **[Anti-Pattern 1]:** [Description]
20
+ 2. **[Anti-Pattern 2]:** [Description]
21
+
22
+ ## 📦 Dependencies & Setup
23
+
24
+ - Recommended Packages:
25
+ - [pkg1]
26
+ - [pkg2]
27
+
28
+ ## 🧠 Memory Hooks
29
+
30
+ - If user asks for [X], suggest [Y].
package/ANTIGRAVITY.md ADDED
@@ -0,0 +1,84 @@
1
+ # ANTIGRAVITY.md
2
+
3
+ **Hướng dẫn dành cho Gemini Antigravity** - "Simple Interface, Powerful Execution"
4
+
5
+ ---
6
+
7
+ ## 🎯 Triết Lý Cốt Lỗi
8
+
9
+ **"LESS BUT QUALITY"**: User chỉ cần ra lệnh đơn giản. AI chịu trách nhiệm xử lý phức tạp bên dưới.
10
+
11
+ ### 3 Lệnh Chính (The Only Commands You Need)
12
+
13
+ | Lệnh | Chức năng | Ví dụ |
14
+ | ---------- | ---------------------- | ----------------------------------------------- |
15
+ | **/start** | Khởi tạo dự án | `/start` (AI tự detect stack & preset) |
16
+ | **/do** | **Làm tất cả mọi thứ** | `/do "Fix bug login"`, `/do "Design dashboard"` |
17
+ | **/demo** | Xem demo dự án | `/demo` (Auto run localhost) |
18
+ | **/clean** | Dọn dẹp bộ nhớ | `/clean` (Khi AI mất context) |
19
+
20
+ ---
21
+
22
+ ## 🎙️ Professional Reporting (Giao tiếp hiệu quả)
23
+
24
+ Thay vì spam log kỹ thuật ("Loading...", "Reading..."), AI sử dụng format **Selective Transparency** (Minh bạch có chọn lọc).
25
+
26
+ **Mẫu Báo Cáo Chuẩn:**
27
+
28
+ > **🎯 Goal:** Fix bug login fail
29
+ >
30
+ > **🤖 Team:** `Debugger` (Root cause) → `Fullstack Dev` (Implementation)
31
+ > **🛡️ Risk Check:** Low (Local UI fix only)
32
+ >
33
+ > **📝 Changes:**
34
+ > • `src/auth/hooks/useLogin.ts`: Thêm `try/catch` block.
35
+ > • `src/components/LoginForm.tsx`: Hiển thị thông báo lỗi chi tiết.
36
+ >
37
+ > **✅ Result:** Đã fix lỗi crash khi API timeout. User giờ sẽ thấy thông báo thay vì màn hình trắng.
38
+
39
+ ✅ Format này giúp User hiểu **AI nào đang làm việc** và **đã thay đổi gì** mà không bị ngợp.
40
+
41
+ ---
42
+
43
+ ## 🧠 Smart Execution (Trí tuệ Ẩn)
44
+
45
+ Dù giao diện đơn giản, AI phải **ngầm** thực hiện quy trình phức tạp sau (User không cần thấy):
46
+
47
+ 1. **Context Loading:**
48
+ - Project Rule: `.antigravity/docs/PROJECT.md`
49
+ - User Prefs: `.antigravity/user.yaml` (Optional, gitignored)
50
+ 2. **Orchestration:** Tự động chọn Workflow & Agents từ `.antigravity/workflows/` và `.antigravity/agents/`.
51
+ 3. **Risk Check:** Nếu sửa file nhạy cảm (Auth/Payment), **PHẢI** dừng lại hỏi ý kiến user.
52
+ 4. **Artifacts:** Lưu các tài liệu quan trọng vào `.antigravity/docs/artifacts/`.
53
+
54
+ ### 🚀 Infinite Scalability (Mở Rộng Không Giới Hạn)
55
+
56
+ Bạn muốn dùng công nghệ mới chưa có trong template?
57
+
58
+ > **/skill-learn "[Tech Name]"**
59
+ >
60
+ > _Ví dụ: `/skill-learn "Rust Lang"`, `/skill-learn "SvelteKit"`_
61
+
62
+ AI sẽ tự động:
63
+
64
+ 1. **Research:** Đọc tài liệu online chuẩn nhất.
65
+ 2. **Synthesize:** Tạo module kiến thức mới vào `.antigravity/skills/`.
66
+ 3. **Apply:** Tự động dùng kiến thức mới cho các task sau này.
67
+
68
+ ---
69
+
70
+ ## ⚠️ Quy Tắc Bắt Buộc
71
+
72
+ 1. **Không Sáng Tạo Cấu Trúc:** Luôn tuân thủ folder structure của Preset.
73
+ 2. **Hỏi Trước Khi Phá:** Nếu lệnh `/do` gây xóa dữ liệu hoặc đổi kiến trúc -> **CẢNH BÁO USER**.
74
+ 3. **Tự Động Học:** Ghi nhận lỗi sai vào Active Memory để tránh lặp lại.
75
+
76
+ ---
77
+
78
+ ## 📂 Tài Liệu (Khi cần Context sâu)
79
+
80
+ AI có thể tham khảo (User không cần đọc):
81
+
82
+ - `.antigravity/docs/` (Project Docs)
83
+ - `.antigravity/workflows/do.md` (Workflow Logic full)
84
+ - `.antigravity/agent-skill-index.yaml` (Capabilities)
package/CURSOR.md CHANGED
@@ -1,191 +1,84 @@
1
1
  # CURSOR.md
2
2
 
3
- Hướng dẫn cho Cursor AI khi làm việc trong repository này.
3
+ **Hướng dẫn dành cho Cursor AI** - "Simple Interface, Powerful Execution"
4
4
 
5
5
  ---
6
6
 
7
- ## 🎯 Core Principle
7
+ ## 🎯 Triết Lý Cốt Lỗi
8
8
 
9
- **Luôn follow rules theo thứ tự ưu tiên:**
9
+ **"LESS BUT QUALITY"**: User chỉ cần ra lệnh đơn giản. AI chịu trách nhiệm xử lý phức tạp bên dưới.
10
10
 
11
- 1. **`.cursorrules`** - Active preset rules (highest priority)
12
- 2. **`.cursor/commands/`** - Command definitions
13
- 3. **`.cursor/agents/`** - Agent behaviors
14
- 4. **`.cursor/skills/`** - Knowledge modules
15
- 5. **`docs/`** - Project documentation
11
+ ### 3 Lệnh Chính (The Only Commands You Need)
16
12
 
17
- ---
18
-
19
- ## 📋 Trước Khi Thực Hiện Command
20
-
21
- ### Bắt buộc đọc:
22
-
23
- 1. ✅ Đọc `.cursorrules` để biết preset đang dùng
24
- 2. ✅ Đọc `docs/PROJECT.md` để hiểu context
25
- 3. ✅ Đọc command definition trong `.cursor/commands/`
26
- 4. ✅ Activate skills phù hợp từ `.cursor/skills/`
13
+ | Lệnh | Chức năng | Ví dụ |
14
+ | ---------- | ---------------------- | ----------------------------------------------- |
15
+ | **/start** | Khởi tạo dự án | `/start` (AI tự detect stack & preset) |
16
+ | **/do** | **Làm tất cả mọi thứ** | `/do "Fix bug login"`, `/do "Design dashboard"` |
17
+ | **/demo** | Xem demo dự án | `/demo` (Auto run localhost) |
18
+ | **/clean** | Dọn dẹp bộ nhớ | `/clean` (Khi AI mất context) |
27
19
 
28
20
  ---
29
21
 
30
- ## 🔄 Preset System
22
+ ## 🎙️ Professional Reporting (Giao tiếp hiệu quả)
31
23
 
32
- Template hỗ trợ 3 presets:
24
+ Thay spam log kỹ thuật ("Loading...", "Reading..."), AI sử dụng format **Selective Transparency** (Minh bạch có chọn lọc).
33
25
 
34
- | Preset | .cursorrules | Setup Script |
35
- |--------|--------------|--------------|
36
- | 🚀 Rapid | `presets/rapid-mvp/.cursorrules` | `scripts/setup-rapid.ps1` |
37
- | 🏢 Professional | `presets/professional/.cursorrules` | `scripts/setup-professional.ps1` |
38
- | 🏛️ Enterprise | `presets/enterprise/.cursorrules` | `scripts/setup-enterprise.ps1` |
26
+ **Mẫu Báo Cáo Chuẩn:**
39
27
 
40
- ### Khi `/use-preset` được gọi:
28
+ > **🎯 Goal:** Fix bug login fail
29
+ >
30
+ > **🤖 Team:** `Debugger` (Root cause) → `Fullstack Dev` (Implementation)
31
+ > **🛡️ Risk Check:** Low (Local UI fix only)
32
+ >
33
+ > **📝 Changes:**
34
+ > • `src/auth/hooks/useLogin.ts`: Thêm `try/catch` block.
35
+ > • `src/components/LoginForm.tsx`: Hiển thị thông báo lỗi chi tiết.
36
+ >
37
+ > **✅ Result:** Đã fix lỗi crash khi API timeout. User giờ sẽ thấy thông báo thay vì màn hình trắng.
41
38
 
42
- 1. Hiển thị tech stack của preset
43
- 2. Yêu cầu xác nhận từ user
44
- 3. Nếu xác nhận → suggest chạy setup script
45
- 4. Script sẽ:
46
- - Copy `.cursorrules` phù hợp
47
- - Tạo folder structure
48
- - Install dependencies
49
- - Setup database
39
+ Format này giúp User hiểu **AI nào đang làm việc** và **đã thay đổi gì** mà không bị ngợp.
50
40
 
51
41
  ---
52
42
 
53
- ## 📂 Command Workflow
54
-
55
- ### Mọi command phải:
43
+ ## 🧠 Smart Execution (Trí tuệ Ẩn)
56
44
 
57
- 1. **Check preset** - Đọc `.cursorrules` để biết mode
58
- 2. **Follow structure** - Tuân thủ folder structure của preset
59
- 3. **Use conventions** - Theo naming, coding conventions
60
- 4. **Reference docs** - Tham chiếu `docs/` khi cần context
45
+ giao diện đơn giản, AI phải **ngầm** thực hiện quy trình phức tạp sau (User không cần thấy):
61
46
 
62
- ### Ví dụ:
47
+ 1. **Context Loading:**
48
+ - Project Rule: `.cursor/docs/PROJECT.md`
49
+ - User Prefs: `.cursor/user.yaml` (Optional, gitignored) - _Để AI chiều theo gu code của riêng bạn._
50
+ 2. **Orchestration:** Tự động chọn Agent (Dev/Designer/Debugger) dựa trên yêu cầu.
51
+ 3. **Risk Check:** Nếu sửa file nhạy cảm (Auth/Payment), **PHẢI** dừng lại hỏi ý kiến user.
52
+ 4. **Verification:** Tự động chạy test/lint nếu có thể.
63
53
 
64
- ```
65
- User: /plan "Add authentication"
54
+ ### 🚀 Infinite Scalability (Mở Rộng Không Giới Hạn)
66
55
 
67
- AI steps:
68
- 1. Đọc .cursorrules → Biết đang dùng Professional preset
69
- 2. Đọc docs/PROJECT.md → Hiểu context
70
- 3. Đọc .cursor/commands/plan.md → Biết format output
71
- 4. Đọc .cursor/agents/planner.md → Đóng vai planner
72
- 5. Activate skill: .cursor/skills/better-auth/
73
- 6. Output plan theo đúng structure của Professional
74
- ```
56
+ Bạn muốn dùng công nghệ mới chưa có trong template?
75
57
 
76
- ---
77
-
78
- ## 🤖 Agent Activation
79
-
80
- Khi thực hiện task, activate agents phù hợp:
58
+ > **/skill-learn "[Tech Name]"**
59
+ >
60
+ > _Ví dụ: `/skill-learn "Rust Lang"`, `/skill-learn "SvelteKit"`_
81
61
 
82
- | Task Type | Agents |
83
- |-----------|--------|
84
- | Planning | planner, researcher |
85
- | UI Design | ui-ux-designer, design-system-architect |
86
- | Domain Design | ddd-architect |
87
- | Implementation | fullstack-developer |
88
- | Review | code-reviewer |
89
- | Testing | tester |
90
- | Documentation | docs-manager |
91
- | Debugging | debugger |
62
+ AI sẽ tự động:
92
63
 
93
- **Agent files:** `.cursor/agents/`
64
+ 1. **Research:** Đọc tài liệu online chuẩn nhất.
65
+ 2. **Synthesize:** Tạo module kiến thức mới vào `.cursor/skills/`.
66
+ 3. **Apply:** Tự động dùng kiến thức mới cho các task sau này.
94
67
 
95
68
  ---
96
69
 
97
- ## 📚 Skill Activation
98
-
99
- Activate skills khi cần kiến thức chuyên sâu:
100
-
101
- > 📖 **Xem full danh sách:** `.cursor/skills/SKILLS_INDEX.md`
70
+ ## ⚠️ Quy Tắc Bắt Buộc
102
71
 
103
- ### Skills Theo Preset
104
-
105
- | Preset | Skills Chính |
106
- |--------|-------------|
107
- | 🚀 Rapid | frontend-development, ui-styling, databases, planning |
108
- | 🏢 Professional | + backend-development, better-auth, code-review |
109
- | 🏛️ Enterprise | + ddd-modular-monolith, devops, ui-ux-pro-max |
110
-
111
- ### Utility Skills (All Presets)
112
-
113
- | Skill | Khi dùng |
114
- |-------|----------|
115
- | `ai-multimodal` | Image generation |
116
- | `chrome-devtools` | Browser debugging |
117
- | `docs-seeker` | Search documentation |
118
- | `research` | Technology research |
72
+ 1. **Không Sáng Tạo Cấu Trúc:** Luôn tuân thủ folder structure của Preset đã chọn trong `.cursorrules`.
73
+ 2. **Hỏi Trước Khi Phá:** Nếu lệnh `/do` gây xóa dữ liệu hoặc đổi kiến trúc -> **CẢNH BÁO USER**.
74
+ 3. **Tự Động Học:** Nếu user sửa lại code AI vừa viết -> Ghi nhớ vào "Active Memory" để không sai lại.
119
75
 
120
76
  ---
121
77
 
122
- ## ⚠️ Important Rules
123
-
124
- ### DO:
125
- - ✅ Check `.cursorrules` trước mọi task
126
- - ✅ Follow folder structure của active preset
127
- - ✅ Reference `docs/` cho project context
128
- - ✅ Use agents và skills phù hợp
129
- - ✅ Confirm với user khi cần setup/install
130
-
131
- ### DO NOT:
132
- - ❌ Ignore `.cursorrules`
133
- - ❌ Dùng structure khác preset
134
- - ❌ Skip confirmation khi setup
135
- - ❌ Install dependencies không cần thiết
136
-
137
- ---
138
-
139
- ## 📖 Documentation Management
140
-
141
- Locations:
142
- - `docs/PROJECT.md` - Project description
143
- - `docs/code-standards.md` - Coding standards
144
- - `docs/system-architecture.md` - Architecture
145
- - `docs/CODEBASE.md` - Codebase overview
78
+ ## 📂 Tài Liệu (Khi cần Context sâu)
146
79
 
147
- **Khi cần context Đọc docs/ trước khi trả lời.**
148
-
149
- ---
150
-
151
- ## 🎭 UX Mode System (CRITICAL)
152
-
153
- > **Mode decides the voice - No exceptions**
154
-
155
- ### Rule #1: Mode Detection
156
-
157
- ```
158
- IF user_input starts with /
159
- → COMMAND MODE (Command owns UI)
160
-
161
- ELSE
162
- → PROMPT MODE (AI Agent owns UI)
163
- ```
164
-
165
- ### Command Mode
166
-
167
- When user types `/command`:
168
- - ✅ Show: Command log, structured output, governance
169
- - ❌ Hide: Agent narration, "AI decided...", raw text
170
-
171
- AI agent **im lặng hoàn toàn** ở UI.
172
-
173
- ### Prompt Mode
174
-
175
- When user types free text:
176
- - ✅ Show: AI narration, progress, explanations
177
- - ❌ Hide: Command log, governance summary
178
-
179
- This is **exploratory** mode, no governance.
180
-
181
- ### ❌ Never Do
182
-
183
- 1. Mix command log with agent chat
184
- 2. Show agent narration in command mode
185
- 3. Show governance in prompt mode
186
-
187
- 📖 Full documentation: [docs/UX_MODES.md](./docs/UX_MODES.md)
188
-
189
- ---
80
+ AI thể tham khảo (User không cần đọc):
190
81
 
191
- **CRITICAL:** Đây file AI PHẢI ĐỌC. Mọi command PHẢI follow rules này.
82
+ - `.cursor/docs/` (Project Docs)
83
+ - `.cursor/commands/do.md` (Workflow Logic full)
84
+ - `.cursor/agent-skill-index.yaml` (Capabilities)
package/LICENSE CHANGED
@@ -1,18 +1,21 @@
1
- Copyright (c) 2024-2025 ClaudeKit. All Rights Reserved.
1
+ MIT License
2
2
 
3
- This software and associated documentation files (the "Software") are proprietary
4
- and confidential. Unauthorized copying, modification, distribution, or use of this
5
- Software, via any medium, is strictly prohibited.
3
+ Copyright (c) 2024-2025 Anchi Team
6
4
 
7
- The Software is licensed, not sold. You may only use the Software if you have
8
- purchased a valid license from ClaudeKit or have been granted explicit written
9
- permission by ClaudeKit.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
10
11
 
11
- For licensing inquiries, please contact: support@claudekit.com
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
12
14
 
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
15
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
16
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.