oh-my-ag 1.2.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/.agent/skills/_shared/api-contracts/README.md +56 -0
- package/.agent/skills/_shared/api-contracts/template.md +88 -0
- package/.agent/skills/_shared/clarification-protocol.md +217 -0
- package/.agent/skills/_shared/common-checklist.md +31 -0
- package/.agent/skills/_shared/context-budget.md +118 -0
- package/.agent/skills/_shared/context-loading.md +105 -0
- package/.agent/skills/_shared/difficulty-guide.md +55 -0
- package/.agent/skills/_shared/lessons-learned.md +113 -0
- package/.agent/skills/_shared/memory-protocol.md +79 -0
- package/.agent/skills/_shared/reasoning-templates.md +161 -0
- package/.agent/skills/_shared/skill-routing.md +80 -0
- package/.agent/skills/_shared/verify.sh +252 -0
- package/.agent/skills/backend-agent/SKILL.md +47 -0
- package/.agent/skills/backend-agent/resources/api-template.py +326 -0
- package/.agent/skills/backend-agent/resources/checklist.md +36 -0
- package/.agent/skills/backend-agent/resources/error-playbook.md +98 -0
- package/.agent/skills/backend-agent/resources/examples.md +85 -0
- package/.agent/skills/backend-agent/resources/execution-protocol.md +45 -0
- package/.agent/skills/backend-agent/resources/snippets.md +197 -0
- package/.agent/skills/backend-agent/resources/tech-stack.md +39 -0
- package/.agent/skills/commit/SKILL.md +121 -0
- package/.agent/skills/commit/config/commit-config.yaml +55 -0
- package/.agent/skills/commit/resources/conventional-commits.md +166 -0
- package/.agent/skills/debug-agent/SKILL.md +51 -0
- package/.agent/skills/debug-agent/resources/bug-report-template.md +332 -0
- package/.agent/skills/debug-agent/resources/checklist.md +30 -0
- package/.agent/skills/debug-agent/resources/common-patterns.md +734 -0
- package/.agent/skills/debug-agent/resources/debugging-checklist.md +362 -0
- package/.agent/skills/debug-agent/resources/error-playbook.md +94 -0
- package/.agent/skills/debug-agent/resources/examples.md +87 -0
- package/.agent/skills/debug-agent/resources/execution-protocol.md +51 -0
- package/.agent/skills/frontend-agent/SKILL.md +48 -0
- package/.agent/skills/frontend-agent/resources/checklist.md +38 -0
- package/.agent/skills/frontend-agent/resources/component-template.tsx +92 -0
- package/.agent/skills/frontend-agent/resources/error-playbook.md +108 -0
- package/.agent/skills/frontend-agent/resources/examples.md +77 -0
- package/.agent/skills/frontend-agent/resources/execution-protocol.md +49 -0
- package/.agent/skills/frontend-agent/resources/snippets.md +205 -0
- package/.agent/skills/frontend-agent/resources/tailwind-rules.md +343 -0
- package/.agent/skills/frontend-agent/resources/tech-stack.md +36 -0
- package/.agent/skills/mobile-agent/SKILL.md +46 -0
- package/.agent/skills/mobile-agent/resources/checklist.md +35 -0
- package/.agent/skills/mobile-agent/resources/error-playbook.md +106 -0
- package/.agent/skills/mobile-agent/resources/examples.md +79 -0
- package/.agent/skills/mobile-agent/resources/execution-protocol.md +49 -0
- package/.agent/skills/mobile-agent/resources/screen-template.dart +298 -0
- package/.agent/skills/mobile-agent/resources/snippets.md +235 -0
- package/.agent/skills/mobile-agent/resources/tech-stack.md +45 -0
- package/.agent/skills/orchestrator/SKILL.md +99 -0
- package/.agent/skills/orchestrator/config/cli-config.yaml +78 -0
- package/.agent/skills/orchestrator/resources/memory-schema.md +212 -0
- package/.agent/skills/orchestrator/resources/subagent-prompt-template.md +153 -0
- package/.agent/skills/orchestrator/scripts/parallel-run.sh +330 -0
- package/.agent/skills/orchestrator/scripts/spawn-agent.sh +263 -0
- package/.agent/skills/orchestrator/templates/backend-task.md +18 -0
- package/.agent/skills/orchestrator/templates/debug-task.md +16 -0
- package/.agent/skills/orchestrator/templates/frontend-task.md +17 -0
- package/.agent/skills/orchestrator/templates/mobile-task.md +17 -0
- package/.agent/skills/orchestrator/templates/qa-task.md +16 -0
- package/.agent/skills/orchestrator/templates/tasks-example.yaml +15 -0
- package/.agent/skills/pm-agent/SKILL.md +47 -0
- package/.agent/skills/pm-agent/resources/error-playbook.md +75 -0
- package/.agent/skills/pm-agent/resources/examples.md +121 -0
- package/.agent/skills/pm-agent/resources/execution-protocol.md +46 -0
- package/.agent/skills/pm-agent/resources/task-template.json +57 -0
- package/.agent/skills/qa-agent/SKILL.md +43 -0
- package/.agent/skills/qa-agent/resources/checklist.md +294 -0
- package/.agent/skills/qa-agent/resources/error-playbook.md +95 -0
- package/.agent/skills/qa-agent/resources/examples.md +100 -0
- package/.agent/skills/qa-agent/resources/execution-protocol.md +50 -0
- package/.agent/skills/qa-agent/resources/self-check.md +27 -0
- package/.agent/skills/workflow-guide/SKILL.md +57 -0
- package/.agent/skills/workflow-guide/resources/examples.md +68 -0
- package/README.ko.md +459 -0
- package/README.md +563 -0
- package/bin/cli.js +205 -0
- package/package.json +75 -0
package/README.md
ADDED
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
# 🛸 Antigravity Multi-Agent Skills
|
|
2
|
+
|
|
3
|
+
[한국어](./README.ko.md)
|
|
4
|
+
|
|
5
|
+
Professional agent skills for Google Antigravity IDE featuring specialized PM, Frontend, Backend, Mobile, QA, and Debug agents — coordinated through Antigravity's Agent Manager, CLI-based SubAgent Orchestrator, and real-time Serena Memory dashboards.
|
|
6
|
+
|
|
7
|
+
> **Like this project?** Give it a star!
|
|
8
|
+
> ```bash
|
|
9
|
+
> gh api --method PUT /user/starred/first-fluke/oh-my-ag
|
|
10
|
+
> ```
|
|
11
|
+
>
|
|
12
|
+
> **New to fullstack development?** Try our optimized starter template:
|
|
13
|
+
> ```bash
|
|
14
|
+
> git clone https://github.com/first-fluke/fullstack-starter
|
|
15
|
+
> ```
|
|
16
|
+
> Pre-configured with these skills for instant multi-agent collaboration.
|
|
17
|
+
|
|
18
|
+
## Table of Contents
|
|
19
|
+
|
|
20
|
+
- [Architecture](#architecture)
|
|
21
|
+
- [What Is This?](#what-is-this)
|
|
22
|
+
- [Quick Start](#quick-start)
|
|
23
|
+
- [How It Works](#how-it-works)
|
|
24
|
+
- [Real-time Dashboards](#real-time-dashboards)
|
|
25
|
+
- [Project Structure](#project-structure)
|
|
26
|
+
- [Skill Architecture](#skill-architecture)
|
|
27
|
+
- [Skills Overview](#skills-overview)
|
|
28
|
+
- [Prerequisites](#prerequisites)
|
|
29
|
+
- [CLI Commands](#cli-commands)
|
|
30
|
+
- [Troubleshooting](#troubleshooting)
|
|
31
|
+
- [Central Registry](#central-registry-for-multi-repo-setup)
|
|
32
|
+
- [License](#license)
|
|
33
|
+
|
|
34
|
+
## Architecture
|
|
35
|
+
|
|
36
|
+
```mermaid
|
|
37
|
+
flowchart TB
|
|
38
|
+
subgraph Coordination["🎯 Coordination"]
|
|
39
|
+
PM[pm-agent<br/>Task Decomposition]
|
|
40
|
+
WF[workflow-guide<br/>Manual Orchestration]
|
|
41
|
+
ORC[orchestrator<br/>Parallel Execution]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
subgraph Domain["💻 Domain Agents"]
|
|
45
|
+
FE[frontend-agent<br/>React/Next.js]
|
|
46
|
+
BE[backend-agent<br/>FastAPI/Python]
|
|
47
|
+
MB[mobile-agent<br/>Flutter/Dart]
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
subgraph Quality["✅ Quality"]
|
|
51
|
+
QA[qa-agent<br/>Security/A11y/Perf]
|
|
52
|
+
DBG[debug-agent<br/>Bug Fixing]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
subgraph Utility["🔧 Utility"]
|
|
56
|
+
CMT[commit<br/>Conventional Commits]
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
PM -->|API Contracts| FE & BE & MB
|
|
60
|
+
ORC -->|Spawns| FE & BE & MB
|
|
61
|
+
WF -->|Coordinates| FE & BE & MB
|
|
62
|
+
FE & BE & MB -->|Review| QA
|
|
63
|
+
QA -->|Issues| DBG
|
|
64
|
+
DBG -->|Fix| FE & BE & MB
|
|
65
|
+
FE & BE & MB -->|Changes| CMT
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## What Is This?
|
|
69
|
+
|
|
70
|
+
A collection of **Antigravity Skills** enabling collaborative multi-agent development. Work is distributed across expert agents:
|
|
71
|
+
|
|
72
|
+
| Agent | Specialization |
|
|
73
|
+
|-------|---------------|
|
|
74
|
+
| **Workflow Guide** | Coordinates complex multi-agent projects |
|
|
75
|
+
| **PM Agent** | Requirements analysis, task decomposition, architecture |
|
|
76
|
+
| **Frontend Agent** | React/Next.js, TypeScript, Tailwind CSS |
|
|
77
|
+
| **Backend Agent** | FastAPI, PostgreSQL, JWT authentication |
|
|
78
|
+
| **Mobile Agent** | Flutter cross-platform development |
|
|
79
|
+
| **QA Agent** | OWASP Top 10 security, performance, accessibility |
|
|
80
|
+
| **Debug Agent** | Bug diagnosis, root cause analysis, regression tests |
|
|
81
|
+
| **Orchestrator** | CLI-based parallel agent execution with Serena Memory |
|
|
82
|
+
| **Commit** | Conventional Commits with project-specific rules |
|
|
83
|
+
|
|
84
|
+
## Quick Start
|
|
85
|
+
|
|
86
|
+
### Option 1: Interactive CLI (Recommended)
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Install bun if you don't have it:
|
|
90
|
+
# curl -fsSL https://bun.sh/install | bash
|
|
91
|
+
|
|
92
|
+
bunx oh-my-ag
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Select your project type and skills will be installed to `.agent/skills/`.
|
|
96
|
+
|
|
97
|
+
| Preset | Skills |
|
|
98
|
+
|--------|--------|
|
|
99
|
+
| ✨ All | Everything |
|
|
100
|
+
| 🌐 Fullstack | frontend, backend, pm, qa, debug, commit |
|
|
101
|
+
| 🎨 Frontend | frontend, pm, qa, debug, commit |
|
|
102
|
+
| ⚙️ Backend | backend, pm, qa, debug, commit |
|
|
103
|
+
| 📱 Mobile | mobile, pm, qa, debug, commit |
|
|
104
|
+
|
|
105
|
+
### Option 2: Using vercel-labs/skills
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
bunx skills add first-fluke/oh-my-ag
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Option 3: Clone & Open
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
git clone https://github.com/first-fluke/oh-my-ag
|
|
115
|
+
cd oh-my-ag
|
|
116
|
+
antigravity open .
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Antigravity automatically detects skills in `.agent/skills/`.
|
|
120
|
+
|
|
121
|
+
### 2. Initial Setup (Optional)
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
/setup
|
|
125
|
+
→ Check CLI installations, MCP connections, configure language & CLI mapping
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
This creates `.agent/config/user-preferences.yaml` for your project.
|
|
129
|
+
|
|
130
|
+
### 3. Chat
|
|
131
|
+
|
|
132
|
+
**Simple task** (single agent auto-activates):
|
|
133
|
+
```
|
|
134
|
+
"Create a login form with Tailwind CSS and form validation"
|
|
135
|
+
→ frontend-agent activates
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Complex project** (workflow-guide coordinates):
|
|
139
|
+
```
|
|
140
|
+
"Build a TODO app with user authentication"
|
|
141
|
+
→ workflow-guide → PM Agent plans → agents spawned in Agent Manager
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Explicit coordination** (user-triggered workflow):
|
|
145
|
+
```
|
|
146
|
+
/coordinate
|
|
147
|
+
→ Step-by-step: PM planning → agent spawning → QA review
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Commit changes** (conventional commits):
|
|
151
|
+
```
|
|
152
|
+
/commit
|
|
153
|
+
→ Analyze changes, suggest commit type/scope, create commit with Co-Author
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### 3. Monitor with Dashboards
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
bunx oh-my-ag dashboard # Terminal dashboard (bash)
|
|
160
|
+
bunx oh-my-ag dashboard:web # Web dashboard (Node.js)
|
|
161
|
+
# → http://localhost:9847
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## How It Works
|
|
165
|
+
|
|
166
|
+
### Progressive Disclosure
|
|
167
|
+
|
|
168
|
+
You don't manually select skills. Antigravity automatically:
|
|
169
|
+
1. Scans your chat request
|
|
170
|
+
2. Matches against skill descriptions in `.agent/skills/`
|
|
171
|
+
3. Loads the relevant skill only when needed
|
|
172
|
+
4. Saves tokens via lazy loading
|
|
173
|
+
|
|
174
|
+
### Agent Manager UI
|
|
175
|
+
|
|
176
|
+
For complex projects, use Antigravity's **Agent Manager** (Mission Control):
|
|
177
|
+
1. PM Agent creates a plan
|
|
178
|
+
2. You spawn agents in the Agent Manager UI
|
|
179
|
+
3. Agents work in parallel with separate workspaces
|
|
180
|
+
4. Monitor progress via inbox notifications
|
|
181
|
+
5. QA Agent reviews the final output
|
|
182
|
+
|
|
183
|
+
### SubAgent Orchestrator (CLI)
|
|
184
|
+
|
|
185
|
+
For programmatic parallel execution:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Single agent
|
|
189
|
+
./scripts/spawn-subagent.sh backend "Implement auth API" ./backend
|
|
190
|
+
|
|
191
|
+
# Parallel agents via orchestrator skill
|
|
192
|
+
./scripts/spawn-subagent.sh backend "Implement auth API" ./backend &
|
|
193
|
+
./scripts/spawn-subagent.sh frontend "Create login form" ./frontend &
|
|
194
|
+
wait
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Supports multiple CLI vendors: **Gemini**, **Claude**, **Codex**, **Qwen**
|
|
198
|
+
|
|
199
|
+
### Multi-CLI Configuration
|
|
200
|
+
|
|
201
|
+
Configure different CLIs per agent type in `.agent/config/user-preferences.yaml`:
|
|
202
|
+
|
|
203
|
+
```yaml
|
|
204
|
+
# Response language
|
|
205
|
+
language: ko # ko, en, ja, zh, ...
|
|
206
|
+
|
|
207
|
+
# Default CLI (single tasks)
|
|
208
|
+
default_cli: gemini
|
|
209
|
+
|
|
210
|
+
# Per-agent CLI mapping (multi-CLI mode)
|
|
211
|
+
agent_cli_mapping:
|
|
212
|
+
frontend: gemini
|
|
213
|
+
backend: codex
|
|
214
|
+
mobile: gemini
|
|
215
|
+
pm: claude
|
|
216
|
+
qa: claude
|
|
217
|
+
debug: gemini
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**CLI Resolution Priority**:
|
|
221
|
+
1. `--vendor` command line argument
|
|
222
|
+
2. `agent_cli_mapping` from user-preferences.yaml
|
|
223
|
+
3. `default_cli` from user-preferences.yaml
|
|
224
|
+
4. `active_vendor` from cli-config.yaml (legacy)
|
|
225
|
+
5. Hardcoded fallback: `gemini`
|
|
226
|
+
|
|
227
|
+
Run `/setup` to configure interactively.
|
|
228
|
+
|
|
229
|
+
### Serena Memory Coordination
|
|
230
|
+
|
|
231
|
+
The Orchestrator writes structured state to `.serena/memories/`:
|
|
232
|
+
|
|
233
|
+
| File | Purpose |
|
|
234
|
+
|------|---------|
|
|
235
|
+
| `orchestrator-session.md` | Session ID, status, phase |
|
|
236
|
+
| `task-board.md` | Agent assignments and status table |
|
|
237
|
+
| `progress-{agent}.md` | Per-agent turn-by-turn progress |
|
|
238
|
+
| `result-{agent}.md` | Completion results per agent |
|
|
239
|
+
|
|
240
|
+
Both dashboards watch these files for real-time monitoring.
|
|
241
|
+
|
|
242
|
+
## Real-time Dashboards
|
|
243
|
+
|
|
244
|
+
### Terminal Dashboard
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
bunx oh-my-ag dashboard
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Watches `.serena/memories/` and renders a live status table in your terminal:
|
|
251
|
+
|
|
252
|
+
```
|
|
253
|
+
╔════════════════════════════════════════════════════════╗
|
|
254
|
+
║ Serena Memory Dashboard ║
|
|
255
|
+
║ Session: session-20260128-143022 [RUNNING] ║
|
|
256
|
+
╠════════════════════════════════════════════════════════╣
|
|
257
|
+
║ Agent Status Turn Task ║
|
|
258
|
+
║ ────────── ────────── ──── ────────── ║
|
|
259
|
+
║ backend ● running 12 JWT Auth API ║
|
|
260
|
+
║ frontend ✓ completed 18 Login UI ║
|
|
261
|
+
║ qa ○ blocked - Security Review ║
|
|
262
|
+
╠════════════════════════════════════════════════════════╣
|
|
263
|
+
║ Latest Activity: ║
|
|
264
|
+
║ [backend] Turn 12 - Added tests and rate limit ║
|
|
265
|
+
║ [frontend] Completed - All criteria met ║
|
|
266
|
+
╠════════════════════════════════════════════════════════╣
|
|
267
|
+
║ Updated: 2026-01-28 14:32:05 | Ctrl+C to exit ║
|
|
268
|
+
╚════════════════════════════════════════════════════════╝
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Web Dashboard
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
bunx oh-my-ag dashboard:web
|
|
275
|
+
# → http://localhost:9847
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Features:
|
|
279
|
+
- Real-time WebSocket push (no polling)
|
|
280
|
+
- Auto-reconnect on disconnection
|
|
281
|
+
- Purple Serena-themed UI
|
|
282
|
+
- Session status, agent table, activity log
|
|
283
|
+
- Event-driven file watching via chokidar (cross-platform)
|
|
284
|
+
|
|
285
|
+
## Project Structure
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
.
|
|
289
|
+
├── .agent/
|
|
290
|
+
│ ├── config/
|
|
291
|
+
│ │ └── user-preferences.yaml # Language, timezone, CLI mapping
|
|
292
|
+
│ ├── workflows/
|
|
293
|
+
│ │ ├── coordinate.md # /coordinate (multi-agent orchestration via UI)
|
|
294
|
+
│ │ ├── orchestrate.md # /orchestrate (automated CLI parallel execution)
|
|
295
|
+
│ │ ├── plan.md # /plan (PM task decomposition)
|
|
296
|
+
│ │ ├── review.md # /review (full QA pipeline)
|
|
297
|
+
│ │ ├── debug.md # /debug (structured bug fixing)
|
|
298
|
+
│ │ ├── setup.md # /setup (CLI & MCP configuration)
|
|
299
|
+
│ │ └── tools.md # /tools (MCP tool management)
|
|
300
|
+
│ └── skills/
|
|
301
|
+
│ ├── _shared/ # Common resources (not a skill)
|
|
302
|
+
│ │ ├── serena-memory-protocol.md
|
|
303
|
+
│ │ ├── common-checklist.md
|
|
304
|
+
│ │ ├── skill-routing.md
|
|
305
|
+
│ │ ├── context-loading.md
|
|
306
|
+
│ │ ├── context-budget.md
|
|
307
|
+
│ │ ├── reasoning-templates.md
|
|
308
|
+
│ │ ├── clarification-protocol.md
|
|
309
|
+
│ │ ├── difficulty-guide.md
|
|
310
|
+
│ │ ├── lessons-learned.md
|
|
311
|
+
│ │ ├── verify.sh
|
|
312
|
+
│ │ └── api-contracts/
|
|
313
|
+
│ ├── workflow-guide/ # Multi-agent coordination
|
|
314
|
+
│ ├── pm-agent/ # Product manager
|
|
315
|
+
│ ├── frontend-agent/ # React/Next.js
|
|
316
|
+
│ ├── backend-agent/ # FastAPI
|
|
317
|
+
│ ├── mobile-agent/ # Flutter
|
|
318
|
+
│ ├── qa-agent/ # Security & QA
|
|
319
|
+
│ ├── debug-agent/ # Bug fixing
|
|
320
|
+
│ ├── orchestrator/ # CLI-based sub-agent spawner
|
|
321
|
+
│ └── commit/ # Conventional commits skill
|
|
322
|
+
│ # Each skill has:
|
|
323
|
+
│ # SKILL.md (~40 lines, token-optimized)
|
|
324
|
+
│ # resources/
|
|
325
|
+
│ # ├── execution-protocol.md (chain-of-thought steps)
|
|
326
|
+
│ # ├── examples.md (few-shot input/output)
|
|
327
|
+
│ # ├── checklist.md (self-verification)
|
|
328
|
+
│ # ├── error-playbook.md (failure recovery)
|
|
329
|
+
│ # ├── tech-stack.md (detailed tech specs)
|
|
330
|
+
│ # └── snippets.md (copy-paste patterns)
|
|
331
|
+
├── .serena/
|
|
332
|
+
│ └── memories/ # Runtime state (gitignored)
|
|
333
|
+
├── scripts/
|
|
334
|
+
│ ├── spawn-subagent.sh # Sub-agent spawner
|
|
335
|
+
│ └── poll-status.sh # Status polling
|
|
336
|
+
├── package.json
|
|
337
|
+
├── README.md # This file (English)
|
|
338
|
+
├── README.ko.md # Korean guide
|
|
339
|
+
└── USAGE.md # Detailed usage guide
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
## Skill Architecture
|
|
343
|
+
|
|
344
|
+
Each skill uses a **token-optimized two-layer design**:
|
|
345
|
+
|
|
346
|
+
- **SKILL.md** (~40 lines): Loaded immediately by Antigravity. Contains only identity, routing conditions, and core rules.
|
|
347
|
+
- **resources/**: Loaded on-demand. Contains execution protocols, few-shot examples, checklists, error playbooks, code snippets, and tech stack details.
|
|
348
|
+
|
|
349
|
+
This achieves **~75% token savings** on initial skill loading (3-7KB → ~800B per skill).
|
|
350
|
+
|
|
351
|
+
### Shared Resources (`_shared/`)
|
|
352
|
+
|
|
353
|
+
Common resources deduplicated across all skills:
|
|
354
|
+
|
|
355
|
+
| Resource | Purpose |
|
|
356
|
+
|----------|---------|
|
|
357
|
+
| `reasoning-templates.md` | Structured fill-in-the-blank templates for multi-step reasoning |
|
|
358
|
+
| `clarification-protocol.md` | When to ask vs. assume, ambiguity levels |
|
|
359
|
+
| `context-budget.md` | Token-efficient file reading strategies per model tier |
|
|
360
|
+
| `context-loading.md` | Task-type to resource mapping for orchestrator prompt construction |
|
|
361
|
+
| `skill-routing.md` | Keyword-to-skill mapping and parallel execution rules |
|
|
362
|
+
| `difficulty-guide.md` | Simple/Medium/Complex assessment with protocol branching |
|
|
363
|
+
| `lessons-learned.md` | Cross-session accumulated domain gotchas |
|
|
364
|
+
| `verify.sh` | Automated verification script run after agent completion |
|
|
365
|
+
| `api-contracts/` | PM creates contracts, backend implements, frontend/mobile consumes |
|
|
366
|
+
| `serena-memory-protocol.md` | CLI mode memory read/write protocol |
|
|
367
|
+
| `common-checklist.md` | Universal code quality checks |
|
|
368
|
+
|
|
369
|
+
### Per-Skill Resources
|
|
370
|
+
|
|
371
|
+
Each skill provides domain-specific resources:
|
|
372
|
+
|
|
373
|
+
| Resource | Purpose |
|
|
374
|
+
|----------|---------|
|
|
375
|
+
| `execution-protocol.md` | 4-step chain-of-thought workflow (Analyze → Plan → Implement → Verify) |
|
|
376
|
+
| `examples.md` | 2-3 few-shot input/output examples |
|
|
377
|
+
| `checklist.md` | Domain-specific self-verification checklist |
|
|
378
|
+
| `error-playbook.md` | Failure recovery with "3 strikes" escalation rule |
|
|
379
|
+
| `tech-stack.md` | Detailed technology specifications |
|
|
380
|
+
| `snippets.md` | Copy-paste ready code patterns |
|
|
381
|
+
|
|
382
|
+
## Skills Overview
|
|
383
|
+
|
|
384
|
+
### workflow-guide
|
|
385
|
+
**Triggers**: Complex multi-domain requests
|
|
386
|
+
**Does**: Guides coordination of PM, Frontend, Backend, Mobile, QA agents
|
|
387
|
+
|
|
388
|
+
### pm-agent
|
|
389
|
+
**Triggers**: "plan this", "break down", "what should we build"
|
|
390
|
+
**Output**: `.agent/plan.json` with tasks, priorities, dependencies
|
|
391
|
+
|
|
392
|
+
### frontend-agent
|
|
393
|
+
**Triggers**: UI, components, styling, client-side logic
|
|
394
|
+
**Stack**: Next.js 14, TypeScript, Tailwind CSS, shadcn/ui
|
|
395
|
+
|
|
396
|
+
### backend-agent
|
|
397
|
+
**Triggers**: APIs, databases, authentication
|
|
398
|
+
**Stack**: FastAPI, SQLAlchemy, PostgreSQL, Redis, JWT
|
|
399
|
+
|
|
400
|
+
### mobile-agent
|
|
401
|
+
**Triggers**: Mobile apps, iOS/Android
|
|
402
|
+
**Stack**: Flutter 3.19+, Dart, Riverpod
|
|
403
|
+
|
|
404
|
+
### qa-agent
|
|
405
|
+
**Triggers**: "review security", "check performance", "audit"
|
|
406
|
+
**Checks**: OWASP Top 10, Lighthouse, WCAG 2.1 AA
|
|
407
|
+
|
|
408
|
+
### debug-agent
|
|
409
|
+
**Triggers**: Bug reports, error messages, crashes
|
|
410
|
+
**Output**: Fixed code, regression tests, bug documentation
|
|
411
|
+
|
|
412
|
+
### orchestrator
|
|
413
|
+
**Triggers**: Programmatic sub-agent execution
|
|
414
|
+
**CLIs**: Gemini, Claude, Codex, Qwen (configurable)
|
|
415
|
+
|
|
416
|
+
### commit
|
|
417
|
+
**Triggers**: "commit", "커밋해줘", "save changes"
|
|
418
|
+
**Format**: Conventional Commits with Co-Author tag
|
|
419
|
+
**Config**: `.agent/skills/commit/config/commit-config.yaml`
|
|
420
|
+
|
|
421
|
+
## Prerequisites
|
|
422
|
+
|
|
423
|
+
- **Google Antigravity** (2026+)
|
|
424
|
+
- **Node.js** (for web dashboard)
|
|
425
|
+
- **fswatch** (macOS) or **inotify-tools** (Linux) for terminal dashboard
|
|
426
|
+
|
|
427
|
+
For SubAgent Orchestrator, at least one CLI tool:
|
|
428
|
+
|
|
429
|
+
| CLI | Install | Auth |
|
|
430
|
+
|-----|---------|------|
|
|
431
|
+
| Gemini | `npm i -g @anthropic-ai/gemini-cli` | `gemini auth` |
|
|
432
|
+
| Claude | `npm i -g @anthropic-ai/claude-code` | `claude auth` |
|
|
433
|
+
| Codex | `npm i -g @openai/codex` | `codex auth` |
|
|
434
|
+
| Qwen | `pip install qwen-cli` | `qwen auth` |
|
|
435
|
+
|
|
436
|
+
## CLI Commands
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
bunx oh-my-ag # Interactive skill installer
|
|
440
|
+
bunx oh-my-ag doctor # Check setup & repair missing skills
|
|
441
|
+
bunx oh-my-ag doctor --json # JSON output for CI/CD
|
|
442
|
+
bunx oh-my-ag update # Update skills to latest version
|
|
443
|
+
bunx oh-my-ag stats # View productivity metrics
|
|
444
|
+
bunx oh-my-ag stats --reset # Reset metrics
|
|
445
|
+
bunx oh-my-ag retro # Session retrospective (learnings & next steps)
|
|
446
|
+
bunx oh-my-ag dashboard # Terminal real-time dashboard
|
|
447
|
+
bunx oh-my-ag dashboard:web # Web dashboard (http://localhost:9847)
|
|
448
|
+
bunx oh-my-ag help # Show help
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
## Troubleshooting
|
|
452
|
+
|
|
453
|
+
### Dashboard shows "No agents detected"
|
|
454
|
+
Memory files haven't been created yet. Run the orchestrator or manually create files in `.serena/memories/`.
|
|
455
|
+
|
|
456
|
+
### Web dashboard won't start
|
|
457
|
+
Run `npm install` first to install `chokidar` and `ws` dependencies.
|
|
458
|
+
|
|
459
|
+
### Terminal dashboard: "fswatch not found"
|
|
460
|
+
macOS: `brew install fswatch`
|
|
461
|
+
Linux: `apt install inotify-tools`
|
|
462
|
+
|
|
463
|
+
### Skills not loading in Antigravity
|
|
464
|
+
1. Open project with `antigravity open .`
|
|
465
|
+
2. Verify `.agent/skills/` folder and `SKILL.md` files exist
|
|
466
|
+
3. Restart Antigravity IDE
|
|
467
|
+
|
|
468
|
+
### Agents producing incompatible code
|
|
469
|
+
1. Review outputs in `.gemini/antigravity/brain/`
|
|
470
|
+
2. Re-spawn one agent referencing the other's output
|
|
471
|
+
3. Use QA Agent for final consistency check
|
|
472
|
+
|
|
473
|
+
## Central Registry (For Multi-Repo Setup)
|
|
474
|
+
|
|
475
|
+
This repository can serve as a **central registry** for agent skills, enabling multiple consumer projects to stay in sync with version-controlled updates.
|
|
476
|
+
|
|
477
|
+
### Architecture
|
|
478
|
+
|
|
479
|
+
```
|
|
480
|
+
┌─────────────────────────────────────────────────────────┐
|
|
481
|
+
│ Central Registry (this repo) │
|
|
482
|
+
│ • release-please for automatic versioning │
|
|
483
|
+
│ • CHANGELOG.md auto-generation │
|
|
484
|
+
│ • prompt-manifest.json (version/files/checksums) │
|
|
485
|
+
│ • agent-skills.tar.gz release artifact │
|
|
486
|
+
└─────────────────────────────────────────────────────────┘
|
|
487
|
+
│
|
|
488
|
+
▼
|
|
489
|
+
┌─────────────────────────────────────────────────────────┐
|
|
490
|
+
│ Consumer Repo │
|
|
491
|
+
│ • .agent-registry.yaml for version pinning │
|
|
492
|
+
│ • New version detection → PR (no auto-merge) │
|
|
493
|
+
│ • Reusable Action for file sync │
|
|
494
|
+
└─────────────────────────────────────────────────────────┘
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### For Registry Maintainers
|
|
498
|
+
|
|
499
|
+
Releases are automated via [release-please](https://github.com/googleapis/release-please):
|
|
500
|
+
|
|
501
|
+
1. **Conventional Commits**: Use `feat:`, `fix:`, `chore:`, etc. prefixes
|
|
502
|
+
2. **Release PR**: Automatically created/updated on push to `main`
|
|
503
|
+
3. **Release**: Merge the Release PR to create a GitHub Release with:
|
|
504
|
+
- `CHANGELOG.md` (auto-generated)
|
|
505
|
+
- `prompt-manifest.json` (file list + SHA256 checksums)
|
|
506
|
+
- `agent-skills.tar.gz` (compressed `.agent/` directory)
|
|
507
|
+
|
|
508
|
+
### For Consumer Projects
|
|
509
|
+
|
|
510
|
+
1. **Copy templates** from `docs/consumer-templates/` to your project:
|
|
511
|
+
|
|
512
|
+
```bash
|
|
513
|
+
# Configuration file
|
|
514
|
+
cp docs/consumer-templates/.agent-registry.yaml /path/to/your-project/
|
|
515
|
+
|
|
516
|
+
# GitHub workflows
|
|
517
|
+
cp docs/consumer-templates/check-registry-updates.yml /path/to/your-project/.github/workflows/
|
|
518
|
+
cp docs/consumer-templates/sync-agent-registry.yml /path/to/your-project/.github/workflows/
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
2. **Edit `.agent-registry.yaml`** to pin your desired version:
|
|
522
|
+
|
|
523
|
+
```yaml
|
|
524
|
+
registry:
|
|
525
|
+
repo: first-fluke/oh-my-ag
|
|
526
|
+
version: "1.2.0" # Pin to specific version
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
3. **Workflows**:
|
|
530
|
+
- `check-registry-updates.yml`: Weekly check for new versions → creates PR
|
|
531
|
+
- `sync-agent-registry.yml`: Syncs `.agent/` when version changes
|
|
532
|
+
|
|
533
|
+
**Important**: Auto-merge is disabled by design. All version updates require manual review.
|
|
534
|
+
|
|
535
|
+
### Using the Reusable Action
|
|
536
|
+
|
|
537
|
+
Consumer projects can use the sync action directly:
|
|
538
|
+
|
|
539
|
+
```yaml
|
|
540
|
+
- uses: first-fluke/oh-my-ag/.github/actions/sync-agent-registry@main
|
|
541
|
+
with:
|
|
542
|
+
registry-repo: first-fluke/oh-my-ag
|
|
543
|
+
version: '1.2.0' # or 'latest'
|
|
544
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
## License
|
|
548
|
+
|
|
549
|
+
MIT
|
|
550
|
+
|
|
551
|
+
## Documentation
|
|
552
|
+
|
|
553
|
+
| Document | Audience | Purpose |
|
|
554
|
+
|----------|----------|---------|
|
|
555
|
+
| [README.md](./README.md) | Users | Project overview (English) |
|
|
556
|
+
| [README.ko.md](./README.ko.md) | Users | Project overview (Korean) |
|
|
557
|
+
| [USAGE.md](./USAGE.md) | Users | How to use the skills (English) |
|
|
558
|
+
| [USAGE-ko.md](./USAGE-ko.md) | Users | How to use the skills (Korean) |
|
|
559
|
+
| [AGENT_GUIDE.md](./AGENT_GUIDE.md) | Developers | **How to integrate into your existing project** |
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
**Built for Google Antigravity 2026** | **New to this project?** Start with [AGENT_GUIDE.md](./AGENT_GUIDE.md) to integrate into your existing project
|