@leejungkiin/awkit 1.0.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/CHANGELOG.md +27 -0
- package/README.md +146 -0
- package/VERSION +1 -0
- package/bin/awf.js +549 -0
- package/bin/awk.js +1759 -0
- package/core/AGENTS.md +39 -0
- package/core/GEMINI.md +202 -0
- package/core/GEMINI.md.bak +244 -0
- package/core/orchestrator.md +58 -0
- package/package.json +46 -0
- package/schemas/brain.schema.json +342 -0
- package/schemas/preferences.schema.json +95 -0
- package/schemas/session.schema.json +112 -0
- package/skill-packs/neural-memory/README.md +111 -0
- package/skill-packs/neural-memory/pack.json +35 -0
- package/skill-packs/neural-memory/schemas/brain-snapshot.json +167 -0
- package/skill-packs/neural-memory/skills/nm-memory-audit/SKILL.md +157 -0
- package/skill-packs/neural-memory/skills/nm-memory-evolution/SKILL.md +202 -0
- package/skill-packs/neural-memory/skills/nm-memory-intake/SKILL.md +135 -0
- package/skill-packs/neural-memory/skills/nm-memory-sync/SKILL.md +184 -0
- package/skill-packs/neural-memory/workflows/nm-import.md +73 -0
- package/skill-packs/neural-memory/workflows/nm-recall.md +67 -0
- package/skill-packs/neural-memory/workflows/nm-snapshot.md +69 -0
- package/skills/adaptive-language/SKILL.md +189 -0
- package/skills/ambient-brain/SKILL.md +314 -0
- package/skills/ambient-brain/brain-router.md +185 -0
- package/skills/ambient-brain/brain-templates.md +201 -0
- package/skills/auto-save/SKILL.md +223 -0
- package/skills/awf-adaptive-language/SKILL.md +189 -0
- package/skills/awf-context-help/SKILL.md +180 -0
- package/skills/awf-error-translator/SKILL.md +153 -0
- package/skills/awf-session-restore/SKILL.md +270 -0
- package/skills/awf-version-tracker/SKILL.md +32 -0
- package/skills/awf-version-tracker/scripts/snapshot.sh +22 -0
- package/skills/beads-manager/SKILL.md +323 -0
- package/skills/brainstorm-agent/SKILL.md +295 -0
- package/skills/context-help/SKILL.md +180 -0
- package/skills/error-translator/SKILL.md +153 -0
- package/skills/ios-engineer/SKILL.md +101 -0
- package/skills/memory-sync/SKILL.md +378 -0
- package/skills/memory-sync/memory-router.md +185 -0
- package/skills/memory-sync/memory-templates.md +201 -0
- package/skills/orchestrator/SKILL.md +193 -0
- package/skills/session-restore/SKILL.md +240 -0
- package/templates/CODEBASE.md +80 -0
- package/templates/brain.example.json +321 -0
- package/templates/preferences.example.json +21 -0
- package/templates/project-identity/android.json +28 -0
- package/templates/project-identity/backend-nestjs.json +24 -0
- package/templates/project-identity/expo.json +27 -0
- package/templates/project-identity/ios.json +27 -0
- package/templates/project-identity/web-nextjs.json +24 -0
- package/templates/session.example.json +53 -0
- package/templates/specs/design-template.md +166 -0
- package/templates/specs/requirements-template.md +65 -0
- package/templates/specs/tasks-template.md +132 -0
- package/templates/structures/android.txt +10 -0
- package/templates/structures/backend-nestjs.txt +6 -0
- package/templates/structures/expo.txt +9 -0
- package/templates/structures/ios.txt +9 -0
- package/templates/structures/web-nextjs.txt +6 -0
- package/templates/workflow_dual_mode_template.md +87 -0
- package/workflows/_uncategorized/README.md +339 -0
- package/workflows/_uncategorized/ads-creative.md +357 -0
- package/workflows/_uncategorized/ads-full-optimization.md +308 -0
- package/workflows/_uncategorized/ads-plan.md +247 -0
- package/workflows/_uncategorized/ads-user-analysis.md +337 -0
- package/workflows/_uncategorized/skill-health.md +35 -0
- package/workflows/_uncategorized/skill-rollback.md +35 -0
- package/workflows/ads/admob.md +62 -0
- package/workflows/ads/ads-analyst.md +201 -0
- package/workflows/ads/ads-audit.md +106 -0
- package/workflows/ads/ads-optimize.md +97 -0
- package/workflows/ads/ads-targeting.md +241 -0
- package/workflows/ads/adsExpert.md +160 -0
- package/workflows/ads/smali-ads-config.md +400 -0
- package/workflows/ads/smali-ads-flow.md +331 -0
- package/workflows/ads/smali-ads-interstitial.md +377 -0
- package/workflows/ads/smali-ads-native.md +382 -0
- package/workflows/context/auto-execution-workflow.md +291 -0
- package/workflows/context/auto-implement.md +211 -0
- package/workflows/context/codebase-sync.md +163 -0
- package/workflows/context/logic-reasoning-workflow.md +260 -0
- package/workflows/context/next.md +195 -0
- package/workflows/context/recap.md +212 -0
- package/workflows/context/save-brain.md +285 -0
- package/workflows/context/user-intent-analysis-workflow.md +206 -0
- package/workflows/expert/codeExpert.md +126 -0
- package/workflows/expert/debugExpert.md +136 -0
- package/workflows/expert/planExpert.md +112 -0
- package/workflows/git/cloudflare-tunnel.md +135 -0
- package/workflows/git/git-commit-workflow.md +75 -0
- package/workflows/git/hotfix.md +357 -0
- package/workflows/git/release-notes.md +160 -0
- package/workflows/git/rollback.md +52 -0
- package/workflows/git/smart-git-ops.md +103 -0
- package/workflows/lifecycle/brainstorm.md +377 -0
- package/workflows/lifecycle/code.md +663 -0
- package/workflows/lifecycle/debug.md +116 -0
- package/workflows/lifecycle/deploy.md +95 -0
- package/workflows/lifecycle/init.md +152 -0
- package/workflows/lifecycle/master-code-workflow.md +300 -0
- package/workflows/lifecycle/migration.md +196 -0
- package/workflows/lifecycle/plan.md +91 -0
- package/workflows/lifecycle/refactor.md +165 -0
- package/workflows/lifecycle/run.md +52 -0
- package/workflows/lifecycle/test.md +91 -0
- package/workflows/meta/customize.md +346 -0
- package/workflows/meta/file-protection-rules.md +129 -0
- package/workflows/meta/help.html +350 -0
- package/workflows/meta/project-identity-enforcement.md +180 -0
- package/workflows/mobile/app-analysis.md +64 -0
- package/workflows/mobile/maestro-qa-workflow.md +470 -0
- package/workflows/mobile/maestro-test-workflow.md +84 -0
- package/workflows/mobile/structure-clean-architect.md +271 -0
- package/workflows/mobile/turbo-mobile-build.md +190 -0
- package/workflows/quality/accessibility-audit.md +311 -0
- package/workflows/quality/audit.md +217 -0
- package/workflows/quality/bug-hunter.md +243 -0
- package/workflows/quality/code-janitor.md +209 -0
- package/workflows/quality/code-quality-rules.md +132 -0
- package/workflows/quality/performance-audit.md +343 -0
- package/workflows/quality/project-audit.md +61 -0
- package/workflows/quality/self-healing-test.md +192 -0
- package/workflows/quality/ui-review.md +130 -0
- package/workflows/quality/ux-audit.md +213 -0
- package/workflows/quality/visual-debug.md +34 -0
- package/workflows/roles/oracle.md +267 -0
- package/workflows/roles/product-manager-workflow.md +52 -0
- package/workflows/roles/qa-engineer-workflow.md +41 -0
- package/workflows/roles/tech-lead-workflow.md +45 -0
- package/workflows/roles/ui-ux-designer-workflow.md +42 -0
- package/workflows/roles/vibe-coding-master-workflow.md +52 -0
- package/workflows/ui/app-screen-analyzer.md +152 -0
- package/workflows/ui/create-feature.md +332 -0
- package/workflows/ui/create-spec-architect.md +184 -0
- package/workflows/ui/design-to-ui.md +308 -0
- package/workflows/ui/ui-first-methodology.md +279 -0
- package/workflows/ui/visualize.md +298 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: beads-manager
|
|
3
|
+
description: Smart Beads task management with Brain integration
|
|
4
|
+
trigger: always
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Beads Manager Skill (v5.0)
|
|
8
|
+
|
|
9
|
+
> **Purpose:** Quản lý tasks trong Beads với Brain context awareness.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Core Functions
|
|
14
|
+
|
|
15
|
+
### 1. Smart Task Creation
|
|
16
|
+
|
|
17
|
+
**Auto-Context:**
|
|
18
|
+
```bash
|
|
19
|
+
# Khi tạo task, tự động:
|
|
20
|
+
1. Detect current plan/phase từ Brain
|
|
21
|
+
2. Link task to parent phase
|
|
22
|
+
3. Set priority based on dependencies
|
|
23
|
+
4. Add relevant labels
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Example:**
|
|
27
|
+
```bash
|
|
28
|
+
# User gõ
|
|
29
|
+
bd create "Fix login bug"
|
|
30
|
+
|
|
31
|
+
# Skill auto-enhance
|
|
32
|
+
bd create "Fix login bug" \
|
|
33
|
+
--parent $CURRENT_PHASE_TASK \
|
|
34
|
+
--label bug \
|
|
35
|
+
--priority 0 \
|
|
36
|
+
--note "Related to plan: Shopping Cart, Phase 02"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### 2. Task Status Tracking
|
|
42
|
+
|
|
43
|
+
**Auto-Update:**
|
|
44
|
+
```bash
|
|
45
|
+
# Khi workflow hoàn thành
|
|
46
|
+
/codeExpert → Auto: bd update $TASK_ID --status done
|
|
47
|
+
|
|
48
|
+
# Khi gặp blocker
|
|
49
|
+
/debugExpert fail → Auto: bd update $TASK_ID --status blocked
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Status Sync:**
|
|
53
|
+
- `open` → Task mới tạo
|
|
54
|
+
- `in_progress` → Đang làm
|
|
55
|
+
- `blocked` → Bị chặn bởi task khác
|
|
56
|
+
- `done` → Hoàn thành
|
|
57
|
+
- `cancelled` → Hủy bỏ
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### 3. Dependency Management
|
|
62
|
+
|
|
63
|
+
**Auto-Detect:**
|
|
64
|
+
```bash
|
|
65
|
+
# Khi tạo task từ plan
|
|
66
|
+
Phase 01 → Task A, B, C
|
|
67
|
+
Phase 02 → Task D, E (depends on Phase 01)
|
|
68
|
+
|
|
69
|
+
# Auto-create dependencies
|
|
70
|
+
bd dep add D A
|
|
71
|
+
bd dep add D B
|
|
72
|
+
bd dep add D C
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Blocker Alert:**
|
|
76
|
+
```bash
|
|
77
|
+
# Khi user chọn task bị block
|
|
78
|
+
/codeExpert → Check dependencies
|
|
79
|
+
→ "Task #125 blocked by #120 (not done yet)"
|
|
80
|
+
→ Suggest: "Do task #120 first?"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### 4. Task Filtering & Search
|
|
86
|
+
|
|
87
|
+
**Smart Filters:**
|
|
88
|
+
```bash
|
|
89
|
+
# By status
|
|
90
|
+
bd list --status open
|
|
91
|
+
bd list --status in_progress
|
|
92
|
+
|
|
93
|
+
# By label
|
|
94
|
+
bd list --label bug
|
|
95
|
+
bd list --label feature
|
|
96
|
+
|
|
97
|
+
# By priority
|
|
98
|
+
bd list --priority 0 # Critical
|
|
99
|
+
bd list --priority 1 # High
|
|
100
|
+
bd list --priority 2 # Normal
|
|
101
|
+
|
|
102
|
+
# Ready to work (no blockers)
|
|
103
|
+
bd ready
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### 5. Task Completion Flow
|
|
109
|
+
|
|
110
|
+
**When task done:**
|
|
111
|
+
```bash
|
|
112
|
+
1. bd update $TASK_ID --status done
|
|
113
|
+
2. Check if phase complete (all tasks done)
|
|
114
|
+
3. If phase complete → Update plan.md progress
|
|
115
|
+
4. Suggest next task: bd ready
|
|
116
|
+
5. Prompt: "Save knowledge? /save-brain"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Integration with Workflows
|
|
122
|
+
|
|
123
|
+
### `/planExpert` Integration
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# After plan generation
|
|
127
|
+
1. Call sync_plan_to_beads.sh
|
|
128
|
+
2. Create parent + phase + task hierarchy
|
|
129
|
+
3. Set dependencies
|
|
130
|
+
4. Report: "Created 42 tasks in Beads"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### `/codeExpert` Integration
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Before coding
|
|
137
|
+
1. bd list --status in_progress
|
|
138
|
+
2. If found → Resume that task
|
|
139
|
+
3. If not → bd ready → Pick P0 task
|
|
140
|
+
4. Update task status to in_progress
|
|
141
|
+
|
|
142
|
+
# After coding
|
|
143
|
+
1. Run tests
|
|
144
|
+
2. If pass → bd update --status done
|
|
145
|
+
3. If fail → bd update --status blocked + create bug task
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### `/debugExpert` Integration
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# When bug found
|
|
152
|
+
1. bd create "Fix: $ERROR_MESSAGE" --label bug --priority 0
|
|
153
|
+
2. Link to failing task (if any)
|
|
154
|
+
3. After fix → bd update --status done
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Brain Integration
|
|
160
|
+
|
|
161
|
+
### Active Plans Tracking
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
// brain/active_plans.json
|
|
165
|
+
{
|
|
166
|
+
"current": {
|
|
167
|
+
"plan_path": "plans/260130-1025-shopping-cart/",
|
|
168
|
+
"feature": "Shopping Cart",
|
|
169
|
+
"beads_parent_id": 456,
|
|
170
|
+
"phases": [
|
|
171
|
+
{
|
|
172
|
+
"name": "Phase 01: Setup",
|
|
173
|
+
"beads_id": 457,
|
|
174
|
+
"status": "done"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "Phase 02: Backend",
|
|
178
|
+
"beads_id": 458,
|
|
179
|
+
"status": "in_progress",
|
|
180
|
+
"tasks": [123, 124, 125]
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Task-Knowledge Linking
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# When save knowledge
|
|
191
|
+
/save-brain "How to fix N+1 query"
|
|
192
|
+
|
|
193
|
+
# Auto-link to current task
|
|
194
|
+
→ Save to: brain/solutions/n1-query-fix_#123.md
|
|
195
|
+
→ Add reference in task: bd update 123 --note "Solution: brain/solutions/..."
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Commands Reference
|
|
201
|
+
|
|
202
|
+
### Basic Commands
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Create task
|
|
206
|
+
bd create "Task name" [--priority 0-2] [--label tag]
|
|
207
|
+
|
|
208
|
+
# List tasks
|
|
209
|
+
bd list [--status STATUS] [--label LABEL]
|
|
210
|
+
|
|
211
|
+
# Update task
|
|
212
|
+
bd update <id> --status STATUS
|
|
213
|
+
|
|
214
|
+
# Show task details
|
|
215
|
+
bd show <id>
|
|
216
|
+
|
|
217
|
+
# Add dependency
|
|
218
|
+
bd dep add <child> <parent>
|
|
219
|
+
|
|
220
|
+
# Ready tasks (no blockers)
|
|
221
|
+
bd ready
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Enhanced Commands (via Skill)
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Smart create (auto-context)
|
|
228
|
+
/task "Task name" # Alias, auto-add context
|
|
229
|
+
|
|
230
|
+
# Quick status
|
|
231
|
+
/todo # Alias for bd list
|
|
232
|
+
/done "Note" # Mark current task done + save note
|
|
233
|
+
|
|
234
|
+
# Task navigation
|
|
235
|
+
/next # Show next recommended task
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Error Handling
|
|
241
|
+
|
|
242
|
+
### Beads Not Available
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
if ! command -v bd &> /dev/null; then
|
|
246
|
+
echo "⚠️ Beads not installed"
|
|
247
|
+
echo "Fallback: Use Brain-only mode"
|
|
248
|
+
# Continue without task tracking
|
|
249
|
+
fi
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Task Not Found
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
bd show 999
|
|
256
|
+
→ "❌ Task #999 not found"
|
|
257
|
+
→ Suggest: "bd list to see all tasks"
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Circular Dependency
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
bd dep add A B
|
|
264
|
+
bd dep add B A
|
|
265
|
+
→ "❌ Circular dependency detected"
|
|
266
|
+
→ Suggest: "Remove one dependency"
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Performance
|
|
272
|
+
|
|
273
|
+
- **Task Creation:** < 100ms
|
|
274
|
+
- **List Tasks:** < 200ms (for 100 tasks)
|
|
275
|
+
- **Dependency Check:** < 50ms
|
|
276
|
+
- **Brain Sync:** < 500ms
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Example Workflow
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
# 1. Create plan
|
|
284
|
+
/planExpert "Shopping Cart"
|
|
285
|
+
→ Creates 42 tasks in Beads
|
|
286
|
+
|
|
287
|
+
# 2. Check tasks
|
|
288
|
+
bd list
|
|
289
|
+
→ Shows all tasks with status
|
|
290
|
+
|
|
291
|
+
# 3. Start coding
|
|
292
|
+
/codeExpert
|
|
293
|
+
→ Auto-picks task #123 (P0, ready)
|
|
294
|
+
→ Updates status to in_progress
|
|
295
|
+
|
|
296
|
+
# 4. Complete task
|
|
297
|
+
→ Tests pass
|
|
298
|
+
→ Auto: bd update 123 --status done
|
|
299
|
+
|
|
300
|
+
# 5. Next task
|
|
301
|
+
/next
|
|
302
|
+
→ Suggests task #124 (next P0)
|
|
303
|
+
|
|
304
|
+
# 6. Save knowledge
|
|
305
|
+
/save-brain "Login API implementation"
|
|
306
|
+
→ Links to task #123
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Configuration
|
|
312
|
+
|
|
313
|
+
```json
|
|
314
|
+
// brain/preferences.json
|
|
315
|
+
{
|
|
316
|
+
"beads": {
|
|
317
|
+
"auto_create": true,
|
|
318
|
+
"auto_update": true,
|
|
319
|
+
"default_priority": 2,
|
|
320
|
+
"labels": ["feature", "bug", "refactor"]
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
```
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorm-agent
|
|
3
|
+
description: >-
|
|
4
|
+
Brainstorm Agent — Kích hoạt khi user muốn brainstorm ý tưởng, tính năng, hoặc giải pháp.
|
|
5
|
+
Triggers: /brainstorm command, từ khoá "brainstorm", "ý tưởng", "nên làm gì", "ideate".
|
|
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
|
+
KHÔNG liên quan đến memory-sync (đọc/ghi brain files).
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
trigger: conditional
|
|
10
|
+
activation_keywords:
|
|
11
|
+
- "/brainstorm"
|
|
12
|
+
- "brainstorm"
|
|
13
|
+
- "ý tưởng"
|
|
14
|
+
- "ideate"
|
|
15
|
+
- "nên làm gì"
|
|
16
|
+
- "tính năng mới"
|
|
17
|
+
- "khám phá hướng"
|
|
18
|
+
priority: medium
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# 💡 Brainstorm Agent Skill
|
|
22
|
+
|
|
23
|
+
> **Purpose:** Biến ý tưởng mơ hồ thành bản thiết kế rõ ràng thông qua phiên brainstorm có cấu trúc.
|
|
24
|
+
> **Scope:** Chỉ xử lý quá trình sáng tạo và khám phá ý tưởng.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## ⚠️ SCOPE CLARITY
|
|
29
|
+
|
|
30
|
+
| Skill này LÀM | Skill này KHÔNG làm |
|
|
31
|
+
|---------------|---------------------|
|
|
32
|
+
| Brainstorm ý tưởng tính năng | Đọc/ghi brain/memory files |
|
|
33
|
+
| Tư vấn hướng đi sản phẩm | Track tasks (việc của beads-manager) |
|
|
34
|
+
| Research thị trường | Sửa lỗi code |
|
|
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 |
|
|
37
|
+
|
|
38
|
+
→ Sau brainstorm xong → chuyển sang `/plan` workflow.
|
|
39
|
+
→ Memory-sync skill tự động lưu kết quả. Brainstorm-agent KHÔNG cần gọi memory-sync.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 🚀 ACTIVATION TRIGGERS
|
|
44
|
+
|
|
45
|
+
Skill này kích hoạt khi:
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
explicit_commands:
|
|
49
|
+
- "/brainstorm"
|
|
50
|
+
- "/brainstorm [topic]"
|
|
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
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 🎯 OPERATING MODES
|
|
75
|
+
|
|
76
|
+
### Mode 1: Quick Brainstorm (default)
|
|
77
|
+
Cho 1 ý tưởng cụ thể — nhanh, tập trung, ≤ 20 phút
|
|
78
|
+
```
|
|
79
|
+
Activate: "/brainstorm [specific topic]"
|
|
80
|
+
Steps: Understand → Explore → Recommend → Output brief
|
|
81
|
+
Skip: Market research (trừ khi user yêu cầu)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Mode 2: Full Discovery Session
|
|
85
|
+
Cho ý tưởng mơ hồ — đầy đủ, có research, có roadmap
|
|
86
|
+
```
|
|
87
|
+
Activate: "/brainstorm" (không có topic cụ thể)
|
|
88
|
+
Steps: All 6 phases đầy đủ
|
|
89
|
+
Include: Market research + competitor analysis
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Mode 3: Feature Brainstorm (trong dự án có sẵn)
|
|
93
|
+
Brainstorm tính năng mới cho project đang làm
|
|
94
|
+
```
|
|
95
|
+
Activate: User mention tính năng mới trong existing project context
|
|
96
|
+
Pre-step: Đọc project context trước (files, BRIEF nếu có)
|
|
97
|
+
Focus: Fit với existing architecture
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 📋 BRAINSTORM PROCESS
|
|
103
|
+
|
|
104
|
+
### Phase 1: Context Understanding
|
|
105
|
+
|
|
106
|
+
Trước khi bắt đầu, LUÔN:
|
|
107
|
+
|
|
108
|
+
1. **Check existing context:**
|
|
109
|
+
- Đọc `docs/BRIEF.md` nếu có → Project đã có context gì?
|
|
110
|
+
- Đọc `brain/active_plans.json` (qua memory-sync) → Đang ở giai đoạn nào?
|
|
111
|
+
- Hỏi: "Brainstorm này là cho dự án mới hay tính năng mới trong project có sẵn?"
|
|
112
|
+
|
|
113
|
+
2. **Set mode** dựa trên context.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### Phase 2: Idea Exploration (One Question at a Time)
|
|
118
|
+
|
|
119
|
+
**Rules:**
|
|
120
|
+
- Hỏi **một câu hỏi mỗi lần** — không overwhelm user
|
|
121
|
+
- Dùng câu hỏi mở đầu thân thiện:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
"💡 Kể em nghe ý tưởng của anh đi! Anh muốn làm gì?"
|
|
125
|
+
|
|
126
|
+
Sau khi nghe, hỏi thêm:
|
|
127
|
+
• "App/tính năng này giải quyết vấn đề gì?"
|
|
128
|
+
• "Ai sẽ dùng nó?"
|
|
129
|
+
• "Anh nghĩ điều gì làm cho nó khác biệt?"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Active Listening:**
|
|
133
|
+
- Tóm tắt lại: "Em hiểu là anh muốn [X] để giải quyết [Y], đúng không?"
|
|
134
|
+
- KHÔNG vội đưa ra giải pháp — hiểu vấn đề trước
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### Phase 3: Idea Expansion & Alternatives
|
|
139
|
+
|
|
140
|
+
Sau khi hiểu ý tưởng cốt lõi:
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
"💡 Em có vài hướng anh có thể cân nhắc:
|
|
144
|
+
|
|
145
|
+
🎯 Hướng 1 - [Approach A]: [Mô tả ngắn]
|
|
146
|
+
→ Phù hợp nếu: [condition]
|
|
147
|
+
→ Trade-off: [what you give up]
|
|
148
|
+
|
|
149
|
+
🎯 Hướng 2 - [Approach B]: [Mô tả ngắn]
|
|
150
|
+
→ Phù hợp nếu: [condition]
|
|
151
|
+
→ Trade-off: [what you give up]
|
|
152
|
+
|
|
153
|
+
🎯 Hướng 3 - [Approach C - Recommended]: [Mô tả ngắn]
|
|
154
|
+
→ Em recommend vì: [reasoning]
|
|
155
|
+
|
|
156
|
+
Anh thấy hướng nào hợp không?"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### Phase 4: Feature Brainstorm (nếu cần)
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
"📝 Giờ anh liệt kê TẤT CẢ tính năng anh nghĩ đến đi.
|
|
165
|
+
Đừng lo về khả thi hay không — cứ nói hết ra!"
|
|
166
|
+
|
|
167
|
+
[Thu thập tất cả → Nhóm lại → Phân loại MVP vs Nice-to-have]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### Phase 5: Reality Check
|
|
173
|
+
|
|
174
|
+
Đánh giá nhanh tính khả thi:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
"⏱️ Đánh giá sơ bộ:
|
|
178
|
+
|
|
179
|
+
🟢 DỄ (vài ngày): [Feature X] — nhiều pattern có sẵn
|
|
180
|
+
🟡 TRUNG BÌNH (1-2 tuần): [Feature Y] — cần custom
|
|
181
|
+
🔴 KHÓ (nhiều tuần): [Feature Z] — phức tạp hoặc cần API bên ngoài
|
|
182
|
+
|
|
183
|
+
Anh muốn điều chỉnh scope không?"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
### Phase 6: Output — BRIEF.md
|
|
189
|
+
|
|
190
|
+
Tạo file tổng kết:
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
# 💡 BRIEF: [Tên dự án/tính năng]
|
|
194
|
+
|
|
195
|
+
**Ngày tạo:** [Date]
|
|
196
|
+
**Brainstorm mode:** [Quick/Full/Feature]
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 1. VẤN ĐỀ CẦN GIẢI QUYẾT
|
|
201
|
+
[Mô tả vấn đề]
|
|
202
|
+
|
|
203
|
+
## 2. GIẢI PHÁP ĐỀ XUẤT
|
|
204
|
+
[Hướng đi được chọn + lý do]
|
|
205
|
+
|
|
206
|
+
## 3. ĐỐI TƯỢNG SỬ DỤNG
|
|
207
|
+
- **Primary:** [...]
|
|
208
|
+
- **Secondary:** [...]
|
|
209
|
+
|
|
210
|
+
## 4. TÍNH NĂNG
|
|
211
|
+
|
|
212
|
+
### 🚀 MVP:
|
|
213
|
+
- [ ] [Feature 1]
|
|
214
|
+
- [ ] [Feature 2]
|
|
215
|
+
|
|
216
|
+
### 🎁 Phase 2:
|
|
217
|
+
- [ ] [Feature 3]
|
|
218
|
+
|
|
219
|
+
### 💭 Backlog:
|
|
220
|
+
- [ ] [Feature 4]
|
|
221
|
+
|
|
222
|
+
## 5. ƯỚC TÍNH
|
|
223
|
+
- **Độ phức tạp:** [Đơn giản / Trung bình / Phức tạp]
|
|
224
|
+
- **Hướng tiếp cận:** [Approach được chọn]
|
|
225
|
+
|
|
226
|
+
## 6. BƯỚC TIẾP THEO
|
|
227
|
+
→ Chạy `/plan` để lên thiết kế kỹ thuật chi tiết
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 🔗 HANDOFF PROTOCOL
|
|
233
|
+
|
|
234
|
+
### Sau khi BRIEF.md được tạo:
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
"📋 Em đã tổng hợp Brief xong:
|
|
238
|
+
[Summary 3-4 dòng]
|
|
239
|
+
|
|
240
|
+
Anh muốn làm gì tiếp:
|
|
241
|
+
1️⃣ /plan — Thiết kế kỹ thuật chi tiết (DB schema, task list...)
|
|
242
|
+
2️⃣ Sửa Brief — Điều chỉnh thêm
|
|
243
|
+
3️⃣ Lưu lại — Anh cần suy nghĩ thêm"
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
**Nếu chọn 1 (plan):**
|
|
247
|
+
- Trigger `/plan` workflow với context từ BRIEF.md
|
|
248
|
+
- Memory-sync sẽ tự động lưu kiến trúc sau khi plan hoàn thành
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## 🚫 ANTI-PATTERNS
|
|
253
|
+
|
|
254
|
+
```yaml
|
|
255
|
+
never_do:
|
|
256
|
+
- Bắt đầu code trong khi brainstorm (chưa có BRIEF)
|
|
257
|
+
- Hỏi quá nhiều câu một lúc (overwhelms user)
|
|
258
|
+
- Skip thẳng vào technical solution trước khi hiểu vấn đề
|
|
259
|
+
- Tự quyết định thay user (chỉ gợi ý, user chọn)
|
|
260
|
+
- Trigger memory-sync manually (nó tự chạy)
|
|
261
|
+
|
|
262
|
+
always_do:
|
|
263
|
+
- Tóm tắt lại ý hiểu trước khi đề xuất
|
|
264
|
+
- Hỏi "Anh xác nhận em hiểu đúng không?" trước khi output BRIEF
|
|
265
|
+
- Đề xuất 2-3 hướng, không chỉ 1
|
|
266
|
+
- Khi user chọn xong → tạo BRIEF.md
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## 🔔 COMMUNICATION STYLE
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
Thân thiện, đồng hành: "Em", "Anh/Chị" (adapt theo user)
|
|
275
|
+
Không technical jargon nếu user là non-tech
|
|
276
|
+
Emoji để visualize options (1️⃣ 2️⃣ 3️⃣)
|
|
277
|
+
Short messages — không dump wall of text
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## 🧩 SKILL RELATIONSHIPS
|
|
283
|
+
|
|
284
|
+
```
|
|
285
|
+
Works WITH: /brainstorm workflow (skill này hỗ trợ workflow)
|
|
286
|
+
Delegates TO: /plan (sau khi BRIEF xong)
|
|
287
|
+
NOT: memory-sync (hoàn toàn độc lập — memory-sync tự theo dõi)
|
|
288
|
+
NOT: beads-manager (không tạo task, chỉ brainstorm)
|
|
289
|
+
Triggers: memory-sync W3 sẽ tự kích hoạt khi BRIEF.md tạo xong
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
*brainstorm-agent v1.0.0 — Idea Discovery Skill for AWF*
|
|
295
|
+
*Created by Kien AI*
|