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.
Files changed (71) hide show
  1. package/package.json +1 -1
  2. package/src/commands/add.js +23 -16
  3. package/src/commands/doctor.js +15 -10
  4. package/src/commands/init.js +55 -16
  5. package/templates/AGENTS.md +47 -0
  6. package/templates/ARCHITECTURE.md +42 -0
  7. package/templates/agents/backend-specialist.md +1 -0
  8. package/templates/agents/code-archaeologist.md +116 -106
  9. package/templates/agents/database-architect.md +1 -0
  10. package/templates/agents/debugger.md +1 -0
  11. package/templates/agents/devops-engineer.md +1 -0
  12. package/templates/agents/documentation-writer.md +1 -0
  13. package/templates/agents/explorer-agent.md +83 -73
  14. package/templates/agents/frontend-specialist.md +1 -0
  15. package/templates/agents/game-developer.md +1 -0
  16. package/templates/agents/mobile-developer.md +1 -0
  17. package/templates/agents/orchestrator.md +426 -416
  18. package/templates/agents/penetration-tester.md +1 -0
  19. package/templates/agents/performance-optimizer.md +1 -0
  20. package/templates/agents/product-manager.md +122 -112
  21. package/templates/agents/product-owner.md +105 -95
  22. package/templates/agents/project-planner.md +416 -406
  23. package/templates/agents/qa-automation-engineer.md +113 -103
  24. package/templates/agents/security-auditor.md +1 -0
  25. package/templates/agents/seo-specialist.md +1 -0
  26. package/templates/agents/test-engineer.md +1 -0
  27. package/templates/skills/core/behavioral-modes/SKILL.md +244 -242
  28. package/templates/skills/core/brainstorming/SKILL.md +166 -163
  29. package/templates/skills/core/mcp-builder/SKILL.md +178 -176
  30. package/templates/skills/core/parallel-agents/SKILL.md +187 -175
  31. package/templates/skills/core/plan-writing/SKILL.md +154 -152
  32. package/templates/skills/optional/api-patterns/SKILL.md +83 -81
  33. package/templates/skills/optional/app-builder/SKILL.md +78 -75
  34. package/templates/skills/optional/app-builder/templates/SKILL.md +41 -39
  35. package/templates/skills/optional/architecture/SKILL.md +58 -55
  36. package/templates/skills/optional/bash-linux/SKILL.md +201 -199
  37. package/templates/skills/optional/code-review-checklist/SKILL.md +110 -109
  38. package/templates/skills/optional/database-design/SKILL.md +54 -52
  39. package/templates/skills/optional/deployment-procedures/SKILL.md +243 -241
  40. package/templates/skills/optional/documentation-templates/SKILL.md +196 -194
  41. package/templates/skills/optional/frontend-design/SKILL.md +421 -418
  42. package/templates/skills/optional/game-development/2d-games/SKILL.md +120 -119
  43. package/templates/skills/optional/game-development/3d-games/SKILL.md +136 -135
  44. package/templates/skills/optional/game-development/SKILL.md +169 -167
  45. package/templates/skills/optional/game-development/game-art/SKILL.md +187 -185
  46. package/templates/skills/optional/game-development/game-audio/SKILL.md +192 -190
  47. package/templates/skills/optional/game-development/game-design/SKILL.md +131 -129
  48. package/templates/skills/optional/game-development/mobile-games/SKILL.md +110 -108
  49. package/templates/skills/optional/game-development/multiplayer/SKILL.md +133 -132
  50. package/templates/skills/optional/game-development/pc-games/SKILL.md +146 -144
  51. package/templates/skills/optional/game-development/vr-ar/SKILL.md +124 -123
  52. package/templates/skills/optional/game-development/web-games/SKILL.md +152 -150
  53. package/templates/skills/optional/geo-fundamentals/SKILL.md +158 -156
  54. package/templates/skills/optional/i18n-localization/SKILL.md +156 -154
  55. package/templates/skills/optional/lint-and-validate/SKILL.md +48 -45
  56. package/templates/skills/optional/mobile-design/SKILL.md +397 -394
  57. package/templates/skills/optional/nextjs-react-expert/SKILL.md +271 -267
  58. package/templates/skills/optional/nodejs-best-practices/SKILL.md +335 -333
  59. package/templates/skills/optional/performance-profiling/SKILL.md +145 -143
  60. package/templates/skills/optional/powershell-windows/SKILL.md +169 -167
  61. package/templates/skills/optional/python-patterns/SKILL.md +443 -441
  62. package/templates/skills/optional/red-team-tactics/SKILL.md +201 -199
  63. package/templates/skills/optional/seo-fundamentals/SKILL.md +130 -129
  64. package/templates/skills/optional/server-management/SKILL.md +163 -161
  65. package/templates/skills/optional/systematic-debugging/SKILL.md +111 -109
  66. package/templates/skills/optional/tailwind-patterns/SKILL.md +271 -269
  67. package/templates/skills/optional/tdd-workflow/SKILL.md +150 -149
  68. package/templates/skills/optional/testing-patterns/SKILL.md +179 -178
  69. package/templates/skills/optional/vulnerability-scanner/SKILL.md +278 -276
  70. package/templates/skills/optional/web-design-guidelines/SKILL.md +60 -57
  71. package/templates/skills/optional/webapp-testing/SKILL.md +188 -187
