antigravity-ai-kit 3.7.0 → 3.9.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/CheatSheet.md +51 -16
- package/.agent/README.md +4 -4
- package/.agent/agents/README.md +8 -1
- package/.agent/agents/pr-reviewer.md +259 -0
- package/.agent/checklists/README.md +2 -1
- package/.agent/checklists/pre-commit.md +1 -1
- package/.agent/checklists/session-end.md +1 -1
- package/.agent/checklists/session-start.md +1 -1
- package/.agent/checklists/task-complete.md +1 -1
- package/.agent/commands/README.md +130 -119
- package/.agent/commands/help.md +36 -19
- package/.agent/commands/pr-describe.md +65 -0
- package/.agent/commands/pr-fix.md +45 -0
- package/.agent/commands/pr-merge.md +45 -0
- package/.agent/commands/pr-review.md +50 -0
- package/.agent/commands/pr-split.md +54 -0
- package/.agent/commands/pr-status.md +56 -0
- package/.agent/commands/pr.md +58 -30
- package/.agent/engine/loading-rules.json +5 -0
- package/.agent/hooks/README.md +9 -5
- package/.agent/manifest.json +39 -6
- package/.agent/rules/agent-upgrade-policy.md +56 -0
- package/.agent/session-context.md +1 -1
- package/.agent/skills/README.md +4 -2
- package/.agent/skills/pr-toolkit/SKILL.md +467 -0
- package/.agent/skills/production-readiness/SKILL.md +3 -3
- package/.agent/workflows/README.md +13 -6
- package/.agent/workflows/deploy.md +2 -1
- package/.agent/workflows/pr-fix.md +305 -0
- package/.agent/workflows/pr-merge.md +242 -0
- package/.agent/workflows/pr-review.md +312 -0
- package/.agent/workflows/pr-split.md +263 -0
- package/.agent/workflows/pr.md +116 -26
- package/.agent/workflows/preflight.md +2 -2
- package/.agent/workflows/upgrade.md +196 -0
- package/README.md +48 -35
- package/package.json +2 -2
package/.agent/workflows/pr.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Production-grade PR creation with pre-flight checks,
|
|
3
|
-
version:
|
|
2
|
+
description: Production-grade PR creation with branch strategy validation, size/scope guards, pre-flight checks, and CI verification.
|
|
3
|
+
version: 3.0.0
|
|
4
4
|
sdlc-phase: ship
|
|
5
|
-
skills: [git-workflow, verification-loop]
|
|
5
|
+
skills: [git-workflow, pr-toolkit, verification-loop]
|
|
6
6
|
commit-types: [feat, fix, refactor, perf, chore, docs, test]
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -35,13 +35,15 @@ commit-types: [feat, fix, refactor, perf, chore, docs, test]
|
|
|
35
35
|
|
|
36
36
|
## Critical Rules
|
|
37
37
|
|
|
38
|
-
1. **ALWAYS**
|
|
39
|
-
2. **ALWAYS**
|
|
40
|
-
3. **
|
|
41
|
-
4. **NEVER** create a PR
|
|
42
|
-
5. **NEVER**
|
|
43
|
-
6. **
|
|
44
|
-
7. **
|
|
38
|
+
1. **ALWAYS** detect the project's branch strategy before validating target — prevents wrong-base PRs
|
|
39
|
+
2. **ALWAYS** sync with target branch before creating PR — prevents merge conflicts
|
|
40
|
+
3. **ALWAYS** run pre-flight `/review` locally before pushing — catches issues pre-CI
|
|
41
|
+
4. **NEVER** create a PR from `main` or `production` branches
|
|
42
|
+
5. **NEVER** create a PR with known conflicts — resolve first
|
|
43
|
+
6. **NEVER** merge without all CI checks passing
|
|
44
|
+
7. **ATOMIC** PRs — one logical unit of work per PR, not multi-sprint kitchen sinks
|
|
45
|
+
8. **CONVENTIONAL** titles — `type(scope): description` format, validated before creation
|
|
46
|
+
9. **SIZE GUARD** — PRs exceeding XL threshold (50+ files or 1500+ LOC) must be split
|
|
45
47
|
|
|
46
48
|
---
|
|
47
49
|
|
|
@@ -60,11 +62,11 @@ commit-types: [feat, fix, refactor, perf, chore, docs, test]
|
|
|
60
62
|
|
|
61
63
|
Execute IN ORDER. Stop at first failure.
|
|
62
64
|
|
|
63
|
-
### Step 1: Verify Branch State
|
|
65
|
+
### Step 1: Verify Branch State & Detect Branch Strategy
|
|
64
66
|
|
|
65
67
|
// turbo
|
|
66
68
|
|
|
67
|
-
```
|
|
69
|
+
```bash
|
|
68
70
|
git branch --show-current
|
|
69
71
|
git status --porcelain
|
|
70
72
|
```
|
|
@@ -72,24 +74,89 @@ git status --porcelain
|
|
|
72
74
|
- If on `main` or `production` → **STOP**, instruct user to create feature branch
|
|
73
75
|
- If working tree dirty → prompt to commit or stash
|
|
74
76
|
|
|
77
|
+
**1a. Detect Branch Strategy** (per `pr-toolkit` skill):
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Check for GitFlow indicators
|
|
81
|
+
git branch -r | grep -E 'origin/(dev|develop)$'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
- If `dev`/`develop` exists → **GitFlow** detected
|
|
85
|
+
- If only `main`/`master` → **Trunk-Based** detected
|
|
86
|
+
- Record detected strategy for Step 1b validation
|
|
87
|
+
|
|
88
|
+
**1b. Validate Target Branch**:
|
|
89
|
+
|
|
90
|
+
| Strategy | Source Pattern | Valid Target | Invalid Target |
|
|
91
|
+
| :--- | :--- | :--- | :--- |
|
|
92
|
+
| GitFlow | `feature/*`, `bugfix/*`, `chore/*`, `docs/*` | `dev`, `develop` | `main` → **BLOCK** |
|
|
93
|
+
| GitFlow | `hotfix/*` | `main` | — |
|
|
94
|
+
| GitFlow | `release/*`, `dev` | `main` | — |
|
|
95
|
+
| Trunk-Based | Any feature branch | `main` | — |
|
|
96
|
+
|
|
97
|
+
- If target is invalid → **STOP**: "Branch strategy violation — `{branch}` should target `{valid_target}`, not `{invalid_target}`"
|
|
98
|
+
- If user explicitly provided target via `/pr [target]` → validate against strategy, warn if non-standard
|
|
99
|
+
|
|
75
100
|
### Step 2: Sync with Target Branch
|
|
76
101
|
|
|
77
102
|
// turbo
|
|
78
103
|
|
|
79
|
-
```
|
|
104
|
+
```bash
|
|
80
105
|
git fetch origin <target>
|
|
81
106
|
git merge origin/<target> --no-edit
|
|
82
107
|
```
|
|
83
108
|
|
|
84
109
|
- If conflicts detected → invoke **Conflict Resolution Protocol** (see below)
|
|
85
|
-
- If clean merge → proceed to Step
|
|
110
|
+
- If clean merge → proceed to Step 2.5
|
|
111
|
+
|
|
112
|
+
### Step 2.5: PR Size & Scope Guard
|
|
113
|
+
|
|
114
|
+
// turbo
|
|
115
|
+
|
|
116
|
+
**2.5a. Size Classification** (per `pr-toolkit` size matrix):
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Count changed files and lines
|
|
120
|
+
git diff --name-only origin/<target>..HEAD | wc -l
|
|
121
|
+
git diff --stat origin/<target>..HEAD | tail -1
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
| Size | Files | LOC | Action |
|
|
125
|
+
| :--- | :--- | :--- | :--- |
|
|
126
|
+
| XS-M | 1-30 | < 700 | Proceed |
|
|
127
|
+
| L | 31-50 | 700-1500 | **WARN**: "Large PR — consider splitting for faster review" |
|
|
128
|
+
| XL | 50+ | 1500+ | **BLOCK**: "PR exceeds reviewability threshold — split into focused PRs" |
|
|
129
|
+
|
|
130
|
+
**2.5b. Scope Coherence Check**:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Categorize changed files by directory/purpose
|
|
134
|
+
git diff --name-only origin/<target>..HEAD
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Detect mixed concerns:
|
|
138
|
+
- Source code (`src/`, `lib/`, `app/`) alongside framework config (`.agent/`, `.github/`)
|
|
139
|
+
- Feature code alongside unrelated dependency bumps
|
|
140
|
+
- Multiple unrelated modules changed with no shared dependency
|
|
141
|
+
|
|
142
|
+
If scope violation detected → **WARN**: "PR contains mixed concerns — recommend splitting: [split suggestions]"
|
|
86
143
|
|
|
87
144
|
> [!WARNING]
|
|
88
145
|
> If the branch has diverged significantly from the target, expect conflicts in shared files like `.gitignore`, `package.json`, or lock files. Always check `git diff --name-only origin/<target>..HEAD` before creating the PR.
|
|
89
146
|
|
|
90
147
|
### Step 3: Run Pre-Flight Checks
|
|
91
148
|
|
|
92
|
-
|
|
149
|
+
// turbo
|
|
150
|
+
|
|
151
|
+
**3a. Verify /preflight status** (for `feat`, `fix`, `refactor`, `perf` commit types):
|
|
152
|
+
- Check if `/preflight` scorecard exists in conversation context
|
|
153
|
+
- If scorecard exists and status is Production Ready or Conditionally Ready → proceed
|
|
154
|
+
- If no scorecard found → warn: "Consider running `/preflight` before `/pr` for full production readiness validation"
|
|
155
|
+
- For lightweight commit types (`chore`, `docs`, `test`) → skip this check
|
|
156
|
+
|
|
157
|
+
**3b. Run /review pipeline** (Gates 1-5: lint, type-check, test, security, build):
|
|
158
|
+
|
|
159
|
+
Delegate to `/review` pipeline.
|
|
93
160
|
|
|
94
161
|
- Scope filter applies:
|
|
95
162
|
- `docs()` → skip all gates
|
|
@@ -110,18 +177,29 @@ git push origin HEAD
|
|
|
110
177
|
- If rejected (upstream diverged) → re-run Step 2, then retry push
|
|
111
178
|
- If authentication error → guide user to configure credentials
|
|
112
179
|
|
|
113
|
-
### Step 5: Generate PR Title & Body
|
|
180
|
+
### Step 5: Generate & Validate PR Title & Body
|
|
114
181
|
|
|
115
182
|
// turbo
|
|
116
183
|
|
|
117
|
-
**Title generation
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
184
|
+
**Title generation** (per `pr-toolkit` title parser):
|
|
185
|
+
|
|
186
|
+
1. Parse branch name using branch-to-title algorithm:
|
|
187
|
+
- Extract type: `feature/` → `feat`, `bugfix/` → `fix`, `hotfix/` → `fix`, `chore/` → `chore`
|
|
188
|
+
- Remove ticket prefix: `ABC-123-` → strip
|
|
189
|
+
- Extract scope from first segment, description from remainder
|
|
190
|
+
- Compose: `type(scope): description`
|
|
191
|
+
2. Fallback: use first commit message subject line
|
|
192
|
+
3. **Validate** the generated title:
|
|
193
|
+
- Must match `type(scope): description` or `type: description`
|
|
194
|
+
- Type must be one of: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`, `perf`, `ci`
|
|
195
|
+
- Description must be imperative mood, under 72 characters, no trailing period
|
|
196
|
+
- If validation fails → prompt user to provide/correct title
|
|
121
197
|
|
|
122
198
|
**Body generation:**
|
|
123
199
|
- Populate from `git log origin/<target>..HEAD --oneline` and `git diff --stat origin/<target>..HEAD`
|
|
200
|
+
- Include **PR Size Label**: `[XS/S/M/L]` in body metadata
|
|
124
201
|
- Use **PR Body Template** (see below)
|
|
202
|
+
- Verify body contains: Summary, Changes, Test Plan sections
|
|
125
203
|
|
|
126
204
|
### Step 6: Create PR
|
|
127
205
|
|
|
@@ -247,19 +325,25 @@ git commit -m "merge: resolve conflicts with <target>"
|
|
|
247
325
|
|
|
248
326
|
**PROHIBITED:**
|
|
249
327
|
- Creating PRs from `main` or `production` branches
|
|
328
|
+
- Creating PRs targeting wrong branch per detected strategy (e.g., feature→main in GitFlow)
|
|
250
329
|
- Creating PRs with unresolved merge conflicts
|
|
330
|
+
- Creating XL PRs (50+ files or 1500+ LOC) without splitting
|
|
251
331
|
- Pushing without local pre-flight `/review` passing
|
|
252
332
|
- Merging PRs with failing CI checks
|
|
253
333
|
- Including generated files, PII, secrets, or `.env` in diff
|
|
254
334
|
- Multi-sprint mega-PRs — keep PRs focused and reviewable
|
|
335
|
+
- Non-conventional PR titles (raw branch names, vague descriptions)
|
|
255
336
|
- Using `// turbo` on state-mutating steps (push, create, merge)
|
|
256
337
|
- Skipping failed steps · proceeding without resolution
|
|
257
338
|
|
|
258
339
|
**REQUIRED:**
|
|
340
|
+
- Branch strategy detection before target validation
|
|
341
|
+
- Target branch validation against detected strategy
|
|
342
|
+
- PR size classification and scope coherence check
|
|
259
343
|
- Branch sync with target before every PR
|
|
260
344
|
- Local pre-flight via `/review` before push
|
|
261
|
-
- Conventional commit PR title format
|
|
262
|
-
- Structured PR body using template
|
|
345
|
+
- Conventional commit PR title format (validated)
|
|
346
|
+
- Structured PR body using template (Summary, Changes, Test Plan)
|
|
263
347
|
- CI verification after PR creation
|
|
264
348
|
- Human approval before push and PR creation (non-turbo)
|
|
265
349
|
- MCP-first with graceful fallback strategy
|
|
@@ -270,11 +354,16 @@ git commit -m "merge: resolve conflicts with <target>"
|
|
|
270
354
|
## Completion Criteria
|
|
271
355
|
|
|
272
356
|
- [ ] On feature branch (not `main`/`production`)
|
|
357
|
+
- [ ] Branch strategy detected (GitFlow / Trunk-Based)
|
|
358
|
+
- [ ] Target branch validated against strategy
|
|
273
359
|
- [ ] Working tree clean (committed or stashed)
|
|
274
360
|
- [ ] Target branch synced (no conflicts)
|
|
361
|
+
- [ ] PR size classified (XS/S/M/L — XL blocked)
|
|
362
|
+
- [ ] Scope coherence verified (single logical unit)
|
|
275
363
|
- [ ] Pre-flight `/review` passes (scope-filtered)
|
|
276
364
|
- [ ] Pushed to remote
|
|
277
|
-
- [ ] PR
|
|
365
|
+
- [ ] PR title validated (conventional commits format)
|
|
366
|
+
- [ ] PR created with structured body (Summary, Changes, Test Plan)
|
|
278
367
|
- [ ] CI checks monitored and passed (or draft acknowledged)
|
|
279
368
|
- [ ] Review requested (if applicable)
|
|
280
369
|
- [ ] After CI passes: proceed to `/deploy` when ready
|
|
@@ -285,7 +374,8 @@ git commit -m "merge: resolve conflicts with <target>"
|
|
|
285
374
|
|
|
286
375
|
- **Previous**: `/preflight` (production readiness verified) · `/review` (code quality gates)
|
|
287
376
|
- **Next**: `/deploy` (deployment after PR is merged)
|
|
288
|
-
- **Skills**: `.agent/skills/git-workflow/SKILL.md` · `.agent/skills/verification-loop/SKILL.md`
|
|
289
|
-
- **
|
|
290
|
-
- **
|
|
377
|
+
- **Skills**: `.agent/skills/pr-toolkit/SKILL.md` · `.agent/skills/git-workflow/SKILL.md` · `.agent/skills/verification-loop/SKILL.md`
|
|
378
|
+
- **Related**: `/pr-review` (review existing PRs) · `/pr-fix` (fix review findings) · `/status` (check PR and CI status)
|
|
379
|
+
- **Agent**: `.agent/agents/pr-reviewer.md` (Senior Staff Engineer PR review specialist)
|
|
380
|
+
- **Rule**: `.agent/rules/git-workflow.md` — branching and commit conventions
|
|
291
381
|
- **Note**: PR body template supersedes the basic template in `git-workflow` skill
|
|
@@ -24,10 +24,10 @@ commit-types: [feat, fix, refactor, perf]
|
|
|
24
24
|
|
|
25
25
|
## Critical Rules
|
|
26
26
|
|
|
27
|
-
1. **Evidence-backed scoring** — every domain score must cite observable proof (file, command output, observation)
|
|
27
|
+
1. **Evidence-backed scoring** — every domain score must cite observable proof (file, command output, observation, or N/A justification)
|
|
28
28
|
2. **Never bypass blockers** — blocker rule violations override total score (see skill for precedence)
|
|
29
29
|
3. **Human approval required** — Go/No-Go recommendation requires explicit user decision
|
|
30
|
-
4. **Non-destructive** —
|
|
30
|
+
4. **Non-destructive** — checks do not modify source code; verification commands (test suites, linters, builds) may run but must not alter project state
|
|
31
31
|
5. **Skill-mediated delegation** — domain checks reference existing skills, never duplicate their logic
|
|
32
32
|
6. **Fail-safe defaults** — unverifiable checks score 0, not assumed pass
|
|
33
33
|
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Non-destructive Antigravity AI Kit framework upgrade with preservation verification.
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
sdlc-phase: maintenance
|
|
5
|
+
skills: [verification-loop]
|
|
6
|
+
commit-types: [chore]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /upgrade — Framework Upgrade
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/upgrade [sub-command]`
|
|
12
|
+
> **Lifecycle**: Maintenance — invoked when a new Antigravity AI Kit version is available
|
|
13
|
+
|
|
14
|
+
> [!CAUTION]
|
|
15
|
+
> Framework upgrades modify `.agent/` files on disk. The Preservation Contract
|
|
16
|
+
> (defined in `.agent/rules/agent-upgrade-policy.md`) protects user-specific state.
|
|
17
|
+
> Always verify integrity after upgrade. Never use `init --force` for routine upgrades.
|
|
18
|
+
|
|
19
|
+
> [!TIP]
|
|
20
|
+
> This workflow references the **agent-upgrade-policy** rule for the canonical list of
|
|
21
|
+
> protected files. Read `.agent/rules/agent-upgrade-policy.md` for the full Preservation Contract.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Critical Rules
|
|
26
|
+
|
|
27
|
+
1. **Non-destructive only** — use `ag-kit update`, never `init --force` for routine upgrades
|
|
28
|
+
2. **Preservation Contract** — user-specific state (rules, checklists, sessions, decisions, contexts, identity) must survive upgrades
|
|
29
|
+
3. **Verify after upgrade** — always run `ag-kit verify` post-upgrade to confirm manifest integrity
|
|
30
|
+
4. **Rollback capability** — uncommitted upgrades can be reverted via `git checkout -- .agent/`
|
|
31
|
+
5. **Human confirmation** — the upgrade step requires explicit user approval before execution
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Scope Filter
|
|
36
|
+
|
|
37
|
+
| Change Type | Upgrade Applies? | Rationale |
|
|
38
|
+
| :---------- | :--------------- | :-------- |
|
|
39
|
+
| New kit version available | Yes | Core use case |
|
|
40
|
+
| User wants to refresh `.agent/` | Yes | Non-destructive merge |
|
|
41
|
+
| First-time setup | No | Use `npx antigravity-ai-kit init` instead |
|
|
42
|
+
| Catastrophic repair | No | Use `init --force` (destructive — last resort) |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Argument Parsing
|
|
47
|
+
|
|
48
|
+
| Command | Action |
|
|
49
|
+
| :----------------------- | :----------------------------------------------- |
|
|
50
|
+
| `/upgrade` | Interactive upgrade — detect, preview, apply, verify |
|
|
51
|
+
| `/upgrade --dry-run` | Preview changes without applying |
|
|
52
|
+
| `/upgrade --verify-only` | Run post-upgrade verification checks only |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Steps
|
|
57
|
+
|
|
58
|
+
// turbo
|
|
59
|
+
1. **Pre-Upgrade Assessment**
|
|
60
|
+
- Check current kit version: read `manifest.json` → `kitVersion`
|
|
61
|
+
- Verify no uncommitted critical work: `git status --porcelain`
|
|
62
|
+
- If dirty working tree → prompt to commit or stash before proceeding
|
|
63
|
+
- Record current state for rollback reference: `git rev-parse HEAD`
|
|
64
|
+
|
|
65
|
+
// turbo
|
|
66
|
+
2. **Preservation Snapshot**
|
|
67
|
+
- Verify all Preservation Contract items exist (see rule for canonical list):
|
|
68
|
+
- `.agent/session-state.json`
|
|
69
|
+
- `.agent/session-context.md`
|
|
70
|
+
- `.agent/identity.json`
|
|
71
|
+
- `.agent/rules/` (user customizations)
|
|
72
|
+
- `.agent/checklists/` (user customizations)
|
|
73
|
+
- `.agent/decisions/` (ADRs)
|
|
74
|
+
- `.agent/contexts/` (learning data)
|
|
75
|
+
- Record file checksums for post-upgrade comparison
|
|
76
|
+
|
|
77
|
+
3. **Execute Upgrade**
|
|
78
|
+
- Run the non-destructive AST merger:
|
|
79
|
+
```bash
|
|
80
|
+
ag-kit update
|
|
81
|
+
```
|
|
82
|
+
- For preview-only mode: `ag-kit update --dry-run`
|
|
83
|
+
- Monitor output for warnings or conflicts
|
|
84
|
+
|
|
85
|
+
// turbo
|
|
86
|
+
4. **Verify Integrity**
|
|
87
|
+
- Run manifest verification:
|
|
88
|
+
```bash
|
|
89
|
+
ag-kit verify
|
|
90
|
+
```
|
|
91
|
+
- Confirm capability counts match the new version
|
|
92
|
+
- Verify all Preservation Contract items remain intact (compare checksums from Step 2)
|
|
93
|
+
- If any protected file was modified or deleted → **STOP** and report violation
|
|
94
|
+
|
|
95
|
+
// turbo
|
|
96
|
+
5. **Post-Upgrade Summary**
|
|
97
|
+
- Report version change (old → new)
|
|
98
|
+
- List new capabilities added (agents, skills, workflows, rules)
|
|
99
|
+
- Confirm Preservation Contract compliance
|
|
100
|
+
- Complete the task-complete protocol
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Output Template
|
|
105
|
+
|
|
106
|
+
### Successful Upgrade
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
## Upgrade Complete
|
|
110
|
+
|
|
111
|
+
| Field | Value |
|
|
112
|
+
| :--- | :--- |
|
|
113
|
+
| Previous Version | [old version] |
|
|
114
|
+
| New Version | [new version] |
|
|
115
|
+
| Preservation Contract | All protected files intact |
|
|
116
|
+
| Manifest Verify | Passed |
|
|
117
|
+
|
|
118
|
+
### New Capabilities
|
|
119
|
+
|
|
120
|
+
| Type | Added | Details |
|
|
121
|
+
| :--- | :--- | :--- |
|
|
122
|
+
| Agents | [+N] | [names] |
|
|
123
|
+
| Skills | [+N] | [names] |
|
|
124
|
+
| Workflows | [+N] | [names] |
|
|
125
|
+
| Rules | [+N] | [names] |
|
|
126
|
+
|
|
127
|
+
### Preservation Verification
|
|
128
|
+
|
|
129
|
+
All 7 protected items verified intact.
|
|
130
|
+
|
|
131
|
+
**Next**: Run `/status` to confirm project health.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Failed Upgrade
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
## Upgrade Failed
|
|
138
|
+
|
|
139
|
+
### Error
|
|
140
|
+
|
|
141
|
+
[Error description from ag-kit update output]
|
|
142
|
+
|
|
143
|
+
### Rollback
|
|
144
|
+
|
|
145
|
+
To restore previous state:
|
|
146
|
+
```bash
|
|
147
|
+
git checkout -- .agent/
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Resolution
|
|
151
|
+
|
|
152
|
+
1. [Fix steps based on error]
|
|
153
|
+
2. Re-run: `/upgrade`
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Governance
|
|
159
|
+
|
|
160
|
+
**PROHIBITED:**
|
|
161
|
+
- Using `init --force` for routine upgrades — this is a destructive wipe
|
|
162
|
+
- Deleting or modifying Preservation Contract files during upgrade
|
|
163
|
+
- Skipping post-upgrade verification
|
|
164
|
+
- Proceeding if `ag-kit verify` fails
|
|
165
|
+
- Auto-executing the upgrade step without user confirmation
|
|
166
|
+
|
|
167
|
+
**REQUIRED:**
|
|
168
|
+
- Pre-upgrade working tree check
|
|
169
|
+
- Preservation snapshot before upgrade execution
|
|
170
|
+
- `ag-kit verify` after every upgrade
|
|
171
|
+
- Preservation Contract compliance verification
|
|
172
|
+
- Human approval before executing Step 3 (upgrade)
|
|
173
|
+
- Rollback instructions available in case of failure
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Completion Criteria
|
|
178
|
+
|
|
179
|
+
- [ ] Current version identified
|
|
180
|
+
- [ ] Working tree clean (committed or stashed)
|
|
181
|
+
- [ ] Preservation Contract items inventoried
|
|
182
|
+
- [ ] Upgrade executed via `ag-kit update` (not `init --force`)
|
|
183
|
+
- [ ] `ag-kit verify` passes
|
|
184
|
+
- [ ] All Preservation Contract items verified intact
|
|
185
|
+
- [ ] Version change and new capabilities reported to user
|
|
186
|
+
- [ ] After upgrade: proceed to `/status` for health check
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Related Resources
|
|
191
|
+
|
|
192
|
+
- **Rule**: `.agent/rules/agent-upgrade-policy.md` (Preservation Contract)
|
|
193
|
+
- **Next**: `/status` (post-upgrade health check)
|
|
194
|
+
- **Skill**: `.agent/skills/verification-loop/SKILL.md`
|
|
195
|
+
- **Related**: `/deploy` (deployment after code changes) · `/review` (post-upgrade quality check)
|
|
196
|
+
- **CLI**: `ag-kit update`, `ag-kit update --dry-run`, `ag-kit verify`
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# 🚀 Antigravity AI Kit
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
|
-

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
9
|

|
|
10
|
-

|
|
11
11
|

|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
Antigravity AI Kit is a <b>Trust-Grade AI development framework</b> with a <b>29-module runtime engine</b>, <b>
|
|
18
|
+
Antigravity AI Kit is a <b>Trust-Grade AI development framework</b> with a <b>29-module runtime engine</b>, <b>20 specialized agents</b>, <b>37 commands</b>, <b>34 skills</b>, and <b>21 workflows</b> — all backed by <b>349 tests</b> and governance-first principles.
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p align="center">
|
|
22
22
|
🚀 <a href="#-quick-start">Quick Start</a> •
|
|
23
|
-
🤖 <a href="#-agents-
|
|
24
|
-
🛠️ <a href="#%EF%B8%8F-skills-
|
|
25
|
-
⌨️ <a href="#%EF%B8%8F-commands-
|
|
23
|
+
🤖 <a href="#-agents-20">Agents</a> •
|
|
24
|
+
🛠️ <a href="#%EF%B8%8F-skills-34">Skills</a> •
|
|
25
|
+
⌨️ <a href="#%EF%B8%8F-commands-37">Commands</a> •
|
|
26
26
|
🔄 <a href="#-session-management">Sessions</a> •
|
|
27
27
|
⚖️ <a href="#%EF%B8%8F-operating-constraints">Governance</a> •
|
|
28
28
|
📖 <a href="#-contributor-guide">Contributor Guide</a>
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
- [Key Features](#-key-features)
|
|
37
37
|
- [Quick Start](#-quick-start)
|
|
38
38
|
- [Architecture](#%EF%B8%8F-architecture-overview)
|
|
39
|
-
- [Agents](#-agents-
|
|
40
|
-
- [Commands](#%EF%B8%8F-commands-
|
|
41
|
-
- [Skills](#%EF%B8%8F-skills-
|
|
39
|
+
- [Agents](#-agents-20)
|
|
40
|
+
- [Commands](#%EF%B8%8F-commands-37)
|
|
41
|
+
- [Skills](#%EF%B8%8F-skills-34)
|
|
42
42
|
- [Runtime Engine](#%EF%B8%8F-runtime-engine-29-modules)
|
|
43
|
-
- [Workflows](#-workflows-
|
|
43
|
+
- [Workflows](#-workflows-21)
|
|
44
44
|
- [Operating Constraints](#%EF%B8%8F-operating-constraints)
|
|
45
45
|
- [Session Management](#-session-management)
|
|
46
46
|
- [How to Extend](#-how-to-extend)
|
|
@@ -55,22 +55,22 @@
|
|
|
55
55
|
|
|
56
56
|
| Feature | Count | Description |
|
|
57
57
|
| :---------------- | :---- | :--------------------------------------------------------------------- |
|
|
58
|
-
| 🤖 **AI Agents** |
|
|
59
|
-
| 🛠️ **Skills** |
|
|
60
|
-
| ⌨️ **Commands** |
|
|
61
|
-
| 🔄 **Workflows** |
|
|
58
|
+
| 🤖 **AI Agents** | 20 | Specialized roles (Mobile, DevOps, Database, Security, Performance...) |
|
|
59
|
+
| 🛠️ **Skills** | 34 | Domain knowledge modules (API, Testing, MCP, Architecture, Docker...) |
|
|
60
|
+
| ⌨️ **Commands** | 37 | Slash commands for every development workflow |
|
|
61
|
+
| 🔄 **Workflows** | 21 | Process templates (/create, /debug, /deploy, /pr, /pr-merge, /test...) |
|
|
62
62
|
| ⚙️ **Runtime** | 29 | Runtime engine modules (governance, reputation, self-healing...) |
|
|
63
63
|
| ✅ **Checklists** | 4 | Quality gates (session-start, session-end, pre-commit, task-complete) |
|
|
64
|
-
| ⚖️ **Rules** |
|
|
64
|
+
| ⚖️ **Rules** | 9 | Modular governance constraints (coding, security, testing, git, docs, sprint) |
|
|
65
65
|
| 🔗 **Hooks** | 8 | Event-driven automation (runtime + git-hook enforcement) |
|
|
66
|
-
| 🧪 **Tests** |
|
|
66
|
+
| 🧪 **Tests** | 349 | Unit, structural, integration, and security tests (34 test files) |
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
70
70
|
## ✨ Key Features
|
|
71
71
|
|
|
72
72
|
- **🔒 Trust-Grade Governance**: `/explore → /plan → /work → /review` — Each iteration builds context
|
|
73
|
-
- **🤖 Multi-Agent System**:
|
|
73
|
+
- **🤖 Multi-Agent System**: 20 specialized agents that collaborate (Mobile Developer, DevOps, Database Architect, Sprint Orchestrator...)
|
|
74
74
|
- **⚙️ Runtime Engine**: 29 modules enforcing workflow transitions, task governance, agent reputation, self-healing, and marketplace
|
|
75
75
|
- **📦 Context as Artifact**: Persistent markdown files for plans, specs, and decisions
|
|
76
76
|
- **🔄 Continuous Learning**: PAAL cycle extracts patterns from every session
|
|
@@ -149,7 +149,7 @@ Antigravity AI Kit is designed to **never touch your project files**. All operat
|
|
|
149
149
|
┌─────────────────────────────────────────────────────────────────────┐
|
|
150
150
|
│ USER INTERFACE LAYER │
|
|
151
151
|
│ ┌─────────────────────────┐ ┌─────────────────────────┐ │
|
|
152
|
-
│ │ Slash Commands (
|
|
152
|
+
│ │ Slash Commands (37) │ │ Workflows (21) │ │
|
|
153
153
|
│ └────────────┬────────────┘ └────────────┬────────────┘ │
|
|
154
154
|
├───────────────┼────────────────────────────┼────────────────────────┤
|
|
155
155
|
│ ▼ INTELLIGENCE LAYER ▼ │
|
|
@@ -158,7 +158,7 @@ Antigravity AI Kit is designed to **never touch your project files**. All operat
|
|
|
158
158
|
│ │ Router │ │ Machine │ │ Engine │ │
|
|
159
159
|
│ └────────┬─────────┘ └──────────────────┘ └──────────────────┘ │
|
|
160
160
|
├───────────┼────────────────────────────────────────────────────────-┤
|
|
161
|
-
│ ▼ AGENT LAYER (
|
|
161
|
+
│ ▼ AGENT LAYER (20) │
|
|
162
162
|
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
|
|
163
163
|
│ │ Core Agents │ │ Domain Agents │ │ Support Agents │ │
|
|
164
164
|
│ │ Planner │ │ Mobile Dev │ │ Security │ │
|
|
@@ -167,7 +167,7 @@ Antigravity AI Kit is designed to **never touch your project files**. All operat
|
|
|
167
167
|
│ │ TDD Specialist │ │ DB, DevOps │ │ Knowledge │ │
|
|
168
168
|
│ └────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘ │
|
|
169
169
|
├───────────┼─────────────────────┼─────────────────────┼────────────┤
|
|
170
|
-
│ ▼ SKILL LAYER (
|
|
170
|
+
│ ▼ SKILL LAYER (34) ▼ │
|
|
171
171
|
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
|
|
172
172
|
│ │ Orchestration │ │ Operational │ │ Domain Skills │ │
|
|
173
173
|
│ │ Routing, Modes │ │ Verification │ │ API, Testing │ │
|
|
@@ -208,7 +208,7 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
208
208
|
|
|
209
209
|
---
|
|
210
210
|
|
|
211
|
-
## 🤖 Agents (
|
|
211
|
+
## 🤖 Agents (20)
|
|
212
212
|
|
|
213
213
|
### Core Development
|
|
214
214
|
|
|
@@ -245,12 +245,13 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
245
245
|
| Agent | Role | Triggers |
|
|
246
246
|
| :----------------------- | :-------------------------------- | :---------------------------- |
|
|
247
247
|
| **Planner** | Multi-agent plan synthesis, tiered quality schema, specialist coordination | plan, breakdown, requirements |
|
|
248
|
+
| **PR Reviewer** | Pull request review & fixes | pr, pull-request, review |
|
|
248
249
|
| **Sprint Orchestrator** | Sprint planning, velocity | sprint, roadmap, velocity |
|
|
249
250
|
| **Reliability Engineer** | SRE, production readiness | reliability, SLA, monitoring |
|
|
250
251
|
|
|
251
252
|
---
|
|
252
253
|
|
|
253
|
-
## ⌨️ Commands (
|
|
254
|
+
## ⌨️ Commands (37)
|
|
254
255
|
|
|
255
256
|
### Core Workflow
|
|
256
257
|
|
|
@@ -280,6 +281,12 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
280
281
|
| `/changelog` | Generate changelog |
|
|
281
282
|
| `/git` | Git operations |
|
|
282
283
|
| `/pr` | Create/manage pull requests |
|
|
284
|
+
| `/pr-review` | Automated PR code review |
|
|
285
|
+
| `/pr-fix` | Auto-fix PR review findings |
|
|
286
|
+
| `/pr-merge` | Safe PR merge with validation|
|
|
287
|
+
| `/pr-split` | Split oversized PRs |
|
|
288
|
+
| `/pr-status` | PR triage and merge readiness|
|
|
289
|
+
| `/pr-describe`| Auto-generate PR description|
|
|
283
290
|
|
|
284
291
|
### Exploration & Research
|
|
285
292
|
|
|
@@ -320,7 +327,7 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
320
327
|
|
|
321
328
|
---
|
|
322
329
|
|
|
323
|
-
## 🛠️ Skills (
|
|
330
|
+
## 🛠️ Skills (34)
|
|
324
331
|
|
|
325
332
|
### Operational Skills (6)
|
|
326
333
|
|
|
@@ -360,7 +367,7 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
360
367
|
| `git-workflow` | Branching, commits |
|
|
361
368
|
| `i18n-localization` | Internationalization patterns |
|
|
362
369
|
|
|
363
|
-
### Development Skills (
|
|
370
|
+
### Development Skills (11)
|
|
364
371
|
|
|
365
372
|
| Skill | Purpose |
|
|
366
373
|
| :---------------------- | :---------------------- |
|
|
@@ -373,6 +380,7 @@ EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
|
|
|
373
380
|
| `plan-writing` | Structured planning with tiered quality schema |
|
|
374
381
|
| `plan-validation` | Quality gate with completeness scoring |
|
|
375
382
|
| `shell-conventions` | PowerShell/Bash conventions |
|
|
383
|
+
| `pr-toolkit` | PR review & fix workflows |
|
|
376
384
|
| `ui-ux-pro-max` | Premium UI/UX design system |
|
|
377
385
|
|
|
378
386
|
---
|
|
@@ -424,7 +432,7 @@ Antigravity AI Kit v3.2.0 includes a **full runtime engine** built across 4 phas
|
|
|
424
432
|
|
|
425
433
|
---
|
|
426
434
|
|
|
427
|
-
## 🔄 Workflows (
|
|
435
|
+
## 🔄 Workflows (21)
|
|
428
436
|
|
|
429
437
|
| Workflow | Description | Command |
|
|
430
438
|
| :---------------- | :----------------------- | :--------------- |
|
|
@@ -436,6 +444,10 @@ Antigravity AI Kit v3.2.0 includes a **full runtime engine** built across 4 phas
|
|
|
436
444
|
| **orchestrate** | Multi-agent coordination | `/orchestrate` |
|
|
437
445
|
| **plan** | Implementation planning | `/plan` |
|
|
438
446
|
| **pr** | Production-grade PR creation | `/pr` |
|
|
447
|
+
| **pr-review** | Automated PR code review | `/pr-review` |
|
|
448
|
+
| **pr-fix** | Auto-fix PR review findings | `/pr-fix` |
|
|
449
|
+
| **pr-merge** | Safe PR merge with validation| `/pr-merge` |
|
|
450
|
+
| **pr-split** | Split oversized PRs | `/pr-split` |
|
|
439
451
|
| **preflight** | Production readiness assessment | `/preflight` |
|
|
440
452
|
| **preview** | Preview changes | `/preview` |
|
|
441
453
|
| **quality-gate** | Pre-task validation | `/quality-gate` |
|
|
@@ -444,6 +456,7 @@ Antigravity AI Kit v3.2.0 includes a **full runtime engine** built across 4 phas
|
|
|
444
456
|
| **status** | Project status check | `/status` |
|
|
445
457
|
| **test** | Test writing workflow | `/test` |
|
|
446
458
|
| **ui-ux-pro-max** | Premium UI design | `/ui-ux-pro-max` |
|
|
459
|
+
| **upgrade** | Non-destructive framework updates | `/upgrade` |
|
|
447
460
|
|
|
448
461
|
---
|
|
449
462
|
|
|
@@ -634,13 +647,13 @@ Usage and instructions...
|
|
|
634
647
|
```
|
|
635
648
|
antigravity-ai-kit/
|
|
636
649
|
├── .agent/ # Core AI Kit
|
|
637
|
-
│ ├── agents/ #
|
|
638
|
-
│ ├── commands/ #
|
|
639
|
-
│ ├── skills/ #
|
|
640
|
-
│ ├── workflows/ #
|
|
650
|
+
│ ├── agents/ # 20 specialized agents
|
|
651
|
+
│ ├── commands/ # 37 slash commands
|
|
652
|
+
│ ├── skills/ # 34 capability modules
|
|
653
|
+
│ ├── workflows/ # 21 process templates
|
|
641
654
|
│ ├── engine/ # Autonomy Engine (state machine, loading rules, configs)
|
|
642
655
|
│ ├── hooks/ # 8 event hooks (runtime + git-hook)
|
|
643
|
-
│ ├── rules/ #
|
|
656
|
+
│ ├── rules/ # 9 modular governance rules
|
|
644
657
|
│ ├── checklists/ # Verification checklists (4)
|
|
645
658
|
│ ├── templates/ # ADR, feature-request, bug-report templates
|
|
646
659
|
│ ├── decisions/ # Architecture Decision Records
|
|
@@ -654,7 +667,7 @@ antigravity-ai-kit/
|
|
|
654
667
|
│ └── + 16 more modules # Identity, plugins, hooks, registry...
|
|
655
668
|
├── bin/ # CLI (ag-kit)
|
|
656
669
|
├── create-antigravity-app/ # Project scaffolder (separate npm package)
|
|
657
|
-
├── tests/ # Test suites (
|
|
670
|
+
├── tests/ # Test suites (349 tests, 34 files)
|
|
658
671
|
│ ├── unit/ # Module tests (loading-engine, self-healing, plugins...)
|
|
659
672
|
│ ├── structural/ # Inventory + schema validation
|
|
660
673
|
│ └── security/ # Injection scan + leakage detection
|