@iamnishankhan/opencode-kit-grok 1.0.0

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 (198) hide show
  1. package/bin/cli.js +46 -0
  2. package/kit/.opencode/AGENTS.md +392 -0
  3. package/kit/.opencode/README.md +71 -0
  4. package/kit/.opencode/USAGE.md +405 -0
  5. package/kit/.opencode/agents/backend-specialist.md +278 -0
  6. package/kit/.opencode/agents/code-archaeologist.md +114 -0
  7. package/kit/.opencode/agents/database-architect.md +233 -0
  8. package/kit/.opencode/agents/debugger.md +234 -0
  9. package/kit/.opencode/agents/devops-engineer.md +252 -0
  10. package/kit/.opencode/agents/documentation-writer.md +111 -0
  11. package/kit/.opencode/agents/explorer-agent.md +83 -0
  12. package/kit/.opencode/agents/frontend-specialist.md +606 -0
  13. package/kit/.opencode/agents/game-developer.md +169 -0
  14. package/kit/.opencode/agents/mobile-developer.md +385 -0
  15. package/kit/.opencode/agents/orchestrator.md +213 -0
  16. package/kit/.opencode/agents/penetration-tester.md +197 -0
  17. package/kit/.opencode/agents/performance-optimizer.md +194 -0
  18. package/kit/.opencode/agents/product-manager.md +120 -0
  19. package/kit/.opencode/agents/product-owner.md +103 -0
  20. package/kit/.opencode/agents/project-planner.md +418 -0
  21. package/kit/.opencode/agents/qa-automation-engineer.md +113 -0
  22. package/kit/.opencode/agents/security-auditor.md +179 -0
  23. package/kit/.opencode/agents/seo-specialist.md +119 -0
  24. package/kit/.opencode/agents/test-engineer.md +169 -0
  25. package/kit/.opencode/commands/brainstorm.md +113 -0
  26. package/kit/.opencode/commands/coordinate.md +72 -0
  27. package/kit/.opencode/commands/create.md +63 -0
  28. package/kit/.opencode/commands/debug.md +102 -0
  29. package/kit/.opencode/commands/deploy.md +175 -0
  30. package/kit/.opencode/commands/enhance.md +62 -0
  31. package/kit/.opencode/commands/orchestrate.md +241 -0
  32. package/kit/.opencode/commands/plan.md +89 -0
  33. package/kit/.opencode/commands/preview.md +80 -0
  34. package/kit/.opencode/commands/remember.md +67 -0
  35. package/kit/.opencode/commands/status.md +86 -0
  36. package/kit/.opencode/commands/test.md +143 -0
  37. package/kit/.opencode/commands/verify.md +71 -0
  38. package/kit/.opencode/memory/MEMORY.md +6 -0
  39. package/kit/.opencode/memory/feedback-history.md +9 -0
  40. package/kit/.opencode/memory/project-conventions.md +16 -0
  41. package/kit/.opencode/memory/tech-decisions.md +10 -0
  42. package/kit/.opencode/memory/user-preferences.md +9 -0
  43. package/kit/.opencode/opencode.json +15 -0
  44. package/kit/.opencode/scripts/README.md +95 -0
  45. package/kit/.opencode/scripts/auto_preview.py +149 -0
  46. package/kit/.opencode/scripts/checklist.py +75 -0
  47. package/kit/.opencode/scripts/component_registry.py +238 -0
  48. package/kit/.opencode/scripts/dependency_graph.py +73 -0
  49. package/kit/.opencode/scripts/generate_manifest.py +44 -0
  50. package/kit/.opencode/scripts/session_manager.py +120 -0
  51. package/kit/.opencode/scripts/tests/test_toolkit.py +238 -0
  52. package/kit/.opencode/scripts/validate_kit.py +397 -0
  53. package/kit/.opencode/scripts/validation_runner.py +216 -0
  54. package/kit/.opencode/scripts/verify_all.py +85 -0
  55. package/kit/.opencode/skills/api-patterns/SKILL.md +83 -0
  56. package/kit/.opencode/skills/api-patterns/api-style.md +42 -0
  57. package/kit/.opencode/skills/api-patterns/auth.md +24 -0
  58. package/kit/.opencode/skills/api-patterns/documentation.md +26 -0
  59. package/kit/.opencode/skills/api-patterns/graphql.md +41 -0
  60. package/kit/.opencode/skills/api-patterns/rate-limiting.md +31 -0
  61. package/kit/.opencode/skills/api-patterns/response.md +37 -0
  62. package/kit/.opencode/skills/api-patterns/rest.md +40 -0
  63. package/kit/.opencode/skills/api-patterns/scripts/api_validator.py +211 -0
  64. package/kit/.opencode/skills/api-patterns/security-testing.md +122 -0
  65. package/kit/.opencode/skills/api-patterns/trpc.md +41 -0
  66. package/kit/.opencode/skills/api-patterns/versioning.md +22 -0
  67. package/kit/.opencode/skills/app-builder/SKILL.md +78 -0
  68. package/kit/.opencode/skills/app-builder/agent-coordination.md +71 -0
  69. package/kit/.opencode/skills/app-builder/feature-building.md +53 -0
  70. package/kit/.opencode/skills/app-builder/project-detection.md +45 -0
  71. package/kit/.opencode/skills/app-builder/scaffolding.md +110 -0
  72. package/kit/.opencode/skills/app-builder/tech-stack.md +41 -0
  73. package/kit/.opencode/skills/app-builder/templates/SKILL.md +39 -0
  74. package/kit/.opencode/skills/app-builder/templates/astro-static/TEMPLATE.md +78 -0
  75. package/kit/.opencode/skills/app-builder/templates/chrome-extension/TEMPLATE.md +96 -0
  76. package/kit/.opencode/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  77. package/kit/.opencode/skills/app-builder/templates/electron-desktop/TEMPLATE.md +97 -0
  78. package/kit/.opencode/skills/app-builder/templates/express-api/TEMPLATE.md +89 -0
  79. package/kit/.opencode/skills/app-builder/templates/flutter-app/TEMPLATE.md +93 -0
  80. package/kit/.opencode/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +97 -0
  81. package/kit/.opencode/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +126 -0
  82. package/kit/.opencode/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +125 -0
  83. package/kit/.opencode/skills/app-builder/templates/nextjs-static/TEMPLATE.md +174 -0
  84. package/kit/.opencode/skills/app-builder/templates/nuxt-app/TEMPLATE.md +127 -0
  85. package/kit/.opencode/skills/app-builder/templates/python-fastapi/TEMPLATE.md +94 -0
  86. package/kit/.opencode/skills/app-builder/templates/react-native-app/TEMPLATE.md +121 -0
  87. package/kit/.opencode/skills/architecture/SKILL.md +57 -0
  88. package/kit/.opencode/skills/architecture/context-discovery.md +43 -0
  89. package/kit/.opencode/skills/architecture/examples.md +94 -0
  90. package/kit/.opencode/skills/architecture/pattern-selection.md +68 -0
  91. package/kit/.opencode/skills/architecture/patterns-reference.md +50 -0
  92. package/kit/.opencode/skills/architecture/trade-off-analysis.md +77 -0
  93. package/kit/.opencode/skills/bash-linux/SKILL.md +201 -0
  94. package/kit/.opencode/skills/batch-operations/SKILL.md +105 -0
  95. package/kit/.opencode/skills/behavioral-modes/SKILL.md +253 -0
  96. package/kit/.opencode/skills/brainstorming/SKILL.md +178 -0
  97. package/kit/.opencode/skills/brainstorming/dynamic-questioning.md +350 -0
  98. package/kit/.opencode/skills/clean-code/SKILL.md +201 -0
  99. package/kit/.opencode/skills/code-review-checklist/SKILL.md +111 -0
  100. package/kit/.opencode/skills/code-review-graph/SKILL.md +305 -0
  101. package/kit/.opencode/skills/context-compression/SKILL.md +145 -0
  102. package/kit/.opencode/skills/coordinator-mode/SKILL.md +208 -0
  103. package/kit/.opencode/skills/database-design/SKILL.md +54 -0
  104. package/kit/.opencode/skills/database-design/database-selection.md +43 -0
  105. package/kit/.opencode/skills/database-design/indexing.md +39 -0
  106. package/kit/.opencode/skills/database-design/migrations.md +48 -0
  107. package/kit/.opencode/skills/database-design/optimization.md +36 -0
  108. package/kit/.opencode/skills/database-design/orm-selection.md +30 -0
  109. package/kit/.opencode/skills/database-design/schema-design.md +56 -0
  110. package/kit/.opencode/skills/database-design/scripts/schema_validator.py +172 -0
  111. package/kit/.opencode/skills/deployment-procedures/SKILL.md +243 -0
  112. package/kit/.opencode/skills/design-spec/SKILL.md +185 -0
  113. package/kit/.opencode/skills/design-spec/collection.md +106 -0
  114. package/kit/.opencode/skills/documentation-templates/SKILL.md +196 -0
  115. package/kit/.opencode/skills/frontend-architecture/SKILL.md +245 -0
  116. package/kit/.opencode/skills/frontend-design/SKILL.md +1222 -0
  117. package/kit/.opencode/skills/frontend-design/redesign.md +178 -0
  118. package/kit/.opencode/skills/frontend-design/scripts/accessibility_checker.py +145 -0
  119. package/kit/.opencode/skills/frontend-design/scripts/ux_audit.py +722 -0
  120. package/kit/.opencode/skills/frontend-design/style-brutalist.md +92 -0
  121. package/kit/.opencode/skills/frontend-design/style-minimalist.md +85 -0
  122. package/kit/.opencode/skills/game-development/2d-games/SKILL.md +118 -0
  123. package/kit/.opencode/skills/game-development/3d-games/SKILL.md +134 -0
  124. package/kit/.opencode/skills/game-development/SKILL.md +169 -0
  125. package/kit/.opencode/skills/game-development/game-art/SKILL.md +184 -0
  126. package/kit/.opencode/skills/game-development/game-audio/SKILL.md +189 -0
  127. package/kit/.opencode/skills/game-development/game-design/SKILL.md +128 -0
  128. package/kit/.opencode/skills/game-development/mobile-games/SKILL.md +107 -0
  129. package/kit/.opencode/skills/game-development/multiplayer/SKILL.md +131 -0
  130. package/kit/.opencode/skills/game-development/pc-games/SKILL.md +143 -0
  131. package/kit/.opencode/skills/game-development/vr-ar/SKILL.md +122 -0
  132. package/kit/.opencode/skills/game-development/web-games/SKILL.md +149 -0
  133. package/kit/.opencode/skills/geo-fundamentals/SKILL.md +158 -0
  134. package/kit/.opencode/skills/geo-fundamentals/scripts/geo_checker.py +273 -0
  135. package/kit/.opencode/skills/i18n-localization/SKILL.md +156 -0
  136. package/kit/.opencode/skills/i18n-localization/scripts/i18n_checker.py +223 -0
  137. package/kit/.opencode/skills/intelligent-routing/SKILL.md +337 -0
  138. package/kit/.opencode/skills/lint-and-validate/SKILL.md +47 -0
  139. package/kit/.opencode/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  140. package/kit/.opencode/skills/lint-and-validate/scripts/type_coverage.py +245 -0
  141. package/kit/.opencode/skills/mcp-builder/SKILL.md +205 -0
  142. package/kit/.opencode/skills/memory-system/SKILL.md +181 -0
  143. package/kit/.opencode/skills/mobile-design/SKILL.md +396 -0
  144. package/kit/.opencode/skills/mobile-design/decision-trees.md +516 -0
  145. package/kit/.opencode/skills/mobile-design/mobile-backend.md +491 -0
  146. package/kit/.opencode/skills/mobile-design/mobile-color-system.md +420 -0
  147. package/kit/.opencode/skills/mobile-design/mobile-debugging.md +122 -0
  148. package/kit/.opencode/skills/mobile-design/mobile-design-thinking.md +357 -0
  149. package/kit/.opencode/skills/mobile-design/mobile-navigation.md +458 -0
  150. package/kit/.opencode/skills/mobile-design/mobile-performance.md +767 -0
  151. package/kit/.opencode/skills/mobile-design/mobile-testing.md +356 -0
  152. package/kit/.opencode/skills/mobile-design/mobile-typography.md +433 -0
  153. package/kit/.opencode/skills/mobile-design/platform-android.md +666 -0
  154. package/kit/.opencode/skills/mobile-design/platform-ios.md +561 -0
  155. package/kit/.opencode/skills/mobile-design/scripts/mobile_audit.py +670 -0
  156. package/kit/.opencode/skills/mobile-design/touch-psychology.md +537 -0
  157. package/kit/.opencode/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  158. package/kit/.opencode/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  159. package/kit/.opencode/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  160. package/kit/.opencode/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  161. package/kit/.opencode/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  162. package/kit/.opencode/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  163. package/kit/.opencode/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  164. package/kit/.opencode/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  165. package/kit/.opencode/skills/nextjs-react-expert/9-cache-components.md +103 -0
  166. package/kit/.opencode/skills/nextjs-react-expert/SKILL.md +293 -0
  167. package/kit/.opencode/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  168. package/kit/.opencode/skills/nextjs-react-expert/scripts/react_performance_checker.py +281 -0
  169. package/kit/.opencode/skills/nodejs-best-practices/SKILL.md +336 -0
  170. package/kit/.opencode/skills/parallel-agents/SKILL.md +192 -0
  171. package/kit/.opencode/skills/performance-profiling/SKILL.md +145 -0
  172. package/kit/.opencode/skills/performance-profiling/scripts/bundle_analyzer.py +120 -0
  173. package/kit/.opencode/skills/performance-profiling/scripts/lighthouse_audit.py +108 -0
  174. package/kit/.opencode/skills/plan-writing/SKILL.md +153 -0
  175. package/kit/.opencode/skills/powershell-windows/SKILL.md +169 -0
  176. package/kit/.opencode/skills/python-patterns/SKILL.md +443 -0
  177. package/kit/.opencode/skills/red-team-tactics/SKILL.md +201 -0
  178. package/kit/.opencode/skills/rust-pro/SKILL.md +177 -0
  179. package/kit/.opencode/skills/seo-fundamentals/SKILL.md +131 -0
  180. package/kit/.opencode/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  181. package/kit/.opencode/skills/server-management/SKILL.md +163 -0
  182. package/kit/.opencode/skills/simplify-code/SKILL.md +131 -0
  183. package/kit/.opencode/skills/skillify/SKILL.md +115 -0
  184. package/kit/.opencode/skills/systematic-debugging/SKILL.md +111 -0
  185. package/kit/.opencode/skills/tailwind-patterns/SKILL.md +271 -0
  186. package/kit/.opencode/skills/tdd-workflow/SKILL.md +151 -0
  187. package/kit/.opencode/skills/testing-patterns/SKILL.md +180 -0
  188. package/kit/.opencode/skills/testing-patterns/scripts/test_runner.py +219 -0
  189. package/kit/.opencode/skills/verify-changes/SKILL.md +127 -0
  190. package/kit/.opencode/skills/vulnerability-scanner/SKILL.md +278 -0
  191. package/kit/.opencode/skills/vulnerability-scanner/checklists.md +124 -0
  192. package/kit/.opencode/skills/vulnerability-scanner/scripts/dependency_analyzer.py +144 -0
  193. package/kit/.opencode/skills/vulnerability-scanner/scripts/security_scan.py +410 -0
  194. package/kit/.opencode/skills/web-design-guidelines/SKILL.md +56 -0
  195. package/kit/.opencode/skills/webapp-testing/SKILL.md +189 -0
  196. package/kit/.opencode/skills/webapp-testing/scripts/playwright_runner.py +123 -0
  197. package/lib/init.js +61 -0
  198. package/package.json +21 -0
