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.
Files changed (37) hide show
  1. package/.agent/CheatSheet.md +51 -16
  2. package/.agent/README.md +4 -4
  3. package/.agent/agents/README.md +8 -1
  4. package/.agent/agents/pr-reviewer.md +259 -0
  5. package/.agent/checklists/README.md +2 -1
  6. package/.agent/checklists/pre-commit.md +1 -1
  7. package/.agent/checklists/session-end.md +1 -1
  8. package/.agent/checklists/session-start.md +1 -1
  9. package/.agent/checklists/task-complete.md +1 -1
  10. package/.agent/commands/README.md +130 -119
  11. package/.agent/commands/help.md +36 -19
  12. package/.agent/commands/pr-describe.md +65 -0
  13. package/.agent/commands/pr-fix.md +45 -0
  14. package/.agent/commands/pr-merge.md +45 -0
  15. package/.agent/commands/pr-review.md +50 -0
  16. package/.agent/commands/pr-split.md +54 -0
  17. package/.agent/commands/pr-status.md +56 -0
  18. package/.agent/commands/pr.md +58 -30
  19. package/.agent/engine/loading-rules.json +5 -0
  20. package/.agent/hooks/README.md +9 -5
  21. package/.agent/manifest.json +39 -6
  22. package/.agent/rules/agent-upgrade-policy.md +56 -0
  23. package/.agent/session-context.md +1 -1
  24. package/.agent/skills/README.md +4 -2
  25. package/.agent/skills/pr-toolkit/SKILL.md +467 -0
  26. package/.agent/skills/production-readiness/SKILL.md +3 -3
  27. package/.agent/workflows/README.md +13 -6
  28. package/.agent/workflows/deploy.md +2 -1
  29. package/.agent/workflows/pr-fix.md +305 -0
  30. package/.agent/workflows/pr-merge.md +242 -0
  31. package/.agent/workflows/pr-review.md +312 -0
  32. package/.agent/workflows/pr-split.md +263 -0
  33. package/.agent/workflows/pr.md +116 -26
  34. package/.agent/workflows/preflight.md +2 -2
  35. package/.agent/workflows/upgrade.md +196 -0
  36. package/README.md +48 -35
  37. package/package.json +2 -2
