@donotdev/cli 0.1.0 → 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 (390) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +0 -0
  3. package/dependencies-matrix.json +175 -72
  4. package/dist/bin/commands/agent-setup.js +936 -428
  5. package/dist/bin/commands/build.js +4363 -883
  6. package/dist/bin/commands/bump.js +1296 -780
  7. package/dist/bin/commands/cacheout.js +494 -363
  8. package/dist/bin/commands/coach.js +632 -431
  9. package/dist/bin/commands/create-app.js +1316 -799
  10. package/dist/bin/commands/create-project.js +1355 -827
  11. package/dist/bin/commands/db.js +26158 -18868
  12. package/dist/bin/commands/deploy.js +5983 -1971
  13. package/dist/bin/commands/dev.js +1223 -657
  14. package/dist/bin/commands/doctor.js +1100 -528
  15. package/dist/bin/commands/emu.js +1380 -757
  16. package/dist/bin/commands/format.js +494 -363
  17. package/dist/bin/commands/get-demo.js +1210 -715
  18. package/dist/bin/commands/make-admin.js +16073 -8700
  19. package/dist/bin/commands/preview.js +1227 -658
  20. package/dist/bin/commands/seed.js +26171 -18881
  21. package/dist/bin/commands/setup-cicd.js +1475 -880
  22. package/dist/bin/commands/setup.js +1574 -956
  23. package/dist/bin/commands/staging.js +5984 -1972
  24. package/dist/bin/commands/sync-secrets.js +1423 -676
  25. package/dist/bin/commands/type-check.js +976 -469
  26. package/dist/bin/commands/wai.js +499 -368
  27. package/dist/bin/dndev.js +43 -19
  28. package/dist/bin/donotdev.js +43 -19
  29. package/dist/index.js +6166 -2133
  30. package/guidelines/DEPENDENCIES.md +155 -0
  31. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  32. package/package.json +2 -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 +27 -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 -3
  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 +26 -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/layout.tsx.example +13 -4
  136. package/templates/app-next/src/app/not-found.tsx.example +0 -0
  137. package/templates/app-next/src/config/app.ts.example +0 -0
  138. package/templates/app-next/src/config/legal.ts.example +0 -0
  139. package/templates/app-next/src/config/providers.ts.example +1 -1
  140. package/templates/app-next/src/globals.css.example +0 -0
  141. package/templates/app-next/src/locales/dndev_en.json.example +0 -0
  142. package/templates/app-next/src/locales/home_en.json.example +6 -6
  143. package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
  144. package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  145. package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
  146. package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
  147. package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
  148. package/templates/app-next/src/themes.css.example +28 -1
  149. package/templates/app-vite/.env.example +0 -33
  150. package/templates/app-vite/csp.example.json +44 -0
  151. package/templates/app-vite/index.html.example +0 -3
  152. package/templates/app-vite/service-account-key.json.example +0 -0
  153. package/templates/app-vite/src/App.tsx.example +0 -0
  154. package/templates/app-vite/src/config/app.ts.example +0 -0
  155. package/templates/app-vite/src/config/legal.ts.example +0 -0
  156. package/templates/app-vite/src/config/providers.ts.example +1 -1
  157. package/templates/app-vite/src/globals.css.example +0 -0
  158. package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
  159. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  160. package/templates/app-vite/src/main.tsx.example +0 -0
  161. package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
  162. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  163. package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
  164. package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
  165. package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  166. package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
  167. package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
  168. package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
  169. package/templates/app-vite/src/themes.css.example +26 -0
  170. package/templates/deploy-config/.firebaserc.example +0 -0
  171. package/templates/deploy-config/firestore.indexes.json.example +0 -0
  172. package/templates/deploy-config/firestore.rules.example +0 -0
  173. package/templates/deploy-config/storage.rules.example +0 -0
  174. package/templates/deploy-config/tsconfig.functions.json.example +0 -0
  175. package/templates/deploy-config/vercel.json.example +2 -2
  176. package/templates/functions-firebase/.env.example +2 -2
  177. package/templates/functions-firebase/README.md.example +3 -3
  178. package/templates/functions-firebase/build.mjs.example +0 -0
  179. package/templates/functions-firebase/functions.config.js.example +0 -0
  180. package/templates/functions-firebase/functions.yaml.example +0 -0
  181. package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
  182. package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
  183. package/templates/functions-firebase/src/auth/index.ts.example +0 -0
  184. package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
  185. package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
  186. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
  187. package/templates/functions-firebase/src/billing/index.ts.example +0 -0
  188. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
  189. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
  190. package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
  191. package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
  192. package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
  193. package/templates/functions-firebase/src/crud/index.ts.example +0 -0
  194. package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
  195. package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
  196. package/templates/functions-firebase/src/index.ts.example +0 -0
  197. package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
  198. package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
  199. package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
  200. package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
  201. package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
  202. package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
  203. package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
  204. package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
  205. package/templates/functions-firebase/tsconfig.json.example +0 -0
  206. package/templates/functions-supabase/supabase/config.toml.example +0 -0
  207. package/templates/functions-supabase/supabase/functions/.env.example +0 -0
  208. package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
  209. package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
  210. package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
  211. package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
  212. package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
  213. package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
  214. package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
  215. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
  216. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
  217. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
  218. package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
  219. package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
  220. package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
  221. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
  222. package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
  223. package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
  224. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  225. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  226. package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
  227. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  228. package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
  229. package/templates/functions-vercel/.env.example +3 -3
  230. package/templates/functions-vercel/README.md.example +2 -2
  231. package/templates/functions-vercel/build.mjs.example +0 -0
  232. package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
  233. package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
  234. package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
  235. package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
  236. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
  237. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
  238. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
  239. package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
  240. package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
  241. package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
  242. package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
  243. package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
  244. package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
  245. package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
  246. package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
  247. package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
  248. package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
  249. package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
  250. package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
  251. package/templates/functions-vercel/tsconfig.json.example +0 -0
  252. package/templates/functions-vercel/vercel.json.example +0 -0
  253. package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
  254. package/templates/overlay-firebase/env.fragment.example +0 -0
  255. package/templates/overlay-firebase/env.fragment.expo.example +0 -0
  256. package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
  257. package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
  258. package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
  259. package/templates/overlay-supabase/env.fragment.example +0 -0
  260. package/templates/overlay-supabase/env.fragment.expo.example +0 -0
  261. package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
  262. package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
  263. package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
  264. package/templates/overlay-vercel/env.fragment.example +0 -0
  265. package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
  266. package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
  267. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
  268. package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
  269. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
  270. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
  271. package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
  272. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
  273. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
  274. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
  275. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
  276. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
  277. package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
  278. package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
  279. package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
  280. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
  281. package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
  282. package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
  283. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
  284. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
  285. package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
  286. package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
  287. package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
  288. package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
  289. package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
  290. package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
  291. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  292. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
  293. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  294. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  295. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  296. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  297. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  298. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  299. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  300. package/templates/root-consumer/.claude/settings.json.example +100 -4
  301. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
  302. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
  303. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
  304. package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
  305. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  306. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  307. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
  308. package/templates/root-consumer/.cursor/mcp.json.example +0 -0
  309. package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
  310. package/templates/root-consumer/.dndev/args.json.example +0 -0
  311. package/templates/root-consumer/.dndev.secrets.example +0 -0
  312. package/templates/root-consumer/.env.example +0 -1
  313. package/templates/root-consumer/.gemini/settings.json.example +0 -0
  314. package/templates/root-consumer/.gitignore.example +1 -0
  315. package/templates/root-consumer/.mcp.json.example +0 -0
  316. package/templates/root-consumer/.prettierrc.cjs.example +0 -0
  317. package/templates/root-consumer/AGENTS.md.example +63 -0
  318. package/templates/root-consumer/CLAUDE.md.example +1 -1
  319. package/templates/root-consumer/README.md.example +11 -33
  320. package/templates/root-consumer/entities/index.ts.example +0 -0
  321. package/templates/root-consumer/eslint.config.js.example +0 -0
  322. package/templates/root-consumer/tsconfig.json.example +0 -0
  323. package/templates/app-demo/public/manifest.json.example +0 -10
  324. package/templates/app-dndev/public/manifest.json.example +0 -10
  325. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  326. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  327. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  328. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  329. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  330. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  331. package/templates/root-consumer/.claude/statusline.py.example +0 -79
  332. package/templates/root-consumer/.clinerules.example +0 -1
  333. package/templates/root-consumer/.cursorrules.example +0 -1
  334. package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
  335. package/templates/root-consumer/.windsurfrules.example +0 -1
  336. package/templates/root-consumer/AI.md.example +0 -108
  337. package/templates/root-consumer/CONVENTIONS.md.example +0 -1
  338. package/templates/root-consumer/GEMINI.md.example +0 -1
  339. package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
  340. package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
  341. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  342. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  343. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  344. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  345. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  346. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  347. package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
  348. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  349. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
  350. package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
  351. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  352. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  353. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  354. package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
  355. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  356. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  357. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  358. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
  359. package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
  360. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  361. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  362. package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
  363. package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
  364. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
  365. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  366. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  367. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  368. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  369. package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
  370. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
  371. package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
  372. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
  373. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
  374. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
  375. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
  376. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
  377. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
  378. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
  379. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
  380. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
  381. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
  382. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
  383. package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
  384. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
  385. package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
  386. package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
  387. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
  388. package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
  389. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
  390. package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
