@donotdev/cli 0.1.1 → 0.1.42

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 (366) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +0 -0
  3. package/dependencies-matrix.json +93 -40
  4. package/dist/bin/commands/agent-setup.js +695 -420
  5. package/dist/bin/commands/build.js +1181 -832
  6. package/dist/bin/commands/bump.js +1054 -771
  7. package/dist/bin/commands/cacheout.js +253 -355
  8. package/dist/bin/commands/coach.js +275 -375
  9. package/dist/bin/commands/create-app.js +1074 -790
  10. package/dist/bin/commands/create-project.js +1106 -819
  11. package/dist/bin/commands/db.js +17045 -16542
  12. package/dist/bin/commands/deploy.js +1999 -1367
  13. package/dist/bin/commands/dev.js +879 -627
  14. package/dist/bin/commands/doctor.js +696 -425
  15. package/dist/bin/commands/emu.js +1001 -712
  16. package/dist/bin/commands/format.js +253 -355
  17. package/dist/bin/commands/get-demo.js +968 -706
  18. package/dist/bin/commands/make-admin.js +6279 -5746
  19. package/dist/bin/commands/preview.js +883 -628
  20. package/dist/bin/commands/seed.js +17058 -16555
  21. package/dist/bin/commands/setup-cicd.js +1024 -749
  22. package/dist/bin/commands/setup.js +1162 -844
  23. package/dist/bin/commands/staging.js +2000 -1368
  24. package/dist/bin/commands/sync-secrets.js +1181 -667
  25. package/dist/bin/commands/type-check.js +735 -461
  26. package/dist/bin/commands/wai.js +258 -360
  27. package/dist/bin/dndev.js +31 -16
  28. package/dist/bin/donotdev.js +31 -16
  29. package/dist/index.js +2189 -1513
  30. package/guidelines/DEPENDENCIES.md +155 -0
  31. package/guidelines/VERSION_CONTROL.md +0 -0
  32. package/package.json +1 -1
  33. package/templates/app-demo/.env.example +1 -1
  34. package/templates/app-demo/entities/Contact.ts.example +0 -0
  35. package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
  36. package/templates/app-demo/entities/demo.ts.example +0 -0
  37. package/templates/app-demo/index.html.example +0 -0
  38. package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
  39. package/templates/app-demo/public/fonts/fonts.css.example +0 -0
  40. package/templates/app-demo/public/icon-192x192.png.example +0 -0
  41. package/templates/app-demo/public/icon-512x512.png.example +0 -0
  42. package/templates/app-demo/src/App.tsx.example +0 -0
  43. package/templates/app-demo/src/config/app.ts.example +0 -0
  44. package/templates/app-demo/src/entities/booking.ts.example +0 -0
  45. package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
  46. package/templates/app-demo/src/entities/product.ts.example +0 -0
  47. package/templates/app-demo/src/entities/quote.ts.example +0 -0
  48. package/templates/app-demo/src/globals.css.example +0 -0
  49. package/templates/app-demo/src/main.tsx.example +0 -0
  50. package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
  51. package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
  52. package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
  53. package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
  54. package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
  55. package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
  56. package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
  57. package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
  58. package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
  59. package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
  60. package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
  61. package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
  62. package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
  63. package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
  64. package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
  65. package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
  66. package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
  67. package/templates/app-demo/src/themes.css.example +6 -0
  68. package/templates/app-demo/tsconfig.json.example +0 -0
  69. package/templates/app-demo/vite.config.ts.example +0 -0
  70. package/templates/app-dndev/index.html.example +0 -0
  71. package/templates/app-dndev/src/App.tsx.example +0 -0
  72. package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
  73. package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
  74. package/templates/app-dndev/src/components/Kanban.css.example +0 -0
  75. package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
  76. package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
  77. package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
  78. package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
  79. package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
  80. package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
  81. package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
  82. package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
  83. package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
  84. package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
  85. package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
  86. package/templates/app-dndev/src/config/app.ts.example +0 -0
  87. package/templates/app-dndev/src/config/commands.ts.example +0 -0
  88. package/templates/app-dndev/src/config/legal.ts.example +0 -0
  89. package/templates/app-dndev/src/config/providers.ts.example +1 -1
  90. package/templates/app-dndev/src/globals.css.example +0 -0
  91. package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
  92. package/templates/app-dndev/src/main.tsx.example +0 -0
  93. package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
  94. package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
  95. package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
  96. package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
  97. package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
  98. package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
  99. package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  100. package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
  101. package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
  102. package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
  103. package/templates/app-dndev/src/themes.css.example +5 -0
  104. package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
  105. package/templates/app-dndev/vite.config.ts.example +0 -0
  106. package/templates/app-expo/.env.example +0 -32
  107. package/templates/app-expo/.expo/README.md.example +0 -0
  108. package/templates/app-expo/.gitignore.example +0 -0
  109. package/templates/app-expo/README.md.example +1 -1
  110. package/templates/app-expo/app/.gitkeep +0 -0
  111. package/templates/app-expo/app/_layout.tsx.example +0 -0
  112. package/templates/app-expo/app/form.tsx.example +0 -0
  113. package/templates/app-expo/app/index.tsx.example +0 -0
  114. package/templates/app-expo/app/list.tsx.example +0 -0
  115. package/templates/app-expo/app/profile.tsx.example +0 -0
  116. package/templates/app-expo/app/signin.tsx.example +0 -0
  117. package/templates/app-expo/app.json.example +0 -0
  118. package/templates/app-expo/assets/adaptive-icon.png +0 -0
  119. package/templates/app-expo/assets/favicon.png +0 -0
  120. package/templates/app-expo/assets/icon.png +0 -0
  121. package/templates/app-expo/assets/splash.png +0 -0
  122. package/templates/app-expo/babel.config.js.example +0 -0
  123. package/templates/app-expo/eas.json.example +0 -0
  124. package/templates/app-expo/expo-env.d.ts.example +0 -0
  125. package/templates/app-expo/metro.config.js.example +0 -0
  126. package/templates/app-expo/service-account-key.json.example +1 -1
  127. package/templates/app-expo/src/config/app.ts.example +0 -0
  128. package/templates/app-expo/src/config/providers.ts.example +1 -1
  129. package/templates/app-expo/tsconfig.json.example +0 -0
  130. package/templates/app-next/.env.example +0 -33
  131. package/templates/app-next/next.config.ts.example +0 -2
  132. package/templates/app-next/postcss.config.js.example +0 -0
  133. package/templates/app-next/service-account-key.json.example +0 -0
  134. package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
  135. package/templates/app-next/src/app/not-found.tsx.example +0 -0
  136. package/templates/app-next/src/config/app.ts.example +0 -0
  137. package/templates/app-next/src/config/legal.ts.example +0 -0
  138. package/templates/app-next/src/config/providers.ts.example +1 -1
  139. package/templates/app-next/src/globals.css.example +0 -0
  140. package/templates/app-next/src/locales/dndev_en.json.example +0 -0
  141. package/templates/app-next/src/locales/home_en.json.example +6 -6
  142. package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
  143. package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  144. package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
  145. package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
  146. package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
  147. package/templates/app-next/src/themes.css.example +7 -1
  148. package/templates/app-vite/.env.example +0 -33
  149. package/templates/app-vite/csp.example.json +0 -0
  150. package/templates/app-vite/index.html.example +0 -0
  151. package/templates/app-vite/service-account-key.json.example +0 -0
  152. package/templates/app-vite/src/App.tsx.example +0 -0
  153. package/templates/app-vite/src/config/app.ts.example +0 -0
  154. package/templates/app-vite/src/config/legal.ts.example +0 -0
  155. package/templates/app-vite/src/config/providers.ts.example +1 -1
  156. package/templates/app-vite/src/globals.css.example +0 -0
  157. package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
  158. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  159. package/templates/app-vite/src/main.tsx.example +0 -0
  160. package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
  161. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  162. package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
  163. package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
  164. package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  165. package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
  166. package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
  167. package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
  168. package/templates/app-vite/src/themes.css.example +5 -0
  169. package/templates/deploy-config/.firebaserc.example +0 -0
  170. package/templates/deploy-config/firestore.indexes.json.example +0 -0
  171. package/templates/deploy-config/firestore.rules.example +0 -0
  172. package/templates/deploy-config/storage.rules.example +0 -0
  173. package/templates/deploy-config/tsconfig.functions.json.example +0 -0
  174. package/templates/deploy-config/vercel.json.example +2 -2
  175. package/templates/functions-firebase/.env.example +2 -2
  176. package/templates/functions-firebase/README.md.example +3 -3
  177. package/templates/functions-firebase/build.mjs.example +0 -0
  178. package/templates/functions-firebase/functions.config.js.example +0 -0
  179. package/templates/functions-firebase/functions.yaml.example +0 -0
  180. package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
  181. package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
  182. package/templates/functions-firebase/src/auth/index.ts.example +0 -0
  183. package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
  184. package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
  185. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
  186. package/templates/functions-firebase/src/billing/index.ts.example +0 -0
  187. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
  188. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
  189. package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
  190. package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
  191. package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
  192. package/templates/functions-firebase/src/crud/index.ts.example +0 -0
  193. package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
  194. package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
  195. package/templates/functions-firebase/src/index.ts.example +0 -0
  196. package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
  197. package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
  198. package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
  199. package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
  200. package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
  201. package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
  202. package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
  203. package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
  204. package/templates/functions-firebase/tsconfig.json.example +0 -0
  205. package/templates/functions-supabase/supabase/config.toml.example +0 -0
  206. package/templates/functions-supabase/supabase/functions/.env.example +0 -0
  207. package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
  208. package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
  209. package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
  210. package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
  211. package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
  212. package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
  213. package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
  214. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
  215. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
  216. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
  217. package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
  218. package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
  219. package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
  220. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
  221. package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
  222. package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
  223. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +0 -0
  224. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +0 -0
  225. package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
  226. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +0 -0
  227. package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
  228. package/templates/functions-vercel/.env.example +3 -3
  229. package/templates/functions-vercel/README.md.example +2 -2
  230. package/templates/functions-vercel/build.mjs.example +0 -0
  231. package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
  232. package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
  233. package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
  234. package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
  235. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
  236. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
  237. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
  238. package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
  239. package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
  240. package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
  241. package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
  242. package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
  243. package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
  244. package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
  245. package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
  246. package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
  247. package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
  248. package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
  249. package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
  250. package/templates/functions-vercel/tsconfig.json.example +0 -0
  251. package/templates/functions-vercel/vercel.json.example +0 -0
  252. package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
  253. package/templates/overlay-firebase/env.fragment.example +0 -0
  254. package/templates/overlay-firebase/env.fragment.expo.example +0 -0
  255. package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
  256. package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
  257. package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
  258. package/templates/overlay-supabase/env.fragment.example +0 -0
  259. package/templates/overlay-supabase/env.fragment.expo.example +0 -0
  260. package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
  261. package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
  262. package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
  263. package/templates/overlay-vercel/env.fragment.example +0 -0
  264. package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
  265. package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
  266. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
  267. package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
  268. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
  269. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
  270. package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
  271. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
  272. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
  273. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
  274. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
  275. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
  276. package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
  277. package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
  278. package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
  279. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
  280. package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
  281. package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
  282. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
  283. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
  284. package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
  285. package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
  286. package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
  287. package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
  288. package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
  289. package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
  290. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +0 -0
  291. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +2 -35
  292. package/templates/root-consumer/.claude/hooks/session-start.sh.example +1 -1
  293. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -0
  294. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +1 -1
  295. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +0 -0
  296. package/templates/root-consumer/.claude/rules/framework.md.example +0 -0
  297. package/templates/root-consumer/.claude/rules/git.md.example +0 -0
  298. package/templates/root-consumer/.claude/rules/security.md.example +0 -0
  299. package/templates/root-consumer/.claude/settings.json.example +1 -27
  300. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
  301. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +23 -106
  302. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
  303. package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
  304. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +0 -0
  305. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +0 -0
  306. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
  307. package/templates/root-consumer/.cursor/mcp.json.example +0 -0
  308. package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
  309. package/templates/root-consumer/.dndev/args.json.example +0 -0
  310. package/templates/root-consumer/.dndev.secrets.example +0 -0
  311. package/templates/root-consumer/.env.example +0 -1
  312. package/templates/root-consumer/.gemini/settings.json.example +0 -0
  313. package/templates/root-consumer/.gitignore.example +1 -0
  314. package/templates/root-consumer/.mcp.json.example +0 -0
  315. package/templates/root-consumer/.prettierrc.cjs.example +0 -0
  316. package/templates/root-consumer/AGENTS.md.example +63 -0
  317. package/templates/root-consumer/CLAUDE.md.example +1 -33
  318. package/templates/root-consumer/README.md.example +11 -33
  319. package/templates/root-consumer/entities/index.ts.example +0 -0
  320. package/templates/root-consumer/eslint.config.js.example +0 -0
  321. package/templates/root-consumer/tsconfig.json.example +0 -0
  322. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +0 -56
  323. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +0 -46
  324. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +0 -91
  325. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +0 -67
  326. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +0 -20
  327. package/templates/root-consumer/.claude/statusline.py.example +0 -79
  328. package/templates/root-consumer/.clinerules.example +0 -1
  329. package/templates/root-consumer/.cursorrules.example +0 -1
  330. package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
  331. package/templates/root-consumer/.windsurfrules.example +0 -1
  332. package/templates/root-consumer/AI.md.example +0 -108
  333. package/templates/root-consumer/CONVENTIONS.md.example +0 -1
  334. package/templates/root-consumer/GEMINI.md.example +0 -1
  335. package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
  336. package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
  337. package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -56
  338. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -134
  339. package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
  340. package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
  341. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -59
  342. package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
  343. package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
  344. package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
  345. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -262
  346. package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
  347. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
  348. package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
  349. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
  350. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
  351. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
  352. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
  353. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
  354. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
  355. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
  356. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
  357. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -148
  358. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
  359. package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
  360. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
  361. package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
  362. package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
  363. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
  364. package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
  365. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
  366. package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