@@ -0,0 +1,56 @@
1
+ ---
2
+ description: Triage pull requests with CI status, staleness detection, and dependency readiness
3
+ ---
4
+
5
+ # /pr-status Command
6
+
7
+ Quick triage view for one or more pull requests — CI status, review state, staleness, dependency readiness, and merge eligibility at a glance.
8
+
9
+ ## Usage
10
+
11
+ ```
12
+ /pr-status # All open PRs in current repo
13
+ /pr-status #<number> # Single PR status
14
+ /pr-status <url> # PR at GitHub URL
15
+ /pr-status <owner/repo> # All open PRs in specified repo
16
+ /pr-status #<number> --deps # Show dependency chain status
17
+ ```
18
+
19
+ ## Examples
20
+
21
+ ```
22
+ /pr-status # Triage all open PRs
23
+ /pr-status #42 # Status of PR #42
24
+ /pr-status https://github.com/org/repo/pull/10
25
+ /pr-status deelmarkt/app # All open PRs in deelmarkt/app
26
+ /pr-status #42 --deps # Dependency chain for PR #42
27
+ ```
28
+
29
+ ## What It Does
30
+
31
+ 1. Fetches PR metadata (state, reviews, checks, labels)
32
+ 2. Classifies CI status (passing / failing / pending / none)
33
+ 3. Detects staleness (days since last update, sync status with target)
34
+ 4. Validates dependency chain (`Depends-On:` references)
35
+ 5. Calculates merge readiness score (0-100)
36
+ 6. Outputs a triage dashboard with actionable next steps
37
+
38
+ ## Output
39
+
40
+ ```
41
+ PR #42 — feat(auth): add OAuth2 provider
42
+ ├─ Status: OPEN
43
+ ├─ Reviews: 1/1 APPROVED
44
+ ├─ CI: ✓ All checks passing (3/3)
45
+ ├─ Staleness: Fresh (updated 2h ago, in sync with main)
46
+ ├─ Dependencies: #40 MERGED, #41 OPEN (blocking)
47
+ ├─ Merge Ready: No — dependency #41 not yet merged
48
+ └─ Next: Merge #41 first, then this PR is ready
49
+ ```
50
+
51
+ ## Related
52
+
53
+ - `/pr` — Create a pull request
54
+ - `/pr-review` — Review a pull request
55
+ - `/pr-merge` — Merge a pull request safely
56
+ - `/pr-describe` — Auto-generate PR description
@@ -1,30 +1,58 @@
1
- ---
2
- description: Create and manage pull requests
3
- ---
4
-
5
- # /pr Command
6
-
7
- Create, review, or manage pull requests.
8
-
9
- ## Usage
10
-
11
- ```
12
- /pr create # Create new PR
13
- /pr review <number> # Review existing PR
14
- /pr update # Update PR description
15
- ```
16
-
17
- ## Examples
18
-
19
- ```
20
- /pr create
21
- /pr review 123
22
- /pr update with latest changes
23
- ```
24
-
25
- ## PR Template
26
-
27
- - **Title**: Clear, conventional commit style
28
- - **Description**: What changes were made
29
- - **Testing**: How to test the changes
30
- - **Checklist**: Required checks completed
1
+ ---
2
+ description: Create production-grade pull requests with branch validation, size guards, and CI verification
3
+ ---
4
+
5
+ # /pr Command
6
+
7
+ Create pull requests with branch strategy validation, size/scope guards, pre-flight checks, and CI verification.
8
+
9
+ ## Usage
10
+
11
+ ```
12
+ /pr # Create PR targeting default branch
13
+ /pr [target] # Create PR targeting specific branch (e.g., /pr dev)
14
+ /pr --draft # Create PR as draft
15
+ /pr --draft [target] # Create draft PR targeting specific branch
16
+ ```
17
+
18
+ ## Examples
19
+
20
+ ```
21
+ /pr # Auto-detects target via branch strategy
22
+ /pr dev # Target dev branch explicitly
23
+ /pr --draft # Create draft PR
24
+ /pr main # Target main (validated against strategy)
25
+ ```
26
+
27
+ ## What It Does
28
+
29
+ 1. Detects branch strategy (GitFlow / Trunk-Based) and validates target
30
+ 2. Syncs with target branch and resolves conflicts
31
+ 3. Checks PR size (XS-XL) and scope coherence
32
+ 4. Runs pre-flight `/review` pipeline (lint, types, tests, security, build)
33
+ 5. Generates conventional commit title from branch name
34
+ 6. Creates PR with structured body (Summary, Changes, Test Plan)
35
+ 7. Monitors CI pipeline status
36
+
37
+ ## PR Toolkit
38
+
39
+ | Command | Purpose |
40
+ | :--- | :--- |
41
+ | `/pr` | Create a pull request |
42
+ | `/pr-review #N` | Review an existing PR |
43
+ | `/pr-fix #N` | Fix PR based on review comments |
44
+ | `/pr-merge #N` | Merge PR safely with validation |
45
+ | `/pr-split` | Split oversized PR into sub-PRs |
46
+ | `/pr-status` | Triage PRs with merge readiness |
47
+ | `/pr-describe` | Auto-generate PR description |
48
+
49
+ ## Related
50
+
51
+ - `/pr-review` — Review a pull request
52
+ - `/pr-fix` — Fix issues from review comments
53
+ - `/pr-merge` — Merge with dependency validation
54
+ - `/pr-split` — Split oversized PRs
55
+ - `/pr-status` — Check merge readiness
56
+ - `/pr-describe` — Auto-generate description
57
+ - `/review` — Local code quality gates
58
+ - `/preflight` — Production readiness check
@@ -126,6 +126,11 @@
126
126
  { "workflow": "ui-ux-pro-max", "loadAgents": [], "loadSkills": ["ui-ux-pro-max", "frontend-patterns", "mobile-design"], "bindingType": "inferred" },