@@ -1,140 +0,0 @@
1
- # Product Requirements Document (PRD)
2
-
3
- > **Version:** V1
4
- > **Status:** Draft | Validated
5
- > **Last Updated:** [date]
6
- >
7
- > This document is the WHAT — what users need, what the product does, what rules govern behavior.
8
- > Produced by Phase 0 (BRAINSTORM) from `spec_template.md` conversation.
9
-
10
- ---
11
-
12
- ## 1. Identity
13
-
14
- | Field | Value |
15
- |-------|-------|
16
- | **App Name** | |
17
- | **One-Line Description** | |
18
- | **Primary User** | _(Who uses this daily?)_ |
19
- | **Secondary Users** | _(Who else interacts?)_ |
20
- | **Core Value** | _(What problem does it solve?)_ |
21
- | **North Star Action** | _(The ONE thing users MUST do — max 2 clicks from home)_ |
22
-
23
- ---
24
-
25
- ## 2. User Journeys
26
-
27
- > Most important section. Every page, entity, and rule traces back to a journey.
28
-
29
- ### Journey 1: [Name — e.g., "New User Onboarding"]
30
-
31
- **Actor:** [User type]
32
- **Goal:** [What they're trying to accomplish]
33
- **Trigger:** [What starts this journey]
34
-
35
- **Steps:**
36
- 1.
37
- 2.
38
- 3.
39
- 4.
40
- 5.
41
-
42
- **Success:** [What indicates completion]
43
- **Failure:** [What could go wrong, how to handle]
44
-
45
- ---
46
-
47
- ### Journey 2: [Name — e.g., "Daily Core Task"]
48
-
49
- **Actor:** [User type]
50
- **Goal:** [What they're trying to accomplish]
51
- **Trigger:** [What starts this journey]
52
-
53
- **Steps:**
54
- 1.
55
- 2.
56
- 3.
57
- 4.
58
- 5.
59
-
60
- **Success:** [What indicates completion]
61
- **Failure:** [What could go wrong, how to handle]
62
-
63
- ---
64
-
65
- _(Add more journeys as needed — every core flow gets its own journey)_
66
-
67
- ---
68
-
69
- ## 3. Business Rules
70
-
71
- > Explicit rules that govern behavior. If it's not here, it doesn't exist.
72
-
73
- ### [Entity/Feature] Rules
74
-
75
- 1. **[Rule name]:** [Description]
76
- 2. **[Rule name]:** [Description]
77
-
78
- ### Validation Rules
79
-
80
- | Entity | Field | Rule |
81
- |--------|-------|------|
82
- | | | |
83
-
84
- ### Automatic Calculations
85
-
86
- | When | Calculate | Formula/Logic |
87
- |------|-----------|---------------|
88
- | | | |
89
-
90
- ### Notifications/Triggers
91
-
92
- | Event | Action | Recipients |
93
- |-------|--------|------------|
94
- | | | |
95
-
96
- ---
97
-
98
- ## 4. Permissions Matrix
99
-
100
- > Who can CRUD what, under what conditions.
101
-
102
- | Entity | Create | Read | Update | Delete |
103
- |--------|--------|------|--------|--------|
104
- | | | | | |
105
-
106
- _Conditions (e.g., "owner only when status = draft") documented per cell._
107
-
108
- ---
109
-
110
- ## 5. Edge Cases & Error Handling
111
-
112
- | Scenario | Handling |
113
- |----------|----------|
114
- | User submits invalid data | |
115
- | Network connection lost | |
116
- | Concurrent edit conflict | |
117
- | External service down | |
118
- | User tries unauthorized action | |
119
-
120
- ---
121
-
122
- ## 6. Design Decisions & Overrides
123
-
124
- > Intentional deviations from framework UX heuristics (3-click rule, 70/30 hierarchy).
125
- > **FOR AGENTS:** If documented here, do NOT challenge during Build or Polish phases.
126
-
127
- | Target (Page/Feature) | Override Description | Rationale |
128
- |-----------------------|----------------------|-----------|
129
- | | | |
130
-
131
- ---
132
-
133
- ## Validation Checklist
134
-
135
- - [ ] Every user journey has 5+ numbered steps
136
- - [ ] Every business rule is explicit (not implied)
137
- - [ ] Every entity has CRUD permissions for every role
138
- - [ ] Can answer "what happens when Z fails?" for common scenarios
139
- - [ ] No "TBD", "TODO", or empty fields
140
- - [ ] User has reviewed and confirmed this document
@@ -1,217 +0,0 @@
1
- # Preset Selection Guide
2
-
3
- > **One decision. Everything else follows.**
4
-
5
- ## How Presets Work
6
-
7
- **Presets are NOT part of scaffolding.** When you run `dndev create-app`, it creates a base app with either Vite or Next.js.
8
-
9
- **Preset is a single config change** in `config/app.ts` after the app is created:
10
-
11
- ```typescript
12
- export const appConfig: AppConfig = {
13
- preset: 'admin', // Change this one line
14
- };
15
- ```
16
-
17
- The preset controls layout, navigation, and default behaviors - but the files are the same.
18
-
19
- ---
20
-
21
- ## Decision Matrix
22
-
23
- | If your app is... | Use Preset | Why |
24
- |-------------------|------------|-----|
25
- | Marketing site with conversion goals | `landing` | Hero sections, CTAs, no sidebar, public-first |
26
- | Internal dashboard / back-office tool | `admin` | Sidebar nav, CRUD tables, auth-required by default |
27
- | Multi-tenant SaaS with teams | `moolti` | Workspace switcher, billing, team management |
28
- | Documentation / knowledge base | `docs` | Auto-sidebar from pages, search, TOC |
29
- | Blog / content publishing | `blog` | Article layout, archive, categories |
30
- | Mobile-first / game / fullscreen | `game` | Minimal chrome, touch-optimized, no sidebar |
31
- | Custom / minimal / embedded | `plain` | No layout, full control |
32
-
33
- ---
34
-
35
- ## Preset Details
36
-
37
- ### `landing`
38
- **Best for:** Marketing sites, product pages, portfolios
39
-
40
- **Layout:**
41
- - Header with nav links
42
- - Full-width content area
43
- - Footer with legal links
44
- - NO sidebar
45
-
46
- **Default auth:** Public pages, optional protected sections
47
-
48
- **Typical pages:**
49
- - HomePage (hero + features + CTA)
50
- - AboutPage
51
- - PricingPage
52
- - ContactPage
53
- - LoginPage / SignupPage
54
-
55
- ---
56
-
57
- ### `admin`
58
- **Best for:** Dashboards, CMS, internal tools, CRUD apps
59
-
60
- **Layout:**
61
- - Header with branding + user menu
62
- - Collapsible sidebar with nav
63
- - Main content area
64
- - Optional footer
65
-
66
- **Default auth:** Most pages require login
67
-
68
- **Typical pages:**
69
- - DashboardPage (stats, recent items)
70
- - [Entity]ListPage (table with search/filter)
71
- - [Entity]Page (create/edit form)
72
- - SettingsPage
73
-
74
- ---
75
-
76
- ### `moolti`
77
- **Best for:** SaaS with workspaces, team collaboration
78
-
79
- **Layout:**
80
- - Like `admin` but with workspace switcher
81
- - Team/organization context
82
- - Billing integration ready
83
-
84
- **Default auth:** All pages require login + workspace
85
-
86
- **Typical pages:**
87
- - WorkspaceDashboardPage
88
- - TeamSettingsPage
89
- - BillingPage
90
- - [Entity]ListPage per workspace
91
-
92
- ---
93
-
94
- ### `docs`
95
- **Best for:** Documentation, guides, API reference
96
-
97
- **Layout:**
98
- - Header with search
99
- - Auto-generated sidebar from `src/pages/docs/**`
100
- - Wide content area for text
101
- - Table of contents
102
-
103
- **Default auth:** Public (or auth for premium docs)
104
-
105
- **Typical structure:**
106
- ```
107
- src/pages/docs/
108
- GettingStartedPage.tsx
109
- guides/
110
- SetupPage.tsx
111
- ConfigurationPage.tsx
112
- api/
113
- OverviewPage.tsx
114
- EndpointsPage.tsx
115
- ```
116
-
117
- ---
118
-
119
- ### `blog`
120
- **Best for:** Articles, news, content marketing
121
-
122
- **Layout:**
123
- - Header with categories
124
- - Article-focused content area
125
- - Sidebar for related/recent posts
126
- - Author profiles
127
-
128
- **Default auth:** Public read, admin write
129
-
130
- **Typical pages:**
131
- - BlogHomePage (featured + recent)
132
- - ArticlePage (single article)
133
- - CategoryPage (filtered list)
134
- - AuthorPage (author profile + posts)
135
-
136
- ---
137
-
138
- ### `game`
139
- **Best for:** Mobile apps, games, fullscreen experiences
140
-
141
- **Layout:**
142
- - Minimal/no header
143
- - Full viewport content
144
- - Bottom navigation (mobile)
145
- - Touch-optimized
146
-
147
- **Default auth:** Varies
148
-
149
- **Typical pages:**
150
- - GamePage (main experience)
151
- - LeaderboardPage
152
- - ProfilePage
153
- - SettingsPage
154
-
155
- ---
156
-
157
- ### `plain`
158
- **Best for:** Embeds, custom layouts, special cases
159
-
160
- **Layout:**
161
- - No framework layout
162
- - You control everything
163
- - Just `<PageContainer>` wrapper
164
-
165
- **Default auth:** None (you configure)
166
-
167
- **Use when:**
168
- - Embedding in another app
169
- - Completely custom design
170
- - Framework presets don't fit
171
-
172
- ---
173
-
174
- ## Quick Decision Flow
175
-
176
- ```
177
- START
178
- |
179
- v
180
- Is it content/docs focused?
181
- YES --> Is it articles/blog? --> YES --> blog
182
- | --> NO --> docs
183
- NO
184
- |
185
- v
186
- Is it a dashboard/tool?
187
- YES --> Multi-tenant/teams? --> YES --> moolti
188
- | --> NO --> admin
189
- NO
190
- |
191
- v
192
- Is it marketing/public?
193
- YES --> landing
194
- NO
195
- |
196
- v
197
- Is it mobile-first/fullscreen?
198
- YES --> game
199
- NO --> plain
200
- ```
201
-
202
- ---
203
-
204
- ## Changing Presets Later
205
-
206
- Presets can be changed in `config/app.ts`:
207
-
208
- ```typescript
209
- export const appConfig: AppConfig = {
210
- preset: 'admin', // Change this
211
- };
212
- ```
213
-
214
- **Low risk:** Switching between similar presets (admin <-> moolti)
215
- **Higher risk:** Switching layout types (landing <-> admin) - may need page restructuring
216
-
217
- **Recommendation:** Get the preset right in Phase 0. Changing later is possible but adds work.
@@ -1,313 +0,0 @@
1
- # App Specification
2
-
3
- > **This is the contract.** Complete spec = deterministic build. Incomplete spec = wasted work.
4
- > **Do NOT start coding until this document is complete and validated.**
5
-
6
- ---
7
-
8
- ## 1. Identity
9
-
10
- | Field | Value |
11
- |-------|-------|
12
- | **App Name** | |
13
- | **One-Line Description** | |
14
- | **Primary User** | _(Who uses this daily?)_ |
15
- | **Secondary Users** | _(Who else interacts?)_ |
16
- | **Core Value** | _(What problem does it solve?)_ |
17
- | **Aesthetic Essence** | SaaS (Default) / Luxury / Brutalist / Custom |
18
-
19
- ---
20
-
21
- ## 2. User Journeys
22
-
23
- > **Most important section.** These drive everything else.
24
-
25
- ### Journey 1: [Name - e.g., "New User Onboarding"]
26
-
27
- **Actor:** [User type]
28
- **Goal:** [What they're trying to accomplish]
29
- **Trigger:** [What starts this journey]
30
-
31
- **Steps:**
32
- 1.
33
- 2.
34
- 3.
35
- 4.
36
- 5.
37
-
38
- **Success:** [What indicates completion]
39
- **Failure:** [What could go wrong, how to handle]
40
-
41
- ---
42
-
43
- ### Journey 2: [Name - e.g., "Daily Core Task"]
44
-
45
- **Actor:** [User type]
46
- **Goal:** [What they're trying to accomplish]
47
- **Trigger:** [What starts this journey]
48
-
49
- **Steps:**
50
- 1.
51
- 2.
52
- 3.
53
- 4.
54
- 5.
55
-
56
- **Success:** [What indicates completion]
57
- **Failure:** [What could go wrong, how to handle]
58
-
59
- ---
60
-
61
- ### Journey 3: [Name - e.g., "Admin Management"]
62
-
63
- **Actor:** [User type]
64
- **Goal:** [What they're trying to accomplish]
65
-
66
- **Steps:**
67
- 1.
68
- 2.
69
- 3.
70
-
71
- ---
72
-
73
- _(Add more journeys as needed)_
74
-
75
- ---
76
-
77
- ## 3. Preset Selection
78
-
79
- **Selected:** `_______________`
80
-
81
- | Preset | When to Use |
82
- |--------|-------------|
83
- | `landing` | Marketing site, public pages, conversion focus |
84
- | `admin` | Dashboard with sidebar, CRUD-heavy, internal tools |
85
- | `moolti` | Multi-tenant SaaS, teams/workspaces, billing |
86
- | `docs` | Documentation, auto-sidebar from pages |
87
- | `blog` | Content-focused, articles, archive |
88
- | `game` | Mobile-first, fullscreen, minimal chrome |
89
- | `plain` | Custom everything, no framework layout |
90
-
91
- ---
92
-
93
- ## 4. Auth & Roles
94
-
95
- | Question | Answer |
96
- |----------|--------|
97
- | **Auth required?** | Yes / No |
98
- | **Providers** | [ ] Email [ ] Google [ ] GitHub [ ] Apple |
99
- | **Self-registration?** | Yes / No / Invite-only |
100
-
101
- ### Roles
102
-
103
- | Role | Description | Can Do |
104
- |------|-------------|--------|
105
- | `guest` | Not logged in | |
106
- | `user` | Logged in | |
107
- | `admin` | Administrator | |
108
- | | | |
109
-
110
- ---
111
-
112
- ## 5. Billing (if applicable)
113
-
114
- | Question | Answer |
115
- |----------|--------|
116
- | **Billing enabled?** | Yes / No |
117
- | **Model** | Subscription / One-time / Usage-based |
118
- | **Provider** | Stripe / Other |
119
-
120
- ### Plans
121
-
122
- | Plan | Price | Features |
123
- |------|-------|----------|
124
- | | | |
125
- | | | |
126
-
127
- ---
128
-
129
- ## 6. Entities
130
-
131
- > One entity = one collection. Define ALL data.
132
-
133
- ### Entity: [Name]
134
-
135
- | Field | Type | Required | Validation |
136
- |-------|------|----------|------------|
137
- | id | string | yes | auto-generated |
138
- | | | | |
139
- | | | | |
140
- | createdAt | timestamp | yes | auto |
141
- | updatedAt | timestamp | yes | auto |
142
-
143
- **States:** `[state1]` → `[state2]` → `[state3]`
144
-
145
- **State Transitions:**
146
- - `state1` → `state2`: [What triggers this]
147
- - `state2` → `state3`: [What triggers this]
148
- - `state2` → `cancelled`: [What triggers this]
149
-
150
- **Relationships:**
151
- - Belongs to: [Entity] (via `fieldName`)
152
- - Has many: [Entity]
153
-
154
- **Permissions:**
155
- | Action | Who | Conditions |
156
- |--------|-----|------------|
157
- | Create | | |
158
- | Read | | |
159
- | Update | | |
160
- | Delete | | |
161
-
162
- ---
163
-
164
- ### Entity: [Name]
165
-
166
- | Field | Type | Required | Validation |
167
- |-------|------|----------|------------|
168
- | | | | |
169
-
170
- **States:** (if applicable)
171
-
172
- **Relationships:**
173
-
174
- **Permissions:**
175
- | Action | Who | Conditions |
176
- |--------|-----|------------|
177
- | Create | | |
178
- | Read | | |
179
- | Update | | |
180
- | Delete | | |
181
-
182
- ---
183
-
184
- _(Copy entity template for each entity)_
185
-
186
- ---
187
-
188
- ## 7. Business Rules
189
-
190
- > Explicit rules that govern behavior. If it's not here, it doesn't exist.
191
-
192
- ### [Entity/Feature] Rules
193
-
194
- 1. **[Rule name]:** [Description]
195
- - Example: "Order total = sum(items) + shipping - discount"
196
-
197
- 2. **[Rule name]:** [Description]
198
-
199
- 3. **[Rule name]:** [Description]
200
-
201
- ### Validation Rules
202
-
203
- | Entity | Field | Rule |
204
- |--------|-------|------|
205
- | | | |
206
- | | | |
207
-
208
- ### Automatic Calculations
209
-
210
- | When | Calculate | Formula/Logic |
211
- |------|-----------|---------------|
212
- | | | |
213
-
214
- ### Notifications/Triggers
215
-
216
- | Event | Action | Recipients |
217
- |-------|--------|------------|
218
- | | | |
219
- | | | |
220
-
221
- ---
222
-
223
- ## 8. Pages
224
-
225
- > Derived from user journeys. Every page exists because a journey needs it.
226
-
227
- ### Public Pages
228
-
229
- | Route | Page | Purpose | From Journey |
230
- |-------|------|---------|--------------|
231
- | `/` | HomePage | | |
232
- | | | | |
233
-
234
- ### Protected Pages (login required)
235
-
236
- | Route | Page | Purpose | From Journey |
237
- |-------|------|---------|--------------|
238
- | `/dashboard` | DashboardPage | | |
239
- | | | | |
240
-
241
- ### Admin Pages
242
-
243
- | Route | Page | Purpose | From Journey |
244
- |-------|------|---------|--------------|
245
- | `/admin` | AdminDashboard | | |
246
- | | | | |
247
-
248
- ---
249
-
250
- ## 9. Features
251
-
252
- | Feature | Needed | Details |
253
- |---------|--------|---------|
254
- | **i18n** | Yes/No | Languages: |
255
- | **PWA** | Yes/No | |
256
- | **Real-time** | Yes/No | Which entities: |
257
- | **File uploads** | Yes/No | Which entities: |
258
- | **Email notifications** | Yes/No | Triggers: |
259
- | **Search** | Yes/No | Which entities: |
260
- | **Export (CSV/PDF)** | Yes/No | Which entities: |
261
-
262
- ---
263
-
264
- ## 10. Edge Cases & Error Handling
265
-
266
- > What happens when things go wrong?
267
-
268
- | Scenario | Handling |
269
- |----------|----------|
270
- | User submits invalid data | |
271
- | Network connection lost | |
272
- | Concurrent edit conflict | |
273
- | External service down | |
274
- | User tries unauthorized action | |
275
- | | |
276
-
277
- ---
278
-
279
- ## 11. Design Decisions & Overrides
280
- > **CRITICAL:** These are intentional deviations from framework UX heuristics (e.g., 3-click rule, 70/30 hierarchy).
281
- > **FOR AGENTS:** If a layout choice is documented here, do NOT challenge or flag it during the Build or Polish phases.
282
-
283
- | Target (Page/Feature) | Override Description | Rationale |
284
- |-----------------------|----------------------|-----------|
285
- | | | |
286
-
287
- ---
288
-
289
- ## Validation Checklist
290
-
291
- Before starting Phase 1, ALL must be checked:
292
-
293
- ### Completeness
294
- - [ ] Every user journey has numbered steps
295
- - [ ] Every entity has fields, states, permissions defined
296
- - [ ] Every business rule is explicit (not implied)
297
- - [ ] Every page is linked to a journey
298
- - [ ] No "TBD", "TODO", or empty fields
299
-
300
- ### Clarity
301
- - [ ] Can explain app to someone unfamiliar in 2 minutes
302
- - [ ] Can trace any page back to a user journey
303
- - [ ] Can answer "who can do X to Y?" for any entity/action
304
- - [ ] Can answer "what happens when Z fails?" for common scenarios
305
-
306
- ### User Validation
307
- - [ ] User has reviewed this spec
308
- - [ ] User has confirmed it's complete
309
- - [ ] User has no outstanding questions
310
-
311
- ---
312
-
313
- **All boxes checked? Proceed to Phase 1: SCAFFOLD.**