@nguyenphp/antigravity-marketing 1.0.19 โ 1.0.20
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/README.md +5 -61
- package/package.json +1 -1
- package/templates/.agent/agents/backend-specialist.md +0 -263
- package/templates/.agent/agents/database-architect.md +0 -226
- package/templates/.agent/agents/debugger.md +0 -225
- package/templates/.agent/agents/devops-engineer.md +0 -242
- package/templates/.agent/agents/frontend-specialist.md +0 -527
- package/templates/.agent/agents/game-developer.md +0 -162
- package/templates/.agent/agents/mobile-developer.md +0 -377
- package/templates/.agent/agents/penetration-tester.md +0 -188
- package/templates/.agent/agents/security-auditor.md +0 -170
- package/templates/.agent/agents/test-engineer.md +0 -158
- package/templates/.agent/skills/api-patterns/SKILL.md +0 -81
- package/templates/.agent/skills/api-patterns/api-style.md +0 -42
- package/templates/.agent/skills/api-patterns/auth.md +0 -24
- package/templates/.agent/skills/api-patterns/documentation.md +0 -26
- package/templates/.agent/skills/api-patterns/graphql.md +0 -41
- package/templates/.agent/skills/api-patterns/rate-limiting.md +0 -31
- package/templates/.agent/skills/api-patterns/response.md +0 -37
- package/templates/.agent/skills/api-patterns/rest.md +0 -40
- package/templates/.agent/skills/api-patterns/scripts/api_validator.py +0 -211
- package/templates/.agent/skills/api-patterns/security-testing.md +0 -122
- package/templates/.agent/skills/api-patterns/trpc.md +0 -41
- package/templates/.agent/skills/api-patterns/versioning.md +0 -22
- package/templates/.agent/skills/app-builder/SKILL.md +0 -75
- package/templates/.agent/skills/app-builder/agent-coordination.md +0 -71
- package/templates/.agent/skills/app-builder/feature-building.md +0 -53
- package/templates/.agent/skills/app-builder/project-detection.md +0 -34
- package/templates/.agent/skills/app-builder/scaffolding.md +0 -118
- package/templates/.agent/skills/app-builder/tech-stack.md +0 -40
- package/templates/.agent/skills/app-builder/templates/SKILL.md +0 -39
- package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -82
- package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -100
- package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -106
- package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -101
- package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -93
- package/templates/.agent/skills/architecture/SKILL.md +0 -55
- package/templates/.agent/skills/architecture/context-discovery.md +0 -43
- package/templates/.agent/skills/architecture/examples.md +0 -94
- package/templates/.agent/skills/architecture/pattern-selection.md +0 -68
- package/templates/.agent/skills/architecture/patterns-reference.md +0 -50
- package/templates/.agent/skills/architecture/trade-off-analysis.md +0 -77
- package/templates/.agent/skills/bash-linux/SKILL.md +0 -199
- package/templates/.agent/skills/behavioral-modes/SKILL.md +0 -242
- package/templates/.agent/skills/clean-code/SKILL.md +0 -201
- package/templates/.agent/skills/code-review-checklist/SKILL.md +0 -109
- package/templates/.agent/skills/database-design/SKILL.md +0 -52
- package/templates/.agent/skills/database-design/database-selection.md +0 -43
- package/templates/.agent/skills/database-design/indexing.md +0 -39
- package/templates/.agent/skills/database-design/migrations.md +0 -48
- package/templates/.agent/skills/database-design/optimization.md +0 -36
- package/templates/.agent/skills/database-design/orm-selection.md +0 -30
- package/templates/.agent/skills/database-design/schema-design.md +0 -56
- package/templates/.agent/skills/database-design/scripts/schema_validator.py +0 -172
- package/templates/.agent/skills/deployment-procedures/SKILL.md +0 -241
- package/templates/.agent/skills/docker-expert/SKILL.md +0 -409
- package/templates/.agent/skills/game-development/2d-games/SKILL.md +0 -119
- package/templates/.agent/skills/game-development/3d-games/SKILL.md +0 -135
- package/templates/.agent/skills/game-development/SKILL.md +0 -167
- package/templates/.agent/skills/game-development/game-art/SKILL.md +0 -185
- package/templates/.agent/skills/game-development/game-audio/SKILL.md +0 -190
- package/templates/.agent/skills/game-development/game-design/SKILL.md +0 -129
- package/templates/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
- package/templates/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
- package/templates/.agent/skills/game-development/pc-games/SKILL.md +0 -144
- package/templates/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
- package/templates/.agent/skills/game-development/web-games/SKILL.md +0 -150
- package/templates/.agent/skills/lint-and-validate/SKILL.md +0 -45
- package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +0 -172
- package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/templates/.agent/skills/mcp-builder/SKILL.md +0 -176
- package/templates/.agent/skills/nestjs-expert/SKILL.md +0 -552
- package/templates/.agent/skills/nextjs-best-practices/SKILL.md +0 -203
- package/templates/.agent/skills/nodejs-best-practices/SKILL.md +0 -333
- package/templates/.agent/skills/parallel-agents/SKILL.md +0 -175
- package/templates/.agent/skills/performance-profiling/SKILL.md +0 -143
- package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
- package/templates/.agent/skills/powershell-windows/SKILL.md +0 -167
- package/templates/.agent/skills/prisma-expert/SKILL.md +0 -355
- package/templates/.agent/skills/python-patterns/SKILL.md +0 -441
- package/templates/.agent/skills/react-patterns/SKILL.md +0 -198
- package/templates/.agent/skills/red-team-tactics/SKILL.md +0 -199
- package/templates/.agent/skills/server-management/SKILL.md +0 -161
- package/templates/.agent/skills/systematic-debugging/SKILL.md +0 -109
- package/templates/.agent/skills/tdd-workflow/SKILL.md +0 -149
- package/templates/.agent/skills/testing-patterns/SKILL.md +0 -178
- package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +0 -219
- package/templates/.agent/skills/typescript-expert/SKILL.md +0 -429
- package/templates/.agent/skills/vue-expert/SKILL.md +0 -374
- package/templates/.agent/skills/vulnerability-scanner/SKILL.md +0 -276
- package/templates/.agent/skills/vulnerability-scanner/checklists.md +0 -121
- package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/templates/.agent/skills/webapp-testing/SKILL.md +0 -187
- package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +0 -173
- package/templates/.agent/workflows/debug.md +0 -103
- package/templates/.agent/workflows/deploy.md +0 -176
- package/templates/.agent/workflows/enhance.md +0 -63
- package/templates/.agent/workflows/test.md +0 -144
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Test generation and test running command. Creates and executes tests for code.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /test - Test Generation and Execution
|
|
6
|
-
|
|
7
|
-
$ARGUMENTS
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Purpose
|
|
12
|
-
|
|
13
|
-
This command generates tests, runs existing tests, or checks test coverage.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Sub-commands
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
/test - Run all tests
|
|
21
|
-
/test [file/feature] - Generate tests for specific target
|
|
22
|
-
/test coverage - Show test coverage report
|
|
23
|
-
/test watch - Run tests in watch mode
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Behavior
|
|
29
|
-
|
|
30
|
-
### Generate Tests
|
|
31
|
-
|
|
32
|
-
When asked to test a file or feature:
|
|
33
|
-
|
|
34
|
-
1. **Analyze the code**
|
|
35
|
-
- Identify functions and methods
|
|
36
|
-
- Find edge cases
|
|
37
|
-
- Detect dependencies to mock
|
|
38
|
-
|
|
39
|
-
2. **Generate test cases**
|
|
40
|
-
- Happy path tests
|
|
41
|
-
- Error cases
|
|
42
|
-
- Edge cases
|
|
43
|
-
- Integration tests (if needed)
|
|
44
|
-
|
|
45
|
-
3. **Write tests**
|
|
46
|
-
- Use project's test framework (Jest, Vitest, etc.)
|
|
47
|
-
- Follow existing test patterns
|
|
48
|
-
- Mock external dependencies
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Output Format
|
|
53
|
-
|
|
54
|
-
### For Test Generation
|
|
55
|
-
|
|
56
|
-
```markdown
|
|
57
|
-
## ๐งช Tests: [Target]
|
|
58
|
-
|
|
59
|
-
### Test Plan
|
|
60
|
-
| Test Case | Type | Coverage |
|
|
61
|
-
|-----------|------|----------|
|
|
62
|
-
| Should create user | Unit | Happy path |
|
|
63
|
-
| Should reject invalid email | Unit | Validation |
|
|
64
|
-
| Should handle db error | Unit | Error case |
|
|
65
|
-
|
|
66
|
-
### Generated Tests
|
|
67
|
-
|
|
68
|
-
`tests/[file].test.ts`
|
|
69
|
-
|
|
70
|
-
[Code block with tests]
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
Run with: `npm test`
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### For Test Execution
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
๐งช Running tests...
|
|
81
|
-
|
|
82
|
-
โ
auth.test.ts (5 passed)
|
|
83
|
-
โ
user.test.ts (8 passed)
|
|
84
|
-
โ order.test.ts (2 passed, 1 failed)
|
|
85
|
-
|
|
86
|
-
Failed:
|
|
87
|
-
โ should calculate total with discount
|
|
88
|
-
Expected: 90
|
|
89
|
-
Received: 100
|
|
90
|
-
|
|
91
|
-
Total: 15 tests (14 passed, 1 failed)
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## Examples
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
/test src/services/auth.service.ts
|
|
100
|
-
/test user registration flow
|
|
101
|
-
/test coverage
|
|
102
|
-
/test fix failed tests
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## Test Patterns
|
|
108
|
-
|
|
109
|
-
### Unit Test Structure
|
|
110
|
-
|
|
111
|
-
```typescript
|
|
112
|
-
describe('AuthService', () => {
|
|
113
|
-
describe('login', () => {
|
|
114
|
-
it('should return token for valid credentials', async () => {
|
|
115
|
-
// Arrange
|
|
116
|
-
const credentials = { email: 'test@test.com', password: 'pass123' };
|
|
117
|
-
|
|
118
|
-
// Act
|
|
119
|
-
const result = await authService.login(credentials);
|
|
120
|
-
|
|
121
|
-
// Assert
|
|
122
|
-
expect(result.token).toBeDefined();
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
it('should throw for invalid password', async () => {
|
|
126
|
-
// Arrange
|
|
127
|
-
const credentials = { email: 'test@test.com', password: 'wrong' };
|
|
128
|
-
|
|
129
|
-
// Act & Assert
|
|
130
|
-
await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Key Principles
|
|
139
|
-
|
|
140
|
-
- **Test behavior not implementation**
|
|
141
|
-
- **One assertion per test** (when practical)
|
|
142
|
-
- **Descriptive test names**
|
|
143
|
-
- **Arrange-Act-Assert pattern**
|
|
144
|
-
- **Mock external dependencies**
|