@mrtrinhvn/ag-kit 1.0.11 → 1.1.1

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 (218) hide show
  1. package/README.md +31 -0
  2. package/bin/cli.js +72 -0
  3. package/package.json +7 -1
  4. package/template/.agent/knowledge/orchestrator_v3_protocol.md +60 -0
  5. package/template/.agent/knowledge/self_healing_logs.md +22 -0
  6. package/{.agent → template/.agent}/skills/telegram-agentic-gateway/SKILL.md +0 -0
  7. package/template/.agent/skills/vfs-assistant/SKILL.md +39 -0
  8. package/.agent/agents/backend-specialist.md +0 -263
  9. package/.agent/agents/code-archaeologist.md +0 -106
  10. package/.agent/agents/database-architect.md +0 -226
  11. package/.agent/agents/debugger.md +0 -225
  12. package/.agent/agents/devops-engineer.md +0 -242
  13. package/.agent/agents/documentation-writer.md +0 -104
  14. package/.agent/agents/explorer-agent.md +0 -73
  15. package/.agent/agents/frontend-specialist.md +0 -556
  16. package/.agent/agents/game-developer.md +0 -162
  17. package/.agent/agents/mobile-developer.md +0 -377
  18. package/.agent/agents/orchestrator.md +0 -416
  19. package/.agent/agents/penetration-tester.md +0 -188
  20. package/.agent/agents/performance-optimizer.md +0 -187
  21. package/.agent/agents/product-manager.md +0 -112
  22. package/.agent/agents/product-owner.md +0 -95
  23. package/.agent/agents/project-planner.md +0 -406
  24. package/.agent/agents/qa-automation-engineer.md +0 -103
  25. package/.agent/agents/quant-architect.md +0 -31
  26. package/.agent/agents/security-auditor.md +0 -170
  27. package/.agent/agents/seo-specialist.md +0 -111
  28. package/.agent/agents/test-engineer.md +0 -158
  29. package/.agent/rules/GEMINI.md +0 -280
  30. package/.agent/scripts/auto_preview.py +0 -148
  31. package/.agent/scripts/checklist.py +0 -217
  32. package/.agent/scripts/session_manager.py +0 -120
  33. package/.agent/scripts/verify_all.py +0 -327
  34. package/.agent/skills/api-patterns/SKILL.md +0 -81
  35. package/.agent/skills/api-patterns/api-style.md +0 -42
  36. package/.agent/skills/api-patterns/auth.md +0 -24
  37. package/.agent/skills/api-patterns/documentation.md +0 -26
  38. package/.agent/skills/api-patterns/graphql.md +0 -41
  39. package/.agent/skills/api-patterns/rate-limiting.md +0 -31
  40. package/.agent/skills/api-patterns/response.md +0 -37
  41. package/.agent/skills/api-patterns/rest.md +0 -40
  42. package/.agent/skills/api-patterns/scripts/api_validator.py +0 -211
  43. package/.agent/skills/api-patterns/security-testing.md +0 -122
  44. package/.agent/skills/api-patterns/trpc.md +0 -41
  45. package/.agent/skills/api-patterns/versioning.md +0 -22
  46. package/.agent/skills/app-builder/SKILL.md +0 -75
  47. package/.agent/skills/app-builder/agent-coordination.md +0 -71
  48. package/.agent/skills/app-builder/feature-building.md +0 -53
  49. package/.agent/skills/app-builder/project-detection.md +0 -34
  50. package/.agent/skills/app-builder/scaffolding.md +0 -118
  51. package/.agent/skills/app-builder/tech-stack.md +0 -40
  52. package/.agent/skills/app-builder/templates/SKILL.md +0 -39
  53. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  54. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  55. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  56. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  57. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  58. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  59. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  60. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -82
  61. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -100
  62. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -106
  63. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -101
  64. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  65. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -93
  66. package/.agent/skills/architecture/SKILL.md +0 -55
  67. package/.agent/skills/architecture/context-discovery.md +0 -43
  68. package/.agent/skills/architecture/examples.md +0 -94
  69. package/.agent/skills/architecture/pattern-selection.md +0 -68
  70. package/.agent/skills/architecture/patterns-reference.md +0 -50
  71. package/.agent/skills/architecture/trade-off-analysis.md +0 -77
  72. package/.agent/skills/bash-linux/SKILL.md +0 -199
  73. package/.agent/skills/behavioral-modes/SKILL.md +0 -242
  74. package/.agent/skills/brainstorming/SKILL.md +0 -168
  75. package/.agent/skills/brainstorming/dynamic-questioning.md +0 -350
  76. package/.agent/skills/business-ops/SKILL.md +0 -26
  77. package/.agent/skills/clean-code/SKILL.md +0 -202
  78. package/.agent/skills/cli-generator/SKILL.md +0 -48
  79. package/.agent/skills/code-review-checklist/SKILL.md +0 -109
  80. package/.agent/skills/cognitive-session/SKILL.md +0 -28
  81. package/.agent/skills/data-science/SKILL.md +0 -28
  82. package/.agent/skills/database-design/SKILL.md +0 -52
  83. package/.agent/skills/database-design/database-selection.md +0 -43
  84. package/.agent/skills/database-design/indexing.md +0 -39
  85. package/.agent/skills/database-design/migrations.md +0 -48
  86. package/.agent/skills/database-design/optimization.md +0 -36
  87. package/.agent/skills/database-design/orm-selection.md +0 -30
  88. package/.agent/skills/database-design/schema-design.md +0 -56
  89. package/.agent/skills/database-design/scripts/schema_validator.py +0 -172
  90. package/.agent/skills/deployment-procedures/SKILL.md +0 -241
  91. package/.agent/skills/doc.md +0 -177
  92. package/.agent/skills/documentation-templates/SKILL.md +0 -194
  93. package/.agent/skills/frontend-design/SKILL.md +0 -418
  94. package/.agent/skills/frontend-design/animation-guide.md +0 -331
  95. package/.agent/skills/frontend-design/color-system.md +0 -311
  96. package/.agent/skills/frontend-design/decision-trees.md +0 -418
  97. package/.agent/skills/frontend-design/motion-graphics.md +0 -306
  98. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +0 -183
  99. package/.agent/skills/frontend-design/scripts/ux_audit.py +0 -722
  100. package/.agent/skills/frontend-design/typography-system.md +0 -345
  101. package/.agent/skills/frontend-design/ux-psychology.md +0 -541
  102. package/.agent/skills/frontend-design/visual-effects.md +0 -383
  103. package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
  104. package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
  105. package/.agent/skills/game-development/SKILL.md +0 -167
  106. package/.agent/skills/game-development/game-art/SKILL.md +0 -185
  107. package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
  108. package/.agent/skills/game-development/game-design/SKILL.md +0 -129
  109. package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
  110. package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
  111. package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
  112. package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
  113. package/.agent/skills/game-development/web-games/SKILL.md +0 -150
  114. package/.agent/skills/geo-fundamentals/SKILL.md +0 -156
  115. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +0 -289
  116. package/.agent/skills/i18n-localization/SKILL.md +0 -154
  117. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  118. package/.agent/skills/intelligent-routing/SKILL.md +0 -335
  119. package/.agent/skills/knowledge-management/SKILL.md +0 -66
  120. package/.agent/skills/lint-and-validate/SKILL.md +0 -45
  121. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +0 -172
  122. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  123. package/.agent/skills/llm-routing-quirks/SKILL.md +0 -41
  124. package/.agent/skills/mcp-builder/SKILL.md +0 -176
  125. package/.agent/skills/memory-architecture/SKILL.md +0 -107
  126. package/.agent/skills/mini-antigravity-injection/SKILL.md +0 -66
  127. package/.agent/skills/mobile-design/SKILL.md +0 -394
  128. package/.agent/skills/mobile-design/decision-trees.md +0 -516
  129. package/.agent/skills/mobile-design/mobile-backend.md +0 -491
  130. package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
  131. package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
  132. package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
  133. package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
  134. package/.agent/skills/mobile-design/mobile-performance.md +0 -767
  135. package/.agent/skills/mobile-design/mobile-testing.md +0 -356
  136. package/.agent/skills/mobile-design/mobile-typography.md +0 -433
  137. package/.agent/skills/mobile-design/platform-android.md +0 -666
  138. package/.agent/skills/mobile-design/platform-ios.md +0 -561
  139. package/.agent/skills/mobile-design/scripts/mobile_audit.py +0 -670
  140. package/.agent/skills/mobile-design/touch-psychology.md +0 -537
  141. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  142. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  143. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  144. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  145. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  146. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  147. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  148. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  149. package/.agent/skills/nextjs-react-expert/SKILL.md +0 -267
  150. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  151. package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  152. package/.agent/skills/nodejs-best-practices/SKILL.md +0 -333
  153. package/.agent/skills/parallel-agents/SKILL.md +0 -175
  154. package/.agent/skills/performance-profiling/SKILL.md +0 -143
  155. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
  156. package/.agent/skills/plan-writing/SKILL.md +0 -153
  157. package/.agent/skills/powershell-windows/SKILL.md +0 -167
  158. package/.agent/skills/product-management/SKILL.md +0 -30
  159. package/.agent/skills/python-patterns/SKILL.md +0 -441
  160. package/.agent/skills/red-team-tactics/SKILL.md +0 -199
  161. package/.agent/skills/seo-fundamentals/SKILL.md +0 -129
  162. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  163. package/.agent/skills/server-management/SKILL.md +0 -161
  164. package/.agent/skills/systematic-debugging/SKILL.md +0 -120
  165. package/.agent/skills/tailwind-patterns/SKILL.md +0 -269
  166. package/.agent/skills/tdd-workflow/SKILL.md +0 -148
  167. package/.agent/skills/testing-patterns/SKILL.md +0 -178
  168. package/.agent/skills/testing-patterns/scripts/test_runner.py +0 -219
  169. package/.agent/skills/vulnerability-scanner/SKILL.md +0 -276
  170. package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
  171. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  172. package/.agent/skills/web-design-guidelines/SKILL.md +0 -57
  173. package/.agent/skills/webapp-testing/SKILL.md +0 -187
  174. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +0 -173
  175. package/.agent/workflows/brainstorm.md +0 -113
  176. package/.agent/workflows/create.md +0 -59
  177. package/.agent/workflows/debug.md +0 -103
  178. package/.agent/workflows/deploy.md +0 -176
  179. package/.agent/workflows/enhance.md +0 -63
  180. package/.agent/workflows/orchestrate.md +0 -237
  181. package/.agent/workflows/plan.md +0 -89
  182. package/.agent/workflows/preview.md +0 -81
  183. package/.agent/workflows/status.md +0 -86
  184. package/.agent/workflows/test.md +0 -144
  185. package/.agent/workflows/ui-ux-pro-max.md +0 -296
  186. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/charts.csv +0 -0
  187. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/colors.csv +0 -0
  188. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/icons.csv +0 -0
  189. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/landing.csv +0 -0
  190. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/products.csv +0 -0
  191. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/prompts.csv +0 -0
  192. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/react-performance.csv +0 -0
  193. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/flutter.csv +0 -0
  194. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +0 -0
  195. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +0 -0
  196. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +0 -0
  197. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +0 -0
  198. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +0 -0
  199. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/react-native.csv +0 -0
  200. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/react.csv +0 -0
  201. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +0 -0
  202. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/svelte.csv +0 -0
  203. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +0 -0
  204. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/stacks/vue.csv +0 -0
  205. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/styles.csv +0 -0
  206. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/typography.csv +0 -0
  207. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
  208. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/ux-guidelines.csv +0 -0
  209. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/data/web-interface.csv +0 -0
  210. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  211. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  212. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/scripts/core.py +0 -0
  213. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/scripts/design_system.py +0 -0
  214. /package/{.agent → template/.agent}/.shared/ui-ux-pro-max/scripts/search.py +0 -0
  215. /package/{.agent → template/.agent}/ARCHITECTURE.md +0 -0
  216. /package/{.agent → template/.agent}/mcp_config.json +0 -0
  217. /package/{.agent → template/.agent}/skills/nextjs-react-expert/9-cache-components.md +0 -0
  218. /package/{.agent → template/.agent}/skills/rust-pro/SKILL.md +0 -0
