antigravity-ai-kit 2.1.0 → 3.0.1
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/README.md +4 -4
- package/.agent/agents/README.md +16 -12
- package/.agent/agents/architect.md +1 -0
- package/.agent/agents/backend-specialist.md +11 -0
- package/.agent/agents/code-reviewer.md +1 -0
- package/.agent/agents/database-architect.md +11 -0
- package/.agent/agents/devops-engineer.md +11 -0
- package/.agent/agents/e2e-runner.md +1 -0
- package/.agent/agents/explorer-agent.md +11 -0
- package/.agent/agents/frontend-specialist.md +11 -0
- package/.agent/agents/mobile-developer.md +11 -0
- package/.agent/agents/performance-optimizer.md +11 -0
- package/.agent/agents/planner.md +1 -0
- package/.agent/agents/refactor-cleaner.md +1 -0
- package/.agent/agents/reliability-engineer.md +11 -0
- package/.agent/agents/security-reviewer.md +1 -0
- package/.agent/agents/sprint-orchestrator.md +10 -0
- package/.agent/agents/tdd-guide.md +1 -0
- package/.agent/commands/code-review.md +1 -0
- package/.agent/commands/debug.md +1 -0
- package/.agent/commands/deploy.md +1 -0
- package/.agent/commands/help.md +252 -31
- package/.agent/commands/plan.md +1 -0
- package/.agent/commands/status.md +1 -0
- package/.agent/commands/tdd.md +1 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/engine/identity.json +13 -0
- package/.agent/engine/loading-rules.json +23 -1
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +44 -0
- package/.agent/engine/workflow-state.json +28 -2
- package/.agent/hooks/hooks.json +27 -25
- package/.agent/manifest.json +12 -4
- package/.agent/rules.md +2 -1
- package/.agent/skills/README.md +10 -5
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/mcp-integration/SKILL.md +224 -0
- package/.agent/skills/parallel-agents/SKILL.md +1 -1
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +557 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +92 -78
- package/.agent/workflows/brainstorm.md +154 -100
- package/.agent/workflows/create.md +142 -75
- package/.agent/workflows/debug.md +157 -98
- package/.agent/workflows/deploy.md +195 -144
- package/.agent/workflows/enhance.md +157 -65
- package/.agent/workflows/orchestrate.md +171 -114
- package/.agent/workflows/plan.md +147 -72
- package/.agent/workflows/preview.md +140 -83
- package/.agent/workflows/quality-gate.md +196 -0
- package/.agent/workflows/retrospective.md +197 -0
- package/.agent/workflows/review.md +188 -0
- package/.agent/workflows/status.md +142 -91
- package/.agent/workflows/test.md +168 -95
- package/.agent/workflows/ui-ux-pro-max.md +181 -127
- package/README.md +215 -78
- package/bin/ag-kit.js +344 -10
- package/lib/agent-registry.js +214 -0
- package/lib/agent-reputation.js +351 -0
- package/lib/cli-commands.js +235 -0
- package/lib/conflict-detector.js +245 -0
- package/lib/engineering-manager.js +354 -0
- package/lib/error-budget.js +294 -0
- package/lib/hook-system.js +252 -0
- package/lib/identity.js +245 -0
- package/lib/loading-engine.js +208 -0
- package/lib/marketplace.js +298 -0
- package/lib/plugin-system.js +604 -0
- package/lib/security-scanner.js +309 -0
- package/lib/self-healing.js +434 -0
- package/lib/session-manager.js +261 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +523 -0
- package/lib/task-model.js +317 -0
- package/lib/updater.js +201 -0
- package/lib/verify.js +240 -0
- package/lib/workflow-engine.js +353 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +7 -3
|
@@ -1,144 +1,195 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Production deployment with pre-flight checks, execution, and verification.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Production deployment with pre-flight checks, execution, and verification.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: ship
|
|
5
|
+
skills: [deployment-procedures]
|
|
6
|
+
commit-types: [chore, fix]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /deploy — Production Deployment
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/deploy [sub-command]`
|
|
12
|
+
> **Lifecycle**: Ship — after `/review` gate passes
|
|
13
|
+
|
|
14
|
+
> [!CAUTION]
|
|
15
|
+
> Deployment impacts production users and consumes platform credits. Every push to `production` triggers builds on hosting platforms (Vercel, Railway, etc.). Never deploy untested code. Always have a rollback plan before deploying.
|
|
16
|
+
|
|
17
|
+
> [!TIP]
|
|
18
|
+
> This workflow leverages the **deployment-procedures** skill. Read `.agent/skills/deployment-procedures/SKILL.md` for extended guidance.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
1. **Rollback plan required** — never deploy without a documented rollback strategy
|
|
25
|
+
2. **No test deploys to production** — use preview/staging environments for testing
|
|
26
|
+
3. **Cost-awareness** — batch deployments; avoid unnecessary builds that waste credits
|
|
27
|
+
4. **Pre-flight must pass** — all quality gates must pass before deployment
|
|
28
|
+
5. **Health check mandatory** — verify the deployment is healthy before marking complete
|
|
29
|
+
6. **No secrets in logs** — ensure deployment logs don't expose sensitive data
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Scope Filter
|
|
34
|
+
|
|
35
|
+
Only deploy when changes affect **deployed artifacts**:
|
|
36
|
+
|
|
37
|
+
| Change Type | Affects Production? | Deploy? |
|
|
38
|
+
| :-------------------------- | :------------------ | :------ |
|
|
39
|
+
| `apps/api/**`, `apps/web/**` | ✅ Yes | ✅ Yes |
|
|
40
|
+
| `docker/**`, `railway.toml` | ✅ Yes (infra) | ✅ Yes |
|
|
41
|
+
| `docs/**`, `*.md` | ❌ No | ❌ Never |
|
|
42
|
+
| `.agent/**`, `.vscode/**` | ❌ No | ❌ Never |
|
|
43
|
+
| `.github/**` | ⚠️ CI only | ⚠️ Case-by-case |
|
|
44
|
+
| `packages/shared/**` | ⚠️ If consumed | ⚠️ Case-by-case |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Argument Parsing
|
|
49
|
+
|
|
50
|
+
| Command | Action |
|
|
51
|
+
| :-------------------- | :----------------------------------------------- |
|
|
52
|
+
| `/deploy` | Interactive deployment wizard |
|
|
53
|
+
| `/deploy check` | Run pre-flight checks only |
|
|
54
|
+
| `/deploy preview` | Deploy to preview/staging environment |
|
|
55
|
+
| `/deploy production` | Deploy to production |
|
|
56
|
+
| `/deploy rollback` | Rollback to previous version |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Steps
|
|
61
|
+
|
|
62
|
+
// turbo
|
|
63
|
+
1. **Pre-Flight Checks**
|
|
64
|
+
- Code quality: `npx tsc --noEmit`, `npx eslint .` (or equivalent)
|
|
65
|
+
- Tests: `npm test` (or equivalent)
|
|
66
|
+
- Security: `npm audit`, no hardcoded secrets
|
|
67
|
+
- Build: `npm run build` succeeds
|
|
68
|
+
- Environment: all required variables documented and set
|
|
69
|
+
|
|
70
|
+
// turbo
|
|
71
|
+
2. **Scope Verification**
|
|
72
|
+
- Check which files changed (`git diff --stat`)
|
|
73
|
+
- Apply Scope Filter — abort if changes are docs/config-only
|
|
74
|
+
- Confirm deployment is production-impacting
|
|
75
|
+
|
|
76
|
+
3. **Rollback Plan**
|
|
77
|
+
- Document current production version/commit
|
|
78
|
+
- Verify rollback command is available and tested
|
|
79
|
+
- Confirm database migration reversibility (if applicable)
|
|
80
|
+
|
|
81
|
+
4. **Deploy**
|
|
82
|
+
- Build the application
|
|
83
|
+
- Deploy to target platform
|
|
84
|
+
- Monitor deployment progress
|
|
85
|
+
|
|
86
|
+
// turbo
|
|
87
|
+
5. **Health Check & Verify**
|
|
88
|
+
- API responding (HTTP 200)
|
|
89
|
+
- Database connected
|
|
90
|
+
- All critical services healthy
|
|
91
|
+
- No error spikes in monitoring
|
|
92
|
+
|
|
93
|
+
6. **Post-Deploy**
|
|
94
|
+
- Document deployed version and commit SHA
|
|
95
|
+
- Update status tracking
|
|
96
|
+
- Notify stakeholders if applicable
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Output Template
|
|
101
|
+
|
|
102
|
+
### Successful Deploy
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
## 🚀 Deployment Complete
|
|
106
|
+
|
|
107
|
+
### Summary
|
|
108
|
+
|
|
109
|
+
- **Version**: [commit SHA or tag]
|
|
110
|
+
- **Environment**: production | preview
|
|
111
|
+
- **Duration**: [time]
|
|
112
|
+
- **Platform**: [Vercel | Railway | EAS]
|
|
113
|
+
|
|
114
|
+
### Health Check
|
|
115
|
+
|
|
116
|
+
✅ API responding (200 OK)
|
|
117
|
+
✅ Database connected
|
|
118
|
+
✅ All services healthy
|
|
119
|
+
|
|
120
|
+
### Rollback
|
|
121
|
+
|
|
122
|
+
If issues arise: `/deploy rollback` to [previous version]
|
|
123
|
+
|
|
124
|
+
After deploy: proceed to `/status` for monitoring.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Failed Deploy
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
## ❌ Deployment Failed
|
|
131
|
+
|
|
132
|
+
### Error
|
|
133
|
+
|
|
134
|
+
[Error description and logs]
|
|
135
|
+
|
|
136
|
+
### Resolution
|
|
137
|
+
|
|
138
|
+
1. [Fix steps]
|
|
139
|
+
2. Run `/deploy check` to re-validate
|
|
140
|
+
3. Retry `/deploy production`
|
|
141
|
+
|
|
142
|
+
### Rollback Available
|
|
143
|
+
|
|
144
|
+
Run `/deploy rollback` to restore [previous version].
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Platform Support
|
|
150
|
+
|
|
151
|
+
| Platform | Command | Auto-detect |
|
|
152
|
+
| :------- | :-------------- | :---------- |
|
|
153
|
+
| Vercel | `vercel --prod` | Next.js |
|
|
154
|
+
| Railway | `railway up` | NestJS, API |
|
|
155
|
+
| Expo EAS | `eas build` | React Native |
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Governance
|
|
160
|
+
|
|
161
|
+
**PROHIBITED:**
|
|
162
|
+
- Deploying code that hasn't passed `/review` quality gates
|
|
163
|
+
- Using production for testing — use preview environments
|
|
164
|
+
- Deploying docs-only or config-only changes to production
|
|
165
|
+
- Skipping the rollback plan
|
|
166
|
+
- Deploying without health check verification
|
|
167
|
+
- Skipping failed steps · proceeding without resolution
|
|
168
|
+
|
|
169
|
+
**REQUIRED:**
|
|
170
|
+
- Pre-flight checks passing before any deployment
|
|
171
|
+
- Scope verification using the Production-Impact Filter
|
|
172
|
+
- Rollback plan documented before deploying
|
|
173
|
+
- Health check after every deployment
|
|
174
|
+
- Cost-conscious deployment batching
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Completion Criteria
|
|
179
|
+
|
|
180
|
+
- [ ] Pre-flight checks pass (lint, type-check, tests, security, build)
|
|
181
|
+
- [ ] Scope Filter confirms production-impacting changes
|
|
182
|
+
- [ ] Rollback plan is documented
|
|
183
|
+
- [ ] Deployment completes without errors
|
|
184
|
+
- [ ] Health check passes (API, database, services)
|
|
185
|
+
- [ ] Deployed version is documented
|
|
186
|
+
- [ ] After deploy: proceed to `/status` for monitoring
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Related Resources
|
|
191
|
+
|
|
192
|
+
- **Previous**: `/review` (quality gates must pass before deployment)
|
|
193
|
+
- **Next**: `/status` (post-deploy monitoring)
|
|
194
|
+
- **Skill**: `.agent/skills/deployment-procedures/SKILL.md`
|
|
195
|
+
- **Global Rule**: Production Merge Discipline (see global rules)
|
|
@@ -1,65 +1,157 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Add or update features in existing application. Iterative development.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
3. **
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Add or update features in existing application. Iterative development.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: build
|
|
5
|
+
skills: [clean-code, testing-patterns]
|
|
6
|
+
commit-types: [feat, refactor]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /enhance — Iterative Feature Development
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/enhance [description]`
|
|
12
|
+
> **Lifecycle**: Build — after `/plan` or ad-hoc for minor updates
|
|
13
|
+
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> This workflow modifies existing code. Always analyze the impact of changes before implementation. Preserve existing functionality — never break what works.
|
|
16
|
+
|
|
17
|
+
> [!TIP]
|
|
18
|
+
> This workflow leverages the **clean-code** skill. Read `.agent/skills/clean-code/SKILL.md` for extended guidance on code quality during iterative development.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
1. **Preserve existing functionality** — changes must not break what currently works
|
|
25
|
+
2. **Regression check mandatory** — run the full test suite after every change
|
|
26
|
+
3. **User approval for major changes** — present an impact analysis before modifying >5 files
|
|
27
|
+
4. **Incremental approach** — make small, verifiable changes rather than large rewrites
|
|
28
|
+
5. **Follow existing conventions** — match the patterns already established in the codebase
|
|
29
|
+
6. **Document changes** — update documentation to reflect the modified behavior
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Argument Parsing
|
|
34
|
+
|
|
35
|
+
| Command | Action |
|
|
36
|
+
| :----------------------------- | :---------------------------------------------- |
|
|
37
|
+
| `/enhance` | Prompt for feature description |
|
|
38
|
+
| `/enhance [description]` | Begin enhancing the specified feature directly |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Steps
|
|
43
|
+
|
|
44
|
+
// turbo
|
|
45
|
+
1. **Understand Current State**
|
|
46
|
+
- Explore the project structure and architecture
|
|
47
|
+
- Review existing features, tech stack, and conventions
|
|
48
|
+
- Identify the files and modules relevant to the enhancement
|
|
49
|
+
|
|
50
|
+
// turbo
|
|
51
|
+
2. **Impact Analysis**
|
|
52
|
+
- Identify all files that will be affected by the change
|
|
53
|
+
- Map dependencies and downstream consumers
|
|
54
|
+
- Assess risk of regressions in adjacent features
|
|
55
|
+
- Flag any breaking changes or architectural implications
|
|
56
|
+
|
|
57
|
+
3. **Present Enhancement Plan** (for changes affecting >5 files)
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
"To add [feature]:
|
|
61
|
+
- I'll create [N] new files
|
|
62
|
+
- Modify [N] existing files
|
|
63
|
+
- Affected areas: [list]
|
|
64
|
+
- Estimated risk: Low | Medium | High
|
|
65
|
+
|
|
66
|
+
Should I proceed?"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
4. **Implement Changes**
|
|
70
|
+
- Follow existing code patterns and conventions
|
|
71
|
+
- Apply changes incrementally
|
|
72
|
+
- Keep each change small and verifiable
|
|
73
|
+
|
|
74
|
+
// turbo
|
|
75
|
+
5. **Regression Check**
|
|
76
|
+
- Run the full test suite
|
|
77
|
+
- Verify build succeeds
|
|
78
|
+
- Check that existing functionality is preserved
|
|
79
|
+
- Run lint and type-check
|
|
80
|
+
|
|
81
|
+
6. **Document Changes**
|
|
82
|
+
- Update inline documentation
|
|
83
|
+
- Update README or docs if user-facing behavior changes
|
|
84
|
+
- Add changelog entry if applicable
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Output Template
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
## 🔧 Enhancement: [Feature Name]
|
|
92
|
+
|
|
93
|
+
### Changes Summary
|
|
94
|
+
|
|
95
|
+
| Action | File | Description |
|
|
96
|
+
| :----- | :--- | :---------- |
|
|
97
|
+
| Modified | `path/to/file` | [what changed] |
|
|
98
|
+
| Created | `path/to/file` | [purpose] |
|
|
99
|
+
|
|
100
|
+
### Impact Analysis
|
|
101
|
+
|
|
102
|
+
- **Files affected**: [count]
|
|
103
|
+
- **Risk level**: Low | Medium | High
|
|
104
|
+
- **Breaking changes**: None | [description]
|
|
105
|
+
|
|
106
|
+
### Regression Check
|
|
107
|
+
|
|
108
|
+
- ✅ Tests: [pass count] passing
|
|
109
|
+
- ✅ Build: successful
|
|
110
|
+
- ✅ Lint: clean
|
|
111
|
+
- ✅ Type-check: clean
|
|
112
|
+
|
|
113
|
+
### What Changed
|
|
114
|
+
|
|
115
|
+
[Human-readable summary of the enhancement]
|
|
116
|
+
|
|
117
|
+
After enhancement: proceed to `/test` for validation or `/preview` for visual check.
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Governance
|
|
123
|
+
|
|
124
|
+
**PROHIBITED:**
|
|
125
|
+
- Breaking existing functionality to add new features
|
|
126
|
+
- Making large changes without impact analysis
|
|
127
|
+
- Skipping regression checks after modifications
|
|
128
|
+
- Ignoring existing code conventions
|
|
129
|
+
- Skipping failed steps · proceeding without resolution
|
|
130
|
+
|
|
131
|
+
**REQUIRED:**
|
|
132
|
+
- Impact analysis before implementation
|
|
133
|
+
- User approval for changes affecting >5 files
|
|
134
|
+
- Regression check (tests, build, lint) after every change
|
|
135
|
+
- Documentation update for user-facing changes
|
|
136
|
+
- Incremental, verifiable changes
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Completion Criteria
|
|
141
|
+
|
|
142
|
+
- [ ] Current state is understood (architecture, patterns, conventions)
|
|
143
|
+
- [ ] Impact analysis is complete (affected files, risk level)
|
|
144
|
+
- [ ] User approved the plan (for major changes)
|
|
145
|
+
- [ ] Changes are implemented following existing patterns
|
|
146
|
+
- [ ] Regression check passes (tests, build, lint, type-check)
|
|
147
|
+
- [ ] Documentation is updated
|
|
148
|
+
- [ ] After enhancement: proceed to `/test` for validation or `/preview` for visual check
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Related Resources
|
|
153
|
+
|
|
154
|
+
- **Previous**: `/plan` (implementation plan for major enhancements)
|
|
155
|
+
- **Next**: `/test` (validate changes) · `/preview` (visual verification)
|
|
156
|
+
- **Skill**: `.agent/skills/clean-code/SKILL.md`
|
|
157
|
+
- **Related Skills**: `.agent/skills/architecture/SKILL.md` · `.agent/skills/testing-patterns/SKILL.md`
|