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