@leejungkiin/awkit 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/bin/awk.js +215 -72
  2. package/bin/cline-generators.js +73 -0
  3. package/bin/codex-generators.js +108 -0
  4. package/core/GEMINI.md +14 -17
  5. package/package.json +2 -2
  6. package/skill-packs/superpowers/README.md +59 -0
  7. package/skill-packs/superpowers/pack.json +15 -0
  8. package/skill-packs/superpowers/skills/brainstorming/SKILL.md +96 -0
  9. package/skill-packs/superpowers/skills/executing-plans/SKILL.md +100 -0
  10. package/skill-packs/superpowers/skills/finishing-a-development-branch/SKILL.md +213 -0
  11. package/skill-packs/superpowers/skills/receiving-code-review/SKILL.md +213 -0
  12. package/skill-packs/superpowers/skills/requesting-code-review/SKILL.md +115 -0
  13. package/skill-packs/superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
  14. package/skill-packs/superpowers/skills/single-flow-task-execution/SKILL.md +359 -0
  15. package/skill-packs/superpowers/skills/single-flow-task-execution/code-quality-reviewer-prompt.md +20 -0
  16. package/skill-packs/superpowers/skills/single-flow-task-execution/implementer-prompt.md +78 -0
  17. package/skill-packs/superpowers/skills/single-flow-task-execution/spec-reviewer-prompt.md +61 -0
  18. package/skill-packs/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  19. package/skill-packs/superpowers/skills/systematic-debugging/SKILL.md +296 -0
  20. package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  21. package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  22. package/skill-packs/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  23. package/skill-packs/superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
  24. package/skill-packs/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  25. package/skill-packs/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  26. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  27. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  28. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  29. package/skill-packs/superpowers/skills/test-driven-development/SKILL.md +371 -0
  30. package/skill-packs/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  31. package/skill-packs/superpowers/skills/using-git-worktrees/SKILL.md +223 -0
  32. package/skill-packs/superpowers/skills/using-superpowers/SKILL.md +97 -0
  33. package/skill-packs/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  34. package/skill-packs/superpowers/skills/writing-plans/SKILL.md +108 -0
  35. package/skill-packs/superpowers/skills/writing-skills/SKILL.md +716 -0
  36. package/skill-packs/superpowers/skills/writing-skills/antigravity-best-practices.md +1173 -0
  37. package/skill-packs/superpowers/skills/writing-skills/examples/AGENTS_MD_TESTING.md +189 -0
  38. package/skill-packs/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  39. package/skill-packs/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  40. package/skill-packs/superpowers/skills/writing-skills/render-graphs.js +175 -0
  41. package/skill-packs/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  42. package/skills/CATALOG.md +7 -0
  43. package/skills/orchestrator/SKILL.md +0 -4
  44. package/skills/symphony-enforcer/SKILL.md +188 -53
  45. package/templates/specs/PROJECT.md +50 -0
  46. package/templates/specs/ROADMAP.md +79 -0
  47. package/templates/specs/TECH-SPEC.md +81 -0
  48. package/templates/specs/task-spec-template.xml +65 -0
  49. package/workflows/lifecycle/init.md +103 -91
  50. package/core/AGENTS.md +0 -38
  51. package/skills/beads-manager/SKILL.md +0 -459
  52. package/workflows/_uncategorized/AGENTS.md +0 -38
@@ -1,152 +1,164 @@
1
1
  ---
2
- description: ✨ Khởi tạo dự án chuẩn Antigravity (v4.1 - Master Orchestrator)
2
+ description: ✨ Khởi tạo dự án chuẩn Antigravity (v5.0 - Spec-First + CLI Hybrid)
3
3
  ---
4
4
 
5
- # WORKFLOW: /init - The Antigravity Orchestrator (v4.1)
5
+ # WORKFLOW: /init - The Antigravity Orchestrator (v5.0)
6
6
 