@@ -1,34 +0,0 @@
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 conversation-manager
33
- 5. Suggest tech stack
34
- ```
@@ -1,118 +0,0 @@
1
- # Project Scaffolding
2
-
3
- > Directory structure and core files for new projects.
4
-
5
- ---
6
-
7
- ## Next.js Full-Stack Structure (2025 Optimized)
8
-
9
- ```
10
- project-name/
11
- ├── src/
12
- │ ├── app/ # Routes only (thin layer)
13
- │ │ ├── layout.tsx
14
- │ │ ├── page.tsx
15
- │ │ ├── globals.css
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/
23
- │ │ └── [resource]/route.ts
24
- │ │
25
- │ ├── features/ # Feature-based modules
26
- │ │ ├── auth/
27
- │ │ │ ├── components/
28
- │ │ │ ├── hooks/
29
- │ │ │ ├── actions.ts # Server Actions
30
- │ │ │ ├── queries.ts # Data fetching
31
- │ │ │ └── types.ts
32
- │ │ ├── products/
33
- │ │ │ ├── components/
34
- │ │ │ ├── actions.ts
35
- │ │ │ └── queries.ts
36
- │ │ └── cart/
37
- │ │ └── ...
38
- │ │
39
- │ ├── shared/ # Shared utilities
40
- │ │ ├── components/ui/ # Reusable UI components
41
- │ │ ├── lib/ # Utils, helpers
42
- │ │ └── hooks/ # Global hooks
43
- │ │
44
- │ └── server/ # Server-only code
45
- │ ├── db/ # Database client (Prisma)
46
- │ ├── auth/ # Auth config
47
- │ └── services/ # External API integrations
48
-
49
- ├── prisma/
50
- │ ├── schema.prisma
51
- │ ├── migrations/
52
- │ └── seed.ts
53
-
54
- ├── public/
55
- ├── .env.example
56
- ├── .env.local
57
- ├── package.json
58
- ├── tailwind.config.ts
59
- ├── tsconfig.json
60
- └── README.md
61
- ```
62
-
63
- ---
64
-
65
- ## Structure Principles
66
-
67
- | Principle | Implementation |
68
- |-----------|----------------|
69
- | **Feature isolation** | Each feature in `features/` with its own components, hooks, actions |
70
- | **Server/Client separation** | Server-only code in `server/`, prevents accidental client imports |
71
- | **Thin routes** | `app/` only for routing, logic lives in `features/` |
72
- | **Route groups** | `(groupName)/` for layout sharing without URL impact |
73
- | **Shared code** | `shared/` for truly reusable UI and utilities |
74
-
75
- ---
76
-
77
- ## Core Files
78
-
79
- | File | Purpose |
80
- |------|---------|
81
- | `package.json` | Dependencies |
82
- | `tsconfig.json` | TypeScript + path aliases (`@/features/*`) |
83
- | `tailwind.config.ts` | Tailwind config |
84
- | `.env.example` | Environment template |
85
- | `README.md` | Project documentation |
86
- | `.gitignore` | Git ignore rules |
87
- | `prisma/schema.prisma` | Database schema |
88
-
89
- ---
90
-
91
- ## Path Aliases (tsconfig.json)
92
-
93
- ```json
94
- {
95
- "compilerOptions": {
96
- "paths": {
97
- "@/*": ["./src/*"],
98
- "@/features/*": ["./src/features/*"],
99
- "@/shared/*": ["./src/shared/*"],
100
- "@/server/*": ["./src/server/*"]
101
- }
102
- }
103
- }
104
- ```
105
-
106
- ---
107
-
108
- ## When to Use What
109
-
110
- | Need | Location |
111
- |------|----------|
112
- | New page/route | `app/(group)/page.tsx` |
113
- | Feature component | `features/[name]/components/` |
114
- | Server action | `features/[name]/actions.ts` |
115
- | Data fetching | `features/[name]/queries.ts` |
116
- | Reusable button/input | `shared/components/ui/` |
117
- | Database query | `server/db/` |
118
- | External API call | `server/services/` |
@@ -1,40 +0,0 @@
1
- # Tech Stack Selection (2025)
2
-
3
- > Default and alternative technology choices for web applications.
4
-
5
- ## Default Stack (Web App - 2025)
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
- bundler: Turbopack (Stable for Dev)
14
-
15
- Backend:
16
- runtime: Node.js 23
17
- framework: Next.js API Routes / Hono (for Edge)
18
- validation: Zod / TypeBox
19
-
20
- Database:
21
- primary: PostgreSQL
22
- orm: Prisma / Drizzle
23
- hosting: Supabase / Neon
24
-
25
- Auth:
26
- provider: Auth.js (v5) / Clerk
27
-
28
- Monorepo:
29
- tool: Turborepo 2.0
30
- ```
31
-
32
- ## Alternative Options
33
-
34
- | Need | Default | Alternative |
35
- |------|---------|-------------|
36
- | Real-time | - | Supabase Realtime, Socket.io |
37
- | File storage | - | Cloudinary, S3 |
38
- | Payment | Stripe | LemonSqueezy, Paddle |
39
- | Email | - | Resend, SendGrid |
40
- | Search | - | Algolia, Typesense |
@@ -1,39 +0,0 @@
1
- ---
2
- name: templates
3
- description: Project scaffolding templates for new applications. Use when creating new projects from scratch. Contains 12 templates for various tech stacks.
4
- allowed-tools: Read, Glob, Grep
5
- ---
6
-
7
- # Project Templates
8
-
9
- > Quick-start templates for scaffolding new projects.
10
-
11
- ---
12
-
13
- ## 🎯 Selective Reading Rule
14
-
15
- **Read ONLY the template matching user's project type!**
16
-
17
- | Template | Tech Stack | When to Use |
18
- |----------|------------|-------------|
19
- | [nextjs-fullstack](nextjs-fullstack/TEMPLATE.md) | Next.js + Prisma | Full-stack web app |
20
- | [nextjs-saas](nextjs-saas/TEMPLATE.md) | Next.js + Stripe | SaaS product |
21
- | [nextjs-static](nextjs-static/TEMPLATE.md) | Next.js + Framer | Landing page |
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
@@ -1,76 +0,0 @@
1
- ---
2
- name: astro-static
3
- description: Astro static site template principles. Content-focused websites, blogs, documentation.
4
- ---
5
-
6
- # Astro Static Site Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Framework | Astro 4.x |
13
- | Content | MDX + Content Collections |
14
- | Styling | Tailwind CSS |
15
- | Integrations | Sitemap, RSS, SEO |
16
- | Output | Static/SSG |
17
-
18
- ---
19
-
20
- ## Directory Structure
21
-
22
- ```
23
- project-name/
24
- ├── src/
25
- │ ├── components/ # .astro components
26
- │ ├── content/ # MDX content
27
- │ │ ├── blog/
28
- │ │ └── config.ts # Collection schemas
29
- │ ├── layouts/ # Page layouts
30
- │ ├── pages/ # File-based routing
31
- │ └── styles/
32
- ├── public/ # Static assets
33
- ├── astro.config.mjs
34
- └── package.json
35
- ```
36
-
37
- ---
38
-
39
- ## Key Concepts
40
-
41
- | Concept | Description |
42
- |---------|-------------|
43
- | Content Collections | Type-safe content with Zod schemas |
44
- | Islands Architecture | Partial hydration for interactivity |
45
- | Zero JS by default | Static HTML unless needed |
46
- | MDX Support | Markdown with components |
47
-
48
- ---
49
-
50
- ## Setup Steps
51
-
52
- 1. `npm create astro@latest {{name}}`
53
- 2. Add integrations: `npx astro add mdx tailwind sitemap`
54
- 3. Configure `astro.config.mjs`
55
- 4. Create content collections
56
- 5. `npm run dev`
57
-
58
- ---
59
-
60
- ## Deployment
61
-
62
- | Platform | Method |
63
- |----------|--------|
64
- | Vercel | Auto-detected |
65
- | Netlify | Auto-detected |
66
- | Cloudflare Pages | Auto-detected |
67
- | GitHub Pages | Build + deploy action |
68
-
69
- ---
70
-
71
- ## Best Practices
72
-
73
- - Use Content Collections for type safety
74
- - Leverage static generation
75
- - Add islands only where needed
76
- - Optimize images with Astro Image
@@ -1,92 +0,0 @@
1
- ---
2
- name: chrome-extension
3
- description: Chrome Extension template principles. Manifest V3, React, TypeScript.
4
- ---
5
-
6
- # Chrome Extension Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Manifest | V3 |
13
- | UI | React 18 |
14
- | Language | TypeScript |
15
- | Styling | Tailwind CSS |
16
- | Bundler | Vite |
17
- | Storage | Chrome Storage API |
18
-
19
- ---
20
-
21
- ## Directory Structure
22
-
23
- ```
24
- project-name/
25
- ├── src/
26
- │ ├── popup/ # Extension popup
27
- │ ├── options/ # Options page
28
- │ ├── background/ # Service worker
29
- │ ├── content/ # Content scripts
30
- │ ├── components/
31
- │ ├── hooks/
32
- │ └── lib/
33
- │ ├── storage.ts # Chrome storage helpers
34
- │ └── messaging.ts # Message passing
35
- ├── public/
36
- │ ├── icons/
37
- │ └── manifest.json
38
- └── package.json
39
- ```
40
-
41
- ---
42
-
43
- ## Manifest V3 Concepts
44
-
45
- | Component | Purpose |
46
- |-----------|---------|
47
- | Service Worker | Background processing |
48
- | Content Scripts | Page injection |
49
- | Popup | User interface |
50
- | Options Page | Settings |
51
-
52
- ---
53
-
54
- ## Permissions
55
-
56
- | Permission | Use |
57
- |------------|-----|
58
- | storage | Save user data |
59
- | activeTab | Current tab access |
60
- | scripting | Inject scripts |
61
- | host_permissions | Site access |
62
-
63
- ---
64
-
65
- ## Setup Steps
66
-
67
- 1. `npm create vite {{name}} -- --template react-ts`
68
- 2. Add Chrome types: `npm install -D @types/chrome`
69
- 3. Configure Vite for multi-entry
70
- 4. Create manifest.json
71
- 5. `npm run dev` (watch mode)
72
- 6. Load in Chrome: `chrome://extensions` → Load unpacked
73
-
74
- ---
75
-
76
- ## Development Tips
77
-
78
- | Task | Method |
79
- |------|--------|
80
- | Debug Popup | Right-click icon → Inspect |
81
- | Debug Background | Extensions page → Service worker |
82
- | Debug Content | DevTools console on page |
83
- | Hot Reload | `npm run dev` with watch |
84
-
85
- ---
86
-
87
- ## Best Practices
88
-
89
- - Use type-safe messaging
90
- - Wrap Chrome APIs in promises
91
- - Minimize permissions
92
- - Handle offline gracefully
@@ -1,88 +0,0 @@
1
- ---
2
- name: cli-tool
3
- description: Node.js CLI tool template principles. Commander.js, interactive prompts.
4
- ---
5
-
6
- # CLI Tool Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Runtime | Node.js 20+ |
13
- | Language | TypeScript |
14
- | CLI Framework | Commander.js |
15
- | Prompts | Inquirer.js |
16
- | Output | chalk + ora |
17
- | Config | cosmiconfig |
18
-
19
- ---
20
-
21
- ## Directory Structure
22
-
23
- ```
24
- project-name/
25
- ├── src/
26
- │ ├── index.ts # Entry point
27
- │ ├── cli.ts # CLI setup
28
- │ ├── commands/ # Command handlers
29
- │ ├── lib/
30
- │ │ ├── config.ts # Config loader
31
- │ │ └── logger.ts # Styled output
32
- │ └── types/
33
- ├── bin/
34
- │ └── cli.js # Executable
35
- └── package.json
36
- ```
37
-
38
- ---
39
-
40
- ## CLI Design Principles
41
-
42
- | Principle | Description |
43
- |-----------|-------------|
44
- | Subcommands | Group related actions |
45
- | Options | Flags with defaults |
46
- | Interactive | Prompts when needed |
47
- | Non-interactive | Support --yes flags |
48
-
49
- ---
50
-
51
- ## Key Components
52
-
53
- | Component | Purpose |
54
- |-----------|---------|
55
- | Commander | Command parsing |
56
- | Inquirer | Interactive prompts |
57
- | Chalk | Colored output |
58
- | Ora | Spinners/loading |
59
- | Cosmiconfig | Config file discovery |
60
-
61
- ---
62
-
63
- ## Setup Steps
64
-
65
- 1. Create project directory
66
- 2. `npm init -y`
67
- 3. Install deps: `npm install commander @inquirer/prompts chalk ora cosmiconfig`
68
- 4. Configure bin in package.json
69
- 5. `npm link` for local testing
70
-
71
- ---
72
-
73
- ## Publishing
74
-
75
- ```bash
76
- npm login
77
- npm publish
78
- ```
79
-
80
- ---
81
-
82
- ## Best Practices
83
-
84
- - Provide helpful error messages
85
- - Support both interactive and non-interactive modes
86
- - Use consistent output styling
87
- - Validate inputs with Zod
88
- - Exit with proper codes (0 success, 1 error)
@@ -1,88 +0,0 @@
1
- ---
2
- name: electron-desktop
3
- description: Electron desktop app template principles. Cross-platform, React, TypeScript.
4
- ---
5
-
6
- # Electron Desktop App Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Framework | Electron 28+ |
13
- | UI | React 18 |
14
- | Language | TypeScript |
15
- | Styling | Tailwind CSS |
16
- | Bundler | Vite + electron-builder |
17
- | IPC | Type-safe communication |
18
-
19
- ---
20
-
21
- ## Directory Structure
22
-
23
- ```
24
- project-name/
25
- ├── electron/
26
- │ ├── main.ts # Main process
27
- │ ├── preload.ts # Preload script
28
- │ └── ipc/ # IPC handlers
29
- ├── src/
30
- │ ├── App.tsx
31
- │ ├── components/
32
- │ │ ├── TitleBar.tsx # Custom title bar
33
- │ │ └── ...
34
- │ └── hooks/
35
- ├── public/
36
- └── package.json
37
- ```
38
-
39
- ---
40
-
41
- ## Process Model
42
-
43
- | Process | Role |
44
- |---------|------|
45
- | Main | Node.js, system access |
46
- | Renderer | Chromium, React UI |
47
- | Preload | Bridge, context isolation |
48
-
49
- ---
50
-
51
- ## Key Concepts
52
-
53
- | Concept | Purpose |
54
- |---------|---------|
55
- | contextBridge | Safe API exposure |
56
- | ipcMain/ipcRenderer | Process communication |
57
- | nodeIntegration: false | Security |
58
- | contextIsolation: true | Security |
59
-
60
- ---
61
-
62
- ## Setup Steps
63
-
64
- 1. `npm create vite {{name}} -- --template react-ts`
65
- 2. Install: `npm install -D electron electron-builder vite-plugin-electron`
66
- 3. Create electron/ directory
67
- 4. Configure main process
68
- 5. `npm run electron:dev`
69
-
70
- ---
71
-
72
- ## Build Targets
73
-
74
- | Platform | Output |
75
- |----------|--------|
76
- | Windows | NSIS, Portable |
77
- | macOS | DMG, ZIP |
78
- | Linux | AppImage, DEB |
79
-
80
- ---
81
-
82
- ## Best Practices
83
-
84
- - Use preload script for main/renderer bridge
85
- - Type-safe IPC with typed handlers
86
- - Custom title bar for native feel
87
- - Handle window state (maximize, minimize)
88
- - Auto-updates with electron-updater
@@ -1,83 +0,0 @@
1
- ---
2
- name: express-api
3
- description: Express.js REST API template principles. TypeScript, Prisma, JWT.
4
- ---
5
-
6
- # Express.js API Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Runtime | Node.js 20+ |
13
- | Framework | Express.js |
14
- | Language | TypeScript |
15
- | Database | PostgreSQL + Prisma |
16
- | Validation | Zod |
17
- | Auth | JWT + bcrypt |
18
-
19
- ---
20
-
21
- ## Directory Structure
22
-
23
- ```
24
- project-name/
25
- ├── prisma/
26
- │ └── schema.prisma
27
- ├── src/
28
- │ ├── app.ts # Express setup
29
- │ ├── config/ # Environment
30
- │ ├── routes/ # Route handlers
31
- │ ├── controllers/ # Business logic
32
- │ ├── services/ # Data access
33
- │ ├── middleware/
34
- │ │ ├── auth.ts # JWT verify
35
- │ │ ├── error.ts # Error handler
36
- │ │ └── validate.ts # Zod validation
37
- │ ├── schemas/ # Zod schemas
38
- │ └── utils/
39
- └── package.json
40
- ```
41
-
42
- ---
43
-
44
- ## Middleware Stack
45
-
46
- | Order | Middleware |
47
- |-------|------------|
48
- | 1 | helmet (security) |
49
- | 2 | cors |
50
- | 3 | morgan (logging) |
51
- | 4 | body parsing |
52
- | 5 | routes |
53
- | 6 | error handler |
54
-
55
- ---
56
-
57
- ## API Response Format
58
-
59
- | Type | Structure |
60
- |------|-----------|
61
- | Success | `{ success: true, data: {...} }` |
62
- | Error | `{ error: "message", details: [...] }` |
63
-
64
- ---
65
-
66
- ## Setup Steps
67
-
68
- 1. Create project directory
69
- 2. `npm init -y`
70
- 3. Install deps: `npm install express prisma zod bcrypt jsonwebtoken`
71
- 4. Configure Prisma
72
- 5. `npm run db:push`
73
- 6. `npm run dev`
74
-
75
- ---
76
-
77
- ## Best Practices
78
-
79
- - Layer architecture (routes → controllers → services)
80
- - Validate all inputs with Zod
81
- - Centralized error handling
82
- - Environment-based config
83
- - Use Prisma for type-safe DB access