antigravity-devkit 1.0.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/LICENSE +21 -0
- package/README.md +421 -0
- package/bin/cli.js +179 -0
- package/package.json +38 -0
- package/template/ARCHITECTURE.md +148 -0
- package/template/README.md +421 -0
- package/template/agents/backend-specialist.md +137 -0
- package/template/agents/database-architect.md +114 -0
- package/template/agents/debugger.md +108 -0
- package/template/agents/devops-engineer.md +125 -0
- package/template/agents/documentation-writer.md +109 -0
- package/template/agents/explorer-agent.md +107 -0
- package/template/agents/frontend-specialist.md +231 -0
- package/template/agents/orchestrator.md +100 -0
- package/template/agents/performance-optimizer.md +109 -0
- package/template/agents/project-planner.md +123 -0
- package/template/agents/security-auditor.md +107 -0
- package/template/agents/test-engineer.md +133 -0
- package/template/rules/GEMINI.md +180 -0
- package/template/scripts/checklist.py +170 -0
- package/template/scripts/verify_all.py +243 -0
- package/template/skills/api-patterns/SKILL.md +116 -0
- package/template/skills/architecture/SKILL.md +98 -0
- package/template/skills/aspnet-patterns/SKILL.md +120 -0
- package/template/skills/azure-aks/SKILL.md +136 -0
- package/template/skills/azure-devops/SKILL.md +123 -0
- package/template/skills/azure-keyvault/SKILL.md +100 -0
- package/template/skills/brainstorming/SKILL.md +96 -0
- package/template/skills/clean-code/SKILL.md +84 -0
- package/template/skills/csharp-patterns/SKILL.md +115 -0
- package/template/skills/documentation-templates/SKILL.md +127 -0
- package/template/skills/english-education/SKILL.md +116 -0
- package/template/skills/english-education/references/lesson-templates.md +151 -0
- package/template/skills/english-education/references/quiz-templates.md +177 -0
- package/template/skills/english-education/scripts/curriculum_validator.py +175 -0
- package/template/skills/frontend-design/SKILL.md +199 -0
- package/template/skills/frontend-design/animation-guide.md +217 -0
- package/template/skills/frontend-design/design-systems.md +230 -0
- package/template/skills/frontend-design/ux-psychology.md +128 -0
- package/template/skills/gitops-patterns/SKILL.md +105 -0
- package/template/skills/grafana-logging/SKILL.md +107 -0
- package/template/skills/intelligent-routing/SKILL.md +75 -0
- package/template/skills/plan-writing/SKILL.md +96 -0
- package/template/skills/sqlserver-design/SKILL.md +97 -0
- package/template/skills/systematic-debugging/SKILL.md +98 -0
- package/template/skills/testing-patterns/SKILL.md +102 -0
- package/template/skills/vitest-testing/SKILL.md +116 -0
- package/template/skills/vue3-patterns/SKILL.md +195 -0
- package/template/skills/vulnerability-scanner/SKILL.md +104 -0
- package/template/skills/xunit-testing/SKILL.md +127 -0
- package/template/workflows/brainstorm.md +69 -0
- package/template/workflows/code.md +82 -0
- package/template/workflows/create.md +79 -0
- package/template/workflows/debug.md +83 -0
- package/template/workflows/deploy.md +101 -0
- package/template/workflows/orchestrate.md +86 -0
- package/template/workflows/plan.md +79 -0
- package/template/workflows/review.md +85 -0
- package/template/workflows/status.md +90 -0
- package/template/workflows/test.md +89 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate tests for existing code
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /test - Test Generation
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
Generate unit and integration tests for specified code.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Protocol
|
|
18
|
+
|
|
19
|
+
### 1. Analyze Target
|
|
20
|
+
- What code needs testing?
|
|
21
|
+
- Frontend (Vitest) or Backend (xUnit)?
|
|
22
|
+
- Unit or integration tests?
|
|
23
|
+
|
|
24
|
+
### 2. Apply Testing Agent
|
|
25
|
+
Route to `@test-engineer` with appropriate skills.
|
|
26
|
+
|
|
27
|
+
### 3. Generate Tests
|
|
28
|
+
|
|
29
|
+
**Frontend (Vitest):**
|
|
30
|
+
```typescript
|
|
31
|
+
describe('ComponentName', () => {
|
|
32
|
+
it('should render', () => {
|
|
33
|
+
// Arrange, Act, Assert
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Backend (xUnit):**
|
|
39
|
+
```csharp
|
|
40
|
+
[Fact]
|
|
41
|
+
public void Method_Scenario_Expected()
|
|
42
|
+
{
|
|
43
|
+
// Arrange, Act, Assert
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 4. Run Tests
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Frontend
|
|
51
|
+
npm run test
|
|
52
|
+
|
|
53
|
+
# Backend
|
|
54
|
+
dotnet test
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Test Coverage
|
|
60
|
+
|
|
61
|
+
| Target | Minimum |
|
|
62
|
+
|--------|---------|
|
|
63
|
+
| Business logic | 90% |
|
|
64
|
+
| API endpoints | 80% |
|
|
65
|
+
| Components | 70% |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Output
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
✅ **Tests generated**
|
|
73
|
+
|
|
74
|
+
Files:
|
|
75
|
+
- `tests/UserService.test.ts`
|
|
76
|
+
- `tests/UserController.Tests.cs`
|
|
77
|
+
|
|
78
|
+
Results:
|
|
79
|
+
- 10 tests passed
|
|
80
|
+
- Coverage: 85%
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## After Testing
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Next: `/review` for code review
|
|
89
|
+
```
|