7
- > **Mission:** Không chỉ tạo file. `/init` thiết lập toàn bộ "Hệ điều hành phát triển" (OS for Development), tích hợp sẵn tư duy Spec-First, Clean Architecture và MCP Tools.
7
+ > **Mission:** Thiết lập "Hệ điều hành phát triển" (OS for Development) với Spec-First approach.
8
+ > **Key Change v5.0:** Tạo Project-Level Spec (PROJECT.md, REQUIREMENTS.md, ROADMAP.md, TECH-SPEC.md) ngay từ đầu.
9
+ > **Hybrid:** CLI scaffolds → AI fills content through brainstorm.
8
10
 
9
11
  ---
10
12
 
11
- ## 🚀 Giai đoạn 0: Environment & MCP Check (New in v4.1)
12
- Trước khi làm bất cứ điều gì, kiểm tra "vũ khí":
13
+ ## 🚀 Giai đoạn 0: Environment & MCP Check
13
14
 
14
15
  1. **MCP Status Check**:
15
- * `firebase-mcp-server`: [Check] -> Nếu thiếu, hỏi user có cần Backend/Auth không?
16
- * `maestro`: [Check] -> Nếu thiếu, warn "Sẽ không thể chạy test UI tự động".
17
- * `ios-simulator`: [Check] -> Nếu là dự án Mobile, yêu cầu bật Simulator.
18
- * `google-ads-mcp`: [Check] -> (Optional) Cho Marketing.
16
+ * `firebase-mcp-server`: [Check] Nếu thiếu, hỏi user có cần Backend/Auth không?
17
+ * `maestro`: [Check] Nếu thiếu, warn "Sẽ không thể chạy test UI tự động".
18
+ * `ios-simulator`: [Check] Nếu là dự án Mobile, yêu cầu bật Simulator.
19
19
 
20
- 2. **Dev Environment**:
21
- * Node/Ruby/Java/Swift versions.
22
- * Docker status (nếu là Backend).
20
+ 2. **Dev Environment**: Node/Ruby/Java/Swift versions.
23
21
 
24
22
  ---
25
23
 
26
24
  ## ⚡ Giai đoạn 1: Context Awareness & Smart Adoption
27
- *Thay vì hỏi máy móc, hãy quan sát:*
28
25
 
29
26
  **Kịch bản A: Thư mục trống (New Project)**
30
- * Chạy quy trình phỏng vấn **Vision Capture** (như bản cũ).
31
- * Hỏi thêm: "Anh muốn dùng template có sẵn không?" (Clean Arch, Boilerplate).
27
+ * Chạy quy trình phỏng vấn **Vision Capture**.
28
+ * Hỏi: "Anh muốn dùng template có sẵn không?" (Clean Arch, Boilerplate).
32
29
 
33
30
  **Kịch bản B: Thư mục có Code (Adoption Mode)**
34
31
  * AI quét cấu trúc hiện tại.
35
32
  * Tự động điền `.project-identity`.
36
- * Đề xuất: "Em thấy dự án này đang dùng [Stack]. Anh có muốn em setup lại folder `docs/` và `scripts/` để chuẩn hóa theo Antigravity Workflow không?"
33
+ * Đề xuất chuẩn hóa theo Antigravity Workflow.
37
34
 
38
35
  ---
39
36
 
40
- ## 🧠 Giai đoạn 2: The Antigravity Core Injection
41
- *Đây là "bí mật" tạo nên sự khác biệt. Setup nền tảng cho các workflow nâng cao.*
37
+ ## 🧠 Giai đoạn 2: Project Skeleton
42
38
 
43
- ### 2.1. Create Standard Ecosystem
44
- Tự động tạo các thư mục và file mẫu:
39
+ 1. **Generate `.project-identity`** (Bắt buộc):
40
+ * Copy template từ `~/.gemini/antigravity/templates/project-identity/[platform].json`.
41
+ * Customize: Thay thế `{{DATE}}`, `projectName` bằng thông tin thực tế.
45
42
 
46
- 1. **Antigravity Core**:
43
+ 2. **Create Standard Ecosystem**:
47
44
  ```bash
48
- mkdir -p docs/specs/_templates
45
+ mkdir -p docs/specs
49
46
  mkdir -p docs/architecture/decisions
50
- mkdir -p .gemini/scripts
47
+ mkdir -p .planning/research
51
48
  ```