@@ -1,150 +1,152 @@
1
- ---
2
- name: web-games
3
- description: Web browser game development principles. Framework selection, WebGPU, optimization, PWA.
4
- allowed-tools: Read, Write, Edit, Glob, Grep
5
- ---
6
-
7
- # Web Browser Game Development
8
-
9
- > Framework selection and browser-specific principles.
10
-
11
- ---
12
-
13
- ## 1. Framework Selection
14
-
15
- ### Decision Tree
16
-
17
- ```
18
- What type of game?
19
-
20
- ├── 2D Game
21
- ├── Full game engine features? → Phaser
22
- │ └── Raw rendering power? → PixiJS
23
-
24
- ├── 3D Game
25
- ├── Full engine (physics, XR)? → Babylon.js
26
- │ └── Rendering focused? → Three.js
27
-
28
- └── Hybrid / Canvas
29
- └── Custom → Raw Canvas/WebGL
30
- ```
31
-
32
- ### Comparison (2025)
33
-
34
- | Framework | Type | Best For |
35
- |-----------|------|----------|
36
- | **Phaser 4** | 2D | Full game features |
37
- | **PixiJS 8** | 2D | Rendering, UI |
38
- | **Three.js** | 3D | Visualizations, lightweight |
39
- | **Babylon.js 7** | 3D | Full engine, XR |
40
-
41
- ---
42
-
43
- ## 2. WebGPU Adoption
44
-
45
- ### Browser Support (2025)
46
-
47
- | Browser | Support |
48
- |---------|---------|
49
- | Chrome | Since v113 |
50
- | Edge | ✅ Since v113 |
51
- | Firefox | ✅ Since v131 |
52
- | Safari | ✅ Since 18.0 |
53
- | **Total** | **~73%** global |
54
-
55
- ### Decision
56
-
57
- - **New projects**: Use WebGPU with WebGL fallback
58
- - **Legacy support**: Start with WebGL
59
- - **Feature detection**: Check `navigator.gpu`
60
-
61
- ---
62
-
63
- ## 3. Performance Principles
64
-
65
- ### Browser Constraints
66
-
67
- | Constraint | Strategy |
68
- |------------|----------|
69
- | No local file access | Asset bundling, CDN |
70
- | Tab throttling | Pause when hidden |
71
- | Mobile data limits | Compress assets |
72
- | Audio autoplay | Require user interaction |
73
-
74
- ### Optimization Priority
75
-
76
- 1. **Asset compression** - KTX2, Draco, WebP
77
- 2. **Lazy loading** - Load on demand
78
- 3. **Object pooling** - Avoid GC
79
- 4. **Draw call batching** - Reduce state changes
80
- 5. **Web Workers** - Offload heavy computation
81
-
82
- ---
83
-
84
- ## 4. Asset Strategy
85
-
86
- ### Compression Formats
87
-
88
- | Type | Format |
89
- |------|--------|
90
- | Textures | KTX2 + Basis Universal |
91
- | Audio | WebM/Opus (fallback: MP3) |
92
- | 3D Models | glTF + Draco/Meshopt |
93
-
94
- ### Loading Strategy
95
-
96
- | Phase | Load |
97
- |-------|------|
98
- | Startup | Core assets, <2MB |
99
- | Gameplay | Stream on demand |
100
- | Background | Prefetch next level |
101
-
102
- ---
103
-
104
- ## 5. PWA for Games
105
-
106
- ### Benefits
107
-
108
- - Offline play
109
- - Install to home screen
110
- - Full screen mode
111
- - Push notifications
112
-
113
- ### Requirements
114
-
115
- - Service worker for caching
116
- - Web app manifest
117
- - HTTPS
118
-
119
- ---
120
-
121
- ## 6. Audio Handling
122
-
123
- ### Browser Requirements
124
-
125
- - Audio context requires user interaction
126
- - Create AudioContext on first click/tap
127
- - Resume context if suspended
128
-
129
- ### Best Practices
130
-
131
- - Use Web Audio API
132
- - Pool audio sources
133
- - Preload common sounds
134
- - Compress with WebM/Opus
135
-
136
- ---
137
-
138
- ## 7. Anti-Patterns
139
-
140
- | Don't | ✅ Do |
141
- |----------|-------|
142
- | Load all assets upfront | Progressive loading |
143
- | Ignore tab visibility | Pause when hidden |
144
- | Block on audio load | Lazy load audio |
145
- | Skip compression | Compress everything |
146
- | Assume fast connection | Handle slow networks |
147
-
148
- ---
149
-
150
- > **Remember:** Browser is the most accessible platform. Respect its constraints.
1
+ ---
2
+ name: web-games
3
+ description: Web browser game development principles. Framework selection, WebGPU,
4
+ optimization, PWA.
5
+ allowed-tools: Read, Write, Edit, Glob, Grep
6
+ version: '1.0'
7
+ ---
8
+
9
+ # Web Browser Game Development
10
+
11
+ > Framework selection and browser-specific principles.
12
+
13
+ ---
14
+
15
+ ## 1. Framework Selection
16
+
17
+ ### Decision Tree
18
+
19
+ ```
20
+ What type of game?
21
+
22
+ ├── 2D Game
23
+ ├── Full game engine features? → Phaser
24
+ │ └── Raw rendering power? → PixiJS
25
+
26
+ ├── 3D Game
27
+ ├── Full engine (physics, XR)? → Babylon.js
28
+ └── Rendering focused? → Three.js
29
+
30
+ └── Hybrid / Canvas
31
+ └── Custom → Raw Canvas/WebGL
32
+ ```
33
+
34
+ ### Comparison (2025)
35
+
36
+ | Framework | Type | Best For |
37
+ |-----------|------|----------|
38
+ | **Phaser 4** | 2D | Full game features |
39
+ | **PixiJS 8** | 2D | Rendering, UI |
40
+ | **Three.js** | 3D | Visualizations, lightweight |
41
+ | **Babylon.js 7** | 3D | Full engine, XR |
42
+
43
+ ---
44
+
45
+ ## 2. WebGPU Adoption
46
+
47
+ ### Browser Support (2025)
48
+
49
+ | Browser | Support |
50
+ |---------|---------|
51
+ | Chrome | ✅ Since v113 |
52
+ | Edge | ✅ Since v113 |
53
+ | Firefox | Since v131 |
54
+ | Safari | ✅ Since 18.0 |
55
+ | **Total** | **~73%** global |
56
+
57
+ ### Decision
58
+
59
+ - **New projects**: Use WebGPU with WebGL fallback
60
+ - **Legacy support**: Start with WebGL
61
+ - **Feature detection**: Check `navigator.gpu`
62
+
63
+ ---
64
+
65
+ ## 3. Performance Principles
66
+
67
+ ### Browser Constraints
68
+
69
+ | Constraint | Strategy |
70
+ |------------|----------|
71
+ | No local file access | Asset bundling, CDN |
72
+ | Tab throttling | Pause when hidden |
73
+ | Mobile data limits | Compress assets |
74
+ | Audio autoplay | Require user interaction |
75
+
76
+ ### Optimization Priority
77
+
78
+ 1. **Asset compression** - KTX2, Draco, WebP
79
+ 2. **Lazy loading** - Load on demand
80
+ 3. **Object pooling** - Avoid GC
81
+ 4. **Draw call batching** - Reduce state changes
82
+ 5. **Web Workers** - Offload heavy computation
83
+
84
+ ---
85
+
86
+ ## 4. Asset Strategy
87
+
88
+ ### Compression Formats
89
+
90
+ | Type | Format |
91
+ |------|--------|
92
+ | Textures | KTX2 + Basis Universal |
93
+ | Audio | WebM/Opus (fallback: MP3) |
94
+ | 3D Models | glTF + Draco/Meshopt |
95
+
96
+ ### Loading Strategy
97
+
98
+ | Phase | Load |
99
+ |-------|------|
100
+ | Startup | Core assets, <2MB |
101
+ | Gameplay | Stream on demand |
102
+ | Background | Prefetch next level |
103
+
104
+ ---
105
+
106
+ ## 5. PWA for Games
107
+
108
+ ### Benefits
109
+
110
+ - Offline play
111
+ - Install to home screen
112
+ - Full screen mode
113
+ - Push notifications
114
+
115
+ ### Requirements
116
+
117
+ - Service worker for caching
118
+ - Web app manifest
119
+ - HTTPS
120
+
121
+ ---
122
+
123
+ ## 6. Audio Handling
124
+
125
+ ### Browser Requirements
126
+
127
+ - Audio context requires user interaction
128
+ - Create AudioContext on first click/tap
129
+ - Resume context if suspended
130
+
131
+ ### Best Practices
132
+
133
+ - Use Web Audio API
134
+ - Pool audio sources
135
+ - Preload common sounds
136
+ - Compress with WebM/Opus
137
+
138
+ ---
139
+
140
+ ## 7. Anti-Patterns
141
+
142
+ | Don't | Do |
143
+ |----------|-------|
144
+ | Load all assets upfront | Progressive loading |
145
+ | Ignore tab visibility | Pause when hidden |
146
+ | Block on audio load | Lazy load audio |
147
+ | Skip compression | Compress everything |
148
+ | Assume fast connection | Handle slow networks |
149
+
150
+ ---
151
+
152
+ > **Remember:** Browser is the most accessible platform. Respect its constraints.
@@ -1,156 +1,158 @@
1
- ---
2
- name: geo-fundamentals
3
- description: Generative Engine Optimization for AI search engines (ChatGPT, Claude, Perplexity).
4
- allowed-tools: Read, Glob, Grep
5
- ---
6
-
7
- # GEO Fundamentals
8
-
9
- > Optimization for AI-powered search engines.
10
-
11
- ---
12
-
13
- ## 1. What is GEO?
14
-
15
- **GEO** = Generative Engine Optimization
16
-
17
- | Goal | Platform |
18
- |------|----------|
19
- | Be cited in AI responses | ChatGPT, Claude, Perplexity, Gemini |
20
-
21
- ### SEO vs GEO
22
-
23
- | Aspect | SEO | GEO |
24
- |--------|-----|-----|
25
- | Goal | #1 ranking | AI citations |
26
- | Platform | Google | AI engines |
27
- | Metrics | Rankings, CTR | Citation rate |
28
- | Focus | Keywords | Entities, data |
29
-
30
- ---
31
-
32
- ## 2. AI Engine Landscape
33
-
34
- | Engine | Citation Style | Opportunity |
35
- |--------|----------------|-------------|
36
- | **Perplexity** | Numbered [1][2] | Highest citation rate |
37
- | **ChatGPT** | Inline/footnotes | Custom GPTs |
38
- | **Claude** | Contextual | Long-form content |
39
- | **Gemini** | Sources section | SEO crossover |
40
-
41
- ---
42
-
43
- ## 3. RAG Retrieval Factors
44
-
45
- How AI engines select content to cite:
46
-
47
- | Factor | Weight |
48
- |--------|--------|
49
- | Semantic relevance | ~40% |
50
- | Keyword match | ~20% |
51
- | Authority signals | ~15% |
52
- | Freshness | ~10% |
53
- | Source diversity | ~15% |
54
-
55
- ---
56
-
57
- ## 4. Content That Gets Cited
58
-
59
- | Element | Why It Works |
60
- |---------|--------------|
61
- | **Original statistics** | Unique, citable data |
62
- | **Expert quotes** | Authority transfer |
63
- | **Clear definitions** | Easy to extract |
64
- | **Step-by-step guides** | Actionable value |
65
- | **Comparison tables** | Structured info |
66
- | **FAQ sections** | Direct answers |
67
-
68
- ---
69
-
70
- ## 5. GEO Content Checklist
71
-
72
- ### Content Elements
73
-
74
- - [ ] Question-based titles
75
- - [ ] Summary/TL;DR at top
76
- - [ ] Original data with sources
77
- - [ ] Expert quotes (name, title)
78
- - [ ] FAQ section (3-5 Q&A)
79
- - [ ] Clear definitions
80
- - [ ] "Last updated" timestamp
81
- - [ ] Author with credentials
82
-
83
- ### Technical Elements
84
-
85
- - [ ] Article schema with dates
86
- - [ ] Person schema for author
87
- - [ ] FAQPage schema
88
- - [ ] Fast loading (< 2.5s)
89
- - [ ] Clean HTML structure
90
-
91
- ---
92
-
93
- ## 6. Entity Building
94
-
95
- | Action | Purpose |
96
- |--------|---------|
97
- | Google Knowledge Panel | Entity recognition |
98
- | Wikipedia (if notable) | Authority source |
99
- | Consistent info across web | Entity consolidation |
100
- | Industry mentions | Authority signals |
101
-
102
- ---
103
-
104
- ## 7. AI Crawler Access
105
-
106
- ### Key AI User-Agents
107
-
108
- | Crawler | Engine |
109
- |---------|--------|
110
- | GPTBot | ChatGPT/OpenAI |
111
- | Claude-Web | Claude |
112
- | PerplexityBot | Perplexity |
113
- | Googlebot | Gemini (shared) |
114
-
115
- ### Access Decision
116
-
117
- | Strategy | When |
118
- |----------|------|
119
- | Allow all | Want AI citations |
120
- | Block GPTBot | Don't want OpenAI training |
121
- | Selective | Allow some, block others |
122
-
123
- ---
124
-
125
- ## 8. Measurement
126
-
127
- | Metric | How to Track |
128
- |--------|--------------|
129
- | AI citations | Manual monitoring |
130
- | "According to [Brand]" mentions | Search in AI |
131
- | Competitor citations | Compare share |
132
- | AI-referred traffic | UTM parameters |
133
-
134
- ---
135
-
136
- ## 9. Anti-Patterns
137
-
138
- | Don't | ✅ Do |
139
- |----------|-------|
140
- | Publish without dates | Add timestamps |
141
- | Vague attributions | Name sources |
142
- | Skip author info | Show credentials |
143
- | Thin content | Comprehensive coverage |
144
-
145
- ---
146
-
147
- > **Remember:** AI cites content that's clear, authoritative, and easy to extract. Be the best answer.
148
-
149
- ---
150
-
151
- ## Script
152
-
153
- | Script | Purpose | Command |
154
- |--------|---------|---------|
155
- | `scripts/geo_checker.py` | GEO audit (AI citation readiness) | `python scripts/geo_checker.py <project_path>` |
156
-
1
+ ---
2
+ name: geo-fundamentals
3
+ description: Generative Engine Optimization for AI search engines (ChatGPT, Claude,
4
+ Perplexity).
5
+ allowed-tools: Read, Glob, Grep
6
+ version: '1.0'
7
+ ---
8
+
9
+ # GEO Fundamentals
10
+
11
+ > Optimization for AI-powered search engines.
12
+
13
+ ---
14
+
15
+ ## 1. What is GEO?
16
+
17
+ **GEO** = Generative Engine Optimization
18
+
19
+ | Goal | Platform |
20
+ |------|----------|
21
+ | Be cited in AI responses | ChatGPT, Claude, Perplexity, Gemini |
22
+
23
+ ### SEO vs GEO
24
+
25
+ | Aspect | SEO | GEO |
26
+ |--------|-----|-----|
27
+ | Goal | #1 ranking | AI citations |
28
+ | Platform | Google | AI engines |
29
+ | Metrics | Rankings, CTR | Citation rate |
30
+ | Focus | Keywords | Entities, data |
31
+
32
+ ---
33
+
34
+ ## 2. AI Engine Landscape
35
+
36
+ | Engine | Citation Style | Opportunity |
37
+ |--------|----------------|-------------|
38
+ | **Perplexity** | Numbered [1][2] | Highest citation rate |
39
+ | **ChatGPT** | Inline/footnotes | Custom GPTs |
40
+ | **Claude** | Contextual | Long-form content |
41
+ | **Gemini** | Sources section | SEO crossover |
42
+
43
+ ---
44
+
45
+ ## 3. RAG Retrieval Factors
46
+
47
+ How AI engines select content to cite:
48
+
49
+ | Factor | Weight |
50
+ |--------|--------|
51
+ | Semantic relevance | ~40% |
52
+ | Keyword match | ~20% |
53
+ | Authority signals | ~15% |
54
+ | Freshness | ~10% |
55
+ | Source diversity | ~15% |
56
+
57
+ ---
58
+
59
+ ## 4. Content That Gets Cited
60
+
61
+ | Element | Why It Works |
62
+ |---------|--------------|
63
+ | **Original statistics** | Unique, citable data |
64
+ | **Expert quotes** | Authority transfer |
65
+ | **Clear definitions** | Easy to extract |
66
+ | **Step-by-step guides** | Actionable value |
67
+ | **Comparison tables** | Structured info |
68
+ | **FAQ sections** | Direct answers |
69
+
70
+ ---
71
+
72
+ ## 5. GEO Content Checklist
73
+
74
+ ### Content Elements
75
+
76
+ - [ ] Question-based titles
77
+ - [ ] Summary/TL;DR at top
78
+ - [ ] Original data with sources
79
+ - [ ] Expert quotes (name, title)
80
+ - [ ] FAQ section (3-5 Q&A)
81
+ - [ ] Clear definitions
82
+ - [ ] "Last updated" timestamp
83
+ - [ ] Author with credentials
84
+
85
+ ### Technical Elements
86
+
87
+ - [ ] Article schema with dates
88
+ - [ ] Person schema for author
89
+ - [ ] FAQPage schema
90
+ - [ ] Fast loading (< 2.5s)
91
+ - [ ] Clean HTML structure
92
+
93
+ ---
94
+
95
+ ## 6. Entity Building
96
+
97
+ | Action | Purpose |
98
+ |--------|---------|
99
+ | Google Knowledge Panel | Entity recognition |
100
+ | Wikipedia (if notable) | Authority source |
101
+ | Consistent info across web | Entity consolidation |
102
+ | Industry mentions | Authority signals |
103
+
104
+ ---
105
+
106
+ ## 7. AI Crawler Access
107
+
108
+ ### Key AI User-Agents
109
+
110
+ | Crawler | Engine |
111
+ |---------|--------|
112
+ | GPTBot | ChatGPT/OpenAI |
113
+ | Claude-Web | Claude |
114
+ | PerplexityBot | Perplexity |
115
+ | Googlebot | Gemini (shared) |
116
+
117
+ ### Access Decision
118
+
119
+ | Strategy | When |
120
+ |----------|------|
121
+ | Allow all | Want AI citations |
122
+ | Block GPTBot | Don't want OpenAI training |
123
+ | Selective | Allow some, block others |
124
+
125
+ ---
126
+
127
+ ## 8. Measurement
128
+
129
+ | Metric | How to Track |
130
+ |--------|--------------|
131
+ | AI citations | Manual monitoring |
132
+ | "According to [Brand]" mentions | Search in AI |
133
+ | Competitor citations | Compare share |
134
+ | AI-referred traffic | UTM parameters |
135
+
136
+ ---
137
+
138
+ ## 9. Anti-Patterns
139
+
140
+ | Don't | Do |
141
+ |----------|-------|
142
+ | Publish without dates | Add timestamps |
143
+ | Vague attributions | Name sources |
144
+ | Skip author info | Show credentials |
145
+ | Thin content | Comprehensive coverage |
146
+
147
+ ---
148
+
149
+ > **Remember:** AI cites content that's clear, authoritative, and easy to extract. Be the best answer.
150
+
151
+ ---
152
+
153
+ ## Script
154
+
155
+ | Script | Purpose | Command |
156
+ |--------|---------|---------|
157
+ | `scripts/geo_checker.py` | GEO audit (AI citation readiness) | `python scripts/geo_checker.py <project_path>` |
158
+