@leejungkiin/awkit 1.4.3 → 1.5.1
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/README.md +38 -14
- package/bin/awk.js +438 -86
- package/bin/claude-generators.js +3 -1
- package/bin/cline-generators.js +3 -1
- package/bin/codex-generators.js +7 -2
- package/core/orchestrator.md +17 -3
- package/core/skill-runtime-manifest.json +37 -0
- package/package.json +2 -2
- package/skill-packs/creator-studio/README.md +19 -0
- package/skill-packs/creator-studio/pack.json +10 -0
- package/skill-packs/marketing/README.md +64 -0
- package/skill-packs/marketing/pack.json +37 -0
- package/skill-packs/mobile-android/README.md +16 -0
- package/skill-packs/mobile-android/pack.json +10 -0
- package/skill-packs/mobile-ios/README.md +22 -0
- package/skill-packs/mobile-ios/pack.json +16 -0
- package/skill-packs/neural-memory/pack.json +8 -2
- package/skill-packs/superpowers/pack.json +1 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/SKILL.md +59 -358
- package/skill-packs/superpowers/skills/writing-skills/SKILL.md +60 -654
- package/skill-packs/superpowers/skills/writing-skills/examples/anti-rationalization.md +75 -0
- package/skill-packs/superpowers/skills/writing-skills/examples/cso-optimization.md +67 -0
- package/skill-packs/superpowers/skills/writing-skills/examples/tdd-for-skills.md +63 -0
- package/skills/CATALOG.md +49 -44
- package/skills/brainstorm-agent/SKILL.md +55 -315
- package/skills/brainstorm-agent/templates/brief-template.md +76 -0
- package/skills/codex-conductor/SKILL.md +55 -259
- package/skills/codex-conductor/examples/prompt-templates.md +72 -0
- package/skills/module-spec-writer/SKILL.md +38 -365
- package/skills/module-spec-writer/examples/port-migration-mode.md +40 -0
- package/skills/module-spec-writer/templates/module-spec-template.md +118 -0
- package/skills/orchestrator/SKILL.md +17 -8
- package/skills/single-flow-task-execution/SKILL.md +56 -363
- package/skills/single-flow-task-execution/examples/workflow-example.md +91 -0
- package/skills/smali-to-kotlin/SKILL.md +23 -416
- package/skills/smali-to-kotlin/examples/getting-started/tech-stack.md +58 -0
- package/skills/smali-to-kotlin/examples/pipeline/data-ui-parity.md +118 -0
- package/skills/smali-to-kotlin/examples/pipeline/scanner-and-bootstrap.md +106 -0
- package/skills/smali-to-swift/SKILL.md +18 -621
- package/skills/smali-to-swift/examples/getting-started/tech-stack.md +72 -0
- package/skills/smali-to-swift/examples/getting-started/toolchain.md +32 -0
- package/skills/smali-to-swift/examples/pipeline/core-logic.md +45 -0
- package/skills/smali-to-swift/examples/pipeline/data-layer.md +76 -0
- package/skills/smali-to-swift/examples/pipeline/framework-scanner.md +73 -0
- package/skills/smali-to-swift/examples/pipeline/project-bootstrap.md +76 -0
- package/skills/smali-to-swift/examples/pipeline/sdk-integration.md +66 -0
- package/skills/smali-to-swift/examples/pipeline/ui-viewmodel.md +96 -0
- package/skills/smali-to-swift/references/objc-to-swift-mapping.md +57 -0
- package/skills/spec-gate/SKILL.md +51 -265
- package/skills/spec-gate/templates/design-templates.md +93 -0
- package/skills/symphony-enforcer/SKILL.md +24 -555
- package/skills/symphony-enforcer/examples/startup-protocol.md +92 -0
- package/skills/symphony-enforcer/examples/task-completion.md +100 -0
- package/skills/symphony-enforcer/examples/three-phase.md +107 -0
- package/skills/symphony-enforcer/examples/trigger-points.md +99 -0
- package/skills/symphony-orchestrator/SKILL.md +1 -1
- package/skills/writing-skills/SKILL.md +82 -70
- package/skills/writing-skills/examples/anti-rationalization.md +53 -0
- package/skills/writing-skills/examples/cso-optimization.md +52 -0
- package/skills/writing-skills/examples/tdd-for-skills.md +48 -0
- package/templates/help.html +447 -0
- package/skills/memory-sync/SKILL.md +0 -424
- package/skills/memory-sync/memory-router.md +0 -185
- package/skills/memory-sync/memory-templates.md +0 -201
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Skill Search Optimization
|
|
2
|
+
|
|
3
|
+
Future sessions need to discover the skill quickly from a short description and a few trigger words.
|
|
4
|
+
|
|
5
|
+
## 1. Description Field
|
|
6
|
+
|
|
7
|
+
Descriptions decide whether the skill gets loaded at all.
|
|
8
|
+
|
|
9
|
+
- Start with `Use when...`
|
|
10
|
+
- Describe trigger conditions, symptoms, or user intent
|
|
11
|
+
- Do not summarize the workflow in the description
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
# Bad: summarizes workflow
|
|
15
|
+
description: Use when executing plans and doing review after each task
|
|
16
|
+
|
|
17
|
+
# Good: describes trigger conditions only
|
|
18
|
+
description: Use when executing implementation plans with multiple independent tasks in the current session
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 2. Keyword Coverage
|
|
22
|
+
|
|
23
|
+
Use the words an agent would actually search for:
|
|
24
|
+
|
|
25
|
+
- Error strings
|
|
26
|
+
- Observable symptoms
|
|
27
|
+
- Synonyms for the same failure mode
|
|
28
|
+
- Tool names and file types when relevant
|
|
29
|
+
|
|
30
|
+
## 3. Naming
|
|
31
|
+
|
|
32
|
+
Prefer clear, active names:
|
|
33
|
+
|
|
34
|
+
- `writing-skills` over `skill-documentation`
|
|
35
|
+
- `systematic-debugging` over `debug-help`
|
|
36
|
+
|
|
37
|
+
## 4. Token Discipline
|
|
38
|
+
|
|
39
|
+
- Keep `SKILL.md` lean
|
|
40
|
+
- Move heavy detail into `examples/`, `references/`, or scripts
|
|
41
|
+
- Avoid repeating the same rule in multiple sections
|
|
42
|
+
|
|
43
|
+
## 5. Cross-Referencing
|
|
44
|
+
|
|
45
|
+
Prefer skill names or local relative paths over platform-specific hardcoded paths.
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
✅ **Required skill:** `test-driven-development`
|
|
49
|
+
✅ See `examples/tdd-for-skills.md`
|
|
50
|
+
❌ Hardcode `.agent/skills/...`
|
|
51
|
+
❌ Force-load with `@...` when a plain reference is enough
|
|
52
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# TDD for Skills
|
|
2
|
+
|
|
3
|
+
## The Iron Law
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
NO SKILL WITHOUT A FAILING TEST FIRST
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This applies to new skills and edits to existing skills.
|
|
10
|
+
|
|
11
|
+
## RED
|
|
12
|
+
|
|
13
|
+
Run realistic prompts or pressure scenarios **without** the skill.
|
|
14
|
+
|
|
15
|
+
- Record the failures
|
|
16
|
+
- Capture exact rationalizations
|
|
17
|
+
- Note which ambiguity or missing rule caused the failure
|
|
18
|
+
|
|
19
|
+
## GREEN
|
|
20
|
+
|
|
21
|
+
Write the smallest useful skill that fixes the observed failure.
|
|
22
|
+
|
|
23
|
+
- Add only the sections required to teach the missing behavior
|
|
24
|
+
- Put heavy detail into side files
|
|
25
|
+
- Re-run the same scenarios
|
|
26
|
+
|
|
27
|
+
## REFACTOR
|
|
28
|
+
|
|
29
|
+
If new loopholes appear:
|
|
30
|
+
|
|
31
|
+
- Add explicit counters
|
|
32
|
+
- Tighten the trigger description
|
|
33
|
+
- Re-test again
|
|
34
|
+
|
|
35
|
+
## Test by Skill Type
|
|
36
|
+
|
|
37
|
+
- **Discipline skills**: pressure scenarios and loophole checks
|
|
38
|
+
- **Technique skills**: application on fresh problems
|
|
39
|
+
- **Pattern skills**: recognition plus counter-examples
|
|
40
|
+
- **Reference skills**: retrieval speed and correct application
|
|
41
|
+
|
|
42
|
+
## Common Rationalizations
|
|
43
|
+
|
|
44
|
+
| Excuse | Reality |
|
|
45
|
+
|--------|---------|
|
|
46
|
+
| "This change is obvious" | Obvious to the author is not evidence. |
|
|
47
|
+
| "It is only documentation" | Bad documentation teaches bad behavior. |
|
|
48
|
+
| "I'll validate later" | Later usually means never. |
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="vi">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Tài Liệu Hướng Dẫn AWKit</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--bg-color: #0f172a;
|
|
10
|
+
--surface-color: #1e293b;
|
|
11
|
+
--text-color: #cbd5e1;
|
|
12
|
+
--heading-color: #f8fafc;
|
|
13
|
+
--accent-color: #38bdf8;
|
|
14
|
+
--code-bg: #0b1120;
|
|
15
|
+
--border-color: #334155;
|
|
16
|
+
--success-color: #34d399;
|
|
17
|
+
--warning-color: #fbbf24;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
22
|
+
background-color: var(--bg-color);
|
|
23
|
+
color: var(--text-color);
|
|
24
|
+
line-height: 1.6;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.container {
|
|
30
|
+
max-width: 900px;
|
|
31
|
+
margin: 0 auto;
|
|
32
|
+
padding: 2rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
header {
|
|
36
|
+
text-align: center;
|
|
37
|
+
margin-bottom: 3rem;
|
|
38
|
+
padding-bottom: 2rem;
|
|
39
|
+
border-bottom: 1px solid var(--border-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h1, h2, h3, h4 {
|
|
43
|
+
color: var(--heading-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h1 {
|
|
47
|
+
font-size: 2.5rem;
|
|
48
|
+
margin-bottom: 0.5rem;
|
|
49
|
+
color: var(--accent-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
header p {
|
|
53
|
+
font-size: 1.25rem;
|
|
54
|
+
color: #94a3b8;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card {
|
|
58
|
+
background-color: var(--surface-color);
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
padding: 1.5rem;
|
|
61
|
+
margin-bottom: 2rem;
|
|
62
|
+
border: 1px solid var(--border-color);
|
|
63
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
h2 {
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
font-size: 1.5rem;
|
|
69
|
+
border-bottom: 2px solid var(--border-color);
|
|
70
|
+
padding-bottom: 0.5rem;
|
|
71
|
+
margin-bottom: 1rem;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 0.5rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h3 {
|
|
78
|
+
margin-top: 1.5rem;
|
|
79
|
+
margin-bottom: 0.5rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
code {
|
|
83
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
84
|
+
background-color: var(--code-bg);
|
|
85
|
+
padding: 0.2rem 0.4rem;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
font-size: 0.9em;
|
|
88
|
+
color: #e2e8f0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
pre {
|
|
92
|
+
background-color: var(--code-bg);
|
|
93
|
+
padding: 1rem;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
overflow-x: auto;
|
|
96
|
+
border: 1px solid var(--border-color);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
pre code {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
padding: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ul, ol {
|
|
105
|
+
padding-left: 1.5rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
li {
|
|
109
|
+
margin-bottom: 0.5rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.command-table {
|
|
113
|
+
width: 100%;
|
|
114
|
+
border-collapse: collapse;
|
|
115
|
+
margin-top: 1rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.command-table th, .command-table td {
|
|
119
|
+
padding: 0.75rem;
|
|
120
|
+
text-align: left;
|
|
121
|
+
border-bottom: 1px solid var(--border-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.command-table th {
|
|
125
|
+
color: var(--heading-color);
|
|
126
|
+
font-weight: 600;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.command-table tr:last-child td {
|
|
130
|
+
border-bottom: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.badge {
|
|
134
|
+
background-color: var(--accent-color);
|
|
135
|
+
color: #0f172a;
|
|
136
|
+
padding: 0.1rem 0.4rem;
|
|
137
|
+
border-radius: 12px;
|
|
138
|
+
font-size: 0.8rem;
|
|
139
|
+
font-weight: bold;
|
|
140
|
+
margin-left: 0.5rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.badge.warning {
|
|
144
|
+
background-color: var(--warning-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.badge.success {
|
|
148
|
+
background-color: var(--success-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
footer {
|
|
152
|
+
text-align: center;
|
|
153
|
+
margin-top: 4rem;
|
|
154
|
+
padding-top: 2rem;
|
|
155
|
+
border-top: 1px solid var(--border-color);
|
|
156
|
+
color: #64748b;
|
|
157
|
+
}
|
|
158
|
+
</style>
|
|
159
|
+
</head>
|
|
160
|
+
<body>
|
|
161
|
+
<div class="container">
|
|
162
|
+
<header>
|
|
163
|
+
<h1>Tài Liệu Hướng Dẫn AWKit</h1>
|
|
164
|
+
<p>Chào mừng bạn đến với dự án Antigravity đã được khởi tạo!</p>
|
|
165
|
+
</header>
|
|
166
|
+
|
|
167
|
+
<main>
|
|
168
|
+
<div class="card">
|
|
169
|
+
<h2>🚀 Bắt Đầu (Getting Started)</h2>
|
|
170
|
+
<p><strong>AWKit</strong> (Antigravity Kit) là công cụ điều phối dự án, tạo code, và quản lý AI agent chuyên sâu. Dự án của bạn đã được khởi tạo với các file quan trọng sau đây:</p>
|
|
171
|
+
<ul>
|
|
172
|
+
<li><code>.project-identity</code>: Chứa cấu hình dự án (Tên, Tech Stack, Bundle ID). Hãy chỉnh sửa file này để thay đổi định nghĩa gốc của dự án.</li>
|
|
173
|
+
<li><code>CODEBASE.md</code>: Tài liệu sống về kiến trúc của bộ code. Mở chat AI và gõ <code>/codebase-sync</code> để AI tự động đánh giá và cập nhật.</li>
|
|
174
|
+
<li><code>AGENTS.md</code> & <code>CLAUDE.md</code>: Các tệp định tuyến (Router files) hỗ trợ AI IDE (như Cline, Roo, Cursor) nhận diện bộ quy tắc tập trung từ hệ thống.</li>
|
|
175
|
+
</ul>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div class="card">
|
|
179
|
+
<h2>⚡ Cách Sử Dụng AWKit</h2>
|
|
180
|
+
<p>AWKit hoạt động theo nguyên tắc <strong>"nói gì làm nấy"</strong>. Bạn chỉ cần mô tả yêu cầu bằng ngôn ngữ tự nhiên trong cửa sổ Chat, AI sẽ tự động kích hoạt đúng quy trình (7-Gate) mà không cần gõ lệnh thủ công.</p>
|
|
181
|
+
|
|
182
|
+
<h3>🤖 AI Tự Động Xử Lý (Không cần gõ lệnh)</h3>
|
|
183
|
+
<p>Các quy trình sau được hệ thống Skill tự động nhận diện và kích hoạt khi bạn chat:</p>
|
|
184
|
+
<ul>
|
|
185
|
+
<li><strong>Brainstorm:</strong> "Tôi muốn làm tính năng X" → AI tự chạy Gate 1 (Spec)</li>
|
|
186
|
+
<li><strong>Thiết kế:</strong> "Thiết kế kiến trúc cho module Auth" → AI tự chạy Gate 2 (Architecture)</li>
|
|
187
|
+
<li><strong>Code:</strong> "Code màn hình đăng nhập" → AI tự chạy Gate 4 (Execution) với 3-Phase</li>
|
|
188
|
+
<li><strong>Debug:</strong> "App crash khi bấm nút Save" → AI tự kích hoạt systematic debugging</li>
|
|
189
|
+
<li><strong>Refactor:</strong> "Đổi tên class UserManager" → AI dùng GitNexus rename an toàn</li>
|
|
190
|
+
</ul>
|
|
191
|
+
|
|
192
|
+
<h3>⌨️ Quick Shortcuts (Phím tắt hữu ích)</h3>
|
|
193
|
+
<p>Một số lệnh ngắn vẫn hữu ích khi bạn cần truy cập nhanh:</p>
|
|
194
|
+
<table class="command-table">
|
|
195
|
+
<thead>
|
|
196
|
+
<tr>
|
|
197
|
+
<th>Lệnh</th>
|
|
198
|
+
<th>Chức năng</th>
|
|
199
|
+
</tr>
|
|
200
|
+
</thead>
|
|
201
|
+
<tbody>
|
|
202
|
+
<tr>
|
|
203
|
+
<td><code>/next</code></td>
|
|
204
|
+
<td>Hỏi nhanh "Tôi nên làm gì tiếp?" — AI đọc Symphony và đề xuất bước tiếp theo.</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td><code>/recap</code></td>
|
|
208
|
+
<td>Tổng hợp tình trạng dự án: tiến độ, task đang chạy, vấn đề tồn đọng.</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td><code>/debug</code></td>
|
|
212
|
+
<td>Kích hoạt chế độ sửa lỗi hệ thống (Tìm nguyên nhân → Phân tích → Sửa → Xác nhận).</td>
|
|
213
|
+
</tr>
|
|
214
|
+
<tr>
|
|
215
|
+
<td><code>/visual-debug</code></td>
|
|
216
|
+
<td>Phân tích ảnh chụp màn hình để xác định và sửa lỗi giao diện hoặc hiển thị.</td>
|
|
217
|
+
</tr>
|
|
218
|
+
<tr>
|
|
219
|
+
<td><code>/codebase-sync</code></td>
|
|
220
|
+
<td>Cập nhật lại tài liệu <code>CODEBASE.md</code> cho khớp với code thực tế.</td>
|
|
221
|
+
</tr>
|
|
222
|
+
<tr>
|
|
223
|
+
<td><code>/smart-git-ops</code></td>
|
|
224
|
+
<td>Tự động hóa git workflow hoàn chỉnh (audit → commit → push → telegram report).</td>
|
|
225
|
+
</tr>
|
|
226
|
+
</tbody>
|
|
227
|
+
</table>
|
|
228
|
+
|
|
229
|
+
<h3>📖 Workflow Chuyên Biệt (Step-by-step)</h3>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<h4>🚀 DevOps & Git</h4>
|
|
233
|
+
<table class="command-table">
|
|
234
|
+
<tbody>
|
|
235
|
+
<tr>
|
|
236
|
+
<td><code>/deploy</code></td>
|
|
237
|
+
<td>Quy trình deploy lên Production (kiểm tra trước, build, push).</td>
|
|
238
|
+
</tr>
|
|
239
|
+
<tr>
|
|
240
|
+
<td><code>/hotfix</code></td>
|
|
241
|
+
<td>Sửa lỗi khẩn cấp Production — quy trình nhanh, có rollback.</td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr>
|
|
244
|
+
<td><code>/rollback</code></td>
|
|
245
|
+
<td>Quay lại phiên bản cũ an toàn.</td>
|
|
246
|
+
</tr>
|
|
247
|
+
<tr>
|
|
248
|
+
<td><code>/git-rebase-flow</code></td>
|
|
249
|
+
<td>Quy trình chuẩn Feature Branch → Rebase → PR.</td>
|
|
250
|
+
</tr>
|
|
251
|
+
<tr>
|
|
252
|
+
<td><code>/migration</code></td>
|
|
253
|
+
<td>Nâng cấp SDK & Dependencies có checklist.</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td><code>/release-notes</code></td>
|
|
257
|
+
<td>Tạo Release Notes tự động từ git log.</td>
|
|
258
|
+
</tr>
|
|
259
|
+
<tr>
|
|
260
|
+
<td><code>/cloudflare-tunnel</code></td>
|
|
261
|
+
<td>Quản lý Cloudflare Tunnel cho domain/subdomain.</td>
|
|
262
|
+
</tr>
|
|
263
|
+
</tbody>
|
|
264
|
+
</table>
|
|
265
|
+
|
|
266
|
+
<h4>🧪 Testing & Multi-Agent</h4>
|
|
267
|
+
<table class="command-table">
|
|
268
|
+
<tbody>
|
|
269
|
+
<tr>
|
|
270
|
+
<td><code>/maestro-qa-workflow</code></td>
|
|
271
|
+
<td>QA Testing chuyên nghiệp với Maestro (UI automation).</td>
|
|
272
|
+
</tr>
|
|
273
|
+
<tr>
|
|
274
|
+
<td><code>/conductor</code></td>
|
|
275
|
+
<td>Gọi Gemini CLI phân tích project-wide — khi cần tầm nhìn rộng hơn 1 model.</td>
|
|
276
|
+
</tr>
|
|
277
|
+
<tr>
|
|
278
|
+
<td><code>/conductor-codex</code></td>
|
|
279
|
+
<td>Gọi Codex CLI rà soát code, review logic — second opinion từ GPT 5.4.</td>
|
|
280
|
+
</tr>
|
|
281
|
+
</tbody>
|
|
282
|
+
</table>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div class="card">
|
|
286
|
+
<h2>🧠 GitNexus - Trí Tuệ Mã Nguồn</h2>
|
|
287
|
+
<p>AWKit tích hợp <strong>GitNexus</strong> để hiểu toàn bộ kiến trúc, rà soát mô hình tham chiếu (blast radiuses), và vẽ luồng hoạt động mã nguồn theo dạng đồ thị. </p>
|
|
288
|
+
|
|
289
|
+
<h3>Cách dùng CLI (Terminal)</h3>
|
|
290
|
+
<pre><code># Quét và đánh index lại dự án (Nên chạy sau mỗi lần commit lớn)
|
|
291
|
+
npx gitnexus analyze
|
|
292
|
+
|
|
293
|
+
# Quét đầy đủ bao gồm phân tích Embedding
|
|
294
|
+
npx gitnexus analyze --embeddings</code></pre>
|
|
295
|
+
|
|
296
|
+
<h3>Sử dụng với AI (MCP Tools)</h3>
|
|
297
|
+
<p>Mọi AI Agent đi kèm AWKit đều có nhiệm vụ dùng các GitNexus Tool để tính toán rủi ro:</p>
|
|
298
|
+
<ul>
|
|
299
|
+
<li><code>gitnexus_impact</code>: Kiểm tra "blast radius" – Phải báo cáo xem có file nào hỏng không trước khi thay đổi (Refactoring).</li>
|
|
300
|
+
<li><code>gitnexus_query</code>: Để lục tìm concept (e.g. "Tìm thư mục chứa Auth Flow").</li>
|
|
301
|
+
<li><code>gitnexus_detect_changes</code>: Rà soát xem git local thay đổi những gì, có rủi ro nào ở scope khác không.</li>
|
|
302
|
+
<li><code>gitnexus_rename</code>: Đổi tên một class hoặc biến an toàn thông qua Knowledge Graph thay vì chỉ Find and Replace.</li>
|
|
303
|
+
</ul>
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
<div class="card">
|
|
307
|
+
<h2>📋 Symphony - Quản Lý Tiến Độ Tác Vụ</h2>
|
|
308
|
+
<p>Symphony là trái tim của việc chia nhỏ và đánh dấu tiến độ công việc trong AWKit. Dữ liệu được lưu trữ ở <strong>cơ sở dữ liệu toàn cục</strong> (<code>~/.gemini/antigravity/symphony/</code>), không nằm trong thư mục dự án. Thư mục <code>.symphony/</code> trong project chỉ đóng vai trò đánh dấu (marker) để AI nhận diện phạm vi dự án.</p>
|
|
309
|
+
|
|
310
|
+
<h3>Cài đặt Symphony CLI (chỉ cần 1 lần):</h3>
|
|
311
|
+
<pre><code># Cài đặt toàn cục
|
|
312
|
+
npm install -g @leejungkiin/awkit-symphony
|
|
313
|
+
|
|
314
|
+
# Kiểm tra đã cài xong
|
|
315
|
+
symphony status</code></pre>
|
|
316
|
+
|
|
317
|
+
<h3>Các thao tác CLI hữu ích:</h3>
|
|
318
|
+
<pre><code># Hệ thống quản lý
|
|
319
|
+
symphony status # Xem thông tin cấu hình và trạng thái server
|
|
320
|
+
symphony reset # Xoá database toàn cục (CHỈ KHI BỊ LỖI DATABASE)
|
|
321
|
+
|
|
322
|
+
# Thao tác với Task
|
|
323
|
+
symphony task list # Xem danh sách tất cả các task hiện tại
|
|
324
|
+
symphony task add "Làm màn hình Đăng Nhập"
|
|
325
|
+
symphony task claim <id> # Bắt đầu làm task
|
|
326
|
+
symphony task complete <id> # Đánh dấu hoàn thành
|
|
327
|
+
symphony task block <id> "Lý do" # Đánh dấu bị chặn vì lỗi</code></pre>
|
|
328
|
+
<p>Hệ thống AI AWKit sẽ <strong>luôn tự động</strong> thực hiện các hành động trên cho bạn trong quá trình thực thi hệ thống 7-Gate. Bạn không cần gõ lệnh thủ công trừ khi muốn kiểm tra tiến độ.</p>
|
|
329
|
+
</div>
|
|
330
|
+
|
|
331
|
+
<div class="card">
|
|
332
|
+
<h2>🔌 Tích Hợp Dự Án (Trello & Telegram & Neural Memory)</h2>
|
|
333
|
+
|
|
334
|
+
<h3>1. Trello Sync</h3>
|
|
335
|
+
<p>Đồng bộ công việc của bạn (hoặc AI tạo ra) thẳng lên một Card Trello dưới dạng Checklists và ghi chú (Comments). Giúp Quản lý (PM) có thể theo dõi tiến độ dễ dàng.</p>
|
|
336
|
+
<pre><code># Cài đặt ban đầu (Nhập API/Token)
|
|
337
|
+
awkit trello setup
|
|
338
|
+
|
|
339
|
+
# Câu lệnh hệ thống dành cho Trello (Hoặc AI tự chạy)
|
|
340
|
+
awkit trello desc "Mô tả của dự án"
|
|
341
|
+
awkit trello checklist "Tên Sprint/Phase"
|
|
342
|
+
awkit trello item "Tên Task"
|
|
343
|
+
awkit trello complete "Tên Task"
|
|
344
|
+
awkit trello comment "Báo cáo nhanh cho PM..."</code></pre>
|
|
345
|
+
|
|
346
|
+
<h3>2. Telegram Notify</h3>
|
|
347
|
+
<p>Hỗ trợ gửi thông báo cho nhóm điều hành qua Box chat Telegram (Push, Lỗi, Hoàn thành CI/CD).</p>
|
|
348
|
+
<pre><code># Thiết lập Token Bot Telegram và lấy ID Box Chat
|
|
349
|
+
awkit tg setup
|
|
350
|
+
|
|
351
|
+
# Gửi tin nhắn test
|
|
352
|
+
awkit tg send "Chào anh em, AWKit đã ready!"
|
|
353
|
+
# Hoặc gửi kèm Topic
|
|
354
|
+
awkit tg send --topic 1234 "App đã build xong nhé!"</code></pre>
|
|
355
|
+
|
|
356
|
+
<h3>3. Neural Memory</h3>
|
|
357
|
+
<p>Là bộ nhớ Graph "Contextual" lưu trữ các bài học (Edge Cases, Architecture Pattern) của từng Project dựa trên Project ID, đảm bảo AI không lặp lại lỗi cũ qua các session dài ngày. Hệ thống sẽ tự động sử dụng trong nền.</p>
|
|
358
|
+
</div>
|
|
359
|
+
|
|
360
|
+
<div class="card">
|
|
361
|
+
<h2>🤖 Hệ Thống 7 Cổng (7-Gate) Tự Động</h2>
|
|
362
|
+
<p>Bất cứ khi nào bạn nhờ AWKit làm một tác vụ có độ phức tạp cao, AI sẽ chạy theo quy trình vòng kín 7-Gate khắt khe này để kiểm soát chất lượng:</p>
|
|
363
|
+
<ol>
|
|
364
|
+
<li><strong>Gate 1 (Spec):</strong> Thu thập yêu cầu, tạo file <code>BRIEF.md</code></li>
|
|
365
|
+
<li><strong>Gate 1.5 (Module Spec):</strong> Viết sâu vào từng Flow người dùng và Rules validation trước khi code.</li>
|
|
366
|
+
<li><strong>Gate 2 (Architecture):</strong> Thống nhất Database Schema, API Contract.</li>
|
|
367
|
+
<li><strong>Gate 2.5 (Visual):</strong> Tạo mock-up UI với hệ thống tích hợp Pencil MCP hoặc ảnh chụp màn hình.</li>
|
|
368
|
+
<li><strong>Gate 3 (Tasks):</strong> Xé rách dự án thành các thẻ Symphony Tickets.</li>
|
|
369
|
+
<li><strong>Gate 4 (Execution):</strong> Thực thi theo 3-Phase (Code Kiến trúc chuẩn → Làm giao diện → Gắn Code Logic Data) với các bước <strong>Dừng User Test</strong>.</li>
|
|
370
|
+
<li><strong>Gate 5 (Verification):</strong> Review code, test và dùng AI xác nhận Git Commit an toàn.</li>
|
|
371
|
+
</ol>
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
<div class="card">
|
|
375
|
+
<h2>🧩 Chiến Lược Đa IDE & Đa AI Model</h2>
|
|
376
|
+
<p>AWKit được thiết kế để tận dụng <strong>sức mạnh của nhiều AI Model cùng lúc</strong>. Hệ thống gồm 3 Model chính, mỗi cái phục vụ một mục đích khác nhau, chia làm 2 kênh truy cập:</p>
|
|
377
|
+
|
|
378
|
+
<h3>Kênh 1: Antigravity (IDE tích hợp — VS Code / Cursor)</h3>
|
|
379
|
+
<p>Đây là kênh chính để code, debug, và điều phối dự án. Hoạt động qua Agent trong IDE.</p>
|
|
380
|
+
<table class="command-table">
|
|
381
|
+
<thead>
|
|
382
|
+
<tr>
|
|
383
|
+
<th>Model</th>
|
|
384
|
+
<th>Thế mạnh</th>
|
|
385
|
+
<th>Khi nào dùng</th>
|
|
386
|
+
</tr>
|
|
387
|
+
</thead>
|
|
388
|
+
<tbody>
|
|
389
|
+
<tr>
|
|
390
|
+
<td><strong>Claude Opus 4.6</strong> <span class="badge">Mặc định</span></td>
|
|
391
|
+
<td>Suy luận sâu, tuân thủ quy tắc tốt nhất, kiến trúc phức tạp</td>
|
|
392
|
+
<td>Mọi task chính: code Feature, Debug logic phức tạp, Thiết kế kiến trúc, Gate 1–5</td>
|
|
393
|
+
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td><strong>Gemini 3.1 Pro</strong> <span class="badge success">Bổ trợ</span></td>
|
|
396
|
+
<td>Context window cực lớn (2M tokens), xử lý nhanh, phân tích file dài</td>
|
|
397
|
+
<td>Đọc/phân tích codebase lớn, Refactor đa file, Brainstorm ý tưởng, Review nhanh</td>
|
|
398
|
+
</tr>
|
|
399
|
+
</tbody>
|
|
400
|
+
</table>
|
|
401
|
+
<p><em>💡 Mẹo: Chuyển đổi model trực tiếp trong Antigravity bằng nút chọn Model ở thanh chat. Dùng Opus cho task cần chính xác cao, dùng Gemini khi cần quét/phân tích khối lượng lớn.</em></p>
|
|
402
|
+
|
|
403
|
+
<h3>Kênh 2: Codex CLI / Extension (chạy nền song song)</h3>
|
|
404
|
+
<p><strong>Codex (GPT 5.4)</strong> hoạt động như một "trợ lý thứ hai" chạy song song, <strong>hoàn toàn READ-ONLY</strong>. Codex không chỉnh sửa code — nó chỉ đọc, phân tích, và xuất báo cáo.</p>
|
|
405
|
+
<table class="command-table">
|
|
406
|
+
<thead>
|
|
407
|
+
<tr>
|
|
408
|
+
<th>Cách dùng</th>
|
|
409
|
+
<th>Mô tả</th>
|
|
410
|
+
</tr>
|
|
411
|
+
</thead>
|
|
412
|
+
<tbody>
|
|
413
|
+
<tr>
|
|
414
|
+
<td><strong>Codex CLI</strong></td>
|
|
415
|
+
<td>Chạy trong Terminal: <code>codex</code> rồi nhập câu hỏi. Phù hợp để debug, review logic, và audit code.</td>
|
|
416
|
+
</tr>
|
|
417
|
+
<tr>
|
|
418
|
+
<td><strong>VS Code Extension</strong></td>
|
|
419
|
+
<td>Cài extension "Codex" trong VS Code để dùng trực tiếp trong IDE song song với Antigravity.</td>
|
|
420
|
+
</tr>
|
|
421
|
+
</tbody>
|
|
422
|
+
</table>
|
|
423
|
+
<pre><code># Ví dụ dùng Codex CLI kiểm tra logic
|
|
424
|
+
codex "Review function validateBloodPressure và tìm edge case bị bỏ sót"
|
|
425
|
+
|
|
426
|
+
# Hoặc AWKit tự gọi Codex khi cần second opinion
|
|
427
|
+
/conductor-codex "Rà soát toàn bộ authentication flow"</code></pre>
|
|
428
|
+
|
|
429
|
+
<h3>Chiến lược tối ưu khi dùng đa model:</h3>
|
|
430
|
+
<ol>
|
|
431
|
+
<li><strong>Opus 4.6 dẫn đầu:</strong> Mọi task chính (code, debug, plan) đều chạy trên Opus. Đây là model có khả năng tuân thủ quy tắc AWKit và suy luận chuỗi tốt nhất.</li>
|
|
432
|
+
<li><strong>Gemini 3.1 Pro mở rộng:</strong> Khi cần đọc file dài, phân tích codebase >1000 dòng, hoặc brainstorm nhanh — chuyển sang Gemini để tận dụng context window lớn và tốc độ.</li>
|
|
433
|
+
<li><strong>Codex chạy song song:</strong> Mở terminal thứ 2, chạy <code>codex</code> để hỏi second opinion, review code đã viết, hoặc tìm bug mà model chính bỏ sót. Codex dùng quota riêng nên không ảnh hưởng Opus/Gemini.</li>
|
|
434
|
+
<li><strong>Không trùng lặp:</strong> Chỉ 1 model chỉnh sửa file tại 1 thời điểm. Codex chỉ đọc và báo cáo, không ghi file.</li>
|
|
435
|
+
</ol>
|
|
436
|
+
</div>
|
|
437
|
+
|
|
438
|
+
</main>
|
|
439
|
+
|
|
440
|
+
<footer>
|
|
441
|
+
<p>Generated by <strong>AWKit</strong> v12.3</p>
|
|
442
|
+
<p>Bản quyền © 2026. Nếu có vấn đề kỹ thuật, liên hệ email dự án: <a href="mailto:leejungkiin@gmail.com" style="color:var(--text-color);">leejungkiin@gmail.com</a></p>
|
|
443
|
+
<p><small>Vui lòng giữ tài liệu này như cuốn cẩm nang bỏ túi của bạn trong suốt dự án.</small></p>
|
|
444
|
+
</footer>
|
|
445
|
+
</div>
|
|
446
|
+
</body>
|
|
447
|
+
</html>
|