@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
|
@@ -5,7 +5,7 @@ description: >-
|
|
|
5
5
|
Triggers: /brainstorm command, từ khoá "brainstorm", "ý tưởng", "nên làm gì", "ideate".
|
|
6
6
|
Chức năng: Tổ chức phiên brainstorm có cấu trúc, tư vấn ý tưởng, tạo BRIEF.md.
|
|
7
7
|
KHÔNG liên quan đến memory-sync (đọc/ghi brain files).
|
|
8
|
-
version: 1.
|
|
8
|
+
version: 1.1.0
|
|
9
9
|
trigger: conditional
|
|
10
10
|
activation_keywords:
|
|
11
11
|
- "/brainstorm"
|
|
@@ -14,363 +14,103 @@ activation_keywords:
|
|
|
14
14
|
- "ideate"
|
|
15
15
|
- "nên làm gì"
|
|
16
16
|
- "tính năng mới"
|
|
17
|
-
- "khám phá hướng"
|
|
18
17
|
priority: medium
|
|
19
18
|
---
|
|
20
19
|
|
|
21
|
-
# 💡 Brainstorm Agent
|
|
20
|
+
# 💡 Brainstorm Agent — Router
|
|
22
21
|
|
|
23
|
-
> **Purpose:** Biến ý tưởng mơ hồ thành bản thiết kế rõ ràng
|
|
24
|
-
> **Scope:** Chỉ xử lý quá trình sáng tạo và khám phá ý tưởng.
|
|
22
|
+
> **Purpose:** Biến ý tưởng mơ hồ thành bản thiết kế rõ ràng qua phiên brainstorm có cấu trúc.
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## ⚠️ SCOPE CLARITY
|
|
24
|
+
## ⚠️ SCOPE
|
|
29
25
|
|
|
30
|
-
|
|
|
31
|
-
|
|
32
|
-
| Brainstorm ý tưởng
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
| Tạo BRIEF.md output | Lên kế hoạch chi tiết (việc của /plan) |
|
|
36
|
-
| Phân tích đối thủ | Deploy |
|
|
26
|
+
| LÀM | KHÔNG làm |
|
|
27
|
+
|-----|-----------|
|
|
28
|
+
| Brainstorm ý tưởng, tư vấn hướng đi | Đọc/ghi brain/memory files |
|
|
29
|
+
| Research thị trường, phân tích đối thủ | Track tasks (symphony) |
|
|
30
|
+
| Tạo BRIEF.md output | Sửa lỗi code, deploy |
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
→ Memory-sync skill tự động lưu kết quả. Brainstorm-agent KHÔNG cần gọi memory-sync.
|
|
40
|
-
|
|
41
|
-
---
|
|
32
|
+
## 📋 Topic Index
|
|
42
33
|
|
|
43
|
-
|
|
34
|
+
| Topic | Khi nào load | File |
|
|
35
|
+
|-------|-------------|------|
|
|
36
|
+
| BRIEF.md template + Symphony Notes auto-save | Khi tạo output | `templates/brief-template.md` |
|
|
44
37
|
|
|
45
|
-
|
|
38
|
+
## 🚀 ACTIVATION
|
|
46
39
|
|
|
47
40
|
```yaml
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
keyword_triggers:
|
|
53
|
-
high_confidence:
|
|
54
|
-
- "brainstorm [topic]"
|
|
55
|
-
- "tôi muốn brainstorm"
|
|
56
|
-
- "cùng brainstorm"
|
|
57
|
-
- "ideate về"
|
|
58
|
-
- "khám phá ý tưởng"
|
|
59
|
-
|
|
60
|
-
medium_confidence (confirm trước khi activate):
|
|
61
|
-
- "có ý tưởng mới"
|
|
62
|
-
- "muốn làm tính năng mới"
|
|
63
|
-
- "nên làm gì tiếp theo"
|
|
64
|
-
- "chưa biết làm gì"
|
|
65
|
-
|
|
66
|
-
skip_if:
|
|
67
|
-
- User đang debug/fix bug → SKIP (không phải brainstorm context)
|
|
68
|
-
- User đang code cụ thể → SKIP
|
|
69
|
-
- User chỉ hỏi technical question → SKIP
|
|
70
|
-
- .kiro/specs/ tồn tại với requirements.md → AUTO-SKIP (Kiro đã tạo spec)
|
|
71
|
-
→ Thông báo: "🔍 Phát hiện .kiro/specs với product specs đầy đủ.
|
|
72
|
-
Brainstorm không cần thiết — Gate 1 AUTO-PASS. Chuyển thẳng Gate 1.5/2."
|
|
41
|
+
high_confidence: "/brainstorm [topic]", "tôi muốn brainstorm", "khám phá ý tưởng"
|
|
42
|
+
medium_confidence (confirm): "có ý tưởng mới", "nên làm gì tiếp theo"
|
|
43
|
+
skip_if: Đang debug | Đang code cụ thể | .kiro/specs/ có requirements.md → AUTO-SKIP
|
|
73
44
|
```
|
|
74
45
|
|
|
75
|
-
|
|
46
|
+
## 🎯 MODES
|
|
76
47
|
|
|
77
|
-
|
|
48
|
+
| Mode | When | Focus |
|
|
49
|
+
|------|------|-------|
|
|
50
|
+
| **Quick** | `/brainstorm [topic]` | 1 ý tưởng cụ thể, ≤20 phút |
|
|
51
|
+
| **Full Discovery** | `/brainstorm` (no topic) | All 6 phases, có research |
|
|
52
|
+
| **Feature** | Existing project context | Fit với architecture hiện tại |
|
|
78
53
|
|
|
79
|
-
|
|
80
|
-
Cho 1 ý tưởng cụ thể — nhanh, tập trung, ≤ 20 phút
|
|
81
|
-
```
|
|
82
|
-
Activate: "/brainstorm [specific topic]"
|
|
83
|
-
Steps: Understand → Explore → Recommend → Output brief
|
|
84
|
-
Skip: Market research (trừ khi user yêu cầu)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Mode 2: Full Discovery Session
|
|
88
|
-
Cho ý tưởng mơ hồ — đầy đủ, có research, có roadmap
|
|
89
|
-
```
|
|
90
|
-
Activate: "/brainstorm" (không có topic cụ thể)
|
|
91
|
-
Steps: All 6 phases đầy đủ
|
|
92
|
-
Include: Market research + competitor analysis
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Mode 3: Feature Brainstorm (trong dự án có sẵn)
|
|
96
|
-
Brainstorm tính năng mới cho project đang làm
|
|
97
|
-
```
|
|
98
|
-
Activate: User mention tính năng mới trong existing project context
|
|
99
|
-
Pre-step: Đọc project context trước (files, BRIEF nếu có)
|
|
100
|
-
Focus: Fit với existing architecture
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## 📋 BRAINSTORM PROCESS
|
|
54
|
+
## 📋 PROCESS (6 Phases)
|
|
106
55
|
|
|
107
56
|
### Phase 1: Context Understanding
|
|
57
|
+
- **Kiro check first** (.kiro/specs/ → AUTO-SKIP nếu có requirements.md)
|
|
58
|
+
- Check existing BRIEF.md, active_plans.json
|
|
59
|
+
- Set mode based on context
|
|
108
60
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
- Nếu tồn tại `requirements.md` → **AUTO-SKIP brainstorm**:
|
|
114
|
-
```
|
|
115
|
-
"🔍 Phát hiện .kiro/specs/ với product specs từ IDE Kiro.
|
|
116
|
-
Gate 1 (Spec) đã được thỏa mãn bởi Kiro specs.
|
|
117
|
-
Chuyển thẳng sang Gate 1.5 (Module Spec) hoặc Gate 2 (Architecture)."
|
|
118
|
-
```
|
|
119
|
-
- KHÔNG cần hỏi thêm user về product vision (Kiro đã chốt)
|
|
120
|
-
- Vẫn cho phép user gọi `/brainstorm` explicit để brainstorm cải tiến thêm
|
|
121
|
-
|
|
122
|
-
2. **Check existing context (fallback):**
|
|
123
|
-
- Đọc `docs/BRIEF.md` nếu có → Project đã có context gì?
|
|
124
|
-
- Đọc `brain/active_plans.json` (qua memory-sync) → Đang ở giai đoạn nào?
|
|
125
|
-
- Hỏi: "Brainstorm này là cho dự án mới hay tính năng mới trong project có sẵn?"
|
|
126
|
-
|
|
127
|
-
3. **Set mode** dựa trên context.
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
### Phase 2: Idea Exploration (One Question at a Time)
|
|
132
|
-
|
|
133
|
-
**Rules:**
|
|
134
|
-
- Hỏi **một câu hỏi mỗi lần** — không overwhelm user.
|
|
135
|
-
- **CHỦ ĐỘNG KHAI THÁC & MỞ RỘNG:** Thay vì chỉ nhận ý tưởng thụ động, AI cần **chủ động đặt câu hỏi gợi mở, giả định tình huống hoặc các edge cases** để giúp user tự suy nghĩ sâu hơn và mở rộng ý tưởng của họ (Socratic questioning).
|
|
136
|
-
- Dùng câu hỏi mở đầu thân thiện:
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
"💡 Kể em nghe chi tiết ý tưởng của anh đi! Anh đang muốn giải quyết bài toán gì?"
|
|
140
|
-
|
|
141
|
-
Sau khi nghe, hãy chủ động probe sâu hơn. Thay vì hỏi chung chung, hãy hỏi cụ thể dựa trên ý tưởng của user:
|
|
142
|
-
• "Nếu user làm [hành động X], hệ thống nên xử lý thế nào?"
|
|
143
|
-
• "Điểm khác biệt lớn nhất giữa app của anh và các app hiện có là gì?"
|
|
144
|
-
• "Ai sẽ là người dùng cốt lõi nhất, và họ gặp pain point gì nghiêm trọng nhất?"
|
|
145
|
-
• "Anh có nghĩ đến việc thêm [Gợi ý góc nhìn mới/tính năng mở rộng] không, vì nó sẽ giúp [lợi ích]?"
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
**Active Listening & Expanding:**
|
|
149
|
-
- Tóm tắt lại: "Em hiểu là anh muốn [X] để giải quyết [Y], đúng không?"
|
|
150
|
-
- **Đào sâu:** "Em thấy phần [Z] khá thú vị, anh định triển khai nó theo hướng manual hay chạy auto?"
|
|
151
|
-
- KHÔNG vội đưa ra giải pháp hoàn chỉnh — hãy giúp user tự làm rõ ý tưởng của mình trước.
|
|
152
|
-
|
|
153
|
-
---
|
|
61
|
+
### Phase 2: Idea Exploration (1 question at a time)
|
|
62
|
+
- Hỏi **một câu mỗi lần** — không overwhelm
|
|
63
|
+
- **CHỦ ĐỘNG khai thác & mở rộng** (Socratic questioning)
|
|
64
|
+
- Active listening: "Em hiểu là anh muốn [X] để giải quyết [Y], đúng không?"
|
|
154
65
|
|
|
155
66
|
### Phase 3: Idea Expansion & Alternatives
|
|
67
|
+
- Đề xuất 2-3 hướng với trade-offs
|
|
68
|
+
- Recommend 1 hướng với reasoning
|
|
156
69
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
```
|
|
160
|
-
"💡 Em có vài hướng anh có thể cân nhắc:
|
|
161
|
-
|
|
162
|
-
🎯 Hướng 1 - [Approach A]: [Mô tả ngắn]
|
|
163
|
-
→ Phù hợp nếu: [condition]
|
|
164
|
-
→ Trade-off: [what you give up]
|
|
165
|
-
|
|
166
|
-
🎯 Hướng 2 - [Approach B]: [Mô tả ngắn]
|
|
167
|
-
→ Phù hợp nếu: [condition]
|
|
168
|
-
→ Trade-off: [what you give up]
|
|
169
|
-
|
|
170
|
-
🎯 Hướng 3 - [Approach C - Recommended]: [Mô tả ngắn]
|
|
171
|
-
→ Em recommend vì: [reasoning]
|
|
172
|
-
|
|
173
|
-
Anh thấy hướng nào hợp không?"
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
### Phase 4: Feature Brainstorm (nếu cần)
|
|
179
|
-
|
|
180
|
-
```
|
|
181
|
-
"📝 Giờ anh liệt kê TẤT CẢ tính năng anh nghĩ đến đi.
|
|
182
|
-
Đừng lo về khả thi hay không — cứ nói hết ra!"
|
|
183
|
-
|
|
184
|
-
[Thu thập tất cả → Nhóm lại → Phân loại MVP vs Nice-to-have]
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
70
|
+
### Phase 4: Feature Brainstorm
|
|
71
|
+
- Thu thập TẤT CẢ → Nhóm → MVP vs Nice-to-have
|
|
188
72
|
|
|
189
73
|
### Phase 5: Reality Check
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
```
|
|
194
|
-
"⏱️ Đánh giá sơ bộ:
|
|
195
|
-
|
|
196
|
-
🟢 DỄ (vài ngày): [Feature X] — nhiều pattern có sẵn
|
|
197
|
-
🟡 TRUNG BÌNH (1-2 tuần): [Feature Y] — cần custom
|
|
198
|
-
🔴 KHÓ (nhiều tuần): [Feature Z] — phức tạp hoặc cần API bên ngoài
|
|
199
|
-
|
|
200
|
-
Anh muốn điều chỉnh scope không?"
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
---
|
|
74
|
+
- 🟢 DỄ | 🟡 TRUNG BÌNH | 🔴 KHÓ
|
|
75
|
+
- Điều chỉnh scope nếu cần
|
|
204
76
|
|
|
205
77
|
### Phase 6: Output — BRIEF.md
|
|
78
|
+
- Tạo file theo template → `templates/brief-template.md`
|
|
206
79
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
```markdown
|
|
210
|
-
# 💡 BRIEF: [Tên dự án/tính năng]
|
|
211
|
-
|
|
212
|
-
**Ngày tạo:** [Date]
|
|
213
|
-
**Brainstorm mode:** [Quick/Full/Feature]
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## 1. VẤN ĐỀ CẦN GIẢI QUYẾT
|
|
218
|
-
[Mô tả vấn đề]
|
|
219
|
-
|
|
220
|
-
## 2. GIẢI PHÁP ĐỀ XUẤT
|
|
221
|
-
[Hướng đi được chọn + lý do]
|
|
222
|
-
|
|
223
|
-
## 3. ĐỐI TƯỢNG SỬ DỤNG
|
|
224
|
-
- **Primary:** [...]
|
|
225
|
-
- **Secondary:** [...]
|
|
226
|
-
|
|
227
|
-
## 4. TÍNH NĂNG
|
|
228
|
-
|
|
229
|
-
### 🚀 MVP:
|
|
230
|
-
- [ ] [Feature 1]
|
|
231
|
-
- [ ] [Feature 2]
|
|
232
|
-
|
|
233
|
-
### 🎁 Phase 2:
|
|
234
|
-
- [ ] [Feature 3]
|
|
80
|
+
## 🔗 HANDOFF
|
|
235
81
|
|
|
236
|
-
### 💭 Backlog:
|
|
237
|
-
- [ ] [Feature 4]
|
|
238
|
-
|
|
239
|
-
## 5. MODULE BREAKDOWN
|
|
240
|
-
|
|
241
|
-
### Module: [Module Name 1]
|
|
242
|
-
- **Mục đích:** [1 dòng]
|
|
243
|
-
- **Screens chính:** [list screens]
|
|
244
|
-
- **Core flows:** [list main user journeys]
|
|
245
|
-
|
|
246
|
-
### Module: [Module Name 2]
|
|
247
|
-
- **Mục đích:** [1 dòng]
|
|
248
|
-
- **Screens chính:** [list screens]
|
|
249
|
-
- **Core flows:** [list main user journeys]
|
|
250
|
-
|
|
251
|
-
## 6. ƯỚC TÍNH
|
|
252
|
-
- **Độ phức tạp:** [Đơn giản / Trung bình / Phức tạp]
|
|
253
|
-
- **Hướng tiếp cận:** [Approach được chọn]
|
|
254
|
-
- **Số modules:** [N]
|
|
255
|
-
|
|
256
|
-
## 7. BƯỚC TIẾP THEO
|
|
257
|
-
→ Module spec chi tiết (Gate 1.5) → Thiết kế kỹ thuật (Gate 2)
|
|
258
82
|
```
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Sau khi BRIEF.md được tạo:
|
|
265
|
-
|
|
83
|
+
Sau BRIEF.md:
|
|
84
|
+
1️⃣ Module spec chi tiết (Gate 1.5 → module-spec-writer)
|
|
85
|
+
2️⃣ /plan trực tiếp (skip module spec)
|
|
86
|
+
3️⃣ Sửa Brief
|
|
87
|
+
4️⃣ Lưu lại — suy nghĩ thêm
|
|
266
88
|
```
|
|
267
|
-
"📋 Em đã tổng hợp Brief xong:
|
|
268
|
-
[Summary 3-4 dòng]
|
|
269
|
-
|
|
270
|
-
Anh muốn làm gì tiếp:
|
|
271
|
-
1️⃣ Viết module spec chi tiết (Gate 1.5) — Mô tả screens, flows, rules per module
|
|
272
|
-
2️⃣ /plan — Thiết kế kỹ thuật ngay (skip module spec)
|
|
273
|
-
3️⃣ Sửa Brief — Điều chỉnh thêm
|
|
274
|
-
4️⃣ Lưu lại — Anh cần suy nghĩ thêm"
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
**Nếu chọn 1 (module spec):**
|
|
278
|
-
- Trigger module-spec-writer skill với context từ BRIEF.md
|
|
279
|
-
- Sau khi module specs approved → auto-proceed Gate 2 (spec-gate)
|
|
280
89
|
|
|
281
|
-
|
|
282
|
-
- Trigger `/plan` workflow trực tiếp
|
|
283
|
-
- Memory-sync sẽ tự động lưu kiến trúc sau khi plan hoàn thành
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## 💾 SYMPHONY NOTES AUTO-SAVE (BẮT BUỘC)
|
|
288
|
-
|
|
289
|
-
> **Rule:** Sau khi tạo BẤT KỲ brainstorm artifact nào (BRIEF.md, analysis, brainstorm doc),
|
|
290
|
-
> AI PHẢI POST metadata vào Symphony Notes API. Content ĐỌC TỪ FILE, KHÔNG lưu vào DB.
|
|
291
|
-
|
|
292
|
-
### Khi nào trigger:
|
|
293
|
-
|
|
294
|
-
```yaml
|
|
295
|
-
triggers:
|
|
296
|
-
- BRIEF.md tạo xong
|
|
297
|
-
- Analysis document tạo xong (pricing, market, competitor...)
|
|
298
|
-
- Brainstorm document tạo xong
|
|
299
|
-
- Bất kỳ artifact có giá trị lâu dài
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Cách thực hiện:
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
|
-
curl -X POST http://localhost:3100/api/notes -H 'Content-Type: application/json' -d '{
|
|
306
|
-
"projectId": "<current-project-id>",
|
|
307
|
-
"type": "brainstorm",
|
|
308
|
-
"title": "<artifact-title>",
|
|
309
|
-
"content": "<summary-2-3-lines-ONLY — KHÔNG copy full content>",
|
|
310
|
-
"filePath": "<absolute-path-to-artifact-file>",
|
|
311
|
-
"conversationId": "<current-conversation-id>",
|
|
312
|
-
"metadata": {
|
|
313
|
-
"mode": "quick|full|feature",
|
|
314
|
-
"tags": ["pricing", "features", "architecture", ...],
|
|
315
|
-
"created_by": "brainstorm-agent"
|
|
316
|
-
}
|
|
317
|
-
}'
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### Quy tắc:
|
|
321
|
-
|
|
322
|
-
```yaml
|
|
323
|
-
rules:
|
|
324
|
-
- content CHỈ chứa summary ngắn 2-3 dòng
|
|
325
|
-
- filePath trỏ đến file .resolved hoặc .md thực tế
|
|
326
|
-
- Nếu Symphony server không chạy → skip (không block workflow)
|
|
327
|
-
- type: "brainstorm" cho ý tưởng, "analysis" cho phân tích dữ liệu
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
## 🚫 ANTI-PATTERNS
|
|
90
|
+
## 🚫 Anti-Patterns
|
|
333
91
|
|
|
334
92
|
```yaml
|
|
335
93
|
never_do:
|
|
336
|
-
-
|
|
337
|
-
- Hỏi quá nhiều câu một lúc
|
|
338
|
-
- Skip
|
|
339
|
-
- Tự quyết định thay user (chỉ gợi ý, user chọn)
|
|
94
|
+
- Code trong khi brainstorm
|
|
95
|
+
- Hỏi quá nhiều câu một lúc
|
|
96
|
+
- Skip vào technical solution trước khi hiểu vấn đề
|
|
340
97
|
- Trigger memory-sync manually (nó tự chạy)
|
|
341
98
|
|
|
342
99
|
always_do:
|
|
343
100
|
- Tóm tắt lại ý hiểu trước khi đề xuất
|
|
344
|
-
- Hỏi "Anh xác nhận em hiểu đúng không?" trước khi output BRIEF
|
|
345
101
|
- Đề xuất 2-3 hướng, không chỉ 1
|
|
346
|
-
-
|
|
102
|
+
- Hỏi confirm trước khi output BRIEF
|
|
347
103
|
```
|
|
348
104
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
## 🔔 COMMUNICATION STYLE
|
|
352
|
-
|
|
353
|
-
```
|
|
354
|
-
Thân thiện, đồng hành: "Em", "Anh/Chị" (adapt theo user)
|
|
355
|
-
Không technical jargon nếu user là non-tech
|
|
356
|
-
Emoji để visualize options (1️⃣ 2️⃣ 3️⃣)
|
|
357
|
-
Short messages — không dump wall of text
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
---
|
|
361
|
-
|
|
362
|
-
## 🧩 SKILL RELATIONSHIPS
|
|
105
|
+
## 🧩 Relationships
|
|
363
106
|
|
|
364
107
|
```
|
|
365
|
-
Works WITH: /brainstorm workflow
|
|
366
|
-
Delegates TO: module-spec-writer (Gate 1.5
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
NOT: symphony-orchestrator (không tạo task, chỉ brainstorm)
|
|
370
|
-
Triggers: memory-sync W3 sẽ tự kích hoạt khi BRIEF.md tạo xong
|
|
108
|
+
Works WITH: /brainstorm workflow
|
|
109
|
+
Delegates TO: module-spec-writer (Gate 1.5) | /plan
|
|
110
|
+
NOT: memory-sync (hoàn toàn độc lập)
|
|
111
|
+
Triggers: memory-sync W3 tự kích hoạt khi BRIEF.md tạo xong
|
|
371
112
|
```
|
|
372
113
|
|
|
373
114
|
---
|
|
374
115
|
|
|
375
|
-
*brainstorm-agent v1.
|
|
376
|
-
*Created by Kien AI*
|
|
116
|
+
*brainstorm-agent v1.1.0 — Modular Router Architecture*
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# BRIEF.md Template & Brainstorm Output
|
|
2
|
+
|
|
3
|
+
```markdown
|
|
4
|
+
# 💡 BRIEF: [Tên dự án/tính năng]
|
|
5
|
+
|
|
6
|
+
**Ngày tạo:** [Date]
|
|
7
|
+
**Brainstorm mode:** [Quick/Full/Feature]
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. VẤN ĐỀ CẦN GIẢI QUYẾT
|
|
12
|
+
[Mô tả vấn đề]
|
|
13
|
+
|
|
14
|
+
## 2. GIẢI PHÁP ĐỀ XUẤT
|
|
15
|
+
[Hướng đi được chọn + lý do]
|
|
16
|
+
|
|
17
|
+
## 3. ĐỐI TƯỢNG SỬ DỤNG
|
|
18
|
+
- **Primary:** [...]
|
|
19
|
+
- **Secondary:** [...]
|
|
20
|
+
|
|
21
|
+
## 4. TÍNH NĂNG
|
|
22
|
+
|
|
23
|
+
### 🚀 MVP:
|
|
24
|
+
- [ ] [Feature 1]
|
|
25
|
+
- [ ] [Feature 2]
|
|
26
|
+
|
|
27
|
+
### 🎁 Phase 2:
|
|
28
|
+
- [ ] [Feature 3]
|
|
29
|
+
|
|
30
|
+
### 💭 Backlog:
|
|
31
|
+
- [ ] [Feature 4]
|
|
32
|
+
|
|
33
|
+
## 5. MODULE BREAKDOWN
|
|
34
|
+
|
|
35
|
+
### Module: [Module Name 1]
|
|
36
|
+
- **Mục đích:** [1 dòng]
|
|
37
|
+
- **Screens chính:** [list screens]
|
|
38
|
+
- **Core flows:** [list main user journeys]
|
|
39
|
+
|
|
40
|
+
### Module: [Module Name 2]
|
|
41
|
+
- **Mục đích:** [1 dòng]
|
|
42
|
+
- **Screens chính:** [list screens]
|
|
43
|
+
- **Core flows:** [list main user journeys]
|
|
44
|
+
|
|
45
|
+
## 6. ƯỚC TÍNH
|
|
46
|
+
- **Độ phức tạp:** [Đơn giản / Trung bình / Phức tạp]
|
|
47
|
+
- **Hướng tiếp cận:** [Approach được chọn]
|
|
48
|
+
- **Số modules:** [N]
|
|
49
|
+
|
|
50
|
+
## 7. BƯỚC TIẾP THEO
|
|
51
|
+
→ Module spec chi tiết (Gate 1.5) → Thiết kế kỹ thuật (Gate 2)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# Symphony Notes Auto-Save
|
|
57
|
+
|
|
58
|
+
Sau khi tạo BẤT KỲ brainstorm artifact nào → POST metadata vào Symphony Notes API:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
curl -X POST http://localhost:3100/api/notes -H 'Content-Type: application/json' -d '{
|
|
62
|
+
"projectId": "<current-project-id>",
|
|
63
|
+
"type": "brainstorm",
|
|
64
|
+
"title": "<artifact-title>",
|
|
65
|
+
"content": "<summary-2-3-lines-ONLY>",
|
|
66
|
+
"filePath": "<absolute-path-to-artifact-file>",
|
|
67
|
+
"conversationId": "<current-conversation-id>",
|
|
68
|
+
"metadata": {
|
|
69
|
+
"mode": "quick|full|feature",
|
|
70
|
+
"tags": ["pricing", "features", "architecture"],
|
|
71
|
+
"created_by": "brainstorm-agent"
|
|
72
|
+
}
|
|
73
|
+
}'
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Rules:** content CHỈ 2-3 dòng summary. Nếu Symphony offline → skip silently.
|