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
|
@@ -1,119 +1,130 @@
|
|
|
1
|
-
# Antigravity AI Kit — Commands
|
|
2
|
-
|
|
3
|
-
> **Purpose**: Slash commands for quick access to common operations
|
|
4
|
-
> **Count**:
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
Commands are quick invocations that trigger specific actions or workflows. Type `/command-name` in chat to use.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Command Categories
|
|
15
|
-
|
|
16
|
-
### Core Workflow
|
|
17
|
-
|
|
18
|
-
| Command | Description |
|
|
19
|
-
| :----------- | :------------------------- |
|
|
20
|
-
| `/plan` | Create implementation plan |
|
|
21
|
-
| `/implement` | Execute the approved plan |
|
|
22
|
-
| `/verify` | Run all quality gates |
|
|
23
|
-
| `/status` | Check project status |
|
|
24
|
-
|
|
25
|
-
### Development
|
|
26
|
-
|
|
27
|
-
| Command | Description |
|
|
28
|
-
| :---------- | :--------------------------------- |
|
|
29
|
-
| `/build` | Build a new feature from scratch |
|
|
30
|
-
| `/fix` | Fix linting, type, or build errors |
|
|
31
|
-
| `/debug` | Systematic debugging process |
|
|
32
|
-
| `/refactor` | Improve code quality |
|
|
33
|
-
| `/cook` | Full scratch-to-done workflow |
|
|
34
|
-
|
|
35
|
-
### Documentation & Git
|
|
36
|
-
|
|
37
|
-
| Command | Description |
|
|
38
|
-
| :----------- | :---------------------------------- |
|
|
39
|
-
| `/doc` | Generate documentation |
|
|
40
|
-
| `/adr` | Create Architecture Decision Record |
|
|
41
|
-
| `/changelog` | Generate changelog from commits |
|
|
42
|
-
| `/git` | Git operations with best practices |
|
|
43
|
-
| `/pr` | Create
|
|
44
|
-
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
| Command
|
|
48
|
-
|
|
|
49
|
-
| `/
|
|
50
|
-
| `/
|
|
51
|
-
| `/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
| `/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
| `/
|
|
69
|
-
| `/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
| `/
|
|
78
|
-
| `/
|
|
79
|
-
| `/
|
|
80
|
-
| `/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
##
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1
|
+
# Antigravity AI Kit — Commands
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Slash commands for quick access to common operations
|
|
4
|
+
> **Count**: 37 Commands
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Commands are quick invocations that trigger specific actions or workflows. Type `/command-name` in chat to use.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Command Categories
|
|
15
|
+
|
|
16
|
+
### Core Workflow
|
|
17
|
+
|
|
18
|
+
| Command | Description |
|
|
19
|
+
| :----------- | :------------------------- |
|
|
20
|
+
| `/plan` | Create implementation plan |
|
|
21
|
+
| `/implement` | Execute the approved plan |
|
|
22
|
+
| `/verify` | Run all quality gates |
|
|
23
|
+
| `/status` | Check project status |
|
|
24
|
+
|
|
25
|
+
### Development
|
|
26
|
+
|
|
27
|
+
| Command | Description |
|
|
28
|
+
| :---------- | :--------------------------------- |
|
|
29
|
+
| `/build` | Build a new feature from scratch |
|
|
30
|
+
| `/fix` | Fix linting, type, or build errors |
|
|
31
|
+
| `/debug` | Systematic debugging process |
|
|
32
|
+
| `/refactor` | Improve code quality |
|
|
33
|
+
| `/cook` | Full scratch-to-done workflow |
|
|
34
|
+
|
|
35
|
+
### Documentation & Git
|
|
36
|
+
|
|
37
|
+
| Command | Description |
|
|
38
|
+
| :----------- | :---------------------------------- |
|
|
39
|
+
| `/doc` | Generate documentation |
|
|
40
|
+
| `/adr` | Create Architecture Decision Record |
|
|
41
|
+
| `/changelog` | Generate changelog from commits |
|
|
42
|
+
| `/git` | Git operations with best practices |
|
|
43
|
+
| `/pr` | Create production-grade pull requests |
|
|
44
|
+
|
|
45
|
+
### PR Toolkit
|
|
46
|
+
|
|
47
|
+
| Command | Description |
|
|
48
|
+
| :------------- | :---------------------------------------------- |
|
|
49
|
+
| `/pr-review` | Review a PR with senior engineering expertise |
|
|
50
|
+
| `/pr-fix` | Fix PR issues based on review comments |
|
|
51
|
+
| `/pr-merge` | Merge PR safely with dependency validation |
|
|
52
|
+
| `/pr-split` | Split oversized PRs into focused sub-PRs |
|
|
53
|
+
| `/pr-status` | Triage PRs with CI, staleness, and merge readiness |
|
|
54
|
+
| `/pr-describe` | Auto-generate PR title, summary, and labels |
|
|
55
|
+
|
|
56
|
+
### Exploration & Research
|
|
57
|
+
|
|
58
|
+
| Command | Description |
|
|
59
|
+
| :---------- | :--------------------------------- |
|
|
60
|
+
| `/scout` | Explore and understand codebase |
|
|
61
|
+
| `/research` | Research technologies or solutions |
|
|
62
|
+
| `/ask` | Ask questions about code |
|
|
63
|
+
|
|
64
|
+
### Quality & Security
|
|
65
|
+
|
|
66
|
+
| Command | Description |
|
|
67
|
+
| :--------------- | :------------------------------------ |
|
|
68
|
+
| `/code-review` | Run code review |
|
|
69
|
+
| `/tdd` | Test-driven development workflow |
|
|
70
|
+
| `/security-scan` | Security audit and vulnerability scan |
|
|
71
|
+
| `/perf` | Performance analysis and optimization |
|
|
72
|
+
|
|
73
|
+
### Integration & Deployment
|
|
74
|
+
|
|
75
|
+
| Command | Description |
|
|
76
|
+
| :----------- | :------------------------------ |
|
|
77
|
+
| `/integrate` | Third-party service integration |
|
|
78
|
+
| `/db` | Database schema and migrations |
|
|
79
|
+
| `/deploy` | Deploy to target environment |
|
|
80
|
+
| `/design` | UI/UX design specifications |
|
|
81
|
+
|
|
82
|
+
### Context Management
|
|
83
|
+
|
|
84
|
+
| Command | Description |
|
|
85
|
+
| :------------ | :---------------------------- |
|
|
86
|
+
| `/learn` | Extract patterns from session |
|
|
87
|
+
| `/checkpoint` | Save progress checkpoint |
|
|
88
|
+
| `/compact` | Compress context for memory |
|
|
89
|
+
| `/eval` | Evaluate metrics |
|
|
90
|
+
| `/setup` | Configure project with kit |
|
|
91
|
+
| `/help` | Show available commands |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Command Format
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
---
|
|
99
|
+
description: What this command does
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
# /command-name Command
|
|
103
|
+
|
|
104
|
+
Brief description.
|
|
105
|
+
|
|
106
|
+
## Usage
|
|
107
|
+
|
|
108
|
+
\`\`\`
|
|
109
|
+
/command-name [options]
|
|
110
|
+
\`\`\`
|
|
111
|
+
|
|
112
|
+
## Examples
|
|
113
|
+
|
|
114
|
+
\`\`\`
|
|
115
|
+
/command-name example usage
|
|
116
|
+
\`\`\`
|
|
117
|
+
|
|
118
|
+
## Process
|
|
119
|
+
|
|
120
|
+
1. Step 1
|
|
121
|
+
2. Step 2
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Creating Custom Commands
|
|
127
|
+
|
|
128
|
+
1. Create `commands/my-command.md`
|
|
129
|
+
2. Add frontmatter with `description`
|
|
130
|
+
3. Define usage, examples, and process
|
package/.agent/commands/help.md
CHANGED
|
@@ -10,10 +10,10 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
|
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
/help # Quick overview of all capabilities
|
|
13
|
-
/help commands # All
|
|
14
|
-
/help workflows # All
|
|
15
|
-
/help agents # All
|
|
16
|
-
/help skills # All
|
|
13
|
+
/help commands # All 37 slash commands with descriptions
|
|
14
|
+
/help workflows # All 21 workflows with descriptions
|
|
15
|
+
/help agents # All 20 AI agents with domains
|
|
16
|
+
/help skills # All 34 skill modules
|
|
17
17
|
/help rules # Governance rules
|
|
18
18
|
/help checklists # Quality gate checklists
|
|
19
19
|
/help cli # Terminal CLI commands (ag-kit)
|
|
@@ -24,15 +24,15 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
|
|
|
24
24
|
|
|
25
25
|
## Quick Overview
|
|
26
26
|
|
|
27
|
-
**Antigravity AI Kit v3.
|
|
27
|
+
**Antigravity AI Kit v3.9.0** — Trust-Grade AI Development Framework
|
|
28
28
|
|
|
29
29
|
| Category | Count | Description |
|
|
30
30
|
|:---------|:------|:------------|
|
|
31
|
-
| ⌨️ Commands |
|
|
32
|
-
| 🔄 Workflows |
|
|
33
|
-
| 🤖 Agents |
|
|
34
|
-
| 🛠️ Skills |
|
|
35
|
-
| ⚖️ Rules |
|
|
31
|
+
| ⌨️ Commands | 37 | Slash commands for every development task |
|
|
32
|
+
| 🔄 Workflows | 21 | Multi-step development lifecycles |
|
|
33
|
+
| 🤖 Agents | 20 | Specialized AI roles for delegation |
|
|
34
|
+
| 🛠️ Skills | 34 | Domain knowledge modules |
|
|
35
|
+
| ⚖️ Rules | 9 | Modular governance constraints |
|
|
36
36
|
| ✅ Checklists | 4 | Quality gate checklists |
|
|
37
37
|
| ⚙️ Runtime | 29 | Engine modules (governance, reputation, self-healing) |
|
|
38
38
|
|
|
@@ -53,7 +53,7 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
|
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
|
-
## Commands (
|
|
56
|
+
## Commands (37)
|
|
57
57
|
|
|
58
58
|
### Core Workflow
|
|
59
59
|
|
|
@@ -93,7 +93,13 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
|
|
|
93
93
|
| `/adr` | Create Architecture Decision Record |
|
|
94
94
|
| `/changelog` | Generate changelog from commits |
|
|
95
95
|
| `/git` | Git operations with best practices |
|
|
96
|
-
| `/pr` | Create
|
|
96
|
+
| `/pr` | Create production-grade pull requests |
|
|
97
|
+
| `/pr-review` | Review a pull request with senior engineering expertise |
|
|
98
|
+
| `/pr-fix` | Fix PR issues based on review comments |
|
|
99
|
+
| `/pr-merge` | Merge PR safely with dependency validation |
|
|
100
|
+
| `/pr-split` | Split oversized PRs into focused sub-PRs |
|
|
101
|
+
| `/pr-status` | Triage PRs with CI, staleness, and merge readiness |
|
|
102
|
+
| `/pr-describe` | Auto-generate PR title, summary, and labels |
|
|
97
103
|
| `/checkpoint` | Save progress checkpoint for session continuity |
|
|
98
104
|
|
|
99
105
|
### Exploration & Research
|
|
@@ -123,7 +129,7 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
|
|
|
123
129
|
|
|
124
130
|
---
|
|
125
131
|
|
|
126
|
-
## Workflows (
|
|
132
|
+
## Workflows (21)
|
|
127
133
|
|
|
128
134
|
Workflows are multi-step development lifecycles. Use them with the `/` prefix.
|
|
129
135
|
|
|
@@ -136,6 +142,12 @@ Workflows are multi-step development lifecycles. Use them with the `/` prefix.
|
|
|
136
142
|
| `/enhance` | Iterative feature improvement | Analyze → plan → implement → validate |
|
|
137
143
|
| `/orchestrate` | Multi-agent task coordination | Decompose → delegate → merge → verify |
|
|
138
144
|
| `/plan` | Implementation planning | Research → design → breakdown → verify |
|
|
145
|
+
| `/pr` | Production-grade PR creation | Branch validation → size guard → review → push → CI |
|
|
146
|
+
| `/pr-review` | Multi-perspective PR review | Fetch → analyze → 6-perspective review → post verdict |
|
|
147
|
+
| `/pr-fix` | Fix PR based on review comments | Fetch reviews → prioritize → fix → verify → push |
|
|
148
|
+
| `/pr-merge` | Safe PR merge | Validate → verify prerequisites → merge → post-merge checks |
|
|
149
|
+
| `/pr-split` | Split oversized PRs | Analyze → categorize → split plan → create sub-PRs |
|
|
150
|
+
| `/preflight` | Production readiness audit | 10-domain assessment → scoring → verdict |
|
|
139
151
|
| `/preview` | Local dev server management | Start → verify → iterate → stop |
|
|
140
152
|
| `/quality-gate` | Pre-task validation protocol | Market research → gap analysis → ethics review |
|
|
141
153
|
| `/retrospective` | Sprint audit and review | Metrics → findings → action items |
|
|
@@ -143,10 +155,11 @@ Workflows are multi-step development lifecycles. Use them with the `/` prefix.
|
|
|
143
155
|
| `/status` | Project state overview | Session → git → health → capabilities |
|
|
144
156
|
| `/test` | Systematic test writing | Strategy → write → run → coverage |
|
|
145
157
|
| `/ui-ux-pro-max` | Premium UI/UX design | Style → palette → typography → implement |
|
|
158
|
+
| `/upgrade` | Non-destructive framework updates | Backup → update → verify → preserve |
|
|
146
159
|
|
|
147
160
|
---
|
|
148
161
|
|
|
149
|
-
## Agents (
|
|
162
|
+
## Agents (20)
|
|
150
163
|
|
|
151
164
|
Agents are specialized AI roles. They are automatically activated based on task context, or you can request a specific agent.
|
|
152
165
|
|
|
@@ -166,6 +179,7 @@ Agents are specialized AI roles. They are automatically activated based on task
|
|
|
166
179
|
| `mobile-developer` | React Native, Expo mobile development |
|
|
167
180
|
| `performance-optimizer` | Core Web Vitals, profiling, optimization |
|
|
168
181
|
| `planner` | Task breakdown, Socratic analysis |
|
|
182
|
+
| `pr-reviewer` | PR review, branch strategy, code quality |
|
|
169
183
|
| `refactor-cleaner` | Dead code cleanup, code improvement |
|
|
170
184
|
| `reliability-engineer` | SRE, production readiness, SLA monitoring |
|
|
171
185
|
| `security-reviewer` | Vulnerability analysis, OWASP compliance |
|
|
@@ -174,7 +188,7 @@ Agents are specialized AI roles. They are automatically activated based on task
|
|
|
174
188
|
|
|
175
189
|
---
|
|
176
190
|
|
|
177
|
-
## Skills (
|
|
191
|
+
## Skills (34)
|
|
178
192
|
|
|
179
193
|
Skills are domain knowledge modules that agents use. They are loaded automatically based on task context.
|
|
180
194
|
|
|
@@ -184,17 +198,18 @@ Skills are domain knowledge modules that agents use. They are loaded automatical
|
|
|
184
198
|
| **Frontend** | `frontend-patterns`, `ui-ux-pro-max`, `mobile-design`, `i18n-localization` |
|
|
185
199
|
| **Backend** | `nodejs-patterns`, `typescript-expert`, `security-practices` |
|
|
186
200
|
| **Testing** | `testing-patterns`, `webapp-testing`, `eval-harness` |
|
|
187
|
-
| **DevOps** | `deployment-procedures`, `git-workflow`, `shell-conventions` |
|
|
201
|
+
| **DevOps** | `deployment-procedures`, `git-workflow`, `pr-toolkit`, `shell-conventions` |
|
|
188
202
|
| **AI & Orchestration** | `intelligent-routing`, `parallel-agents`, `mcp-integration`, `context-budget`, `behavioral-modes` |
|
|
189
|
-
| **Planning** | `brainstorming`, `plan-writing`, `strategic-compact`, `continuous-learning` |
|
|
203
|
+
| **Planning** | `brainstorming`, `plan-writing`, `plan-validation`, `strategic-compact`, `continuous-learning` |
|
|
190
204
|
| **Performance** | `performance-profiling` |
|
|
205
|
+
| **Production** | `production-readiness` |
|
|
191
206
|
| **Scaffolding** | `app-builder` |
|
|
192
207
|
| **Debugging** | `debugging-strategies` |
|
|
193
208
|
| **Verification** | `verification-loop` |
|
|
194
209
|
|
|
195
210
|
---
|
|
196
211
|
|
|
197
|
-
## Rules (
|
|
212
|
+
## Rules (9)
|
|
198
213
|
|
|
199
214
|
Rules are modular governance constraints that all agents must follow.
|
|
200
215
|
|
|
@@ -208,10 +223,11 @@ Rules are modular governance constraints that all agents must follow.
|
|
|
208
223
|
| `sprint-tracking` | ROADMAP.md as SSOT, session protocols |
|
|
209
224
|
| `quality-gate` | Pre-task validation and quality standards |
|
|
210
225
|
| `architecture` | System design patterns and ADR governance |
|
|
226
|
+
| `agent-upgrade-policy` | Framework upgrade preservation rules |
|
|
211
227
|
|
|
212
228
|
---
|
|
213
229
|
|
|
214
|
-
## Checklists (
|
|
230
|
+
## Checklists (4)
|
|
215
231
|
|
|
216
232
|
Checklists are quality gates run at specific lifecycle moments.
|
|
217
233
|
|
|
@@ -220,6 +236,7 @@ Checklists are quality gates run at specific lifecycle moments.
|
|
|
220
236
|
| `session-start` | Beginning of each session | Read context, verify git, check dependencies |
|
|
221
237
|
| `session-end` | End of each session | Update ROADMAP, CHANGELOG, commit tracking files |
|
|
222
238
|
| `pre-commit` | Before git commit | Tests pass, lint clean, no secrets, build succeeds |
|
|
239
|
+
| `task-complete` | After task completion | Verification, documentation, cleanup |
|
|
223
240
|
|
|
224
241
|
---
|
|
225
242
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Auto-generate PR title, summary, and labels from diff analysis
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-describe Command
|
|
6
|
+
|
|
7
|
+
Automatically generate a conventional-commit title, structured summary, change categorization, and suggested labels by analyzing the PR diff.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-describe # Describe current branch diff
|
|
13
|
+
/pr-describe #<number> # Describe existing PR
|
|
14
|
+
/pr-describe <url> # Describe PR at GitHub URL
|
|
15
|
+
/pr-describe #<number> --update # Update existing PR description in-place
|
|
16
|
+
/pr-describe --format brief # Short summary only
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-describe # Generate description for current branch
|
|
23
|
+
/pr-describe #42 # Generate description for PR #42
|
|
24
|
+
/pr-describe #42 --update # Overwrite PR #42's description
|
|
25
|
+
/pr-describe --format brief # One-paragraph summary
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## What It Does
|
|
29
|
+
|
|
30
|
+
1. Analyzes the full diff (commits, file changes, additions/deletions)
|
|
31
|
+
2. Detects the primary change type (feat, fix, refactor, chore, etc.)
|
|
32
|
+
3. Generates conventional-commit title from branch name and diff content
|
|
33
|
+
4. Creates structured body (Summary, Changes by Category, Test Plan)
|
|
34
|
+
5. Suggests labels based on file types and change patterns
|
|
35
|
+
6. Optionally updates the PR description on GitHub
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
## Generated PR Description
|
|
41
|
+
|
|
42
|
+
**Title**: feat(auth): add OAuth2 provider support
|
|
43
|
+
|
|
44
|
+
**Summary**:
|
|
45
|
+
Adds Google and GitHub OAuth2 providers with PKCE flow,
|
|
46
|
+
token refresh, and session management.
|
|
47
|
+
|
|
48
|
+
**Changes**:
|
|
49
|
+
- Feature: 4 files (OAuth provider, token service, session middleware, config)
|
|
50
|
+
- Tests: 3 files (unit + integration for OAuth flow)
|
|
51
|
+
- Config: 1 file (environment variables for provider credentials)
|
|
52
|
+
|
|
53
|
+
**Labels**: `feature`, `auth`, `needs-review`
|
|
54
|
+
|
|
55
|
+
**Test Plan**:
|
|
56
|
+
- [ ] OAuth login flow with Google provider
|
|
57
|
+
- [ ] Token refresh after expiry
|
|
58
|
+
- [ ] Session persistence across browser restart
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Related
|
|
62
|
+
|
|
63
|
+
- `/pr` — Create a pull request (uses /pr-describe internally)
|
|
64
|
+
- `/pr-review` — Review a pull request
|
|
65
|
+
- `/pr-status` — Check PR merge readiness
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix pull request issues based on review comments
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-fix Command
|
|
6
|
+
|
|
7
|
+
Fix PR issues by fetching review comments, prioritizing by severity, implementing fixes, and pushing resolution.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-fix <url> # Fix PR at GitHub URL
|
|
13
|
+
/pr-fix <owner/repo>#<number> # Fix PR by repo and number
|
|
14
|
+
/pr-fix #<number> # Fix PR in current repo
|
|
15
|
+
/pr-fix #<number> --critical-only # Fix only CRITICAL findings
|
|
16
|
+
/pr-fix #<number> --dry-run # Show fix plan without implementing
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-fix https://github.com/org/repo/pull/42
|
|
23
|
+
/pr-fix deelmarkt/app#10
|
|
24
|
+
/pr-fix #5
|
|
25
|
+
/pr-fix #5 --critical-only
|
|
26
|
+
/pr-fix #5 --dry-run
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
1. Fetches all review comments and requested changes
|
|
32
|
+
2. Categorizes fixes by severity (P0-P3)
|
|
33
|
+
3. Checks out the PR branch
|
|
34
|
+
4. Implements fixes in priority order
|
|
35
|
+
5. Runs `/review` verification pipeline
|
|
36
|
+
6. Pushes fixes and posts resolution summary
|
|
37
|
+
7. Re-requests review from original reviewer
|
|
38
|
+
|
|
39
|
+
## Related
|
|
40
|
+
|
|
41
|
+
- `/pr-review` — Review a pull request
|
|
42
|
+
- `/pr` — Create a pull request
|
|
43
|
+
- `/pr-merge` — Merge with dependency validation
|
|
44
|
+
- `/pr-status` — Check merge readiness
|
|
45
|
+
- `/review` — Local code quality gates
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Merge a pull request safely with dependency validation and post-merge checks
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-merge Command
|
|
6
|
+
|
|
7
|
+
Safely merge a pull request after validating CI status, review approval, dependency chain, and branch strategy compliance. Includes post-merge verification and dependent PR notification.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-merge #<number> # Merge PR in current repo
|
|
13
|
+
/pr-merge <url> # Merge PR at GitHub URL
|
|
14
|
+
/pr-merge #<number> --squash # Force squash merge
|
|
15
|
+
/pr-merge #<number> --merge-commit # Force merge commit
|
|
16
|
+
/pr-merge #<number> --rebase # Force rebase merge
|
|
17
|
+
/pr-merge #<number> --dry-run # Validate merge readiness without merging
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
/pr-merge #42 # Merge with auto-detected strategy
|
|
24
|
+
/pr-merge #42 --squash # Squash merge
|
|
25
|
+
/pr-merge #42 --dry-run # Check if #42 is ready to merge
|
|
26
|
+
/pr-merge https://github.com/org/repo/pull/42
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
1. Validates PR state (open, mergeable, not blocked)
|
|
32
|
+
2. Verifies review approval and CI checks passing
|
|
33
|
+
3. Validates dependency chain (`Depends-On:` PRs all merged)
|
|
34
|
+
4. Checks branch strategy compliance (correct merge target)
|
|
35
|
+
5. Selects merge strategy (squash / merge commit / rebase)
|
|
36
|
+
6. Executes merge and deletes merged branch
|
|
37
|
+
7. Runs post-merge validation (CI on target branch)
|
|
38
|
+
8. Notifies dependent PRs that this dependency is resolved
|
|
39
|
+
|
|
40
|
+
## Related
|
|
41
|
+
|
|
42
|
+
- `/pr` — Create a pull request
|
|
43
|
+
- `/pr-review` — Review a pull request
|
|
44
|
+
- `/pr-status` — Check merge readiness
|
|
45
|
+
- `/pr-split` — Split oversized PR into sub-PRs
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review a pull request with Senior Staff Engineer expertise
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-review Command
|
|
6
|
+
|
|
7
|
+
Review any pull request with multi-perspective analysis covering PR hygiene, branch strategy, code quality, security, testing, and architecture.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-review <url> # Review PR at GitHub URL
|
|
13
|
+
/pr-review <owner/repo>#<number> # Review PR by repo and number
|
|
14
|
+
/pr-review #<number> # Review PR in current repo
|
|
15
|
+
/pr-review #<number> --local # Review locally only (don't post)
|
|
16
|
+
/pr-review #<number> --focus <area> # Focus on specific perspective
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-review https://github.com/org/repo/pull/42
|
|
23
|
+
/pr-review deelmarkt/app#10
|
|
24
|
+
/pr-review #5
|
|
25
|
+
/pr-review #5 --local
|
|
26
|
+
/pr-review #5 --focus security
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Focus Areas
|
|
30
|
+
|
|
31
|
+
- `security` — Security-only review
|
|
32
|
+
- `quality` — Code quality-only review
|
|
33
|
+
- `hygiene` — PR structure and process compliance
|
|
34
|
+
|
|
35
|
+
## What It Does
|
|
36
|
+
|
|
37
|
+
1. Fetches PR metadata, diff, and existing reviews
|
|
38
|
+
2. Detects branch strategy (GitFlow / Trunk-Based)
|
|
39
|
+
3. Applies 6-perspective review framework
|
|
40
|
+
4. Generates findings with severity and fix suggestions
|
|
41
|
+
5. Posts review to GitHub (REQUEST_CHANGES / APPROVE / COMMENT)
|
|
42
|
+
|
|
43
|
+
## Related
|
|
44
|
+
|
|
45
|
+
- `/pr` — Create a pull request
|
|
46
|
+
- `/pr-fix` — Fix issues from review comments
|
|
47
|
+
- `/pr-merge` — Merge with dependency validation
|
|
48
|
+
- `/pr-split` — Split oversized PRs
|
|
49
|
+
- `/pr-status` — Check merge readiness
|
|
50
|
+
- `/review` — Local code quality gates
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Split oversized PRs into focused sub-PRs by concern category
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-split Command
|
|
6
|
+
|
|
7
|
+
Split large (L/XL) pull requests into focused, independently-reviewable sub-PRs organized by concern category with a dependency-ordered merge plan.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-split # Analyze current branch for splitting
|
|
13
|
+
/pr-split #<number> # Analyze existing PR for splitting
|
|
14
|
+
/pr-split --dry-run # Show split plan without creating branches
|
|
15
|
+
/pr-split --auto # Auto-split by file category
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/pr-split # Split current branch
|
|
22
|
+
/pr-split #42 # Split PR #42
|
|
23
|
+
/pr-split --dry-run # Preview split plan only
|
|
24
|
+
/pr-split #42 --auto # Auto-split without manual grouping
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What It Does
|
|
28
|
+
|
|
29
|
+
1. Analyzes full diff and classifies PR size (must be L or XL)
|
|
30
|
+
2. Categorizes files by concern (feature, tests, config, deps, docs, infra)
|
|
31
|
+
3. Proposes split plan with merge ordering and dependencies
|
|
32
|
+
4. Waits for user approval of the split plan
|
|
33
|
+
5. Creates sub-branches with selective cherry-pick/checkout
|
|
34
|
+
6. Verifies each sub-branch independently (build + tests)
|
|
35
|
+
7. Creates sub-PRs with structured bodies and dependency declarations
|
|
36
|
+
8. Updates original PR with links to all sub-PRs
|
|
37
|
+
|
|
38
|
+
## Split Categories
|
|
39
|
+
|
|
40
|
+
| Category | Examples |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| Feature Code | `src/`, application logic |
|
|
43
|
+
| Tests | `tests/`, `*.test.*`, `*.spec.*` |
|
|
44
|
+
| Configuration | `.eslintrc`, `tsconfig`, tool configs |
|
|
45
|
+
| Dependencies | `package.json`, lock files |
|
|
46
|
+
| Documentation | `README`, `docs/`, `CHANGELOG` |
|
|
47
|
+
| Infrastructure | `Dockerfile`, CI/CD, deploy configs |
|
|
48
|
+
|
|
49
|
+
## Related
|
|
50
|
+
|
|
51
|
+
- `/pr` — Create a pull request (warns on XL size)
|
|
52
|
+
- `/pr-review` — Review each sub-PR
|
|
53
|
+
- `/pr-merge` — Merge sub-PRs in dependency order
|
|
54
|
+
- `/pr-status` — Check status of all sub-PRs
|