codingbuddy-rules 4.3.0 → 4.5.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/.ai-rules/adapters/antigravity.md +648 -160
- package/.ai-rules/adapters/claude-code.md +39 -0
- package/.ai-rules/adapters/codex.md +500 -10
- package/.ai-rules/adapters/cursor.md +252 -8
- package/.ai-rules/adapters/kiro.md +551 -93
- package/.ai-rules/adapters/opencode-skills.md +179 -188
- package/.ai-rules/adapters/opencode.md +245 -44
- package/.ai-rules/rules/core.md +17 -1
- package/.ai-rules/skills/README.md +92 -24
- package/.ai-rules/skills/agent-design/SKILL.md +269 -0
- package/.ai-rules/skills/code-explanation/SKILL.md +259 -0
- package/.ai-rules/skills/context-management/SKILL.md +244 -0
- package/.ai-rules/skills/deployment-checklist/SKILL.md +233 -0
- package/.ai-rules/skills/documentation-generation/SKILL.md +293 -0
- package/.ai-rules/skills/error-analysis/SKILL.md +250 -0
- package/.ai-rules/skills/legacy-modernization/SKILL.md +292 -0
- package/.ai-rules/skills/mcp-builder/SKILL.md +356 -0
- package/.ai-rules/skills/prompt-engineering/SKILL.md +318 -0
- package/.ai-rules/skills/rule-authoring/SKILL.md +273 -0
- package/.ai-rules/skills/security-audit/SKILL.md +241 -0
- package/.ai-rules/skills/tech-debt/SKILL.md +224 -0
- package/package.json +1 -1
|
@@ -1,193 +1,512 @@
|
|
|
1
1
|
# Antigravity Integration Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Guide for using codingbuddy with Antigravity (Google Gemini-based coding assistant).
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
codingbuddy integrates with Antigravity in two ways:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
1. **`.antigravity/rules/instructions.md`** - Antigravity-specific rules and guidelines (always-on instructions)
|
|
10
|
+
2. **MCP Server** - codingbuddy MCP tools for workflow management
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## Two Usage Contexts
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
### End Users (Your Project)
|
|
15
|
+
|
|
16
|
+
End users access rules **only through MCP tools**. No local rule files needed.
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
// .antigravity/config.json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"codingbuddy": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "codingbuddy"],
|
|
25
|
+
"env": {
|
|
26
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Important:** Antigravity의 `roots/list` MCP capability 지원 여부는 미확인입니다.
|
|
34
|
+
> `CODINGBUDDY_PROJECT_ROOT` 없이는 서버가 프로젝트의 `codingbuddy.config.json`을 찾지 못하여
|
|
35
|
+
> `language` 등 설정이 기본값으로 동작합니다. 항상 이 환경변수를 프로젝트의 절대 경로로 설정하세요.
|
|
36
|
+
|
|
37
|
+
Optional: Create `.antigravity/rules/instructions.md` for basic integration:
|
|
14
38
|
|
|
15
39
|
```markdown
|
|
16
|
-
#
|
|
40
|
+
# codingbuddy Integration
|
|
41
|
+
|
|
42
|
+
When PLAN, ACT, EVAL keywords detected → call `parse_mode` MCP tool.
|
|
43
|
+
Follow the returned instructions and rules exactly.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Monorepo Contributors
|
|
17
47
|
|
|
18
|
-
|
|
48
|
+
Contributors to the codingbuddy repository can use direct file references:
|
|
19
49
|
|
|
20
|
-
|
|
50
|
+
```
|
|
51
|
+
Project Root/
|
|
52
|
+
├── .antigravity/
|
|
53
|
+
│ ├── rules/
|
|
54
|
+
│ │ └── instructions.md # References .ai-rules
|
|
55
|
+
│ └── config.json # MCP server configuration
|
|
56
|
+
└── packages/rules/.ai-rules/ # Single Source of Truth
|
|
57
|
+
```
|
|
21
58
|
|
|
22
|
-
|
|
59
|
+
## DRY Principle
|
|
23
60
|
|
|
24
|
-
**Source**:
|
|
61
|
+
**Single Source of Truth**: `packages/rules/.ai-rules/`
|
|
25
62
|
|
|
26
|
-
|
|
63
|
+
- All Agent definitions, rules, skills managed only in `.ai-rules/`
|
|
64
|
+
- `.antigravity/rules/instructions.md` acts as a **pointer only**
|
|
65
|
+
- No duplication, only references
|
|
27
66
|
|
|
28
|
-
|
|
67
|
+
## Configuration Files
|
|
29
68
|
|
|
30
|
-
|
|
31
|
-
2. **ACT mode** - Execute the plan and make changes
|
|
32
|
-
3. **EVAL mode** - Analyze results and propose improvements
|
|
33
|
-
4. **AUTO mode** - Autonomous PLAN → ACT → EVAL cycle until quality achieved
|
|
69
|
+
### .antigravity/config.json
|
|
34
70
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
MCP server configuration for codingbuddy tools:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"mcpServers": {
|
|
76
|
+
"codingbuddy": {
|
|
77
|
+
"command": "npx",
|
|
78
|
+
"args": ["-y", "codingbuddy"],
|
|
79
|
+
"env": {
|
|
80
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**MCP configuration paths:**
|
|
88
|
+
- **Project-level**: `.antigravity/config.json`
|
|
89
|
+
|
|
90
|
+
**Project root resolution priority** (in `mcp.service.ts`):
|
|
91
|
+
1. `CODINGBUDDY_PROJECT_ROOT` environment variable (highest priority)
|
|
92
|
+
2. `roots/list` MCP capability (support unconfirmed in Antigravity)
|
|
93
|
+
3. `findProjectRoot()` automatic detection (fallback)
|
|
94
|
+
|
|
95
|
+
### .antigravity/rules/instructions.md
|
|
96
|
+
|
|
97
|
+
Always-on instructions automatically applied to all Antigravity conversations:
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
# codingbuddy Guidelines
|
|
101
|
+
|
|
102
|
+
## Workflow
|
|
103
|
+
When PLAN, ACT, EVAL, or AUTO keywords detected → call `parse_mode` MCP tool.
|
|
104
|
+
Follow the returned instructions and rules exactly.
|
|
105
|
+
|
|
106
|
+
## References
|
|
107
|
+
- Core workflow: packages/rules/.ai-rules/rules/core.md
|
|
108
|
+
- Project context: packages/rules/.ai-rules/rules/project.md
|
|
109
|
+
- Coding principles: packages/rules/.ai-rules/rules/augmented-coding.md
|
|
110
|
+
- Agents: packages/rules/.ai-rules/agents/
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Directory Structure
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
.antigravity/
|
|
117
|
+
├── rules/
|
|
118
|
+
│ └── instructions.md # Always-on instructions (references .ai-rules)
|
|
119
|
+
└── config.json # MCP server configuration
|
|
41
120
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
121
|
+
.ai-rules/
|
|
122
|
+
├── rules/
|
|
123
|
+
│ ├── core.md # Workflow (PLAN/ACT/EVAL/AUTO)
|
|
124
|
+
│ ├── project.md # Tech stack, architecture
|
|
125
|
+
│ └── augmented-coding.md # TDD, code quality
|
|
126
|
+
├── agents/
|
|
127
|
+
│ └── *.json # 35 agent definitions
|
|
128
|
+
├── skills/
|
|
129
|
+
│ └── */SKILL.md # Skill definitions
|
|
130
|
+
└── adapters/
|
|
131
|
+
└── antigravity.md # This guide
|
|
132
|
+
```
|
|
46
133
|
|
|
47
|
-
|
|
134
|
+
## Usage
|
|
48
135
|
|
|
49
|
-
###
|
|
136
|
+
### Mode Keywords
|
|
50
137
|
|
|
51
|
-
|
|
138
|
+
```
|
|
139
|
+
PLAN Design user authentication feature
|
|
140
|
+
```
|
|
52
141
|
|
|
53
|
-
|
|
142
|
+
→ `parse_mode` MCP tool is called, loading appropriate Agent and rules
|
|
54
143
|
|
|
55
|
-
|
|
144
|
+
### Specialist Usage
|
|
56
145
|
|
|
57
|
-
#### Project Structure
|
|
58
146
|
```
|
|
59
|
-
|
|
60
|
-
├── app/ # Next.js App Router
|
|
61
|
-
├── entities/ # Domain entities (business logic)
|
|
62
|
-
├── features/ # Feature-specific UI components
|
|
63
|
-
├── widgets/ # Composite widgets
|
|
64
|
-
└── shared/ # Common modules
|
|
147
|
+
EVAL Review from security perspective
|
|
65
148
|
```
|
|
66
149
|
|
|
67
|
-
|
|
150
|
+
→ security-specialist activated
|
|
68
151
|
|
|
69
|
-
###
|
|
152
|
+
### Auto Mode
|
|
70
153
|
|
|
71
|
-
|
|
154
|
+
```
|
|
155
|
+
AUTO implement user dashboard
|
|
156
|
+
```
|
|
72
157
|
|
|
73
|
-
|
|
74
|
-
1. **Red**: Write a failing test
|
|
75
|
-
2. **Green**: Implement minimum code to pass
|
|
76
|
-
3. **Refactor**: Improve structure after tests pass
|
|
158
|
+
→ Autonomous PLAN → ACT → EVAL cycling
|
|
77
159
|
|
|
78
|
-
|
|
79
|
-
- **TDD for core logic** (entities, shared/utils, hooks)
|
|
80
|
-
- **Test-after for UI** (features, widgets)
|
|
81
|
-
- **SOLID principles** and code quality standards
|
|
82
|
-
- **90%+ test coverage** goal
|
|
83
|
-
- **No mocking** - test real behavior
|
|
160
|
+
## MCP Tools
|
|
84
161
|
|
|
85
|
-
|
|
162
|
+
Available codingbuddy MCP tools in Antigravity:
|
|
86
163
|
|
|
87
|
-
|
|
164
|
+
| Tool | Purpose |
|
|
165
|
+
|------|---------|
|
|
166
|
+
| `parse_mode` | Parse mode keywords (PLAN/ACT/EVAL/AUTO) + load Agent/rules |
|
|
167
|
+
| `search_rules` | Search rules and guidelines by query |
|
|
168
|
+
| `get_agent_details` | Get specific Agent profile and expertise |
|
|
169
|
+
| `get_project_config` | Get project configuration (language, tech stack) |
|
|
170
|
+
| `get_code_conventions` | Get project code conventions and style guide |
|
|
171
|
+
| `suggest_config_updates` | Analyze project and suggest config updates |
|
|
172
|
+
| `recommend_skills` | Recommend skills based on prompt → then call `get_skill` |
|
|
173
|
+
| `get_skill` | Load full skill content by name (e.g., `get_skill("systematic-debugging")`) |
|
|
174
|
+
| `list_skills` | List all available skills with optional filtering |
|
|
175
|
+
| `get_agent_system_prompt` | Get complete system prompt for a specialist agent |
|
|
176
|
+
| `prepare_parallel_agents` | Prepare specialist agents for sequential execution |
|
|
177
|
+
| `dispatch_agents` | Get Task tool-ready dispatch params (Claude Code optimized) |
|
|
178
|
+
| `generate_checklist` | Generate contextual checklists (security, a11y, performance) |
|
|
179
|
+
| `analyze_task` | Analyze task for risk assessment and specialist recommendations |
|
|
180
|
+
| `read_context` | Read context document (`docs/codingbuddy/context.md`) |
|
|
181
|
+
| `update_context` | Update context document with decisions, notes, progress |
|
|
182
|
+
| `cleanup_context` | Manually trigger context document cleanup |
|
|
183
|
+
| `set_project_root` | ~~Set project root directory~~ **(deprecated)** — use `CODINGBUDDY_PROJECT_ROOT` env var instead |
|
|
88
184
|
|
|
89
|
-
|
|
185
|
+
## Specialist Agents Execution
|
|
90
186
|
|
|
91
|
-
|
|
92
|
-
- **Frontend Developer** - React/Next.js, TDD, design system
|
|
93
|
-
- **Code Reviewer** - Quality evaluation, architecture analysis
|
|
94
|
-
- **Architecture Specialist** - Layer boundaries, dependency direction
|
|
95
|
-
- **Test Strategy Specialist** - Test coverage, TDD workflow
|
|
96
|
-
- **Performance Specialist** - Bundle size, rendering optimization
|
|
97
|
-
- **Security Specialist** - OAuth 2.0, JWT, XSS/CSRF protection
|
|
98
|
-
- **Accessibility Specialist** - WCAG 2.1 AA compliance
|
|
99
|
-
- **SEO Specialist** - Metadata API, structured data
|
|
100
|
-
- **Design System Specialist** - Design system usage
|
|
101
|
-
- **Documentation Specialist** - Documentation quality
|
|
102
|
-
- **Code Quality Specialist** - SOLID, DRY, complexity
|
|
103
|
-
- **DevOps Engineer** - Docker, Datadog, deployment
|
|
187
|
+
Antigravity does not have a `Task` tool for spawning background subagents. When `parse_mode` returns `parallelAgentsRecommendation`, execute specialists **sequentially**.
|
|
104
188
|
|
|
105
|
-
|
|
189
|
+
### Auto-Detection
|
|
106
190
|
|
|
107
|
-
|
|
191
|
+
The MCP server automatically detects Antigravity as the client and returns a sequential execution hint in `parallelAgentsRecommendation.hint`. No manual configuration is needed.
|
|
108
192
|
|
|
109
|
-
###
|
|
193
|
+
### Sequential Workflow
|
|
110
194
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
195
|
+
```
|
|
196
|
+
parse_mode returns parallelAgentsRecommendation
|
|
197
|
+
↓
|
|
198
|
+
Call prepare_parallel_agents with recommended specialists
|
|
199
|
+
↓
|
|
200
|
+
For each specialist (sequentially):
|
|
201
|
+
- Announce: "Analyzing from [icon] [specialist-name] perspective..."
|
|
202
|
+
- Apply the specialist's system prompt as analysis context
|
|
203
|
+
- Analyze the target code/design from that specialist's viewpoint
|
|
204
|
+
- Record findings
|
|
205
|
+
↓
|
|
206
|
+
Consolidate all specialist findings into unified summary
|
|
207
|
+
↓
|
|
208
|
+
Persist findings via update_context (see Completion Ordering below)
|
|
209
|
+
↓
|
|
210
|
+
Signal boundary via task_boundary (if mode is completing)
|
|
120
211
|
```
|
|
121
212
|
|
|
122
|
-
|
|
213
|
+
> **Important:** Always call `update_context` to persist specialist findings before signaling `task_boundary`. See [Completion Ordering](#completion-ordering) for the required call sequence.
|
|
123
214
|
|
|
124
|
-
|
|
125
|
-
- Implementation plans: `implementation_plan.md`
|
|
126
|
-
- Task tracking: `task.md`
|
|
127
|
-
- Walkthroughs: `walkthrough.md`
|
|
215
|
+
### Example (EVAL mode)
|
|
128
216
|
|
|
129
|
-
|
|
217
|
+
```
|
|
218
|
+
parse_mode({ prompt: "EVAL review auth implementation" })
|
|
219
|
+
→ parallelAgentsRecommendation:
|
|
220
|
+
specialists: ["security-specialist", "accessibility-specialist", "performance-specialist"]
|
|
221
|
+
|
|
222
|
+
prepare_parallel_agents({
|
|
223
|
+
mode: "EVAL",
|
|
224
|
+
specialists: ["security-specialist", "accessibility-specialist", "performance-specialist"]
|
|
225
|
+
})
|
|
226
|
+
→ agents[]: each has systemPrompt
|
|
227
|
+
|
|
228
|
+
Sequential analysis:
|
|
229
|
+
1. 🔒 Security: Apply security-specialist prompt, analyze, record findings
|
|
230
|
+
2. ♿ Accessibility: Apply accessibility-specialist prompt, analyze, record findings
|
|
231
|
+
3. ⚡ Performance: Apply performance-specialist prompt, analyze, record findings
|
|
232
|
+
|
|
233
|
+
Present: Consolidated findings from all 3 specialists
|
|
234
|
+
```
|
|
130
235
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
-
|
|
236
|
+
### Consuming dispatchReady from parse_mode
|
|
237
|
+
|
|
238
|
+
When `parse_mode` returns `dispatchReady`, the specialist system prompts are pre-built. In Antigravity, use the `dispatchParams.prompt` field as analysis context (ignore `subagent_type` — it is Claude Code specific):
|
|
239
|
+
|
|
240
|
+
**`dispatchReady` structure:**
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"dispatchReady": {
|
|
245
|
+
"primaryAgent": {
|
|
246
|
+
"name": "software-engineer",
|
|
247
|
+
"displayName": "Software Engineer",
|
|
248
|
+
"description": "Software Engineer - ACT mode",
|
|
249
|
+
"dispatchParams": {
|
|
250
|
+
"subagent_type": "general-purpose", // ← Ignore (Claude Code specific)
|
|
251
|
+
"prompt": "# Software Engineer\n\nYou are a Senior Software Engineer...", // ← Use this
|
|
252
|
+
"description": "Software Engineer - ACT mode"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"parallelAgents": [
|
|
256
|
+
{
|
|
257
|
+
"name": "security-specialist",
|
|
258
|
+
"displayName": "Security Specialist",
|
|
259
|
+
"dispatchParams": {
|
|
260
|
+
"subagent_type": "general-purpose", // ← Ignore
|
|
261
|
+
"prompt": "# Security Specialist\n\nYou are a Security...", // ← Use this
|
|
262
|
+
"description": "Security review"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
```
|
|
134
269
|
|
|
135
|
-
|
|
270
|
+
**Key fields:**
|
|
271
|
+
- `dispatchReady.primaryAgent.dispatchParams.prompt` — Primary agent system prompt. Use as the main analysis context.
|
|
272
|
+
- `dispatchReady.parallelAgents[].dispatchParams.prompt` — Each specialist's system prompt. Apply as analysis context for sequential execution.
|
|
273
|
+
- `subagent_type` — Claude Code Task tool parameter. **Ignore in Antigravity.**
|
|
274
|
+
|
|
275
|
+
**Workflow:**
|
|
136
276
|
|
|
137
277
|
```
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
278
|
+
parse_mode returns dispatchReady
|
|
279
|
+
↓
|
|
280
|
+
dispatchReady.primaryAgent.dispatchParams.prompt
|
|
281
|
+
→ Use as the main analysis context
|
|
282
|
+
↓
|
|
283
|
+
dispatchReady.parallelAgents[] (if present)
|
|
284
|
+
→ For each: apply dispatchParams.prompt as analysis context
|
|
285
|
+
→ Analyze sequentially, record findings
|
|
286
|
+
↓
|
|
287
|
+
Consolidate all findings
|
|
288
|
+
↓
|
|
289
|
+
Persist via update_context → signal via task_boundary
|
|
290
|
+
```
|
|
142
291
|
|
|
143
|
-
.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
292
|
+
> **Known limitation:** Antigravity cannot execute specialists in parallel. The `parallelAgents[]` array is consumed sequentially. True parallel execution requires Claude Code's Task tool. See [Known Limitations](#known-limitations).
|
|
293
|
+
>
|
|
294
|
+
> **Fallback:** If `dispatchReady` is not present in the `parse_mode` response, call `prepare_parallel_agents` MCP tool to retrieve specialist system prompts.
|
|
295
|
+
|
|
296
|
+
### Visibility Pattern
|
|
297
|
+
|
|
298
|
+
When executing sequential specialists, display clear status messages:
|
|
299
|
+
|
|
300
|
+
**Start:**
|
|
301
|
+
```
|
|
302
|
+
🔄 Executing N specialist analyses sequentially...
|
|
303
|
+
→ 🔒 security-specialist
|
|
304
|
+
→ ♿ accessibility-specialist
|
|
305
|
+
→ ⚡ performance-specialist
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
**During:**
|
|
309
|
+
```
|
|
310
|
+
🔍 Analyzing from 🔒 security-specialist perspective... (1/3)
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Completion:**
|
|
314
|
+
```
|
|
315
|
+
📊 Specialist Analysis Complete:
|
|
316
|
+
|
|
317
|
+
🔒 Security:
|
|
318
|
+
[findings summary]
|
|
319
|
+
|
|
320
|
+
♿ Accessibility:
|
|
321
|
+
[findings summary]
|
|
322
|
+
|
|
323
|
+
⚡ Performance:
|
|
324
|
+
[findings summary]
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Handling Failures
|
|
328
|
+
|
|
329
|
+
When `prepare_parallel_agents` returns `failedAgents`:
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
⚠️ Some agents failed to load:
|
|
333
|
+
✗ performance-specialist: Profile not found
|
|
334
|
+
|
|
335
|
+
Continuing with 2/3 agents...
|
|
152
336
|
```
|
|
153
337
|
|
|
154
|
-
|
|
338
|
+
**Strategy:**
|
|
339
|
+
- Continue with successfully loaded agents
|
|
340
|
+
- Report failures clearly to user
|
|
341
|
+
- Document which agents couldn't be loaded in final report
|
|
342
|
+
|
|
343
|
+
### Specialist Icons
|
|
344
|
+
|
|
345
|
+
| Icon | Specialist |
|
|
346
|
+
|------|------------|
|
|
347
|
+
| 🔒 | security-specialist |
|
|
348
|
+
| ♿ | accessibility-specialist |
|
|
349
|
+
| ⚡ | performance-specialist |
|
|
350
|
+
| 📏 | code-quality-specialist |
|
|
351
|
+
| 🧪 | test-strategy-specialist |
|
|
352
|
+
| 🏛️ | architecture-specialist |
|
|
353
|
+
| 📚 | documentation-specialist |
|
|
354
|
+
| 🔍 | seo-specialist |
|
|
355
|
+
| 🎨 | design-system-specialist |
|
|
356
|
+
| 📨 | event-architecture-specialist |
|
|
357
|
+
| 🔗 | integration-specialist |
|
|
358
|
+
| 📊 | observability-specialist |
|
|
359
|
+
| 🔄 | migration-specialist |
|
|
360
|
+
| 🌐 | i18n-specialist |
|
|
361
|
+
|
|
362
|
+
### When to Use Specialist Execution
|
|
363
|
+
|
|
364
|
+
Specialist execution is recommended when `parse_mode` returns a `parallelAgentsRecommendation` field:
|
|
365
|
+
|
|
366
|
+
| Mode | Default Specialists | Use Case |
|
|
367
|
+
|------|---------------------|----------|
|
|
368
|
+
| **PLAN** | architecture-specialist, test-strategy-specialist | Validate architecture and test approach |
|
|
369
|
+
| **ACT** | code-quality-specialist, test-strategy-specialist | Verify implementation quality |
|
|
370
|
+
| **EVAL** | security-specialist, accessibility-specialist, performance-specialist, code-quality-specialist | Comprehensive multi-dimensional review |
|
|
371
|
+
|
|
372
|
+
### Specialist Activation Scope
|
|
373
|
+
|
|
374
|
+
Each workflow mode activates different specialist agents:
|
|
375
|
+
|
|
376
|
+
- **PLAN mode**: Architecture and test strategy specialists validate design
|
|
377
|
+
- **ACT mode**: Code quality and test strategy specialists verify implementation
|
|
378
|
+
- **EVAL mode**: Security, accessibility, performance, and code quality specialists provide comprehensive review
|
|
379
|
+
|
|
380
|
+
**Important:** Specialists from one mode do NOT carry over to the next mode. Each mode has its own recommended specialist set.
|
|
381
|
+
|
|
382
|
+
## Skills
|
|
383
|
+
|
|
384
|
+
Antigravity accesses codingbuddy skills through three patterns:
|
|
155
385
|
|
|
156
|
-
|
|
386
|
+
1. **Auto-recommend** — AI calls `recommend_skills` based on intent detection
|
|
387
|
+
2. **Browse and select** — User calls `list_skills` to discover, then `get_skill` to load
|
|
388
|
+
3. **Slash-command** — User types `/<command>`, AI maps to `get_skill`
|
|
157
389
|
|
|
158
|
-
|
|
159
|
-
- `.ai-rules/rules/` for workflow and coding standards
|
|
160
|
-
- `.ai-rules/agents/` for specialist domain knowledge
|
|
161
|
-
- Project-specific configuration in `.antigravity/rules/`
|
|
390
|
+
### Using Skills in Antigravity
|
|
162
391
|
|
|
163
|
-
|
|
392
|
+
**Method 1: MCP Tool Chain (End Users — Recommended)**
|
|
164
393
|
|
|
394
|
+
The AI should follow this chain when a skill might apply:
|
|
395
|
+
|
|
396
|
+
1. `recommend_skills({ prompt: "user's message" })` — Get skill recommendations
|
|
397
|
+
2. `get_skill("skill-name")` — Load the recommended skill's full content
|
|
398
|
+
3. Follow the skill instructions in the response
|
|
399
|
+
|
|
400
|
+
Example flow:
|
|
165
401
|
```
|
|
166
|
-
User:
|
|
402
|
+
User: "There is a bug in the authentication logic"
|
|
403
|
+
→ AI calls recommend_skills({ prompt: "There is a bug in the authentication logic" })
|
|
404
|
+
→ Response: { recommendations: [{ skillName: "systematic-debugging", ... }], nextAction: "Call get_skill..." }
|
|
405
|
+
→ AI calls get_skill("systematic-debugging")
|
|
406
|
+
→ AI follows the systematic-debugging skill instructions
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
**Method 2: File Reference (Monorepo Contributors Only)**
|
|
167
410
|
|
|
168
|
-
|
|
169
|
-
## 📋 Plan Overview
|
|
170
|
-
[Following .ai-rules/rules/core.md workflow]
|
|
171
|
-
[Using .ai-rules/rules/project.md tech stack]
|
|
172
|
-
[Applying .ai-rules/rules/augmented-coding.md TDD principles]
|
|
173
|
-
|
|
174
|
-
User: ACT
|
|
411
|
+
Reference skill files directly from `.ai-rules/skills/` directory in your prompts.
|
|
175
412
|
|
|
176
|
-
|
|
177
|
-
[Execute with .ai-rules/agents/frontend-developer.json guidelines]
|
|
413
|
+
> **Note:** `parse_mode` already embeds matched skill content in `included_skills` — no separate `get_skill` call needed when using mode keywords (PLAN/ACT/EVAL/AUTO).
|
|
178
414
|
|
|
179
|
-
|
|
415
|
+
### Skill Discovery
|
|
180
416
|
|
|
181
|
-
|
|
182
|
-
|
|
417
|
+
Use `list_skills` to browse available skills before deciding which one to load:
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
list_skills() # Browse all skills
|
|
421
|
+
list_skills({ minPriority: 1, maxPriority: 3 }) # Filter by priority
|
|
183
422
|
```
|
|
184
423
|
|
|
185
|
-
|
|
424
|
+
**Discovery flow:**
|
|
425
|
+
|
|
426
|
+
1. `list_skills()` — Browse available skills and descriptions
|
|
427
|
+
2. Identify the skill relevant to the current task
|
|
428
|
+
3. `get_skill("skill-name")` — Load the full skill content
|
|
429
|
+
4. Follow the skill instructions
|
|
430
|
+
|
|
431
|
+
> **Tip:** Use `recommend_skills` when you want AI to automatically pick the best skill. Use `list_skills` when you want to manually browse and select.
|
|
432
|
+
|
|
433
|
+
### Slash-Command Mapping
|
|
434
|
+
|
|
435
|
+
Antigravity has no native slash-command skill invocation. When a user types `/<command>`, the AI must call `get_skill` to replicate the behavior of Claude Code's built-in Skill tool.
|
|
436
|
+
|
|
437
|
+
**Rule:** When user input matches `/<command>`, call `get_skill("<skill-name>")` and follow the returned instructions. This table is a curated subset — use `list_skills()` to discover all available skills.
|
|
438
|
+
|
|
439
|
+
| User Types | MCP Call |
|
|
440
|
+
|---|---|
|
|
441
|
+
| `/debug` or `/debugging` | `get_skill("systematic-debugging")` |
|
|
442
|
+
| `/tdd` | `get_skill("test-driven-development")` |
|
|
443
|
+
| `/brainstorm` | `get_skill("brainstorming")` |
|
|
444
|
+
| `/plan` or `/write-plan` | `get_skill("writing-plans")` |
|
|
445
|
+
| `/execute` or `/exec` | `get_skill("executing-plans")` |
|
|
446
|
+
| `/design` or `/frontend` | `get_skill("frontend-design")` |
|
|
447
|
+
| `/refactor` | `get_skill("refactoring")` |
|
|
448
|
+
| `/security` or `/audit` | `get_skill("security-audit")` |
|
|
449
|
+
| `/pr` | `get_skill("pr-all-in-one")` |
|
|
450
|
+
| `/review` or `/pr-review` | `get_skill("pr-review")` |
|
|
451
|
+
| `/parallel` or `/agents` | `get_skill("dispatching-parallel-agents")` |
|
|
452
|
+
| `/subagent` | `get_skill("subagent-driven-development")` |
|
|
453
|
+
|
|
454
|
+
For unrecognized slash commands, call `recommend_skills({ prompt: "<user's full message>" })` to find the closest match.
|
|
186
455
|
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
456
|
+
> **Disambiguation:** `/plan` (with slash prefix) triggers `get_skill("writing-plans")`. `PLAN` (without slash, at message start) triggers `parse_mode`. Similarly, `/execute` triggers `get_skill("executing-plans")` while `ACT` triggers `parse_mode`. The slash prefix is the distinguishing signal.
|
|
457
|
+
|
|
458
|
+
### Proactive Skill Activation
|
|
459
|
+
|
|
460
|
+
Antigravity lacks session hooks that automatically enforce skill invocation (unlike Claude Code). The AI must detect intent patterns and call `recommend_skills` proactively — without waiting for the user to explicitly request a skill.
|
|
461
|
+
|
|
462
|
+
**Rule:** When the user's message suggests a skill would help, call `recommend_skills` at the start of the response — before any other action. The `recommend_skills` engine matches trigger patterns across multiple languages and is the authoritative source of truth.
|
|
463
|
+
|
|
464
|
+
Common trigger examples (not exhaustive):
|
|
465
|
+
|
|
466
|
+
| User Intent Signal | Likely Skill |
|
|
467
|
+
|---|---|
|
|
468
|
+
| Bug report, error, "not working", exception | `systematic-debugging` |
|
|
469
|
+
| "Brainstorm", "build", "create", "implement" | `brainstorming` |
|
|
470
|
+
| "Test first", TDD, write tests before code | `test-driven-development` |
|
|
471
|
+
| "Plan", "design", implementation approach | `writing-plans` |
|
|
472
|
+
| PR, commit, code review workflow | `pr-all-in-one` |
|
|
473
|
+
|
|
474
|
+
```
|
|
475
|
+
User: "I need to plan the implementation for user authentication"
|
|
476
|
+
→ AI calls recommend_skills({ prompt: "plan implementation for user authentication" })
|
|
477
|
+
→ Loads writing-plans via get_skill
|
|
478
|
+
→ Follows skill instructions to create structured plan
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
> **Note:** When the user message starts with a mode keyword (`PLAN`, `ACT`, `EVAL`, `AUTO`), `parse_mode` already handles skill matching automatically via `included_skills` — no separate `recommend_skills` call is needed.
|
|
482
|
+
|
|
483
|
+
### Available Skills
|
|
484
|
+
|
|
485
|
+
Highlighted skills (use `list_skills()` for the complete list):
|
|
486
|
+
|
|
487
|
+
- `brainstorming/SKILL.md` - Idea → Design
|
|
488
|
+
- `test-driven-development/SKILL.md` - TDD workflow
|
|
489
|
+
- `systematic-debugging/SKILL.md` - Systematic debugging
|
|
490
|
+
- `writing-plans/SKILL.md` - Implementation plan writing
|
|
491
|
+
- `executing-plans/SKILL.md` - Plan execution
|
|
492
|
+
- `subagent-driven-development/SKILL.md` - Subagent development
|
|
493
|
+
- `dispatching-parallel-agents/SKILL.md` - Parallel Agent dispatch
|
|
494
|
+
- `frontend-design/SKILL.md` - Frontend design
|
|
495
|
+
|
|
496
|
+
## AGENTS.md
|
|
497
|
+
|
|
498
|
+
Industry standard format compatible with all AI tools (Antigravity, Cursor, Claude Code, Codex, etc.):
|
|
499
|
+
|
|
500
|
+
```markdown
|
|
501
|
+
# AGENTS.md
|
|
502
|
+
|
|
503
|
+
This project uses codingbuddy MCP server to manage AI Agents.
|
|
504
|
+
|
|
505
|
+
## Quick Start
|
|
506
|
+
...
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
See `AGENTS.md` in project root for details.
|
|
191
510
|
|
|
192
511
|
## PR All-in-One Skill
|
|
193
512
|
|
|
@@ -210,7 +529,7 @@ Unified commit and PR workflow that:
|
|
|
210
529
|
|
|
211
530
|
### Configuration
|
|
212
531
|
|
|
213
|
-
Create `.claude/pr-config.json` in your project root. Required settings:
|
|
532
|
+
Create `.claude/pr-config.json` in your project root (this path is used by the skill regardless of IDE). Required settings:
|
|
214
533
|
- `defaultTargetBranch`: Target branch for PRs
|
|
215
534
|
- `issueTracker`: `jira`, `github`, `linear`, `gitlab`, or `custom`
|
|
216
535
|
- `issuePattern`: Regex pattern for issue ID extraction
|
|
@@ -239,7 +558,7 @@ Access skill files directly from `.ai-rules/skills/pr-all-in-one/` directory in
|
|
|
239
558
|
|
|
240
559
|
## AUTO Mode
|
|
241
560
|
|
|
242
|
-
AUTO mode enables autonomous PLAN
|
|
561
|
+
AUTO mode enables autonomous PLAN → ACT → EVAL cycling until quality criteria are met.
|
|
243
562
|
|
|
244
563
|
### Triggering AUTO Mode
|
|
245
564
|
|
|
@@ -251,29 +570,19 @@ Use the `AUTO` keyword (or localized versions) at the start of your message:
|
|
|
251
570
|
| Korean | `자동` |
|
|
252
571
|
| Japanese | `自動` |
|
|
253
572
|
| Chinese | `自动` |
|
|
254
|
-
| Spanish | `
|
|
573
|
+
| Spanish | `AUTOMÁTICO` |
|
|
255
574
|
|
|
256
575
|
### Example Usage
|
|
257
576
|
|
|
258
577
|
```
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
AI: # Mode: AUTO (Iteration 1/3)
|
|
262
|
-
## Phase: PLAN
|
|
263
|
-
[Following .ai-rules/rules/core.md workflow]
|
|
264
|
-
|
|
265
|
-
## Phase: ACT
|
|
266
|
-
[Execute with .ai-rules guidelines]
|
|
267
|
-
|
|
268
|
-
## Phase: EVAL
|
|
269
|
-
[Evaluate with quality criteria]
|
|
270
|
-
|
|
271
|
-
### Quality Status
|
|
272
|
-
- Critical: 0
|
|
273
|
-
- High: 0
|
|
578
|
+
AUTO implement user authentication feature
|
|
579
|
+
```
|
|
274
580
|
|
|
275
|
-
✅ AUTO mode completed successfully!
|
|
276
581
|
```
|
|
582
|
+
자동 사용자 인증 기능 구현해줘
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
When AUTO keyword is detected, Antigravity calls `parse_mode` MCP tool which returns AUTO mode instructions.
|
|
277
586
|
|
|
278
587
|
### Workflow
|
|
279
588
|
|
|
@@ -284,20 +593,6 @@ AI: # Mode: AUTO (Iteration 1/3)
|
|
|
284
593
|
- Success: `Critical = 0 AND High = 0`
|
|
285
594
|
- Failure: Max iterations reached (default: 3)
|
|
286
595
|
|
|
287
|
-
### Antigravity-Specific Integration
|
|
288
|
-
|
|
289
|
-
AUTO mode works with Antigravity's task boundary tracking:
|
|
290
|
-
|
|
291
|
-
```python
|
|
292
|
-
task_boundary(
|
|
293
|
-
TaskName="AUTO: Feature Implementation",
|
|
294
|
-
Mode="AUTO_ITERATION",
|
|
295
|
-
TaskSummary="Iteration 1/3 - PLAN phase completed",
|
|
296
|
-
TaskStatus="Executing ACT phase",
|
|
297
|
-
PredictedTaskSize=30
|
|
298
|
-
)
|
|
299
|
-
```
|
|
300
|
-
|
|
301
596
|
### Configuration
|
|
302
597
|
|
|
303
598
|
Configure in `codingbuddy.config.json`:
|
|
@@ -317,9 +612,202 @@ module.exports = {
|
|
|
317
612
|
- Bug fixes needing comprehensive testing
|
|
318
613
|
- Code quality improvements with measurable criteria
|
|
319
614
|
|
|
615
|
+
### Antigravity-Specific Integration
|
|
616
|
+
|
|
617
|
+
AUTO mode works with Antigravity's `task_boundary` tool for progress tracking:
|
|
618
|
+
|
|
619
|
+
```python
|
|
620
|
+
task_boundary(
|
|
621
|
+
TaskName="AUTO: Feature Implementation",
|
|
622
|
+
Mode="AUTO_ITERATION",
|
|
623
|
+
TaskSummary="Iteration 1/3 - PLAN phase completed",
|
|
624
|
+
TaskStatus="Executing ACT phase",
|
|
625
|
+
PredictedTaskSize=30
|
|
626
|
+
)
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
> **Antigravity limitation:** AUTO mode에는 강제 루프 메커니즘이 없습니다. 자세한 내용은 [Known Limitations](#known-limitations)를 참조하세요.
|
|
630
|
+
|
|
631
|
+
## Context Document Management
|
|
632
|
+
|
|
633
|
+
codingbuddy uses a fixed-path context document (`docs/codingbuddy/context.md`) to persist decisions across mode transitions.
|
|
634
|
+
|
|
635
|
+
### How It Works
|
|
636
|
+
|
|
637
|
+
| Mode | Behavior |
|
|
638
|
+
|------|----------|
|
|
639
|
+
| PLAN / AUTO | Resets (clears) existing content and starts fresh |
|
|
640
|
+
| ACT / EVAL | Appends new section to existing content |
|
|
641
|
+
|
|
642
|
+
### Required Workflow
|
|
643
|
+
|
|
644
|
+
1. `parse_mode` automatically reads/creates the context document
|
|
645
|
+
2. Review `contextDocument` in the response for previous decisions
|
|
646
|
+
3. **Before completing each mode:** call `update_context` to persist current work
|
|
647
|
+
|
|
648
|
+
### Available Tools
|
|
649
|
+
|
|
650
|
+
| Tool | Purpose |
|
|
651
|
+
|------|---------|
|
|
652
|
+
| `read_context` | Read current context document |
|
|
653
|
+
| `update_context` | Persist decisions, notes, progress, findings |
|
|
654
|
+
| `cleanup_context` | Summarize older sections to reduce document size |
|
|
655
|
+
|
|
656
|
+
### Antigravity-Specific Note
|
|
657
|
+
|
|
658
|
+
Unlike Claude Code, Antigravity has no hooks to enforce `update_context` calls. You must **manually remember** to call `update_context` before concluding each mode to avoid losing context across sessions.
|
|
659
|
+
|
|
660
|
+
## Antigravity-Specific Features
|
|
661
|
+
|
|
662
|
+
### Task Boundaries
|
|
663
|
+
|
|
664
|
+
Antigravity supports `task_boundary` tool for tracking progress across workflow modes:
|
|
665
|
+
|
|
666
|
+
```python
|
|
667
|
+
task_boundary(
|
|
668
|
+
TaskName="Implementing Feature",
|
|
669
|
+
Mode="EXECUTION",
|
|
670
|
+
TaskSummary="Created component with TDD",
|
|
671
|
+
TaskStatus="Writing tests",
|
|
672
|
+
PredictedTaskSize=10
|
|
673
|
+
)
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
**Mode mapping with codingbuddy workflow:**
|
|
677
|
+
|
|
678
|
+
| codingbuddy Mode | task_boundary Mode | Use Case |
|
|
679
|
+
|------------------|-------------------|----------|
|
|
680
|
+
| PLAN | `PLANNING` | Creating implementation plans |
|
|
681
|
+
| ACT | `EXECUTION` | Executing implementation |
|
|
682
|
+
| EVAL | `VERIFICATION` | Evaluating quality |
|
|
683
|
+
| AUTO | `AUTO_ITERATION` | Autonomous cycling |
|
|
684
|
+
|
|
685
|
+
### Completion Ordering
|
|
686
|
+
|
|
687
|
+
Each mode completion requires **two calls in strict order**:
|
|
688
|
+
|
|
689
|
+
1. **`update_context`** — Persist decisions, notes, findings to `docs/codingbuddy/context.md`
|
|
690
|
+
2. **`task_boundary`** — Signal mode boundary to Antigravity
|
|
691
|
+
|
|
692
|
+
```
|
|
693
|
+
Mode work complete
|
|
694
|
+
↓
|
|
695
|
+
update_context({ ← FIRST: persist cross-mode context
|
|
696
|
+
mode: "PLAN",
|
|
697
|
+
decisions: ["..."],
|
|
698
|
+
notes: ["..."],
|
|
699
|
+
status: "completed"
|
|
700
|
+
})
|
|
701
|
+
↓
|
|
702
|
+
task_boundary( ← SECOND: signal boundary to Antigravity
|
|
703
|
+
TaskName="Feature Implementation",
|
|
704
|
+
Mode="PLANNING",
|
|
705
|
+
TaskSummary="PLAN phase completed",
|
|
706
|
+
TaskStatus="Completed",
|
|
707
|
+
PredictedTaskSize=10
|
|
708
|
+
)
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
**Why this order matters:**
|
|
712
|
+
- `update_context` writes to `docs/codingbuddy/context.md` which survives context compaction and mode transitions
|
|
713
|
+
- `task_boundary` is Antigravity-native session signaling
|
|
714
|
+
- If `task_boundary` is called first and the session is interrupted, cross-mode context may be lost
|
|
715
|
+
- `update_context` ensures ACT mode can see PLAN decisions, and EVAL mode can see ACT progress
|
|
716
|
+
|
|
717
|
+
**Per-mode example:**
|
|
718
|
+
|
|
719
|
+
| Mode | `update_context` params | `task_boundary` Mode |
|
|
720
|
+
|------|-------------------------|---------------------|
|
|
721
|
+
| PLAN | `decisions`, `notes`, `recommendedActAgent` | `PLANNING` |
|
|
722
|
+
| ACT | `progress`, `notes` | `EXECUTION` |
|
|
723
|
+
| EVAL | `findings`, `recommendations` | `VERIFICATION` |
|
|
724
|
+
| AUTO | Per-phase params (cycles automatically) | `AUTO_ITERATION` |
|
|
725
|
+
|
|
726
|
+
### Artifact Management
|
|
727
|
+
|
|
728
|
+
Antigravity uses artifact files for structured output:
|
|
729
|
+
- Implementation plans: `implementation_plan.md`
|
|
730
|
+
- Task tracking: `task.md`
|
|
731
|
+
- Walkthroughs: `walkthrough.md`
|
|
732
|
+
|
|
733
|
+
These artifacts complement codingbuddy's context document (`docs/codingbuddy/context.md`). Use both: artifacts for Antigravity-native tracking, and `update_context` for cross-mode persistence.
|
|
734
|
+
|
|
735
|
+
### Communication
|
|
736
|
+
|
|
737
|
+
- **Follow project's configured language setting** — use `get_project_config` MCP tool to retrieve current language setting
|
|
738
|
+
- Use structured markdown formatting
|
|
739
|
+
- Provide clear, actionable feedback
|
|
740
|
+
|
|
741
|
+
## Known Limitations
|
|
742
|
+
|
|
743
|
+
Antigravity environment does not support several features available in Claude Code:
|
|
744
|
+
|
|
745
|
+
| Feature | Status | Workaround |
|
|
746
|
+
|---------|--------|------------|
|
|
747
|
+
| **Task tool** (background subagents) | ❌ Not available | True parallel execution unavailable. Use `dispatchReady.parallelAgents[].dispatchParams.prompt` or `prepare_parallel_agents` for **sequential** execution |
|
|
748
|
+
| **Native Skill tool** (`/skill-name`) | ❌ Not available | Use MCP tool chain: `recommend_skills` → `get_skill` |
|
|
749
|
+
| **Session hooks** (PreToolUse, etc.) | ❌ Not available | Rely on `.antigravity/rules/instructions.md` for always-on instructions |
|
|
750
|
+
| **Autonomous loop mechanism** | ❌ Not available | AUTO mode depends on Antigravity AI voluntarily looping |
|
|
751
|
+
| **Context compaction hooks** | ❌ Not available | Manually call `update_context` before ending each mode |
|
|
752
|
+
| **`dispatch_agents` full usage** | ⚠️ Partial | Use `dispatchReady.primaryAgent.dispatchParams.prompt` and `dispatchReady.parallelAgents[].dispatchParams.prompt` as analysis context; ignore `subagent_type`; `prepare_parallel_agents` as fallback |
|
|
753
|
+
| **`restart_tui`** | ❌ Not applicable | Claude Code TUI-only tool |
|
|
754
|
+
|
|
755
|
+
### AUTO Mode Reliability
|
|
756
|
+
|
|
757
|
+
AUTO mode documents autonomous PLAN → ACT → EVAL cycling. In Antigravity, this depends entirely on the AI model voluntarily continuing the loop — there is no enforcement mechanism like Claude Code's hooks. Results may vary:
|
|
758
|
+
|
|
759
|
+
- The AI may stop after one iteration instead of looping
|
|
760
|
+
- Quality exit criteria (`Critical = 0 AND High = 0`) are advisory, not enforced
|
|
761
|
+
- For reliable multi-iteration workflows, prefer manual `PLAN` → `ACT` → `EVAL` cycling
|
|
762
|
+
|
|
763
|
+
## Verification Status
|
|
764
|
+
|
|
765
|
+
> Audit per [#621](https://github.com/JeremyDev87/codingbuddy/issues/621). Code-level analysis complete, Antigravity runtime verification pending.
|
|
766
|
+
|
|
767
|
+
| Pattern | Status | Notes |
|
|
768
|
+
|---------|--------|-------|
|
|
769
|
+
| MCP Configuration | ✅ Documented | `.antigravity/config.json` with `CODINGBUDDY_PROJECT_ROOT` |
|
|
770
|
+
| `CODINGBUDDY_PROJECT_ROOT` guidance | ✅ Documented | Priority and fallback behavior explained |
|
|
771
|
+
| MCP Tools Table | ✅ Documented | All 18 tools documented (including 1 deprecated) |
|
|
772
|
+
| Mode keyword detection (instructions.md) | ✅ Documented | `parse_mode` invocation rule with CODINGBUDDY_CRITICAL_RULE |
|
|
773
|
+
| Specialist Agents Execution | ✅ Documented | Sequential workflow, dispatchReady consumption, visibility, failures |
|
|
774
|
+
| Skills workflow (`get_skill`) | ✅ Documented | MCP tool chain, slash-command mapping, proactive activation |
|
|
775
|
+
| Context Document Management | ✅ Documented | With Antigravity-specific guidance |
|
|
776
|
+
| Completion Ordering (`update_context` → `task_boundary`) | ✅ Documented | Strict ordering with rationale |
|
|
777
|
+
| Known Limitations | ✅ Documented | Task tool, hooks, AUTO mode, dispatch_agents limitations |
|
|
778
|
+
| `roots/list` support | ⚠️ Unknown | Not confirmed in Antigravity |
|
|
779
|
+
| AUTO mode reliability | ⚠️ Documented with caveat | No enforcement mechanism in Antigravity |
|
|
780
|
+
| `task_boundary` integration | ⚠️ Unverified | Documented but not tested in live environment |
|
|
781
|
+
|
|
782
|
+
## Getting Started
|
|
783
|
+
|
|
784
|
+
1. Ensure `.ai-rules/` directory exists with all common rules
|
|
785
|
+
2. Configure MCP server in `.antigravity/config.json`:
|
|
786
|
+
```json
|
|
787
|
+
{
|
|
788
|
+
"mcpServers": {
|
|
789
|
+
"codingbuddy": {
|
|
790
|
+
"command": "npx",
|
|
791
|
+
"args": ["-y", "codingbuddy"],
|
|
792
|
+
"env": {
|
|
793
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
```
|
|
799
|
+
3. (Optional) Create `.antigravity/rules/instructions.md` for always-on instructions
|
|
800
|
+
4. Start an Antigravity session — MCP tools are now available
|
|
801
|
+
5. Use PLAN/ACT/EVAL/AUTO workflow via `parse_mode` MCP tool
|
|
802
|
+
|
|
320
803
|
## Maintenance
|
|
321
804
|
|
|
322
805
|
When updating rules:
|
|
323
806
|
1. Update `.ai-rules/rules/*.md` for changes affecting all AI tools
|
|
324
807
|
2. Update `.antigravity/rules/instructions.md` only for Antigravity-specific features
|
|
325
808
|
3. Common rules propagate automatically to all sessions
|
|
809
|
+
|
|
810
|
+
## Reference
|
|
811
|
+
|
|
812
|
+
- [Antigravity (Google Gemini)](https://developers.google.com/gemini)
|
|
813
|
+
- [codingbuddy MCP API](../../docs/api.md)
|