127
127
  { "workflow": "test", "loadAgents": [], "loadSkills": ["testing-patterns", "webapp-testing"], "bindingType": "inferred" },
128
128
  { "workflow": "review", "loadAgents": [], "loadSkills": ["verification-loop"], "bindingType": "inferred" },
129
+ { "workflow": "pr", "loadAgents": ["pr-reviewer"], "loadSkills": ["git-workflow", "pr-toolkit", "verification-loop"], "bindingType": "explicit" },
130
+ { "workflow": "pr-review", "loadAgents": ["pr-reviewer"], "loadSkills": ["pr-toolkit", "verification-loop"], "bindingType": "explicit" },
131
+ { "workflow": "pr-fix", "loadAgents": ["pr-reviewer"], "loadSkills": ["pr-toolkit", "verification-loop"], "bindingType": "explicit" },
132
+ { "workflow": "pr-merge", "loadAgents": ["pr-reviewer"], "loadSkills": ["pr-toolkit", "verification-loop"], "bindingType": "explicit" },
133
+ { "workflow": "pr-split", "loadAgents": ["pr-reviewer"], "loadSkills": ["pr-toolkit"], "bindingType": "explicit" },
129
134
  { "workflow": "deploy", "loadAgents": [], "loadSkills": ["deployment-procedures"], "bindingType": "inferred" },
130
135
  { "workflow": "debug", "loadAgents": [], "loadSkills": ["debugging-strategies"], "bindingType": "inferred" },