52
49
 
53
- 2. **App Structure (Platform-Specific)**:
54
- * **Action:** Đọc template cấu trúc từ `~/.gemini/antigravity/templates/structures/[platform].txt`.
55
- * **Execute:** Tạo folder tree tương ứng.
56
- * *Ví dụ iOS:* `App/Features`, `App/Shared`, `Tests`, ...
50
+ 3. **App Structure (Platform-Specific)**:
51
+ * Đọc template từ `~/.gemini/antigravity/templates/structures/[platform].txt`.
52
+ * Tạo folder tree tương ứng.
57
53
 
58
- ### 2.2. Inject Templates (Spec & Architecture)
59
- Tạo file mẫu để workflow `/plan` (create-spec) hoạt động trơn tru:
54
+ 4. **Git Setup**: `.gitignore` thông minh theo stack.
60
55
 
61
- **`docs/specs/_templates/requirements_template.md`**:
62
- *(Mẫu chuẩn Requirements từng dùng ở `create-spec-architect`)*
56
+ ---
63
57
 
64
- **`docs/specs/_templates/architecture_template.md`**:
65
- *(Mẫu chuẩn Clean Architecture Decision)*
58
+ ## 📐 Giai đoạn 3: Project Spec Generation (NEW — Spec-First)
66
59
 
67
- ### 2.3. Inject Automation Scripts
68
- Tạo script để user lệnh tắt chạy workflow:
60
+ > **Đây bước mới quan trọng nhất.** AI brainstorm với user để tạo ra "hiến pháp" của dự án.
61
+ > Tất cả feature-level planning SAU NÀY phải tuân theo spec này.
69
62
 
70
- **`scripts/scaffold_feature.sh`**:
71
- *(Script gọi đến `structure-clean-architect` workflow)*
63
+ ### 3.1. Copy Templates
64
+ ```bash
65
+ # CLI tự động copy templates vào project
66
+ cp ~/.gemini/antigravity/templates/specs/PROJECT.md docs/specs/PROJECT.md
67
+ cp ~/.gemini/antigravity/templates/specs/requirements-template.md docs/specs/REQUIREMENTS.md
68
+ cp ~/.gemini/antigravity/templates/specs/ROADMAP.md docs/specs/ROADMAP.md
69
+ cp ~/.gemini/antigravity/templates/specs/TECH-SPEC.md docs/specs/TECH-SPEC.md
70
+ ```
72
71
 
73
- ---
72
+ ### 3.2. AI Fills Content (Brainstorm Session)
74
73
 
75
- ## 🏗️ Giai đoạn 3: Project Skeleton & Hidden Setup
76
- *(Kế thừa từ v4.0 nhưng mạnh mẽ hơn)*
77
-
78
- 1. **Generate `.project-identity`**: (Bắt buộc, là trái tim của mọi workflow).
79
- * **Action:** Copy template từ `~/.gemini/antigravity/templates/project-identity/`:
80
- * `ios.json` cho iOS.
81
- * `android.json` cho Android.
82
- * `expo.json` cho Cross-platform.
83
- * `web-nextjs.json` cho Web App.
84
- * `backend-nestjs.json` cho API.
85
- * **Customize:** Thay thế các placeholder (`{{DATE}}`, `projectName`) bằng thông tin thực tế.
86
- 2. **Git Setup**: `.gitignore` thông minh theo stack.
87
- 3. **Linter/Formatter**: Cài ESLint/SwiftLint/Detekt ngay lập tức.
88
- 4. **CI/CD Basics**: Tạo `.github/workflows/ci.yml` cơ bản (build test).
74
+ AI **chủ động** brainstorm với user để fill từng file:
89
75
 
90
- ---
76
+ 1. **PROJECT.md** — Hỏi về vision, goals, target audience, success metrics.
77
+ * "Dự án này giải quyết vấn đề gì?"
78
+ * "Ai là người dùng chính?"
79
+ * "Thành công sẽ trông như thế nào?"
91
80
 
