@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.
- package/bin/awk.js +215 -72
- package/bin/cline-generators.js +73 -0
- package/bin/codex-generators.js +108 -0
- package/core/GEMINI.md +14 -17
- package/package.json +2 -2
- package/skill-packs/superpowers/README.md +59 -0
- package/skill-packs/superpowers/pack.json +15 -0
- package/skill-packs/superpowers/skills/brainstorming/SKILL.md +96 -0
- package/skill-packs/superpowers/skills/executing-plans/SKILL.md +100 -0
- package/skill-packs/superpowers/skills/finishing-a-development-branch/SKILL.md +213 -0
- package/skill-packs/superpowers/skills/receiving-code-review/SKILL.md +213 -0
- package/skill-packs/superpowers/skills/requesting-code-review/SKILL.md +115 -0
- package/skill-packs/superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/SKILL.md +359 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/code-quality-reviewer-prompt.md +20 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/implementer-prompt.md +78 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/spec-reviewer-prompt.md +61 -0
- package/skill-packs/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skill-packs/superpowers/skills/systematic-debugging/SKILL.md +296 -0
- package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skill-packs/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skill-packs/superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
- package/skill-packs/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skill-packs/superpowers/skills/systematic-debugging/test-academic.md +14 -0
- package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skill-packs/superpowers/skills/test-driven-development/SKILL.md +371 -0
- package/skill-packs/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skill-packs/superpowers/skills/using-git-worktrees/SKILL.md +223 -0
- package/skill-packs/superpowers/skills/using-superpowers/SKILL.md +97 -0
- package/skill-packs/superpowers/skills/verification-before-completion/SKILL.md +139 -0
- package/skill-packs/superpowers/skills/writing-plans/SKILL.md +108 -0
- package/skill-packs/superpowers/skills/writing-skills/SKILL.md +716 -0
- package/skill-packs/superpowers/skills/writing-skills/antigravity-best-practices.md +1173 -0
- package/skill-packs/superpowers/skills/writing-skills/examples/AGENTS_MD_TESTING.md +189 -0
- package/skill-packs/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skill-packs/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
- package/skill-packs/superpowers/skills/writing-skills/render-graphs.js +175 -0
- package/skill-packs/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/skills/CATALOG.md +7 -0
- package/skills/orchestrator/SKILL.md +0 -4
- package/skills/symphony-enforcer/SKILL.md +188 -53
- package/templates/specs/PROJECT.md +50 -0
- package/templates/specs/ROADMAP.md +79 -0
- package/templates/specs/TECH-SPEC.md +81 -0
- package/templates/specs/task-spec-template.xml +65 -0
- package/workflows/lifecycle/init.md +103 -91
- package/core/AGENTS.md +0 -38
- package/skills/beads-manager/SKILL.md +0 -459
- package/workflows/_uncategorized/AGENTS.md +0 -38
|
@@ -1,152 +1,164 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: ✨ Khởi tạo dự án chuẩn Antigravity (
|
|
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 (
|
|
5
|
+
# WORKFLOW: /init - The Antigravity Orchestrator (v5.0)
|
|
6
6
|
|
|
7
|
-
> **Mission:**
|
|
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
|
|
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]
|
|
16
|
-
* `maestro`: [Check]
|
|
17
|
-
* `ios-simulator`: [Check]
|
|
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
|
|
31
|
-
* Hỏi
|
|
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
|
|
33
|
+
* Đề xuất chuẩn hóa theo Antigravity Workflow.
|
|
37
34
|
|
|
38
35
|
---
|
|
39
36
|
|
|
40
|
-
## 🧠 Giai đoạn 2:
|
|
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
43
|
+
2. **Create Standard Ecosystem**:
|
|
47
44
|
```bash
|
|
48
|
-
mkdir -p docs/specs
|
|
45
|
+
mkdir -p docs/specs
|
|
49
46
|
mkdir -p docs/architecture/decisions
|
|
50
|
-
mkdir -p .
|
|
47
|
+
mkdir -p .planning/research
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
62
|
-
*(Mẫu chuẩn Requirements từng dùng ở `create-spec-architect`)*
|
|
56
|
+
---
|
|
63
57
|
|
|
64
|
-
|
|
65
|
-
*(Mẫu chuẩn Clean Architecture Decision)*
|
|
58
|
+
## 📐 Giai đoạn 3: Project Spec Generation (NEW — Spec-First)
|
|
66
59
|
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
> **Đây là 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
|
-
|
|
71
|
-
|
|
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
|
-
|
|
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
|
-
|
|
93
|
-
*
|
|
81
|
+
2. **REQUIREMENTS.md** — Hỏi về features, scope, priorities.
|
|
82
|
+
* "Features nào BẮT BUỘC 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
|
-
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
##
|
|
104
|
-
|
|
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
|
-
|
|
107
|
+
---
|
|
107
108
|
|
|
108
|
-
|
|
109
|
+
## 🔗 Giai đoạn 5: Handover — Symphony + Next Steps
|
|
109
110
|
|
|
110
|
-
**
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
1. **Register project trong Symphony**:
|
|
112
|
+
```bash
|
|
113
|
+
symphony project register --id <projectId> --name "<projectName>"
|
|
114
|
+
```
|
|
113
115
|
|
|
114
|
-
**
|
|
115
|
-
|
|
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
|
-
**
|
|
119
|
-
|
|
120
|
-
|
|
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
|
|
139
|
+
## 📝 Example Execution
|
|
125
140
|
|
|
126
141
|
```text
|
|
127
|
-
Antigravity Initializer
|
|
142
|
+
Antigravity Initializer v5.0
|
|
128
143
|
----------------------------
|
|
129
144
|
✅ Checking Environment... OK
|
|
130
|
-
✅ Checking MCPs... Firebase (
|
|
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
|
|
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
|
-
|
|
143
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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
|
-
|
|
149
|
-
|
|
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
|