131
136
  {
@@ -1,7 +1,7 @@
1
1
  # Antigravity AI Kit — Hooks
2
2
 
3
3
  > **Purpose**: Event-driven automation triggered by specific actions
4
- > **Count**: 4 Core Hooks + Templates
4
+ > **Count**: 8 Event Hooks
5
5
 
6
6
  ---
7
7
 
@@ -15,10 +15,14 @@ Hooks are automated actions triggered by events during development sessions. The
15
15
 
16
16
  | Hook | Trigger | Action | Status |
17
17
  | :----------------- | :---------------- | :-------------------- | :----- |
18
- | `session-start` | Session begins | Load context | Active |
19
- | `session-end` | Session ends | Save state | Active |
20
- | `pre-commit` | Before git commit | Run verification | Active |
21
- | `secret-detection` | After file write | Block exposed secrets | Active |
18
+ | `session-start` | Session begins | Load context | Active |
19
+ | `session-end` | Session ends | Save state | Active |
20
+ | `pre-commit` | Before git commit | Run verification | Active |
21
+ | `secret-detection` | After file write | Block exposed secrets | Active |
22
+ | `phase-transition` | Workflow phase change| Enforce SDLC gates | Active |
23
+ | `sprint-checkpoint` | Sprint milestone | Progress verification | Active |
24
+ | `plan-complete` | Plan finalized | Plan validation trigger | Active |
25
+ | `task-complete` | Task finished | Completion verification | Active |
22
26
 
23
27
  ---
24
28
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "kitVersion": "3.7.0",
3
+ "kitVersion": "3.9.0",
4
4
  "lastAuditedAt": null,
5
5
  "description": "Antigravity AI Kit — Trust-Grade AI Development Framework",
6
6
  "repository": "https://github.com/besync-labs/antigravity-ai-kit",
7
7
  "capabilities": {
8
8
  "agents": {
9
- "count": 19,
9
+ "count": 20,
10
10
  "items": [
11
11
  {
12
12
  "name": "architect",
@@ -78,6 +78,11 @@
78
78
  "file": "agents/planner.md",
79
79
  "domain": "Task breakdown, Socratic analysis"
80
80
  },
81
+ {
82
+ "name": "pr-reviewer",
83
+ "file": "agents/pr-reviewer.md",
84
+ "domain": "PR review, branch strategy, code quality"
85
+ },
81
86
  {
82
87
  "name": "refactor-cleaner",
83
88
  "file": "agents/refactor-cleaner.md",
@@ -106,11 +111,11 @@
106
111
  ]
107
112
  },
108
113
  "commands": {
109
- "count": 31,
114
+ "count": 37,
110
115
  "directory": "commands/"
111
116
  },
112
117
  "skills": {
113
- "count": 33,
118
+ "count": 34,
114
119
  "items": [
115
120
  {
116
121
  "name": "api-patterns",
@@ -208,6 +213,10 @@
208
213
  "name": "plan-writing",
209
214
  "directory": "skills/plan-writing/"
210
215
  },
216
+ {
217
+ "name": "pr-toolkit",
218
+ "directory": "skills/pr-toolkit/"
219
+ },
211
220
  {
212
221
  "name": "production-readiness",
213
222
  "directory": "skills/production-readiness/"
@@ -247,7 +256,7 @@
247
256
  ]
248
257
  },
249
258
  "workflows": {
250
- "count": 16,
259
+ "count": 21,
251
260
  "items": [
252
261
  {
253
262
  "name": "brainstorm",
@@ -281,6 +290,22 @@
281
290
  "name": "pr",
282
291
  "file": "workflows/pr.md"
283
292
  },
293
+ {
294
+ "name": "pr-review",
295
+ "file": "workflows/pr-review.md"
296
+ },
297
+ {
298
+ "name": "pr-fix",
299
+ "file": "workflows/pr-fix.md"
300
+ },
301
+ {
302
+ "name": "pr-merge",
303
+ "file": "workflows/pr-merge.md"
304
+ },
305
+ {
306
+ "name": "pr-split",
307
+ "file": "workflows/pr-split.md"
308
+ },
284
309
  {
285
310
  "name": "preflight",
286
311
  "file": "workflows/preflight.md"
@@ -312,12 +337,20 @@
312
337
  {
313
338
  "name": "ui-ux-pro-max",
314
339
  "file": "workflows/ui-ux-pro-max.md"
340
+ },
341
+ {
342
+ "name": "upgrade",
343
+ "file": "workflows/upgrade.md"
315
344
  }
316
345
  ]
317
346
  },
318
347
  "rules": {
319
- "count": 8,
348
+ "count": 9,
320
349
  "items": [
350
+ {
351
+ "name": "agent-upgrade-policy",
352
+ "file": "rules/agent-upgrade-policy.md"
353
+ },
321
354
  {
322
355
  "name": "architecture",
323
356
  "file": "rules/architecture.md"
@@ -0,0 +1,56 @@
1
+ # Agent Upgrade Policy
2
+
3
+ > **Priority**: CRITICAL — Inviolable
4
+ > **Scope**: All AI Agent interactions related to framework initialization, upgrading, and state mutation.
5
+
6
+ ---
7
+
8
+ ## 1. The Preservation Contract
9
+
10
+ The Antigravity AI Kit exists organically alongside user code. User customizations must survive framework upgrades.
11
+
12
+ The following files and directories are **STRICTLY PROTECTED**:
13
+
14
+ | Protected Item | Type | Reason |
15
+ | :--- | :--- | :--- |
16
+ | `.agent/session-state.json` | File | Active session metadata |
17
+ | `.agent/session-context.md` | File | Session narrative context |
18
+ | `.agent/identity.json` | File | User/project identity (may contain PII) |
19
+ | `.agent/rules/` | Directory | User-customized governance rules |
20
+ | `.agent/checklists/` | Directory | User-customized quality gates |
21
+ | `.agent/decisions/` | Directory | Architecture Decision Records |
22
+ | `.agent/contexts/` | Directory | Learning data and plan quality logs |
23
+
24
+ This is the **canonical list**. The `/upgrade` workflow references this list — do not duplicate or abbreviate it elsewhere.
25
+
26
+ ---
27
+
28
+ ## 2. Non-Destructive Upgrades Only
29
+
30
+ | Command | Purpose | Safety |
31
+ | :--- | :--- | :--- |
32
+ | `ag-kit update` | Non-destructive AST merger | Safe — preserves protected items |
33
+ | `ag-kit update --dry-run` | Preview upgrade changes | Safe — read-only |
34
+ | `init --force` | Catastrophic repair | **DESTRUCTIVE** — wipes protected items |
35
+
36
+ - **Mandated**: Use `ag-kit update` for all routine upgrades
37
+ - **Prohibited**: Never use `init --force` for routine upgrades. This is a last-resort catastrophic repair command that wipes protected files
38
+
39
+ ---
40
+
41
+ ## 3. Upgrade Governance
42
+
43
+ The `/upgrade` workflow follows the standard EWS v1.0 governance model:
44
+
45
+ - **Human confirmation required** before executing `ag-kit update`
46
+ - **Post-upgrade verification** via `ag-kit verify` is mandatory
47
+ - **Preservation verification** — all 7 protected items must be confirmed intact after upgrade
48
+ - **Rollback available** — `git checkout -- .agent/` restores pre-upgrade state if uncommitted
49
+
50
+ ---
51
+
52
+ ## Related Resources
53
+
54
+ - **Workflow**: `.agent/workflows/upgrade.md` (`/upgrade`)
55
+ - **Skill**: `.agent/skills/verification-loop/SKILL.md`
56
+ - **See also**: `.agent/rules/security.md` (secrets in upgrade payloads), `.agent/rules/git-workflow.md` (commit conventions after upgrade)
@@ -32,7 +32,7 @@
32
32
 
33
33
  **Branch**: —
34
34
  **Repository**: —
35
- **Framework**: Antigravity AI Kit v3.7.0
35
+ **Framework**: Antigravity AI Kit v3.9.0
36
36
 
37
37
  ### Key File Locations
38
38
 
@@ -1,7 +1,7 @@
1
1
  # Antigravity AI Kit — Skills
2
2
 
3
3
  > **Purpose**: Workflow definitions and domain knowledge extensions
4
- > **Count**: 32 Skills (6 Operational + 4 Orchestration + 13 Domain + 9 Development)
4
+ > **Count**: 34 Skills (7 Operational + 4 Orchestration + 13 Domain + 10 Development)
5
5
 
6
6
  ---
7
7
 
@@ -34,6 +34,7 @@ Skills are automatically loaded based on task context. Agents invoke relevant sk
34
34
  | [strategic-compact](strategic-compact/SKILL.md) | Context window management |
35
35
  | [eval-harness](eval-harness/SKILL.md) | Performance evaluation |
36
36
  | [context-budget](context-budget/SKILL.md) | LLM token budget mgmt |
37
+ | [plan-validation](plan-validation/SKILL.md) | Plan quality gate |
37
38
  | [production-readiness](production-readiness/SKILL.md) | Production readiness audits |
38
39
 
39
40
  ---
@@ -81,7 +82,7 @@ Skills are automatically loaded based on task context. Agents invoke relevant sk
81
82
 
82
83
  ---
83
84
 
84
- ## Development Skills (9)
85
+ ## Development Skills (10)
85
86
 
86
87
  | Skill | Purpose |
87
88
  | :------------------------------------------------------ | :---------------------------- |
@@ -92,6 +93,7 @@ Skills are automatically loaded based on task context. Agents invoke relevant sk
92
93
  | [performance-profiling](performance-profiling/SKILL.md) | Core Web Vitals optimization |
93
94
  | [brainstorming](brainstorming/SKILL.md) | Socratic discovery protocol |
94
95
  | [plan-writing](plan-writing/SKILL.md) | Structured task breakdown |
96
+ | [pr-toolkit](pr-toolkit/SKILL.md) | PR lifecycle domain knowledge |
95
97
  | [shell-conventions](shell-conventions/SKILL.md) | PowerShell/Bash conventions |
96
98
  | [ui-ux-pro-max](ui-ux-pro-max/SKILL.md) | Premium UI/UX design system |
97
99