92
- ## 🎨 Giai đoạn 4: Visual Vision (The WOW Factor)
93
- *Không để user chờ đợi với màn hình đen trắng.*
81
+ 2. **REQUIREMENTS.md** Hỏi về features, scope, priorities.
82
+ * "Features nào BẮT BUỘC trong v1?"
83
+ * "Có features nào nên để v2?"
84
+ * Dùng user story format: "As a [user], I want [action] so that [benefit]"
94
85
 
95
- 1. **Brainstorm UI Concept**:
96
- * Dựa trên ý tưởng user, AI tự nghĩ ra 1 `prompt` mô tả giao diện cực xịn (Dark/Light mode, Glassmorphism...).
97
- 2. **Generate Mockup**:
98
- * Gọi tool `generate_image` để tạo ngay 1 ảnh "Vision Art".
99
- * Hiển thị cho user: "App của anh trông sẽ ngầu như thế này này!"
86
+ 3. **ROADMAP.md** Tự động sinh từ requirements.
87
+ * Chia phases dựa trên priority + dependencies.
88
+ * Mỗi phase có Definition of Done rõ ràng.
89
+
90
+ 4. **TECH-SPEC.md** Hỏi về architecture constraints.
91
+ * "Có yêu cầu offline-first không?"
92
+ * "AI model nào sẽ dùng?"
93
+ * Ghi nhận Architecture Decisions (AD-1, AD-2...).
94
+
95
+ ### 3.3. Review & Confirm
96
+ * AI present tổng kết spec cho user review trước khi lưu.
97
+ * User approve → spec trở thành "source of truth".
100
98
 
101
99
  ---
102
100
 
103
- ## 🔗 Giai đoạn 5: Handover to Specialized Workflows
104
- *Sự kết nối chặt chẽ với các quy trình user yêu thích.*
101
+ ## 🎨 Giai đoạn 4: Visual Vision (Optional)
102
+
103
+ 1. **Brainstorm UI Concept** dựa trên spec vừa tạo.
104
+ 2. **Generate Mockup** via `generate_image` tool.
105
+ 3. Hiển thị cho user: "App trông sẽ như thế này!"
105
106
 
106
- Báo cáo hoàn tất và trỏ ngay sang các bước tiếp theo:
107
+ ---
107
108
 
108
- ### ⚠️ NEXT STEPS (Choose your path):
109
+ ## 🔗 Giai đoạn 5: Handover — Symphony + Next Steps
109
110
 
110
- **Path A: The Planner (Chậm mà chắc)**
111
- > "Tôi muốn lên kế hoạch chi tiết cho tính năng đầu tiên."
112
- 👉 Gõ: **/plan** (Sẽ chạy `create-spec-architect` dùng template vừa tạo).
111
+ 1. **Register project trong Symphony**:
112
+ ```bash
113
+ symphony project register --id <projectId> --name "<projectName>"
114
+ ```
113
115
 
114
- **Path B: The Builder (Mì ăn liền)**
115
- > "Tôi muốn thấy cấu trúc code ngay."
116
- 👉 Gõ: **/structure** (Sẽ chạy `structure-clean-architect` dựa trên `.project-identity`).
116
+ 2. **Tạo initial tasks từ ROADMAP.md Phase 1**:
117
+ * Mỗi feature trong Phase 1 1 Symphony task (status: ready).
117
118
 
118
- **Path C: The Artist (UI First)**
119
- > "Tôi muốn thiết kế giao diện trước."
120
- 👉 Gõ: **/visualize** (Sẽ chạy `design-to-ui` / `ui-first-methodology`).
119
+ 3. **Present next steps**:
120
+ ```
121
+ 🎉 SETUP COMPLETE!
122
+
123
+ 📐 Specs created:
124
+ + docs/specs/PROJECT.md
125
+ + docs/specs/REQUIREMENTS.md
126
+ + docs/specs/ROADMAP.md
127
+ + docs/specs/TECH-SPEC.md
128
+
129
+ 🎯 Symphony tasks created from Phase 1:
130
+ 📋 #sym-A1 — [Feature 1] (ready)
131
+ 📋 #sym-A2 — [Feature 2] (ready)
132
+
133
+ ➡️ Next: Pick a feature to start PLANNING mode.
134
+ AI will read your specs automatically.
135
+ ```
121
136
 