@@ -1,48 +0,0 @@
1
- # Emulator Setup Guide
2
-
3
- This guide covers how to set up your local development environment for the Firebase Emulator Suite.
4
-
5
- ## Environment Variables
6
-
7
- The DoNotDev framework uses a strict separation between local development and production secrets for functions.
8
-
9
- ### Local Development (.env.local)
10
-
11
- **`.env.local` is the exclusive source of truth for emulators.**
12
-
13
- When you run `dndev emu <app-name>`, the framework loads environment variables **ONLY** from `functions/.env.local`.
14
-
15
- 1. Create `functions/.env.local` (it is git-ignored by default).
16
- 2. Add your local development keys (e.g., Stripe ephemeral webhook secret).
17
-
18
- ```bash
19
- # functions/.env.local
20
- STRIPE_SECRET_KEY=sk_test_...
21
- STRIPE_WEBHOOK_SECRET=whsec_... # Get this from 'stripe listen' output
22
- ```
23
-
24
- ### Production Secrets (.env)
25
-
26
- **`.env` is the source of truth for production secrets.**
27
-
28
- These are the secrets that will be synced to Firebase Cloud Functions when you run `dndev deploy` or `dndev sync-secrets`.
29
-
30
- ```bash
31
- # functions/.env
32
- STRIPE_SECRET_KEY=sk_live_...
33
- STRIPE_WEBHOOK_SECRET=whsec_... # Your permanent production webhook secret
34
- ```
35
-
36
- ## Running the Emulator
37
-
38
- ```bash
39
- # Start emulators for a specific app
40
- dndev emu showcase
41
- ```
42
-
43
- If you need Stripe webhook forwarding, the emulator command will provide instructions on how to start the Stripe CLI and where to paste the temporary webhook secret.
44
-
45
- ## Troubleshooting
46
-
47
- 1. **Signature Verification Error**: This usually means the `STRIPE_WEBHOOK_SECRET` in your `functions/.env.local` does not match the secret displayed in your active `stripe listen` terminal.
48
- 2. **Missing Secrets**: Ensure you have created the `functions/.env.local` file. The emulator command will warn you if it's missing.
@@ -1,402 +0,0 @@
1
- # WAI-WAY: The "With AI Way" Protocol
2
-
3
- > **CREDIT:** WAI-WAY is adapted from the **BMAD Method**, optimized for DoNotDev.
4
-
5
- ---
6
-
7
- ## The Golden Rule
8
-
9
- > **THE SCAFFOLDED FILES ARE YOUR DOCUMENTATION.**
10
- >
11
- > Every scaffolded file contains working examples and inline comments.
12
- > **READ the file. FOLLOW the pattern. EXTEND.**
13
- >
14
- > Do NOT guess. Do NOT invent. Copy patterns from scaffolded files.
15
-
16
- ---
17
-
18
- ## The Intelligence Engine (MCP Server)
19
-
20
- Your project is pre-configured with a **Knowledge Engine** (MCP Server) in `.mcp.json`.
21
-
22
- 1. **Phase Tracking:** `start_phase(N)` returns the blueprint, agent persona, and files to read for each phase.
23
- 2. **Type Intelligence:** `lookup_symbol("ComponentName")` returns actual TypeScript types — never guess props.
24
- 3. **Knowledge Retrieval:** `get_guide("CRUD")`, `get_guideline("styling")`, `search_framework("keyword")`.
25
- 4. **Implementation Tracking:** `init_implementation()` creates a persistent checklist. `update_progress()` ticks items. `get_progress()` reads status. Survives across sessions. Versioned per project version.
26
- 5. **Captain's Log:** Session history auto-recorded on `approve_phase()`. `get_project_history()` for metrics and post-mortem. Never deleted — carries across all project versions.
27
- 6. **Lessons:** `record_lesson("gotcha", { tags: ["stripe", "billing"] })` saves tagged gotchas to `.dndev/LESSONS.md`. Filtered by phase + module on next `start_phase`. Never deleted — carries across all project versions.
28
-
29
- The IDE (Cursor, Claude Code, etc.) handles file write approval natively. No MCP-level gating.
30
-
31
- ---
32
-
33
- ## Document Chain
34
-
35
- Phase 0 (BRAINSTORM) produces three specification documents from a conversation guided by `spec_template.md`:
36
-
37
- ```
38
- spec_template.md (FORMAT — empty shell for conversation)
39
- ↓ P0: Extractor fills through questions
40
- ↓ User validates
41
- ↓ Agent splits into:
42
- ├── docs/PRD.md (Product Requirements — journeys, rules, permissions)
43
- ├── docs/HLD.md (High-Level Design — preset, auth, pages, features)
44
- └── docs/LLD.md (Low-Level Design — per-entity specs, state machines, access)
45
-
46
- init_implementation({ from_spec: true })
47
- └── .dndev/implementation.md (active macro plan — checklist per phase)
48
- ```
49
-
50
- | Document | Purpose | Audience |
51
- |----------|---------|----------|
52
- | **`PRD.md`** | The WHAT — user journeys, business rules, permissions, edge cases | Product owner, stakeholders, agents |
53
- | **`HLD.md`** | The HOW (big picture) — preset, auth, pages, features, architecture | Architect, senior dev, agents |
54
- | **`LLD.md`** | The HOW (detailed) — per-entity fields, state machines, access matrices | Builder agent, dev |
55
-
56
- All three live in `docs/` and are versioned via git history.
57
-
58
- ---
59
-
60
- ## The Flow
61
-
62
- ```
63
- BRAINSTORM (→ PRD + HLD + LLD) → SCAFFOLD → ENTITIES → COMPOSE → CONFIGURE
64
- ```
65
-
66
- **Critical:** `spec_template.md` is the FORMAT, not an output. P0 uses it to guide conversation, then produces three separate documents.
67
-
68
- ---
69
-
70
- ## Phase 0: BRAINSTORM → PRD + HLD + LLD
71
-
72
- **Goal:** Through conversation, gather requirements and produce validated specification documents.
73
-
74
- **The flow:**
75
- ```
76
- User provides idea → Agent asks questions → User validates → Agent produces PRD + HLD + LLD
77
- ```
78
-
79
- ### Step 1: User Provides Initial Idea
80
-
81
- User describes the app informally:
82
- - "I want a car dealership management app"
83
- - "We need a SaaS for team project management"
84
- - "Build me a portfolio website"
85
-
86
- ### Step 2: Agent Asks Clarifying Questions
87
-
88
- **Identity:** What's it called? Who's it for? Value proposition?
89
-
90
- **Scope:** What can users DO? What data exists? Main flows?
91
-
92
- **Auth:** Login required? Roles? Providers?
93
-
94
- **Access:** Who can create/read/update/delete each entity?
95
-
96
- **Features:** Billing? i18n? PWA? OAuth?
97
-
98
- ### Step 3: Agent Fills Spec Template (internally)
99
-
100
- Using answers, agent follows `guides/wai-way/spec_template.md` format:
101
-
102
- **READ these to make decisions:**
103
- - `guides/wai-way/presets_guide.md` - Choose preset
104
- - `guides/wai-way/entity_patterns.md` - Common entity schemas
105
- - `guides/wai-way/page_patterns.md` - Common page structures
106
-
107
- ### Step 4: User Validates Summary
108
-
109
- Agent presents completed specification summary. User confirms or iterates.
110
-
111
- ### Step 5: Agent Produces Documents
112
-
113
- **User confirms → Agent splits into three documents:**
114
-
115
- **`docs/PRD.md`** (from `prd_template.md`):
116
- - Identity, user journeys, business rules, permissions, edge cases, overrides
117
-
118
- **`docs/HLD.md`** (from `hld_template.md`):
119
- - Preset, auth model, billing, aesthetic essence, page map, entity relationships, features, architecture decisions
120
-
121
- **`docs/LLD.md`** (from `lld_template.md`):
122
- - Per-entity field definitions, state machines, relationships, access matrices, cross-entity rules
123
-
124
- **Then:** `init_implementation({ from_spec: true })` → `.dndev/implementation.md`
125
-
126
- **Documents validated? Move to Phase 1.**
127
- **User has changes? Iterate until validated.**
128
-
129
- ---
130
-
131
- ## Phase 1: SCAFFOLD
132
-
133
- **Goal:** Running app skeleton with all routes as interactive prototype stubs.
134
-
135
- **READ:**
136
- - `docs/HLD.md` - Page map (routes, purpose, journeys)
137
- - `docs/PRD.md` - User journeys (for navigation flow)
138
- - `guides/wai-way/page_patterns.md` - Page structure patterns
139
-
140
- **`dndev` is an installed CLI — run directly, never via `bunx` or `npx`.**
141
-
142
- ```bash
143
- # Create new app (interactive wizard — no --preset flag, it prompts you)
144
- dndev create-app
145
-
146
- # Start emulators (if Firebase backend was selected)
147
- dndev emu start
148
-
149
- # Start the dev server
150
- dndev dev
151
- ```
152
-
153
- ### Step 1.1: Create Page Files
154
-
155
- For each page from HLD page map, create `src/pages/[Name]Page.tsx`.
156
-
157
- ### Step 1.2: Add PageMeta + Interactive Stubs
158
-
159
- **READ:** `src/pages/HomePage.tsx` - Copy the PageMeta pattern.
160
-
161
- Each page gets:
162
- - `PageMeta` with namespace, icon, auth (set `auth: false` for prototype validation)
163
- - Navigation buttons to related pages (from user journeys)
164
- - Role description placeholder
165
-
166
- **Output:** All routes exist as clickable prototype stubs. User can click through the North Star path.
167
-
168
- ---
169
-
170
- ## Phase 2: ENTITIES
171
-
172
- **Goal:** Define all data models from LLD.
173
-
174
- **READ:**
175
- - `docs/LLD.md` - Per-entity field specs, state machines, access matrices
176
- - `entities/ExampleEntity.ts` - Entity definition pattern
177
- - `guides/wai-way/entity_patterns.md` - Common entity schemas
178
-
179
- ### Step 2.1: Create Entity Files
180
-
181
- For each entity from LLD:
182
-
183
- 1. Copy matching pattern from `entity_patterns.md`
184
- 2. Create `entities/[Entity].ts`
185
- 3. Customize fields from LLD field definitions
186
- 4. Set access rules from LLD access matrix
187
-
188
- ### Step 2.2: Export Entities
189
-
190
- ```typescript
191
- // entities/index.ts
192
- export { productEntity } from './Product';
193
- export { customerEntity } from './Customer';
194
- export { orderEntity } from './Order';
195
- ```
196
-
197
- **Output:** All entities defined and exported.
198
-
199
- ---
200
-
201
- ## Phase 3: COMPOSE
202
-
203
- **Goal:** Build pages with components. HARDCODE ALL STRINGS.
204
-
205
- **READ:**
206
- - `docs/PRD.md` - User journeys (what each page does)
207
- - `docs/HLD.md` - Page map (routes, layout decisions)
208
- - `src/pages/ListPageExample.tsx` - CRUD list pattern
209
- - `src/pages/FormPageExample.tsx` - CRUD form pattern
210
- - `guides/wai-way/page_patterns.md` - All page patterns
211
-
212
- **HARDCODE all strings:**
213
- ```tsx
214
- // GOOD
215
- <HeroSection title="Welcome to My App" subtitle="The best app ever built" />
216
-
217
- // BAD — Don't start with i18n
218
- <HeroSection title={t('hero.title')} subtitle={t('hero.subtitle')} />
219
- ```
220
-
221
- **Output:** All pages functional with hardcoded content.
222
-
223
- ---
224
-
225
- ## Phase 4: CONFIGURE + TEST
226
-
227
- **Goal:** Generate tests, firestore rules, CI/CD, and finalize config.
228
-
229
- **READ:**
230
- - `docs/PRD.md` - Permissions matrix, business rules (your test plan)
231
- - `docs/LLD.md` - Per-entity access matrices
232
- - `entities/index.ts` - All entity definitions
233
- - `src/config/app.ts` - App configuration
234
- - `guides/dndev/SETUP_TESTING.md` - Testing patterns
235
-
236
- ### Tests
237
- - Entity tests: required fields, types, access rules match LLD
238
- - Page tests: renders, PageMeta, route protection matches HLD
239
- - Access control tests: admin/owner/guest permissions match PRD
240
-
241
- ### Config
242
- - `app.ts`: APP_NAME from PRD, preset from HLD
243
- - `legal.ts`: Company, contacts, hosting, jurisdiction
244
- - `.env`: Firebase, license key, optional Stripe/Sentry
245
- - `firestore.rules`: Generated from entity access definitions
246
- - `.github/workflows/ci.yml`: Quality + deploy pipeline
247
-
248
- ### Mobile Check
249
- DevTools → 375px width → navigation, forms, text, buttons (44px), no horizontal scroll.
250
-
251
- ### i18n (Optional)
252
- **Only after tests pass.** Extract hardcoded strings to `src/locales/[namespace]_en.json`.
253
-
254
- **Output:** Test files, firestore.rules, CI/CD pipeline, configured app.
255
-
256
- ---
257
-
258
- ## Implementation Tracking (Multi-Session Progress)
259
-
260
- `.dndev/implementation.md` tracks what's done and what's pending across sessions.
261
-
262
- ### Setup (after Phase 0)
263
-
264
- ```
265
- # Auto-generate from spec documents
266
- init_implementation({ from_spec: true })
267
-
268
- # Or manual sections
269
- init_implementation({ sections: [
270
- { title: "Auth Module", items: ["Login page", "Registration", "Password reset"] },
271
- { title: "Dashboard", items: ["Stats cards", "Activity feed", "Charts"] }
272
- ] })
273
- ```
274
-
275
- ### During Work
276
-
277
- ```
278
- # Tick items as you complete them
279
- update_progress({ item: "Login page", done: true })
280
- update_progress({ item: "Stats cards", done: true, note: "Used Card component with level h3" })
281
-
282
- # Check progress
283
- get_progress() # full overview
284
- get_progress({ section: "Auth Module" }) # filtered to section
285
- ```
286
-
287
- ### Cross-Session Continuity
288
-
289
- When you start a new session:
290
- 1. `start_phase(N)` automatically includes implementation progress
291
- 2. The agent sees what's done and picks up where it left off
292
- 3. No repeated work, no drift
293
-
294
- ### Versioning (V1 → V2 → V3)
295
-
296
- When starting a new project version:
297
- 1. Archive current: `.dndev/implementation.md` → `.dndev/archive/implementation-v{N}.md`
298
- 2. Update spec documents: modify `docs/PRD.md`, `docs/HLD.md`, `docs/LLD.md` (git tracks history)
299
- 3. Create fresh plan: `init_implementation()` with V(N+1) sections
300
- 4. **Lessons carry forward** — `.dndev/LESSONS.md` accumulates across all versions
301
- 5. **Captain's log carries forward** — `.dndev/captain-log.json` is the full project history
302
-
303
- ---
304
-
305
- ## Captain's Log (Project History)
306
-
307
- Every `approve_phase()` auto-records a session entry to `.dndev/captain-log.json`. No manual action needed. **Never deleted — carries across all project versions.**
308
-
309
- ### What's Recorded Automatically
310
-
311
- - Date + timestamps (started/completed)
312
- - Phase number and name
313
- - Module (if scoped)
314
- - Files touched + symbols used
315
- - Outcome summary (from `complete_phase({ summary: "..." })`)
316
-
317
- ### Viewing History
318
-
319
- ```
320
- get_project_history()
321
- ```
322
-
323
- Returns computed metrics + timeline:
324
- - Total sessions, phases completed
325
- - Files and symbols totals
326
- - Per-session timeline with outcomes
327
-
328
- ---
329
-
330
- ## Lessons (Decisions & Gotchas)
331
-
332
- `.dndev/LESSONS.md` — persistent operational knowledge. **Never deleted — carries across all project versions.**
333
-
334
- ### Recording
335
-
336
- ```
337
- record_lesson("gotcha about Zustand store actions", { tags: ["zustand", "state"] })
338
- ```
339
-
340
- ### How They Work
341
-
342
- - Tagged with inline markers for filtering
343
- - `start_phase` filters by current phase + module — agents see only relevant lessons
344
- - Confidence scoring: `score_lesson("lesson text", "helpful")` or `"harmful"`
345
- - 90-day half-life decay — old lessons fade unless scored as helpful
346
- - **Critical for V(N+1):** When starting a new version, agents read lessons to avoid repeating mistakes
347
-
348
- ---
349
-
350
- ## Quick Reference
351
-
352
- ### Key Files
353
-
354
- | File | Purpose | When |
355
- |------|---------|------|
356
- | `guides/wai-way/spec_template.md` | Conversation FORMAT (empty shell) | Phase 0 |
357
- | `guides/wai-way/prd_template.md` | Output FORMAT for PRD | Phase 0 |
358
- | `guides/wai-way/hld_template.md` | Output FORMAT for HLD | Phase 0 |
359
- | `guides/wai-way/lld_template.md` | Output FORMAT for LLD | Phase 0 |
360
- | `docs/PRD.md` | Product Requirements (produced by P0) | Phase 0-4 |
361
- | `docs/HLD.md` | High-Level Design (produced by P0) | Phase 0-4 |
362
- | `docs/LLD.md` | Low-Level Design (produced by P0) | Phase 2-4 |
363
- | `guides/wai-way/presets_guide.md` | Preset decision | Phase 0 |
364
- | `guides/wai-way/entity_patterns.md` | Entity schemas | Phase 2 |
365
- | `guides/wai-way/page_patterns.md` | Page structures | Phase 1, 3 |
366
- | `src/pages/HomePage.tsx` | PageMeta pattern | Phase 1 |
367
- | `entities/ExampleEntity.ts` | Entity pattern | Phase 2 |
368
- | `src/config/app.ts` | App config | Phase 4 |
369
-
370
- ### Agents
371
-
372
- | Agent | Phase | Focus |
373
- |-------|-------|-------|
374
- | **Extractor** | 0-1 | Requirements → PRD + HLD + LLD, routes, prototype |
375
- | **Architect** | 2 | Entities from LLD |
376
- | **Builder** | 3 | Page composition from PRD + HLD |
377
- | **Polisher** | 4 | Config, testing, polish, i18n |
378
-
379
- ### Operational Files
380
-
381
- | File | Lives in | Versioned | Purpose |
382
- |------|----------|-----------|---------|
383
- | `PRD.md` | `docs/` | Git history | Requirements |
384
- | `HLD.md` | `docs/` | Git history | Architecture |
385
- | `LLD.md` | `docs/` | Git history | Detailed design |
386
- | `implementation.md` | `.dndev/` | Archived per version | Active macro plan |
387
- | `captain-log.json` | `.dndev/` | Never archived | Full project history |
388
- | `LESSONS.md` | `.dndev/` | Never archived | Decisions + gotchas |
389
-
390
- ---
391
-
392
- ## Summary
393
-
394
- ```
395
- Phase 0: BRAINSTORM → User idea → Questions → PRD.md + HLD.md + LLD.md + implementation.md
396
- Phase 1: SCAFFOLD → Create all *Page.tsx with PageMeta, clickable prototype (from HLD page map)
397
- Phase 2: ENTITIES → Define all entities with fields/access (from LLD)
398
- Phase 3: COMPOSE → Build pages with components, HARDCODE strings (from PRD journeys + HLD pages)
399
- Phase 4: CONFIGURE → Config, Firebase, test, mobile, optional i18n
400
- ```
401
-
402
- **Remember:** `spec_template.md` is the FORMAT. Phase 0 produces PRD + HLD + LLD. Validated documents = mechanical build.
@@ -1,78 +0,0 @@
1
- # architect
2
-
3
- ACTIVATION-NOTICE: This file contains your full agent operating guidelines.
4
-
5
- ## AGENT DEFINITION
6
-
7
- ```yaml
8
- agent:
9
- name: Architect
10
- id: architect
11
- title: Data Architect
12
- icon: 🏗️
13
- phase: "2_entities"
14
- done_when: "All entities defined with fields, access, visibility. Exported from index.ts"
15
-
16
- persona:
17
- role: Data Modeler & Entity Designer
18
- style: Precise, systematic, convention-focused
19
- identity: You define the data structures using DoNotDev entities.
20
- focus: Creating entity definitions with fields, access rules, visibility.
21
-
22
- golden_rule: |
23
- THE SCAFFOLDED FILES ARE YOUR DOCUMENTATION.
24
- READ entities/ExampleEntity.ts for the pattern.
25
- COPY the pattern. EXTEND with your fields.
26
- Do NOT invent field types - use what's documented.
27
-
28
- core_principles:
29
- - Ask "What data does your app manage?" first
30
- - One entity = one Firestore collection
31
- - Define access rules (who can CRUD)
32
- - Define field visibility (who can see what)
33
- - Use framework field types only
34
-
35
- field_types:
36
- - text: Single-line text
37
- - textarea: Multi-line text
38
- - number: Numeric values
39
- - email: Email with validation
40
- - tel: Phone with country picker
41
- - select: Dropdown options
42
- - combobox: Searchable dropdown
43
- - switch: Toggle on/off
44
- - date: Date picker
45
- - timestamp: Date + time
46
- - images: Image uploads
47
- - reference: Link to another entity
48
-
49
- commands:
50
- - help: Show available commands
51
- - list-entities: Output entity list with fields
52
- - create-entity: Generate entity file from spec
53
- - exit: Exit persona
54
-
55
- output:
56
- - All entities defined in entities/
57
- - Each entity has fields, access, visibility
58
- - Exported from entities/index.ts
59
- ```
60
-
61
- ## ACTIVATION PROMPT
62
-
63
- ```
64
- Activate AGENT Architect.
65
-
66
- READ these files first:
67
- - entities/ExampleEntity.ts (entity pattern, field types)
68
-
69
- Your goal: Define all data models.
70
-
71
- Ask me:
72
- 1. What data does your app manage?
73
- 2. For each entity: What fields does it have?
74
- 3. Who can create/read/update/delete each entity?
75
- 4. Which fields are public vs admin-only?
76
-
77
- Then create the entity files following the ExampleEntity pattern.
78
- ```
@@ -1,97 +0,0 @@
1
- # builder
2
-
3
- ACTIVATION-NOTICE: This file contains your full agent operating guidelines.
4
-
5
- ## AGENT DEFINITION
6
-
7
- ```yaml
8
- agent:
9
- name: Builder
10
- id: builder
11
- title: Page Builder
12
- icon: 💻
13
- phase: "3_compose"
14
- done_when: "All pages functional, CRUD uses EntityList/EntityFormRenderer, strings hardcoded"
15
-
16
- persona:
17
- role: Implementation Specialist
18
- style: Concise, precise, pattern-following
19
- identity: You build pages using framework components. You do NOT design.
20
- focus: Creating functional pages with EntityList, EntityFormRenderer, and UI components.
21
-
22
- golden_rule: |
23
- THE SCAFFOLDED FILES ARE YOUR DOCUMENTATION.
24
- READ src/pages/ExampleListPage.tsx for CRUD list pattern.
25
- READ src/pages/ExampleFormPage.tsx for CRUD form pattern.
26
- HARDCODE ALL STRINGS FIRST. i18n comes later.
27
-
28
- core_principles:
29
- - CRUD pages: Use EntityList and EntityFormRenderer
30
- - Landing pages: Use HeroSection, Section, Card, Grid, Stack
31
- - HARDCODE strings first - validate UX before i18n
32
- - Use framework components only - no custom CSS
33
- - Trust component defaults
34
- - **70/30 Hierarchy:** Use `primary` variant for the North Star action; `outline`/`ghost` for others.
35
- - **Benefit-First Copy:** For Heros/Cards, translate technical features into outcomes (e.g., 'Optimize Your Fleet' vs 'Manage Cars').
36
- - **Success Intent:** Trust framework defaults for CRUD (automatic toasts/loaders). Only propose custom redirects or celebratory components for the 'North Star' action or if the user asks for more polish.
37
- - **Spec Drift:** If you must deviate from the spec (field types, logic), log it in `spec_changes.md`. Do NOT modify `spec_template.md` directly.
38
-
39
- crud_pattern:
40
- list_page: |
41
- <EntityList entity={myEntity} userRole={user?.role} />
42
- form_page: |
43
- <EntityFormRenderer
44
- entity={myEntity}
45
- operation="create" // or "edit"
46
- onSubmit={handleSubmit}
47
- defaultValues={data}
48
- />
49
-
50
- ui_components:
51
- - PageContainer: Required page wrapper
52
- - HeroSection: Full-width hero banner
53
- - Section: Content block with title
54
- - Card: Content card
55
- - Grid: Responsive grid
56
- - Stack: Flex container
57
- - Button: Buttons
58
- - Text: Typography
59
-
60
- commands:
61
- - help: Show available commands
62
- - build-page: Create a page from specification
63
- - list-components: Show available UI components
64
- - exit: Exit persona
65
-
66
- output:
67
- - All pages functional
68
- - CRUD pages use EntityList/EntityFormRenderer
69
- - All strings hardcoded (no i18n yet)
70
- ```
71
-
72
- ## ACTIVATION PROMPT
73
-
74
- ```
75
- Activate AGENT Builder.
76
-
77
- READ these files first:
78
- - src/pages/ExampleListPage.tsx (EntityList pattern)
79
- - src/pages/ExampleFormPage.tsx (EntityFormRenderer pattern)
80
- - src/pages/HomePage.tsx (UI components pattern)
81
-
82
- Your goal: Build all pages with components.
83
-
84
- Rules:
85
- 1. CRUD pages → Use EntityList and EntityFormRenderer
86
- 2. Landing pages → Use HeroSection, Section, Card, Grid, Stack
87
- 3. HARDCODE all strings (no i18n yet)
88
- 4. Use framework components only
89
-
90
- **Apply UX Mandates:**
91
- - **Visual Anchor:** Every page must have ONE clear primary focus (Hero or Main Card).
92
- - **Mobile First:** Ensure all touch targets are > 44px.
93
- - **Kano Filter:** Use 'Benefit' copy for marketing/dashboard pages. Use 'Utility' copy for forms.
94
- - **Success Intent:** Trust framework defaults. Only propose custom redirects/celebration for the 'North Star' action.
95
-
96
- Build each page following the scaffolded patterns.
97
- ```