cp-toolkit 2.2.3 → 2.2.4
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/package.json +1 -1
- package/src/commands/add.js +23 -16
- package/src/commands/doctor.js +15 -10
- package/src/commands/init.js +55 -16
- package/templates/AGENTS.md +47 -0
- package/templates/ARCHITECTURE.md +42 -0
- package/templates/agents/backend-specialist.md +1 -0
- package/templates/agents/code-archaeologist.md +116 -106
- package/templates/agents/database-architect.md +1 -0
- package/templates/agents/debugger.md +1 -0
- package/templates/agents/devops-engineer.md +1 -0
- package/templates/agents/documentation-writer.md +1 -0
- package/templates/agents/explorer-agent.md +83 -73
- package/templates/agents/frontend-specialist.md +1 -0
- package/templates/agents/game-developer.md +1 -0
- package/templates/agents/mobile-developer.md +1 -0
- package/templates/agents/orchestrator.md +426 -416
- package/templates/agents/penetration-tester.md +1 -0
- package/templates/agents/performance-optimizer.md +1 -0
- package/templates/agents/product-manager.md +122 -112
- package/templates/agents/product-owner.md +105 -95
- package/templates/agents/project-planner.md +416 -406
- package/templates/agents/qa-automation-engineer.md +113 -103
- package/templates/agents/security-auditor.md +1 -0
- package/templates/agents/seo-specialist.md +1 -0
- package/templates/agents/test-engineer.md +1 -0
- package/templates/skills/core/behavioral-modes/SKILL.md +244 -242
- package/templates/skills/core/brainstorming/SKILL.md +166 -163
- package/templates/skills/core/mcp-builder/SKILL.md +178 -176
- package/templates/skills/core/parallel-agents/SKILL.md +187 -175
- package/templates/skills/core/plan-writing/SKILL.md +154 -152
- package/templates/skills/optional/api-patterns/SKILL.md +83 -81
- package/templates/skills/optional/app-builder/SKILL.md +78 -75
- package/templates/skills/optional/app-builder/templates/SKILL.md +41 -39
- package/templates/skills/optional/architecture/SKILL.md +58 -55
- package/templates/skills/optional/bash-linux/SKILL.md +201 -199
- package/templates/skills/optional/code-review-checklist/SKILL.md +110 -109
- package/templates/skills/optional/database-design/SKILL.md +54 -52
- package/templates/skills/optional/deployment-procedures/SKILL.md +243 -241
- package/templates/skills/optional/documentation-templates/SKILL.md +196 -194
- package/templates/skills/optional/frontend-design/SKILL.md +421 -418
- package/templates/skills/optional/game-development/2d-games/SKILL.md +120 -119
- package/templates/skills/optional/game-development/3d-games/SKILL.md +136 -135
- package/templates/skills/optional/game-development/SKILL.md +169 -167
- package/templates/skills/optional/game-development/game-art/SKILL.md +187 -185
- package/templates/skills/optional/game-development/game-audio/SKILL.md +192 -190
- package/templates/skills/optional/game-development/game-design/SKILL.md +131 -129
- package/templates/skills/optional/game-development/mobile-games/SKILL.md +110 -108
- package/templates/skills/optional/game-development/multiplayer/SKILL.md +133 -132
- package/templates/skills/optional/game-development/pc-games/SKILL.md +146 -144
- package/templates/skills/optional/game-development/vr-ar/SKILL.md +124 -123
- package/templates/skills/optional/game-development/web-games/SKILL.md +152 -150
- package/templates/skills/optional/geo-fundamentals/SKILL.md +158 -156
- package/templates/skills/optional/i18n-localization/SKILL.md +156 -154
- package/templates/skills/optional/lint-and-validate/SKILL.md +48 -45
- package/templates/skills/optional/mobile-design/SKILL.md +397 -394
- package/templates/skills/optional/nextjs-react-expert/SKILL.md +271 -267
- package/templates/skills/optional/nodejs-best-practices/SKILL.md +335 -333
- package/templates/skills/optional/performance-profiling/SKILL.md +145 -143
- package/templates/skills/optional/powershell-windows/SKILL.md +169 -167
- package/templates/skills/optional/python-patterns/SKILL.md +443 -441
- package/templates/skills/optional/red-team-tactics/SKILL.md +201 -199
- package/templates/skills/optional/seo-fundamentals/SKILL.md +130 -129
- package/templates/skills/optional/server-management/SKILL.md +163 -161
- package/templates/skills/optional/systematic-debugging/SKILL.md +111 -109
- package/templates/skills/optional/tailwind-patterns/SKILL.md +271 -269
- package/templates/skills/optional/tdd-workflow/SKILL.md +150 -149
- package/templates/skills/optional/testing-patterns/SKILL.md +179 -178
- package/templates/skills/optional/vulnerability-scanner/SKILL.md +278 -276
- package/templates/skills/optional/web-design-guidelines/SKILL.md +60 -57
- package/templates/skills/optional/webapp-testing/SKILL.md +188 -187
|
@@ -1,144 +1,146 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pc-games
|
|
3
|
-
description: PC and console game development principles. Engine selection, platform
|
|
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
|
+
name: pc-games
|
|
3
|
+
description: PC and console game development principles. Engine selection, platform
|
|
4
|
+
features, optimization strategies.
|
|
5
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
6
|
+
version: '1.0'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# PC/Console Game Development
|
|
10
|
+
|
|
11
|
+
> Engine selection and platform-specific principles.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. Engine Selection
|
|
16
|
+
|
|
17
|
+
### Decision Tree
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
What are you building?
|
|
21
|
+
│
|
|
22
|
+
├── 2D Game
|
|
23
|
+
│ ├── Open source important? → Godot
|
|
24
|
+
│ └── Large team/assets? → Unity
|
|
25
|
+
│
|
|
26
|
+
├── 3D Game
|
|
27
|
+
│ ├── AAA visual quality? → Unreal
|
|
28
|
+
│ ├── Cross-platform priority? → Unity
|
|
29
|
+
│ └── Indie/open source? → Godot 4
|
|
30
|
+
│
|
|
31
|
+
└── Specific Needs
|
|
32
|
+
├── DOTS performance? → Unity
|
|
33
|
+
├── Nanite/Lumen? → Unreal
|
|
34
|
+
└── Lightweight? → Godot
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Comparison
|
|
38
|
+
|
|
39
|
+
| Factor | Unity 6 | Godot 4 | Unreal 5 |
|
|
40
|
+
|--------|---------|---------|----------|
|
|
41
|
+
| 2D | Good | Excellent | Limited |
|
|
42
|
+
| 3D | Good | Good | Excellent |
|
|
43
|
+
| Learning | Medium | Easy | Hard |
|
|
44
|
+
| Cost | Revenue share | Free | 5% after $1M |
|
|
45
|
+
| Team | Any | Solo-Medium | Medium-Large |
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Platform Features
|
|
50
|
+
|
|
51
|
+
### Steam Integration
|
|
52
|
+
|
|
53
|
+
| Feature | Purpose |
|
|
54
|
+
|---------|---------|
|
|
55
|
+
| Achievements | Player goals |
|
|
56
|
+
| Cloud Saves | Cross-device progress |
|
|
57
|
+
| Leaderboards | Competition |
|
|
58
|
+
| Workshop | User mods |
|
|
59
|
+
| Rich Presence | Show in-game status |
|
|
60
|
+
|
|
61
|
+
### Console Requirements
|
|
62
|
+
|
|
63
|
+
| Platform | Certification |
|
|
64
|
+
|----------|--------------|
|
|
65
|
+
| PlayStation | TRC compliance |
|
|
66
|
+
| Xbox | XR compliance |
|
|
67
|
+
| Nintendo | Lotcheck |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 3. Controller Support
|
|
72
|
+
|
|
73
|
+
### Input Abstraction
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Map ACTIONS, not buttons:
|
|
77
|
+
- "confirm" → A (Xbox), Cross (PS), B (Nintendo)
|
|
78
|
+
- "cancel" → B (Xbox), Circle (PS), A (Nintendo)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Haptic Feedback
|
|
82
|
+
|
|
83
|
+
| Intensity | Use |
|
|
84
|
+
|-----------|-----|
|
|
85
|
+
| Light | UI feedback |
|
|
86
|
+
| Medium | Impacts |
|
|
87
|
+
| Heavy | Major events |
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 4. Performance Optimization
|
|
92
|
+
|
|
93
|
+
### Profiling First
|
|
94
|
+
|
|
95
|
+
| Engine | Tool |
|
|
96
|
+
|--------|------|
|
|
97
|
+
| Unity | Profiler Window |
|
|
98
|
+
| Godot | Debugger → Profiler |
|
|
99
|
+
| Unreal | Unreal Insights |
|
|
100
|
+
|
|
101
|
+
### Common Bottlenecks
|
|
102
|
+
|
|
103
|
+
| Bottleneck | Solution |
|
|
104
|
+
|------------|----------|
|
|
105
|
+
| Draw calls | Batching, atlases |
|
|
106
|
+
| GC spikes | Object pooling |
|
|
107
|
+
| Physics | Simpler colliders |
|
|
108
|
+
| Shaders | LOD shaders |
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 5. Engine-Specific Principles
|
|
113
|
+
|
|
114
|
+
### Unity 6
|
|
115
|
+
|
|
116
|
+
- DOTS for performance-critical systems
|
|
117
|
+
- Burst compiler for hot paths
|
|
118
|
+
- Addressables for asset streaming
|
|
119
|
+
|
|
120
|
+
### Godot 4
|
|
121
|
+
|
|
122
|
+
- GDScript for rapid iteration
|
|
123
|
+
- C# for complex logic
|
|
124
|
+
- Signals for decoupling
|
|
125
|
+
|
|
126
|
+
### Unreal 5
|
|
127
|
+
|
|
128
|
+
- Blueprint for designers
|
|
129
|
+
- C++ for performance
|
|
130
|
+
- Nanite for high-poly environments
|
|
131
|
+
- Lumen for dynamic lighting
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 6. Anti-Patterns
|
|
136
|
+
|
|
137
|
+
| ❌ Don't | ✅ Do |
|
|
138
|
+
|----------|-------|
|
|
139
|
+
| Choose engine by hype | Choose by project needs |
|
|
140
|
+
| Ignore platform guidelines | Study certification requirements |
|
|
141
|
+
| Hardcode input buttons | Abstract to actions |
|
|
142
|
+
| Skip profiling | Profile early and often |
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
> **Remember:** Engine is a tool. Master the principles, then adapt to any engine.
|
|
@@ -1,123 +1,124 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vr-ar
|
|
3
|
-
description: VR/AR development principles. Comfort, interaction, performance requirements.
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
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
|
-
| Quest
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
name: vr-ar
|
|
3
|
+
description: VR/AR development principles. Comfort, interaction, performance requirements.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
version: '1.0'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# VR/AR Development
|
|
9
|
+
|
|
10
|
+
> Immersive experience principles.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. Platform Selection
|
|
15
|
+
|
|
16
|
+
### VR Platforms
|
|
17
|
+
|
|
18
|
+
| Platform | Use Case |
|
|
19
|
+
|----------|----------|
|
|
20
|
+
| **Quest** | Standalone, wireless |
|
|
21
|
+
| **PCVR** | High fidelity |
|
|
22
|
+
| **PSVR** | Console market |
|
|
23
|
+
| **WebXR** | Browser-based |
|
|
24
|
+
|
|
25
|
+
### AR Platforms
|
|
26
|
+
|
|
27
|
+
| Platform | Use Case |
|
|
28
|
+
|----------|----------|
|
|
29
|
+
| **ARKit** | iOS devices |
|
|
30
|
+
| **ARCore** | Android devices |
|
|
31
|
+
| **WebXR** | Browser AR |
|
|
32
|
+
| **HoloLens** | Enterprise |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 2. Comfort Principles
|
|
37
|
+
|
|
38
|
+
### Motion Sickness Prevention
|
|
39
|
+
|
|
40
|
+
| Cause | Solution |
|
|
41
|
+
|-------|----------|
|
|
42
|
+
| **Locomotion** | Teleport, snap turn |
|
|
43
|
+
| **Low FPS** | Maintain 90 FPS |
|
|
44
|
+
| **Camera shake** | Avoid or minimize |
|
|
45
|
+
| **Rapid acceleration** | Gradual movement |
|
|
46
|
+
|
|
47
|
+
### Comfort Settings
|
|
48
|
+
|
|
49
|
+
- Vignette during movement
|
|
50
|
+
- Snap vs smooth turning
|
|
51
|
+
- Seated vs standing modes
|
|
52
|
+
- Height calibration
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. Performance Requirements
|
|
57
|
+
|
|
58
|
+
### Target Metrics
|
|
59
|
+
|
|
60
|
+
| Platform | FPS | Resolution |
|
|
61
|
+
|----------|-----|------------|
|
|
62
|
+
| Quest 2 | 72-90 | 1832x1920 |
|
|
63
|
+
| Quest 3 | 90-120 | 2064x2208 |
|
|
64
|
+
| PCVR | 90 | 2160x2160+ |
|
|
65
|
+
| PSVR2 | 90-120 | 2000x2040 |
|
|
66
|
+
|
|
67
|
+
### Frame Budget
|
|
68
|
+
|
|
69
|
+
- VR requires consistent frame times
|
|
70
|
+
- Single dropped frame = visible judder
|
|
71
|
+
- 90 FPS = 11.11ms budget
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 4. Interaction Principles
|
|
76
|
+
|
|
77
|
+
### Controller Interaction
|
|
78
|
+
|
|
79
|
+
| Type | Use |
|
|
80
|
+
|------|-----|
|
|
81
|
+
| **Point + click** | UI, distant objects |
|
|
82
|
+
| **Grab** | Manipulation |
|
|
83
|
+
| **Gesture** | Magic, special actions |
|
|
84
|
+
| **Physical** | Throwing, swinging |
|
|
85
|
+
|
|
86
|
+
### Hand Tracking
|
|
87
|
+
|
|
88
|
+
- More immersive but less precise
|
|
89
|
+
- Good for: social, casual
|
|
90
|
+
- Challenging for: action, precision
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 5. Spatial Design
|
|
95
|
+
|
|
96
|
+
### World Scale
|
|
97
|
+
|
|
98
|
+
- 1 unit = 1 meter (critical)
|
|
99
|
+
- Objects must feel right size
|
|
100
|
+
- Test with real measurements
|
|
101
|
+
|
|
102
|
+
### Depth Cues
|
|
103
|
+
|
|
104
|
+
| Cue | Importance |
|
|
105
|
+
|-----|------------|
|
|
106
|
+
| Stereo | Primary depth |
|
|
107
|
+
| Motion parallax | Secondary |
|
|
108
|
+
| Shadows | Grounding |
|
|
109
|
+
| Occlusion | Layering |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 6. Anti-Patterns
|
|
114
|
+
|
|
115
|
+
| ❌ Don't | ✅ Do |
|
|
116
|
+
|----------|-------|
|
|
117
|
+
| Move camera without player | Player controls camera |
|
|
118
|
+
| Drop below 90 FPS | Maintain frame rate |
|
|
119
|
+
| Use tiny UI text | Large, readable text |
|
|
120
|
+
| Ignore arm length | Scale to player reach |
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
> **Remember:** Comfort is not optional. Sick players don't play.
|