cp-toolkit 2.2.2 → 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 +410 -64
- 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,152 +1,154 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: plan-writing
|
|
3
|
-
description: Structured task planning with clear breakdowns, dependencies, and verification
|
|
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
|
-
- What
|
|
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
|
-
- [ ] Task
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: plan-writing
|
|
3
|
+
description: Structured task planning with clear breakdowns, dependencies, and verification
|
|
4
|
+
criteria. Use when implementing features, refactoring, or any multi-step work.
|
|
5
|
+
allowed-tools: Read, Glob, Grep
|
|
6
|
+
version: '1.0'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Plan Writing
|
|
10
|
+
|
|
11
|
+
> Source: obra/superpowers
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
This skill provides a framework for breaking down work into clear, actionable tasks with verification criteria.
|
|
15
|
+
|
|
16
|
+
## Task Breakdown Principles
|
|
17
|
+
|
|
18
|
+
### 1. Small, Focused Tasks
|
|
19
|
+
- Each task should take 2-5 minutes
|
|
20
|
+
- One clear outcome per task
|
|
21
|
+
- Independently verifiable
|
|
22
|
+
|
|
23
|
+
### 2. Clear Verification
|
|
24
|
+
- How do you know it's done?
|
|
25
|
+
- What can you check/test?
|
|
26
|
+
- What's the expected output?
|
|
27
|
+
|
|
28
|
+
### 3. Logical Ordering
|
|
29
|
+
- Dependencies identified
|
|
30
|
+
- Parallel work where possible
|
|
31
|
+
- Critical path highlighted
|
|
32
|
+
- **Phase X: Verification is always LAST**
|
|
33
|
+
|
|
34
|
+
### 4. Dynamic Naming in Project Root
|
|
35
|
+
- Plan files are saved as `{task-slug}.md` in the PROJECT ROOT
|
|
36
|
+
- Name derived from task (e.g., "add auth" → `auth-feature.md`)
|
|
37
|
+
- **NEVER** inside `.claude/`, `docs/`, or temp folders
|
|
38
|
+
|
|
39
|
+
## Planning Principles (NOT Templates!)
|
|
40
|
+
|
|
41
|
+
> 🔴 **NO fixed templates. Each plan is UNIQUE to the task.**
|
|
42
|
+
|
|
43
|
+
### Principle 1: Keep It SHORT
|
|
44
|
+
|
|
45
|
+
| ❌ Wrong | ✅ Right |
|
|
46
|
+
|----------|----------|
|
|
47
|
+
| 50 tasks with sub-sub-tasks | 5-10 clear tasks max |
|
|
48
|
+
| Every micro-step listed | Only actionable items |
|
|
49
|
+
| Verbose descriptions | One-line per task |
|
|
50
|
+
|
|
51
|
+
> **Rule:** If plan is longer than 1 page, it's too long. Simplify.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### Principle 2: Be SPECIFIC, Not Generic
|
|
56
|
+
|
|
57
|
+
| ❌ Wrong | ✅ Right |
|
|
58
|
+
|----------|----------|
|
|
59
|
+
| "Set up project" | "Run `npx create-next-app`" |
|
|
60
|
+
| "Add authentication" | "Install next-auth, create `/api/auth/[...nextauth].ts`" |
|
|
61
|
+
| "Style the UI" | "Add Tailwind classes to `Header.tsx`" |
|
|
62
|
+
|
|
63
|
+
> **Rule:** Each task should have a clear, verifiable outcome.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
### Principle 3: Dynamic Content Based on Project Type
|
|
68
|
+
|
|
69
|
+
**For NEW PROJECT:**
|
|
70
|
+
- What tech stack? (decide first)
|
|
71
|
+
- What's the MVP? (minimal features)
|
|
72
|
+
- What's the file structure?
|
|
73
|
+
|
|
74
|
+
**For FEATURE ADDITION:**
|
|
75
|
+
- Which files are affected?
|
|
76
|
+
- What dependencies needed?
|
|
77
|
+
- How to verify it works?
|
|
78
|
+
|
|
79
|
+
**For BUG FIX:**
|
|
80
|
+
- What's the root cause?
|
|
81
|
+
- What file/line to change?
|
|
82
|
+
- How to test the fix?
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### Principle 4: Scripts Are Project-Specific
|
|
87
|
+
|
|
88
|
+
> 🔴 **DO NOT copy-paste script commands. Choose based on project type.**
|
|
89
|
+
|
|
90
|
+
| Project Type | Relevant Scripts |
|
|
91
|
+
|--------------|------------------|
|
|
92
|
+
| Frontend/React | `ux_audit.py`, `accessibility_checker.py` |
|
|
93
|
+
| Backend/API | `api_validator.py`, `security_scan.py` |
|
|
94
|
+
| Mobile | `mobile_audit.py` |
|
|
95
|
+
| Database | `schema_validator.py` |
|
|
96
|
+
| Full-stack | Mix of above based on what you touched |
|
|
97
|
+
|
|
98
|
+
**Wrong:** Adding all scripts to every plan
|
|
99
|
+
**Right:** Only scripts relevant to THIS task
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Principle 5: Verification is Simple
|
|
104
|
+
|
|
105
|
+
| ❌ Wrong | ✅ Right |
|
|
106
|
+
|----------|----------|
|
|
107
|
+
| "Verify the component works correctly" | "Run `npm run dev`, click button, see toast" |
|
|
108
|
+
| "Test the API" | "curl localhost:3000/api/users returns 200" |
|
|
109
|
+
| "Check styles" | "Open browser, verify dark mode toggle works" |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Plan Structure (Flexible, Not Fixed!)
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
# [Task Name]
|
|
117
|
+
|
|
118
|
+
## Goal
|
|
119
|
+
One sentence: What are we building/fixing?
|
|
120
|
+
|
|
121
|
+
## Tasks
|
|
122
|
+
- [ ] Task 1: [Specific action] → Verify: [How to check]
|
|
123
|
+
- [ ] Task 2: [Specific action] → Verify: [How to check]
|
|
124
|
+
- [ ] Task 3: [Specific action] → Verify: [How to check]
|
|
125
|
+
|
|
126
|
+
## Done When
|
|
127
|
+
- [ ] [Main success criteria]
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
> **That's it.** No phases, no sub-sections unless truly needed.
|
|
131
|
+
> Keep it minimal. Add complexity only when required.
|
|
132
|
+
|
|
133
|
+
## Notes
|
|
134
|
+
[Any important considerations]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Best Practices (Quick Reference)
|
|
140
|
+
|
|
141
|
+
1. **Start with goal** - What are we building/fixing?
|
|
142
|
+
2. **Max 10 tasks** - If more, break into multiple plans
|
|
143
|
+
3. **Each task verifiable** - Clear "done" criteria
|
|
144
|
+
4. **Project-specific** - No copy-paste templates
|
|
145
|
+
5. **Update as you go** - Mark `[x]` when complete
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## When to Use
|
|
150
|
+
|
|
151
|
+
- New project from scratch
|
|
152
|
+
- Adding a feature
|
|
153
|
+
- Fixing a bug (if complex)
|
|
154
|
+
- Refactoring multiple files
|
|
@@ -1,81 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: api-patterns
|
|
3
|
-
description: API design principles and decision-making. REST vs GraphQL vs tRPC selection,
|
|
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
|
-
- [ ] **Planned
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
name: api-patterns
|
|
3
|
+
description: API design principles and decision-making. REST vs GraphQL vs tRPC selection,
|
|
4
|
+
response formats, versioning, pagination.
|
|
5
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
6
|
+
version: '1.0'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# API Patterns
|
|
10
|
+
|
|
11
|
+
> API design principles and decision-making for 2025.
|
|
12
|
+
> **Learn to THINK, not copy fixed patterns.**
|
|
13
|
+
|
|
14
|
+
## 🎯 Selective Reading Rule
|
|
15
|
+
|
|
16
|
+
**Read ONLY files relevant to the request!** Check the content map, find what you need.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 📑 Content Map
|
|
21
|
+
|
|
22
|
+
| File | Description | When to Read |
|
|
23
|
+
|------|-------------|--------------|
|
|
24
|
+
| `api-style.md` | REST vs GraphQL vs tRPC decision tree | Choosing API type |
|
|
25
|
+
| `rest.md` | Resource naming, HTTP methods, status codes | Designing REST API |
|
|
26
|
+
| `response.md` | Envelope pattern, error format, pagination | Response structure |
|
|
27
|
+
| `graphql.md` | Schema design, when to use, security | Considering GraphQL |
|
|
28
|
+
| `trpc.md` | TypeScript monorepo, type safety | TS fullstack projects |
|
|
29
|
+
| `versioning.md` | URI/Header/Query versioning | API evolution planning |
|
|
30
|
+
| `auth.md` | JWT, OAuth, Passkey, API Keys | Auth pattern selection |
|
|
31
|
+
| `rate-limiting.md` | Token bucket, sliding window | API protection |
|
|
32
|
+
| `documentation.md` | OpenAPI/Swagger best practices | Documentation |
|
|
33
|
+
| `security-testing.md` | OWASP API Top 10, auth/authz testing | Security audits |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 🔗 Related Skills
|
|
38
|
+
|
|
39
|
+
| Need | Skill |
|
|
40
|
+
|------|-------|
|
|
41
|
+
| API implementation | `@[skills/backend-development]` |
|
|
42
|
+
| Data structure | `@[skills/database-design]` |
|
|
43
|
+
| Security details | `@[skills/security-hardening]` |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## ✅ Decision Checklist
|
|
48
|
+
|
|
49
|
+
Before designing an API:
|
|
50
|
+
|
|
51
|
+
- [ ] **Asked user about API consumers?**
|
|
52
|
+
- [ ] **Chosen API style for THIS context?** (REST/GraphQL/tRPC)
|
|
53
|
+
- [ ] **Defined consistent response format?**
|
|
54
|
+
- [ ] **Planned versioning strategy?**
|
|
55
|
+
- [ ] **Considered authentication needs?**
|
|
56
|
+
- [ ] **Planned rate limiting?**
|
|
57
|
+
- [ ] **Documentation approach defined?**
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## ❌ Anti-Patterns
|
|
62
|
+
|
|
63
|
+
**DON'T:**
|
|
64
|
+
- Default to REST for everything
|
|
65
|
+
- Use verbs in REST endpoints (/getUsers)
|
|
66
|
+
- Return inconsistent response formats
|
|
67
|
+
- Expose internal errors to clients
|
|
68
|
+
- Skip rate limiting
|
|
69
|
+
|
|
70
|
+
**DO:**
|
|
71
|
+
- Choose API style based on context
|
|
72
|
+
- Ask about client requirements
|
|
73
|
+
- Document thoroughly
|
|
74
|
+
- Use appropriate status codes
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Script
|
|
79
|
+
|
|
80
|
+
| Script | Purpose | Command |
|
|
81
|
+
|--------|---------|---------|
|
|
82
|
+
| `scripts/api_validator.py` | API endpoint validation | `python scripts/api_validator.py <project_path>` |
|
|
83
|
+
|
|
@@ -1,75 +1,78 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: app-builder
|
|
3
|
-
description: Main application building orchestrator. Creates full-stack applications
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
name: app-builder
|
|
3
|
+
description: Main application building orchestrator. Creates full-stack applications
|
|
4
|
+
from natural language requests. Determines project type, selects tech stack, coordinates
|
|
5
|
+
agents.
|
|
6
|
+
allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent
|
|
7
|
+
version: '1.0'
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# App Builder - Application Building Orchestrator
|
|
11
|
+
|
|
12
|
+
> Analyzes user's requests, determines tech stack, plans structure, and coordinates agents.
|
|
13
|
+
|
|
14
|
+
## 🎯 Selective Reading Rule
|
|
15
|
+
|
|
16
|
+
**Read ONLY files relevant to the request!** Check the content map, find what you need.
|
|
17
|
+
|
|
18
|
+
| File | Description | When to Read |
|
|
19
|
+
|------|-------------|--------------|
|
|
20
|
+
| `project-detection.md` | Keyword matrix, project type detection | Starting new project |
|
|
21
|
+
| `tech-stack.md` | 2025 default stack, alternatives | Choosing technologies |
|
|
22
|
+
| `agent-coordination.md` | Agent pipeline, execution order | Coordinating multi-agent work |
|
|
23
|
+
| `scaffolding.md` | Directory structure, core files | Creating project structure |
|
|
24
|
+
| `feature-building.md` | Feature analysis, error handling | Adding features to existing project |
|
|
25
|
+
| `templates/SKILL.md` | **Project templates** | Scaffolding new project |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 📦 Templates (13)
|
|
30
|
+
|
|
31
|
+
Quick-start scaffolding for new projects. **Read the matching template only!**
|
|
32
|
+
|
|
33
|
+
| Template | Tech Stack | When to Use |
|
|
34
|
+
|----------|------------|-------------|
|
|
35
|
+
| [nextjs-fullstack](templates/nextjs-fullstack/TEMPLATE.md) | Next.js + Prisma | Full-stack web app |
|
|
36
|
+
| [nextjs-saas](templates/nextjs-saas/TEMPLATE.md) | Next.js + Stripe | SaaS product |
|
|
37
|
+
| [nextjs-static](templates/nextjs-static/TEMPLATE.md) | Next.js + Framer | Landing page |
|
|
38
|
+
| [nuxt-app](templates/nuxt-app/TEMPLATE.md) | Nuxt 3 + Pinia | Vue full-stack app |
|
|
39
|
+
| [express-api](templates/express-api/TEMPLATE.md) | Express + JWT | REST API |
|
|
40
|
+
| [python-fastapi](templates/python-fastapi/TEMPLATE.md) | FastAPI | Python API |
|
|
41
|
+
| [react-native-app](templates/react-native-app/TEMPLATE.md) | Expo + Zustand | Mobile app |
|
|
42
|
+
| [flutter-app](templates/flutter-app/TEMPLATE.md) | Flutter + Riverpod | Cross-platform mobile |
|
|
43
|
+
| [electron-desktop](templates/electron-desktop/TEMPLATE.md) | Electron + React | Desktop app |
|
|
44
|
+
| [chrome-extension](templates/chrome-extension/TEMPLATE.md) | Chrome MV3 | Browser extension |
|
|
45
|
+
| [cli-tool](templates/cli-tool/TEMPLATE.md) | Node.js + Commander | CLI app |
|
|
46
|
+
| [monorepo-turborepo](templates/monorepo-turborepo/TEMPLATE.md) | Turborepo + pnpm | Monorepo |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🔗 Related Agents
|
|
51
|
+
|
|
52
|
+
| Agent | Role |
|
|
53
|
+
|-------|------|
|
|
54
|
+
| `project-planner` | Task breakdown, dependency graph |
|
|
55
|
+
| `frontend-specialist` | UI components, pages |
|
|
56
|
+
| `backend-specialist` | API, business logic |
|
|
57
|
+
| `database-architect` | Schema, migrations |
|
|
58
|
+
| `devops-engineer` | Deployment, preview |
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Usage Example
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
User: "Make an Instagram clone with photo sharing and likes"
|
|
66
|
+
|
|
67
|
+
App Builder Process:
|
|
68
|
+
1. Project type: Social Media App
|
|
69
|
+
2. Tech stack: Next.js + Prisma + Cloudinary + Clerk
|
|
70
|
+
3. Create plan:
|
|
71
|
+
├─ Database schema (users, posts, likes, follows)
|
|
72
|
+
├─ API routes (12 endpoints)
|
|
73
|
+
├─ Pages (feed, profile, upload)
|
|
74
|
+
└─ Components (PostCard, Feed, LikeButton)
|
|
75
|
+
4. Coordinate agents
|
|
76
|
+
5. Report progress
|
|
77
|
+
6. Start preview
|
|
78
|
+
```
|