@@ -0,0 +1,122 @@
1
+ # API Security Testing
2
+
3
+ > Principles for testing API security. OWASP API Top 10, authentication, authorization testing.
4
+
5
+ ---
6
+
7
+ ## OWASP API Security Top 10
8
+
9
+ | Vulnerability | Test Focus |
10
+ |---------------|------------|
11
+ | **API1: BOLA** | Access other users' resources |
12
+ | **API2: Broken Auth** | JWT, session, credentials |
13
+ | **API3: Property Auth** | Mass assignment, data exposure |
14
+ | **API4: Resource Consumption** | Rate limiting, DoS |
15
+ | **API5: Function Auth** | Admin endpoints, role bypass |
16
+ | **API6: Business Flow** | Logic abuse, automation |
17
+ | **API7: SSRF** | Internal network access |
18
+ | **API8: Misconfiguration** | Debug endpoints, CORS |
19
+ | **API9: Inventory** | Shadow APIs, old versions |
20
+ | **API10: Unsafe Consumption** | Third-party API trust |
21
+
22
+ ---
23
+
24
+ ## Authentication Testing
25
+
26
+ ### JWT Testing
27
+
28
+ | Check | What to Test |
29
+ |-------|--------------|
30
+ | Algorithm | None, algorithm confusion |
31
+ | Secret | Weak secrets, brute force |
32
+ | Claims | Expiration, issuer, audience |
33
+ | Signature | Manipulation, key injection |
34
+
35
+ ### Session Testing
36
+
37
+ | Check | What to Test |
38
+ |-------|--------------|
39
+ | Generation | Predictability |
40
+ | Storage | Client-side security |
41
+ | Expiration | Timeout enforcement |
42
+ | Invalidation | Logout effectiveness |
43
+
44
+ ---
45
+
46
+ ## Authorization Testing
47
+
48
+ | Test Type | Approach |
49
+ |-----------|----------|
50
+ | **Horizontal** | Access peer users' data |
51
+ | **Vertical** | Access higher privilege functions |
52
+ | **Context** | Access outside allowed scope |
53
+
54
+ ### BOLA/IDOR Testing
55
+
56
+ 1. Identify resource IDs in requests
57
+ 2. Capture request with user A's session
58
+ 3. Replay with user B's session
59
+ 4. Check for unauthorized access
60
+
61
+ ---
62
+
63
+ ## Input Validation Testing
64
+
65
+ | Injection Type | Test Focus |
66
+ |----------------|------------|
67
+ | SQL | Query manipulation |
68
+ | NoSQL | Document queries |
69
+ | Command | System commands |
70
+ | LDAP | Directory queries |
71
+
72
+ **Approach:** Test all parameters, try type coercion, test boundaries, check error messages.
73
+
74
+ ---
75
+
76
+ ## Rate Limiting Testing
77
+
78
+ | Aspect | Check |
79
+ |--------|-------|
80
+ | Existence | Is there any limit? |
81
+ | Bypass | Headers, IP rotation |
82
+ | Scope | Per-user, per-IP, global |
83
+
84
+ **Bypass techniques:** X-Forwarded-For, different HTTP methods, case variations, API versioning.
85
+
86
+ ---
87
+
88
+ ## GraphQL Security
89
+
90
+ | Test | Focus |
91
+ |------|-------|
92
+ | Introspection | Schema disclosure |
93
+ | Batching | Query DoS |
94
+ | Nesting | Depth-based DoS |
95
+ | Authorization | Field-level access |
96
+
97
+ ---
98
+
99
+ ## Security Testing Checklist
100
+
101
+ **Authentication:**
102
+ - [ ] Test for bypass
103
+ - [ ] Check credential strength
104
+ - [ ] Verify token security
105
+
106
+ **Authorization:**
107
+ - [ ] Test BOLA/IDOR
108
+ - [ ] Check privilege escalation
109
+ - [ ] Verify function access
110
+
111
+ **Input:**
112
+ - [ ] Test all parameters
113
+ - [ ] Check for injection
114
+
115
+ **Config:**
116
+ - [ ] Check CORS
117
+ - [ ] Verify headers
118
+ - [ ] Test error handling
119
+
120
+ ---
121
+
122
+ > **Remember:** APIs are the backbone of modern apps. Test them like attackers will.
@@ -0,0 +1,41 @@
1
+ # tRPC Principles
2
+
3
+ > End-to-end type safety for TypeScript monorepos.
4
+
5
+ ## When to Use
6
+
7
+ ```
8
+ ✅ Perfect fit:
9
+ ├── TypeScript on both ends
10
+ ├── Monorepo structure
11
+ ├── Internal tools
12
+ ├── Rapid development
13
+ └── Type safety critical
14
+
15
+ ❌ Poor fit:
16
+ ├── Non-TypeScript clients
17
+ ├── Public API
18
+ ├── Need REST conventions
19
+ └── Multiple language backends
20
+ ```
21
+
22
+ ## Key Benefits
23
+
24
+ ```
25
+ Why tRPC:
26
+ ├── Zero schema maintenance
27
+ ├── End-to-end type inference
28
+ ├── IDE autocomplete across stack
29
+ ├── Instant API changes reflected
30
+ └── No code generation step
31
+ ```
32
+
33
+ ## Integration Patterns
34
+
35
+ ```
36
+ Common setups:
37
+ ├── Next.js + tRPC (most common)
38
+ ├── Monorepo with shared types
39
+ ├── Remix + tRPC
40
+ └── Any TS frontend + backend
41
+ ```
@@ -0,0 +1,22 @@
1
+ # Versioning Strategies
2
+
3
+ > Plan for API evolution from day one.
4
+
5
+ ## Decision Factors
6
+
7
+ | Strategy | Implementation | Trade-offs |
8
+ |----------|---------------|------------|
9
+ | **URI** | /v1/users | Clear, easy caching |
10
+ | **Header** | Accept-Version: 1 | Cleaner URLs, harder discovery |
11
+ | **Query** | ?version=1 | Easy to add, messy |
12
+ | **None** | Evolve carefully | Best for internal, risky for public |
13
+
14
+ ## Versioning Philosophy
15
+
16
+ ```
17
+ Consider:
18
+ ├── Public API? → Version in URI
19
+ ├── Internal only? → May not need versioning
20
+ ├── GraphQL? → Typically no versions (evolve schema)
21
+ ├── tRPC? → Types enforce compatibility
22
+ ```
@@ -0,0 +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
+ compatibility: opencode
5
+ metadata:
6
+ when_to_use: "\"When creating a new full-stack application from scratch, selecting tech stack, or scaffolding project structure. Use with /create workflow.\""
7
+ version: "1.0.0"
8
+ ---
9
+ # App Builder - Application Building Orchestrator
10
+
11
+ > Analyzes user's requests, determines tech stack, plans structure, and coordinates agents.
12
+
13
+ ## 🎯 Selective Reading Rule
14
+
15
+ **Read ONLY files relevant to the request!** Check the content map, find what you need.
16
+
17
+ | File | Description | When to Read |
18
+ |------|-------------|--------------|
19
+ | `project-detection.md` | Keyword matrix, project type detection | Starting new project |
20
+ | `tech-stack.md` | 2026 default stack, alternatives | Choosing technologies |
21
+ | `agent-coordination.md` | Agent pipeline, execution order | Coordinating multi-agent work |
22
+ | `scaffolding.md` | Directory structure, core files | Creating project structure |
23
+ | `feature-building.md` | Feature analysis, error handling | Adding features to existing project |
24
+ | `templates/SKILL.md` | **Project templates** | Scaffolding new project |
25
+
26
+ ---
27
+
28
+ ## 📦 Templates (13)
29
+
30
+ Quick-start scaffolding for new projects. **Read the matching template only!**
31
+
32
+ | Template | Tech Stack | When to Use |
33
+ |----------|------------|-------------|
34
+ | [nextjs-fullstack](templates/nextjs-fullstack/TEMPLATE.md) | Next.js + Prisma | Full-stack web app |
35
+ | [nextjs-saas](templates/nextjs-saas/TEMPLATE.md) | Next.js + Stripe | SaaS product |
36
+ | [nextjs-static](templates/nextjs-static/TEMPLATE.md) | Next.js + Framer | Landing page |
37
+ | [nuxt-app](templates/nuxt-app/TEMPLATE.md) | Nuxt 4 + Pinia | Vue full-stack app |
38
+ | [express-api](templates/express-api/TEMPLATE.md) | Express + JWT | REST API |
39
+ | [python-fastapi](templates/python-fastapi/TEMPLATE.md) | FastAPI | Python API |
40
+ | [react-native-app](templates/react-native-app/TEMPLATE.md) | Expo + Zustand | Mobile app |
41
+ | [flutter-app](templates/flutter-app/TEMPLATE.md) | Flutter + Riverpod | Cross-platform mobile |
42
+ | [electron-desktop](templates/electron-desktop/TEMPLATE.md) | Electron + React | Desktop app |
43
+ | [chrome-extension](templates/chrome-extension/TEMPLATE.md) | Chrome MV3 | Browser extension |
44
+ | [cli-tool](templates/cli-tool/TEMPLATE.md) | Node.js + Commander | CLI app |
45
+ | [monorepo-turborepo](templates/monorepo-turborepo/TEMPLATE.md) | Turborepo + pnpm | Monorepo |
46
+ | [astro-static](templates/astro-static/TEMPLATE.md) | Astro + MDX | Blog / Documentation |
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 (auth, posts, likes, follows)
73
+ ├─ Pages (feed, profile, upload)
74
+ └─ Components (PostCard, Feed, LikeButton)
75
+ 4. Coordinate agents
76
+ 5. Report progress
77
+ 6. Start preview
78
+ ```
@@ -0,0 +1,71 @@
1
+ # Agent Coordination
2
+
3
+ > How App Builder orchestrates specialist agents.
4
+
5
+ ## Agent Pipeline
6
+
7
+ ```
8
+ ┌─────────────────────────────────────────────────────────────┐
9
+ │ APP BUILDER (Orchestrator) │
10
+ └─────────────────────────────────────────────────────────────┘
11
+
12
+
13
+ ┌─────────────────────────────────────────────────────────────┐
14
+ │ PROJECT PLANNER │
15
+ │ • Task breakdown │
16
+ │ • Dependency graph │
17
+ │ • File structure planning │
18
+ │ • Create {task-slug}.md in project root (MANDATORY) │
19
+ └─────────────────────────────────────────────────────────────┘
20
+
21
+
22
+ ┌─────────────────────────────────────────────────────────────┐
23
+ │ CHECKPOINT: PLAN VERIFICATION │
24
+ │ 🔴 VERIFY: Does {task-slug}.md exist in project root? │
25
+ │ 🔴 If NO → STOP → Create plan file first │
26
+ │ 🔴 If YES → Proceed to specialist agents │
27
+ └─────────────────────────────────────────────────────────────┘
28
+
29
+ ┌───────────────────┼───────────────────┐
30
+ ▼ ▼ ▼
31
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
32
+ │ DATABASE │ │ BACKEND │ │ FRONTEND │
33
+ │ ARCHITECT │ │ SPECIALIST │ │ SPECIALIST │
34
+ │ │ │ │ │ │
35
+ │ • Schema design │ │ • API routes │ │ • Components │
36
+ │ • Migrations │ │ • Controllers │ │ • Pages │
37
+ │ • Seed data │ │ • Middleware │ │ • Styling │
38
+ └─────────────────┘ └─────────────────┘ └─────────────────┘
39
+ │ │ │
40
+ └───────────────────┼───────────────────┘
41
+
42
+ ┌─────────────────────────────────────────────────────────────┐
43
+ │ PARALLEL PHASE (Optional) │
44
+ │ • Security Auditor → Vulnerability check │
45
+ │ • Test Engineer → Unit tests │
46
+ │ • Performance Optimizer → Bundle analysis │
47
+ └─────────────────────────────────────────────────────────────┘
48
+
49
+
50
+ ┌─────────────────────────────────────────────────────────────┐
51
+ │ DEVOPS ENGINEER │
52
+ │ • Environment setup │
53
+ │ • Preview deployment │
54
+ │ • Health check │
55
+ └─────────────────────────────────────────────────────────────┘
56
+ ```
57
+
58
+ ## Execution Order
59
+
60
+ | Phase | Agent(s) | Parallel? | Prerequisite | CHECKPOINT |
61
+ |-------|----------|-----------|--------------|------------|
62
+ | 0 | Socratic Gate | ❌ | - | ✅ Ask 3 questions |
63
+ | 1 | Project Planner | ❌ | Questions answered | ✅ **{task-slug}.md created** |
64
+ | 1.5 | **PLAN VERIFICATION** | ❌ | {task-slug}.md exists | ✅ **File exists in root** |
65
+ | 2 | Database Architect | ❌ | Plan ready | Schema defined |
66
+ | 3 | Backend Specialist | ❌ | Schema ready | API routes created |
67
+ | 4 | Frontend Specialist | ✅ | API ready (partial) | UI components ready |
68
+ | 5 | Security Auditor, Test Engineer | ✅ | Code ready | Tests & audit pass |
69
+ | 6 | DevOps Engineer | ❌ | All code ready | Deployment ready |
70
+
71
+ > 🔴 **CRITICAL:** Phase 1.5 is MANDATORY. No specialist agents proceed without {task-slug}.md verification.
@@ -0,0 +1,53 @@
1
+ # Feature Building
2
+
3
+ > How to analyze and implement new features.
4
+
5
+ ## Feature Analysis
6
+
7
+ ```
8
+ Request: "add payment system"
9
+
10
+ Analysis:
11
+ ├── Required Changes:
12
+ │ ├── Database: orders, payments tables
13
+ │ ├── Backend: /api/checkout, /api/webhooks/stripe
14
+ │ ├── Frontend: CheckoutForm, PaymentSuccess
15
+ │ └── Config: Stripe API keys
16
+
17
+ ├── Dependencies:
18
+ │ ├── stripe package
19
+ │ └── Existing user authentication
20
+
21
+ └── Scope: DB + 2 API routes + 2 components + config
22
+ ```
23
+
24
+ ## Iterative Enhancement Process
25
+
26
+ ```
27
+ 1. Analyze existing project
28
+ 2. Create change plan
29
+ 3. Present plan to user
30
+ 4. Get approval
31
+ 5. Apply changes
32
+ 6. Test
33
+ 7. Show preview
34
+ ```
35
+
36
+ ## Error Handling
37
+
38
+ | Error Type | Solution Strategy |
39
+ |------------|-------------------|
40
+ | TypeScript Error | Fix type, add missing import |
41
+ | Missing Dependency | Run npm install |
42
+ | Port Conflict | Suggest alternative port |
43
+ | Database Error | Check migration, validate connection |
44
+
45
+ ## Recovery Strategy
46
+
47
+ ```
48
+ 1. Detect error
49
+ 2. Try automatic fix
50
+ 3. If failed, report to user
51
+ 4. Suggest alternative
52
+ 5. Rollback if necessary
53
+ ```
@@ -0,0 +1,45 @@
1
+ # Project Type Detection
2
+
3
+ > Analyze user requests to determine project type and template.
4
+
5
+ ## Keyword Matrix
6
+
7
+ | Keywords | Project Type | Template |
8
+ |----------|--------------|----------|
9
+ | blog, post, article | Blog | astro-static |
10
+ | e-commerce, product, cart, payment | E-commerce | nextjs-saas |
11
+ | dashboard, panel, management | Admin Dashboard | nextjs-fullstack |
12
+ | api, backend, service, rest | API Service | express-api |
13
+ | python, fastapi, django | Python API | python-fastapi |
14
+ | mobile, android, ios, react native | Mobile App (RN) | react-native-app |
15
+ | flutter, dart | Mobile App (Flutter) | flutter-app |
16
+ | portfolio, personal, cv | Portfolio | nextjs-static |
17
+ | crm, customer, sales | CRM | nextjs-fullstack |
18
+ | saas, subscription, stripe | SaaS | nextjs-saas |
19
+ | landing, promotional, marketing | Landing Page | nextjs-static |
20
+ | docs, documentation | Documentation | astro-static |
21
+ | extension, plugin, chrome | Browser Extension | chrome-extension |
22
+ | desktop, electron | Desktop App | electron-desktop |
23
+ | cli, command line, terminal | CLI Tool | cli-tool |
24
+ | monorepo, workspace | Monorepo | monorepo-turborepo |
25
+
26
+ ## Detection Process
27
+
28
+ ```
29
+ 1. Tokenize user request
30
+ 2. Extract keywords
31
+ 3. Determine project type
32
+ 4. Detect missing information → forward to project-planner / orchestrator
33
+ 5. Suggest tech stack
34
+ ```
35
+
36
+ ## Conflict Resolution
37
+
38
+ When a request matches multiple keywords (e.g. "a CLI to manage my e-commerce products" matches both `cli` and `e-commerce`), resolve in this order:
39
+
40
+ | Priority | Rule | Example |
41
+ |----------|------|---------|
42
+ | 1 | **Platform wins over domain.** A concrete platform (mobile / desktop / cli / extension) outranks a web/business domain (e-commerce, crm, blog). | "CLI to manage e-commerce" → **cli-tool** (e-commerce is the data domain, not the deliverable) |
43
+ | 2 | **Head noun wins.** The keyword describing what is being built (grammatical subject) outranks modifiers. | "a **dashboard** for my Shopify store" → **nextjs-fullstack** (dashboard is the thing; Shopify is context) |
44
+ | 3 | **Still ambiguous → ask.** If no rule breaks the tie, do NOT guess. Surface the options through the Socratic Gate (Phase 0) and let the user choose. | "an app for my shop" → ask: web, mobile, or desktop? |
45
+
@@ -0,0 +1,110 @@
1
+ # Project Scaffolding
2
+
3
+ > Directory structure and core files for new projects.
4
+
5
+ ---
6
+
7
+ ## Next.js Full-Stack Structure (Next.js 16 Optimized)
8
+
9
+ ```
10
+ project-name/
11
+ ├── src/
12
+ │ ├── app/ # Routes only (thin layer)
13
+ │ │ ├── layout.tsx
14
+ │ │ ├── page.tsx
15
+ │ │ ├── globals.css # Tailwind v4 config (@theme) lives here
16
+ │ │ ├── (auth)/ # Route group - auth pages
17
+ │ │ │ ├── login/page.tsx
18
+ │ │ │ └── register/page.tsx
19
+ │ │ ├── (dashboard)/ # Route group - dashboard layout
20
+ │ │ │ ├── layout.tsx
21
+ │ │ │ └── page.tsx
22
+ │ │ └── api/ # Route Handlers (webhooks/external only)
23
+ │ │ └── [resource]/route.ts
24
+ │ │
25
+ │ ├── components/ # UI components
26
+ │ │ ├── ui/ # Reusable primitives (Button, Input)
27
+ │ │ └── forms/ # Client forms (useActionState)
28
+ │ │
29
+ │ ├── lib/ # Shared utilities & server-only logic
30
+ │ │ ├── db.ts # Prisma singleton client
31
+ │ │ ├── dal.ts # Data Access Layer (server-only, DTOs)
32
+ │ │ └── utils.ts # Helper functions
33
+ │ │
34
+ │ ├── actions/ # Server Actions (mutations)
35
+ │ │
36
+ │ └── types/ # Global TypeScript types
37
+
38
+ ├── prisma/
39
+ │ ├── schema.prisma
40
+ │ ├── migrations/
41
+ │ └── seed.ts
42
+
43
+ ├── public/
44
+ ├── proxy.ts # Network boundary (auth, redirects)
45
+ ├── .env.example
46
+ ├── .env.local
47
+ ├── package.json
48
+ ├── next.config.ts
49
+ ├── tsconfig.json
50
+ └── README.md
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Structure Principles
56
+
57
+ | Principle | Implementation |
58
+ |-----------|----------------|
59
+ | **Thin routes** | `app/` only for routing + layouts, logic lives in `actions/` and `lib/` |
60
+ | **Server/Client separation** | Server-only logic in `lib/dal.ts`, prevents accidental client imports |
61
+ | **Data Access Layer** | `lib/dal.ts` centralizes DB access and returns DTOs for safe reuse |
62
+ | **Mutations via Server Actions** | `actions/` holds Server Actions, called from forms with `useActionState` |
63
+ | **Route groups** | `(groupName)/` for layout sharing without URL impact |
64
+ | **Reusable UI** | `components/ui/` for primitives, `components/forms/` for client forms |
65
+
66
+ ---
67
+
68
+ | File | Purpose |
69
+ |------|---------|
70
+ | `proxy.ts` | Next.js 16 network boundary logic (auth, redirects). Renamed from `middleware.ts`, runs on Node.js runtime |
71
+ | `package.json` | Dependencies |
72
+ | `next.config.ts` | Next.js config (TypeScript) |
73
+ | `tsconfig.json` | TypeScript + path aliases (`@/*`) |
74
+ | `.env.example` | Environment template |
75
+ | `README.md` | Project documentation |
76
+ | `.gitignore` | Git ignore rules |
77
+ | `prisma/schema.prisma` | Database schema |
78
+ | `src/app/globals.css` | Tailwind v4 config via `@theme` (no `tailwind.config.js`) |
79
+
80
+ ---
81
+
82
+ ## Path Aliases (tsconfig.json)
83
+
84
+ ```json
85
+ {
86
+ "compilerOptions": {
87
+ "paths": {
88
+ "@/*": ["./src/*"],
89
+ "@/components/*": ["./src/components/*"],
90
+ "@/lib/*": ["./src/lib/*"],
91
+ "@/actions/*": ["./src/actions/*"]
92
+ }
93
+ }
94
+ }
95
+ ```
96
+
97
+ ---
98
+
99
+ ## When to Use What
100
+
101
+ | Need | Location |
102
+ |------|----------|
103
+ | New page/route | `app/(group)/page.tsx` |
104
+ | Reusable button/input | `components/ui/` |
105
+ | Client form | `components/forms/` |
106
+ | Server action (mutation) | `actions/` |
107
+ | Data fetching / DB query | `lib/dal.ts` |
108
+ | Prisma client | `lib/db.ts` |
109
+ | Helper function | `lib/utils.ts` |
110
+ | Auth / redirect logic | `proxy.ts` |
@@ -0,0 +1,41 @@
1
+ # Tech Stack Selection (2026)
2
+
3
+ > Default and alternative technology choices for web applications.
4
+
5
+ ## Default Stack (Web App - 2026)
6
+
7
+ ```yaml
8
+ Frontend:
9
+ framework: Next.js 16 (Stable)
10
+ language: TypeScript 5.7+
11
+ styling: Tailwind CSS v4
12
+ state: React 19 Actions / Server Components
13
+ caching: Next.js 16 Cache Components (Stable)
14
+ bundler: Turbopack (Stable for Dev & Build)
15
+
16
+ Backend:
17
+ runtime: Node.js 24 (Krypton LTS)
18
+ framework: Next.js API Routes / Hono (for Edge)
19
+ validation: Zod / TypeBox
20
+
21
+ Database:
22
+ primary: PostgreSQL
23
+ orm: Prisma / Drizzle
24
+ hosting: Supabase / Neon
25
+
26
+ Auth:
27
+ provider: Auth.js (v5) / Clerk
28
+
29
+ Monorepo:
30
+ tool: Turborepo 2.0
31
+ ```
32
+
33
+ ## Alternative Options
34
+
35
+ | Need | Default | Alternative |
36
+ |------|---------|-------------|
37
+ | Real-time | Supabase Realtime | Socket.io, Ably |
38
+ | File storage | Supabase Storage | Cloudinary, AWS S3 |
39
+ | Payment | Stripe | LemonSqueezy, Paddle |
40
+ | Email | Resend | SendGrid, Postmark |
41
+ | Search | Algolia | Typesense, Orama |
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: templates
3
+ description: Project scaffolding templates for new applications. Use when creating new projects from scratch. Contains 13 templates for various tech stacks.
4
+ compatibility: opencode
5
+ ---
6
+ # Project Templates
7
+
8
+ > Quick-start templates for scaffolding new projects.
9
+
10
+ ---
11
+
12
+ ## 🎯 Selective Reading Rule
13
+
14
+ **Read ONLY the template matching user's project type!**
15
+
16
+ | Template | Tech Stack | When to Use |
17
+ |----------|------------|-------------|
18
+ | [nextjs-fullstack](nextjs-fullstack/TEMPLATE.md) | Next.js + Prisma | Full-stack web app |
19
+ | [nextjs-saas](nextjs-saas/TEMPLATE.md) | Next.js + Stripe | SaaS product |
20
+ | [nextjs-static](nextjs-static/TEMPLATE.md) | Next.js + Framer | Landing page |
21
+ | [nuxt-app](nuxt-app/TEMPLATE.md) | Nuxt 4 + Pinia | Vue full-stack app |
22
+ | [express-api](express-api/TEMPLATE.md) | Express + JWT | REST API |
23
+ | [python-fastapi](python-fastapi/TEMPLATE.md) | FastAPI | Python API |
24
+ | [react-native-app](react-native-app/TEMPLATE.md) | Expo + Zustand | Mobile app |
25
+ | [flutter-app](flutter-app/TEMPLATE.md) | Flutter + Riverpod | Cross-platform |
26
+ | [electron-desktop](electron-desktop/TEMPLATE.md) | Electron + React | Desktop app |
27
+ | [chrome-extension](chrome-extension/TEMPLATE.md) | Chrome MV3 | Browser extension |
28
+ | [cli-tool](cli-tool/TEMPLATE.md) | Node.js + Commander | CLI app |
29
+ | [monorepo-turborepo](monorepo-turborepo/TEMPLATE.md) | Turborepo + pnpm | Monorepo |
30
+ | [astro-static](astro-static/TEMPLATE.md) | Astro + MDX | Blog / Docs |
31
+
32
+ ---
33
+
34
+ ## Usage
35
+
36
+ 1. User says "create [type] app"
37
+ 2. Match to appropriate template
38
+ 3. Read ONLY that template's TEMPLATE.md
39
+ 4. Follow its tech stack and structure