122
137
  ---
123
138
 
124
- ## 📝 Example Execution for User
139
+ ## 📝 Example Execution
125
140
 
126
141
  ```text
127
- Antigravity Initializer v4.1
142
+ Antigravity Initializer v5.0
128
143
  ----------------------------
129
144
  ✅ Checking Environment... OK
130
- ✅ Checking MCPs... Firebase (OFF), Maestro (ON)
145
+ ✅ Checking MCPs... Firebase (ON), Maestro (ON)
131
146
  📂 Project detected: Empty folder
132
147
 
133
148
  🤖 Let's build something great!
134
- ... [Vision Capture Questions] ...
135
-
136
- 🚀 Setting up Antigravity Core...
137
- + docs/specs/_templates
138
- + .project-identity
139
- + .gitignore
140
- + scripts/scaffold_feature.sh
149
+ ... [Vision Capture + Spec Brainstorm] ...
141
150
 
142
- 🎨 Generating Vision Concept... [Done]
143
- (Image: A sleek, dark-themed dashboard for [AppName])
151
+ 📐 Filling Project Specs...
152
+ docs/specs/PROJECT.md filled
153
+ ✅ docs/specs/REQUIREMENTS.md — filled (12 requirements)
154
+ ✅ docs/specs/ROADMAP.md — filled (3 phases)
155
+ ✅ docs/specs/TECH-SPEC.md — filled (5 architecture decisions)
144
156
 
145
- 🎉 SETUP COMPLETE!
146
- Your "Operating System" is ready.
157
+ 🎯 Symphony tasks created:
158
+ 📋 #sym-A1 User Authentication (P0, ready)
159
+ 📋 #sym-A2 — Onboarding Flow (P0, ready)
160
+ 📋 #sym-A3 — Dashboard UI (P1, ready)
147
161
 
148
- What's your first move?
149
- 1. /plan [FeatureName] (Recommended: Create Specs first)
150
- 2. /structure [FeatureName] (Scaffold Code)
151
- 3. /visualize (Design UI)
162
+ 🎉 SETUP COMPLETE! Your "Operating System" is ready.
163
+ ➡️ Pick a feature to start building.
152
164
  ```
package/core/AGENTS.md DELETED
@@ -1,38 +0,0 @@
1
- # Agent Instructions
2
-
3
- This project uses **Symphony** for task management and issue tracking.
4
-
5
- ## Quick Reference
6
-
7
- ```bash
8
- symphony_available_tasks # Find available work
9
- symphony_claim_task <id> # Claim a task
10
- symphony_report_progress <id> # Report progress
11
- symphony_complete_task <id> # Complete work
12
- symphony_status # Check system status
13
- ```
14
-
15
- ## Landing the Plane (Session Completion)
16
-
17
- **When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
18
-
19
- **MANDATORY WORKFLOW:**
20
-
21
- 1. **File issues for remaining work** — Create tasks for anything that needs follow-up
22
- 2. **Run quality gates** (if code changed) — Tests, linters, builds
23
- 3. **Update task status** — Complete finished work, update in-progress items
24
- 4. **PUSH TO REMOTE** — This is MANDATORY:
25
- ```bash
26
- git pull --rebase
27
- git push
28
- git status # MUST show "up to date with origin"
29
- ```
30
- 5. **Clean up** — Clear stashes, prune remote branches
31
- 6. **Verify** — All changes committed AND pushed
32
- 7. **Hand off** — Provide context for next session
33
-
34
- **CRITICAL RULES:**
35
- - Work is NOT complete until `git push` succeeds
36
- - NEVER stop before pushing — that leaves work stranded locally
37
- - NEVER say "ready to push when you are" — YOU must push
38
- - If push fails, resolve and retry until it succeeds