@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
@@ -49,9 +49,9 @@ dndev staging # Deploy to staging environment
49
49
  dndev sync-secrets # Push functions/.env secrets to Firebase Secret Manager
50
50
 
51
51
  # Quality
52
- bun run type-check # TypeScript validation
52
+ dndev tc # Type-check (preferred)
53
53
  bun test # Run tests
54
- bun run build # Build for production
54
+ dndev build # Production build (or bun run build per app)
55
55
  ```
56
56
 
57
57
  ## Project Structure
@@ -69,30 +69,20 @@ bun run build # Build for production
69
69
  ├── entities/ # Entity definitions (shared across apps)
70
70
  ├── functions/ # Firebase Cloud Functions
71
71
  │ └── .env # Server-side secrets
72
- ├── guides/ # WAI-WAY blueprints + framework guides
73
- ├── AI.md # AI agent instructions
74
- ├── CLAUDE.md # Claude-specific instructions
72
+ ├── AGENTS.md # AI agent runbook (MCP: get_guideline / search_framework)
73
+ ├── CLAUDE.md # Claude Code import bridge (one line: @AGENTS.md)
75
74
  ├── firebase.json # Firebase config
76
75
  ├── firestore.rules # Firestore security rules (generated by Phase 4)
77
76
  └── .firebaserc # Firebase project aliases
78
77
  ```
79
78
 
80
- ## Building With AI
79
+ ## Building with AI
81
80
 
82
- This project is configured for AI-assisted development via WAI-WAY:
81
+ 1. Enable **MCP** (donotdev server — see `.mcp.json` / `.cursor/mcp.json`).
82
+ 2. Point the agent at root **`AGENTS.md`** (and **`CLAUDE.md`** if using Claude Code — it imports `AGENTS.md`).
83
+ 3. The agent should run **`list_features()`**, then **`start_phase(0)`**, and use **`get_guideline`** / **`lookup_symbol`** instead of guessing APIs.
83
84
 
84
- 1. Open in **Cursor**, **Claude Code**, **Windsurf**, or **AntiGravity**
85
- 2. The AI reads `AI.md` automatically and follows the WAI-WAY protocol
86
- 3. MCP tools are pre-configured — the AI looks up real TypeScript types instead of guessing
87
-
88
- **The 5 phases:**
89
- - Phase 0: Brainstorm — describe your app, produce a validated spec
90
- - Phase 1: Scaffold — create all pages and routes from spec
91
- - Phase 2: Entities — define data models with fields, access rules, visibility
92
- - Phase 3: Compose — build pages with framework components
93
- - Phase 4: Configure — generate tests, firestore rules, CI/CD
94
-
95
- Read `guides/wai-way/WAI_WAY_CLI.md` for the full workflow.
85
+ Quick reference: MCP **`get_guideline("AGENT_START_HERE")`**. WAI-WAY overview: **`get_guideline("WAI_WAY_CLI")`** (shipped with `@donotdev/mcp-server`).
96
86
 
97
87
  ## Key Files
98
88
 
@@ -102,20 +92,8 @@ Read `guides/wai-way/WAI_WAY_CLI.md` for the full workflow.
102
92
  | `src/pages/*Page.tsx` | Pages — auto-discovered as routes by filename |
103
93
  | `src/config/app.ts` | App name, preset, features |
104
94
  | `src/config/legal.ts` | Company info, legal compliance |
105
- | `guides/dndev/` | Framework setup guides (Auth, CRUD, Billing, etc.) |
106
- | `guides/wai-way/` | WAI-WAY blueprints and agent personas |
107
-
108
- ## License Key
109
-
110
- Add your license key to your **app's** `.env` (not the root):
111
-
112
- ```env
113
- # apps/my-app/.env
114
- VITE_DONOTDEV_LICENSE_KEY=dndev_your_key_here
115
- ```
116
-
117
- Get your key from [donotdev.com/pricing](https://donotdev.com/pricing).
95
+ | **`AGENTS.md`** | Project runbook for the agent (golden path, phases, MCP tools) |
118
96
 
119
97
  ---
120
98
 
121
- **Need help?** Check the homepage setup guide or read `guides/dndev/` for detailed instructions.
99
+ **Need help?** Use MCP **`search_framework`** / **`get_guideline`**; see root **`AGENTS.md`**.
File without changes
File without changes
File without changes
@@ -1,10 +0,0 @@
1
- {
2
- "name": "DoNotDev App",
3
- "short_name": "DoNotDev",
4
- "description": "Built with DoNotDev Framework ©",
5
- "start_url": "/",
6
- "display": "standalone",
7
- "background_color": "#ffffff",
8
- "theme_color": "#000000",
9
- "icons": []
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "DoNotDev App",
3
- "short_name": "DoNotDev",
4
- "description": "Built with DoNotDev Framework ©",
5
- "start_url": "/",
6
- "display": "standalone",
7
- "background_color": "#ffffff",
8
- "theme_color": "#000000",
9
- "icons": []
10
- }
@@ -1,175 +0,0 @@
1
- ---
2
- description: Extract requirements and generate complete HLD through conversation (BMAD EXTRACTOR)
3
- ---
4
-
5
- # Brainstorm Command - Requirements Extraction
6
-
7
- **⚠️ MODE CHECK:** This command is for **Consumer App Development** only.
8
-
9
- **If you're in the framework monorepo (this repo):**
10
- - ❌ **DO NOT use `/brainstorm`** - framework dev doesn't need requirements extraction
11
- - ✅ See [Modes Guide](https://github.com/donotdev/framework/blob/main/docs/development/MODES.md) for framework dev workflow
12
-
13
- **If you're in a consumer repo:**
14
- - ✅ Use `/brainstorm` to extract requirements and generate HLD
15
- - ✅ Use `/design` after HLD is validated
16
- - ✅ Use `/build` after LLD is validated
17
- - ✅ Use `/polish` after app is functional
18
-
19
- **WORKFLOW ORDER:**
20
- 1. `/brainstorm` → Extract requirements, generate HLD (THIS COMMAND)
21
- 2. `/design` → Create technical plan (LLD)
22
- 3. `/build` → Implement code using framework defaults
23
- 4. `/polish` → Add styling, customization, i18n
24
-
25
- ---
26
-
27
- ## Usage
28
-
29
- ```
30
- /brainstorm [app idea or requirement]
31
- ```
32
-
33
- **Examples:**
34
- ```
35
- /brainstorm I want to build a car dealership management app
36
- /brainstorm Create a task management app for teams
37
- /brainstorm Build a portfolio website for a photographer
38
- ```
39
-
40
- ---
41
-
42
- ## Process
43
-
44
- ### Step 0: Start Phase (MANDATORY — DO THIS FIRST)
45
-
46
- **BEFORE asking any questions or doing any work**, call:
47
- ```
48
- start_phase(0)
49
- ```
50
- This activates Phase 0: BRAINSTORM and loads the blueprint, persona, context, and lessons learned from previous sessions. **Do NOT proceed without this call.**
51
-
52
- ### Step 0b: Vision Challenge (MANDATORY - before extraction)
53
-
54
- Before asking a single requirements question, challenge the idea itself. This is not about feasibility - it's about whether the right thing is being built.
55
-
56
- **Ask these 4 questions, one at a time. Wait for each answer.**
57
-
58
- 1. **Job-to-be-done:** "Forget the app for a second. What's the actual outcome your users need? Not the feature - the result. What job are they hiring this app to do?"
59
- - If the answer is a feature ("manage invoices"), push back: "Managing invoices is a task. What's the outcome? Getting paid faster? Reducing accounting errors? Tax compliance?"
60
-
61
- 2. **10-star version:** "If this app were so good it felt like magic - what would that look like? Don't worry about feasibility. What's the dream?"
62
- - This reveals the real ambition. Most people self-censor. Draw out the vision they're afraid to say.
63
-
64
- 3. **What sucks today:** "How are your users solving this problem right now? What's broken about that solution?"
65
- - If they say "nothing exists" - probe harder. There's always a current solution, even if it's Excel, WhatsApp, or paper.
66
-
67
- 4. **Minimum switch trigger:** "What's the ONE thing this app must do on day one that would make someone stop using their current solution and switch to yours?"
68
- - This is the MVP anchor. Everything else is V2.
69
-
70
- **After all 4 answers, synthesize:**
71
-
72
- > **Vision lock:** "[Job-to-be-done] by [minimum switch trigger]. Current solutions fail because [what sucks]. The 10-star version would [dream]."
73
-
74
- Ask: "Is this right? Anything to adjust before we dive into requirements?"
75
-
76
- Only proceed to Step 1 after user confirms.
77
-
78
- ---
79
-
80
- ### Step 1: Activate EXTRACTOR Agent
81
-
82
- **Deploy:** `/agents extractor` (BMAD EXTRACTOR persona)
83
-
84
- **Input:** User's app idea (any level of clarity)
85
-
86
- **Actions:**
87
- 1. EXTRACTOR asks probing questions (one at a time)
88
- 2. EXTRACTOR uses MCP to discover framework capabilities
89
- 3. EXTRACTOR identifies native vs custom components
90
- 4. EXTRACTOR tracks progress and identifies gaps
91
- 5. EXTRACTOR generates complete HLD when all targets extracted
92
-
93
- **Output:** Complete HLD document (`HLD.md`)
94
-
95
- ---
96
-
97
- ## What EXTRACTOR Extracts
98
-
99
- | Category | What EXTRACTOR Asks |
100
- |----------|---------------------|
101
- | **Vision** | What is this app? Who uses it? |
102
- | **Users** | What roles exist? What can each role do? |
103
- | **Entities** | What "things" exist? What fields? How do they relate? |
104
- | **Features** | What can users DO? MVP vs V2? |
105
- | **Pages** | What screens exist? Routes? Access levels? |
106
- | **Constraints** | Platform? Languages? Auth? Integrations? |
107
- | **Native vs Custom** | What uses framework defaults? What needs custom? |
108
-
109
- ---
110
-
111
- ## Output Format
112
-
113
- EXTRACTOR generates `HLD.md` with:
114
-
115
- - **Vision** - One sentence description
116
- - **Users** - Roles and permissions table
117
- - **Entities** - All entities with fields, types, visibility, validation
118
- - **Features** - MVP vs V2 categorization
119
- - **Pages** - Routes, access levels, components
120
- - **Constraints** - Platform, languages, auth, integrations
121
- - **Native vs Custom** - Framework-native vs custom components
122
- - **Open Questions** - Unresolved items
123
-
124
- ---
125
-
126
- ## Validation Gate & Phase Completion (MANDATORY)
127
-
128
- **Before proceeding to `/design`:**
129
- - [ ] HLD is complete (no empty sections or TBDs)
130
- - [ ] All user journeys mapped (numbered steps)
131
- - [ ] All entities have fields, states, permissions
132
- - [ ] All business rules documented
133
- - [ ] Native vs custom analysis complete
134
- - [ ] User has validated HLD
135
-
136
- **When HLD is complete**, write the filled-out spec to `docs/HLD.md` (the template at `guides/wai-way/spec_template.md` stays untouched as reference). Then call:
137
- ```
138
- complete_phase({ files: ["docs/HLD.md"], summary: "HLD complete — N entities, N pages, N features" })
139
- ```
140
- Then wait for the user to call `approve_phase()` before moving to `/design`.
141
-
142
- **Quality Over Speed:** Take as long as needed. A complete HLD that takes 4 hours is better than an incomplete one that takes 20 minutes.
143
-
144
- ---
145
-
146
- ## Rules
147
-
148
- - **EXTRACTOR asks one question at a time** - Wait for answer before next question
149
- - **EXTRACTOR probes vague answers** - "What does 'manage' mean?"
150
- - **EXTRACTOR challenges scope** - "What's the minimum to launch?"
151
- - **EXTRACTOR summarizes progress** - Every 3-4 exchanges
152
- - **EXTRACTOR asks when uncertain** - Never guesses
153
- - **EXTRACTOR stops when complete** - Generates HLD only when all targets extracted
154
-
155
- ---
156
-
157
- ## Integration with WAI-WAY
158
-
159
- - Uses **BMAD EXTRACTOR** persona (proven, battle-tested)
160
- - Follows WAI-WAY Phase 0 (BRAINSTORM → SPEC)
161
- - Output feeds into `/design` command (BMAD PRINTER/Architect)
162
-
163
- ---
164
-
165
- ## Requirements
166
-
167
- - MCP server configured (`.mcp.json` or `.cursor/mcp.json`) - for framework discovery
168
- - User available for conversation (requirements extraction is interactive)
169
-
170
- ---
171
-
172
- ## Next Step
173
-
174
- Once HLD is validated:
175
- → Use `/design` to create technical plan (LLD)
@@ -1,131 +0,0 @@
1
- ---
2
- description: Two-agent workflow: Prompt Engineer → Coder (AFTER /design)
3
- ---
4
-
5
- # Build Command - Two-Agent Workflow
6
-
7
- **⚠️ MODE CHECK:** This command is for **Consumer App Development** only.
8
-
9
- **If you're in the framework monorepo (this repo):**
10
- - ❌ **DO NOT use `/build`** - code directly in `packages/*/src/`
11
- - ✅ Use direct coding following Architecture Hub patterns
12
- - ✅ See [Modes Guide](https://github.com/donotdev/framework/blob/main/docs/development/MODES.md) for framework dev workflow
13
-
14
- **If you're in a consumer repo:**
15
- - ✅ Use `/build` to implement features
16
- - ✅ Use `/design` first for architecture decisions
17
-
18
- **WORKFLOW ORDER:**
19
- 1. `/brainstorm` → Extract requirements, generate HLD
20
- 2. `/design` → Create technical plan (LLD)
21
- 3. `/build` → Implement code using framework defaults (THIS COMMAND)
22
- 4. `/polish` → Add styling, customization, i18n
23
-
24
- **If no LLD exists, Builder will create on-the-fly, but `/design` first is recommended.**
25
-
26
- ## Usage
27
-
28
- ```
29
- /build [requirement]
30
- ```
31
-
32
- **Example:**
33
- ```
34
- /build Create customer detail page with inquiry list
35
- ```
36
-
37
- ## Process
38
-
39
- ### Step 0: Start Phase (MANDATORY — DO THIS FIRST)
40
-
41
- **BEFORE writing any code**, call:
42
- ```
43
- start_phase(3)
44
- ```
45
- This activates Phase 3: COMPOSE and loads the blueprint, persona, context, and lessons. **Do NOT write code without this call.**
46
-
47
- ### Step 1: Activate FORGER Agent
48
-
49
- **Deploy:** `/agents builder` (BMAD FORGER persona)
50
-
51
- **Input:** LLD from `/design` command OR user requirement
52
-
53
- **Actions:**
54
- 1. Read LLD (or create on-the-fly if no LLD exists)
55
- 2. Use MCP `lookup_symbol` for ALL components used
56
- 3. Build in phases:
57
- - Phase 1: Entities (create entity files)
58
- - Phase 2: Routes (create route config)
59
- - Phase 3: Auth (if needed)
60
- - Phase 4: Native Pages (using framework defaults)
61
- - Phase 5: Custom Components (if any)
62
- - Phase 6: Integration (wire everything together)
63
- 4. Use framework defaults ONLY (no styling, no customization)
64
- 5. Hardcode all strings (no i18n yet)
65
- 6. Run `dndev tc` after every file change — type errors must be fixed immediately
66
- 7. Validate each phase before proceeding
67
-
68
- **Output:** Working app (functional MVP, no styling)
69
-
70
- ### Phase Completion (MANDATORY)
71
-
72
- When all pages are built and `dndev tc` passes, call:
73
- ```
74
- complete_phase({ files: ["src/pages/...all page files..."], summary: "N pages composed, all type-checking" })
75
- ```
76
- Wait for user to call `approve_phase()` before moving to `/polish`.
77
-
78
- ---
79
-
80
- ## Alternative: Two-Agent Workflow
81
-
82
- For complex builds, you can use:
83
-
84
- **Step 1: Prompt Engineer**
85
- - Deploy `/agents prompt-engineer`
86
- - Prepares detailed prompt with all constraints
87
-
88
- **Step 2: Coder**
89
- - Deploy `/agents coder`
90
- - Executes prompt following constraints
91
-
92
- **Note:** BMAD FORGER (builder) is recommended for most cases as it's proven and battle-tested.
93
-
94
- ## Rules
95
-
96
- - **Builder (FORGER):** Implements exactly what's in LLD, uses framework defaults only
97
- - **Framework defaults ONLY:** No styling, no customization (deferred to /polish)
98
- - **Hardcode strings:** No i18n yet (deferred to /polish)
99
- - **Phase by phase:** Complete each phase before proceeding
100
- - **User:** Reviews output, proceeds to /polish when functional
101
-
102
- ## STOP — lookup_symbol Before Every Component (Repeated Here On Purpose)
103
-
104
- **STOP before writing ANY `@donotdev` import.** Call `lookup_symbol({ symbol: "Name" })` first. Do NOT guess props, hooks, or APIs. Do NOT proceed without verification. `complete_phase` will reject un-looked-up symbols.
105
-
106
- **Import convention:** Always `@donotdev/<package>` — never sub-paths. No `@donotdev/ui/routing`, no `@donotdev/components/card`. The only exceptions are `@donotdev/core/server`, `@donotdev/core/vite`, `@donotdev/core/next`, `@donotdev/core/functions`.
107
-
108
- ## Mode Detection
109
-
110
- **CRITICAL:** Check working mode first.
111
-
112
- **Framework dev indicators:**
113
- - `packages/` directory exists
114
- - `CLAUDE.md` says "Framework Development Mode"
115
- - Using `dn` CLI
116
-
117
- **Consumer app indicators:**
118
- - `apps/` or `src/` directory exists
119
- - `CLAUDE.md` says "Consumer App Development Mode"
120
- - Using `dndev` CLI
121
-
122
- **If framework dev detected:**
123
- - STOP and inform user: "`/build` is for consumer apps. In framework dev, code directly in `packages/*/src/`"
124
-
125
- **If consumer app detected:**
126
- - Use ONLY published `@donotdev/*` packages (no internals)
127
-
128
- ## Requirements
129
-
130
- - MCP server configured (`.mcp.json` or `.cursor/mcp.json`)
131
- - `@donotdev/mcp-server` available (via `bunx` or installed)
@@ -1,184 +0,0 @@
1
- ---
2
- description: Design workflow: Architect → Design Document (BEFORE /build)
3
- ---
4
-
5
- # Design Command - Architecture & Design Workflow
6
-
7
- **⚠️ MODE CHECK:** This command is for **Consumer App Development** only.
8
-
9
- **If you're in the framework monorepo (this repo):**
10
- - ❌ **DO NOT use `/design`** - design directly, then code in `packages/*/src/`
11
- - ✅ Use Architecture Hub + Development Hub for framework design patterns
12
- - ✅ See [Modes Guide](https://github.com/donotdev/framework/blob/main/docs/development/MODES.md) for framework dev workflow
13
-
14
- **If you're in a consumer repo:**
15
- - ✅ Use `/design` for architecture decisions
16
- - ✅ Use `/build` to implement the design
17
-
18
- **WORKFLOW ORDER:**
19
- 1. `/design` → Architect designs solution (THIS COMMAND)
20
- 2. `/build` → Prompt Engineer + Coder implement design
21
-
22
- **Design comes BEFORE build. Design the solution, then build it.**
23
-
24
- ## Usage
25
-
26
- ```
27
- /design [requirement or question]
28
- ```
29
-
30
- **Examples:**
31
- ```
32
- /design How should we handle documentation updates in dndev bump?
33
- /design Add documentation update step to bump command
34
- /design Status translation fallback chain architecture
35
- ```
36
-
37
- ## Process
38
-
39
- ### Step 0: Start Phase (MANDATORY — DO THIS FIRST)
40
-
41
- **BEFORE doing any design work**, call the appropriate phase:
42
- ```
43
- start_phase(1) # for SCAFFOLD (routes, page stubs)
44
- start_phase(2) # for ENTITIES (data models, fields, access)
45
- ```
46
- This loads the blueprint, persona, context, and lessons. **Do NOT proceed without this call.**
47
-
48
- When design work is complete, call:
49
- ```
50
- complete_phase({ files: ["...affected files..."], summary: "Description of what was designed" })
51
- ```
52
- Wait for user to call `approve_phase()` before moving on.
53
-
54
- ### Step 0b: Scope Challenge (MANDATORY - before any design)
55
-
56
- Before designing anything, challenge the scope. This prevents over-engineering and ensures we're not building what already exists.
57
-
58
- **Run these checks silently (no user interaction needed):**
59
-
60
- 1. **What already exists?** Search the framework with `search_framework()` and `lookup_symbol()`. List everything that already solves part of this requirement. If 80%+ exists, the design might just be "compose existing pieces."
61
-
62
- 2. **Minimum viable change?** What is the absolute smallest change that solves the requirement? One file? One function? A config change?
63
-
64
- 3. **File count smell test:** If the design would touch 8+ files, flag it:
65
- > "This design touches N files. That's a smell. Is there a simpler approach, or is this genuinely complex?"
66
-
67
- **Then present the scope assessment and ask user to pick a mode:**
68
-
69
- > **Scope assessment:**
70
- > - Already exists: [what we found]
71
- > - Minimum viable: [smallest possible change]
72
- > - Files affected: [count + list]
73
- >
74
- > **Mode:**
75
- > - **REDUCTION** - Compose existing pieces, minimal new code
76
- > - **HOLD SCOPE** - Build exactly what's requested, nothing more
77
- > - **EXPANSION** - Solve the broader problem (more files, new abstractions)
78
- >
79
- > Recommend: [REDUCTION/HOLD/EXPANSION] because [reason].
80
-
81
- **After user picks a mode, commit to it fully.** Your job becomes making the chosen scope succeed, not lobbying for a different one.
82
-
83
- ---
84
-
85
- ### Step 1: Architect Phase
86
-
87
- **Deploy:** `/agents architect` (WAI-WAY architect role)
88
-
89
- **Input:** User requirement or design question
90
-
91
- **Actions:**
92
- 1. Analyze requirement/question
93
- 2. Read constraints from:
94
- - `CLAUDE.md` (project rules)
95
- - Framework architecture docs (`docs/architecture/`)
96
- - Existing patterns in codebase
97
- - WAI-WAY entity patterns (if applicable)
98
- 3. Research similar solutions (codebase search, online if needed)
99
- 4. Design solution with:
100
- - Architecture overview
101
- - Trade-offs analysis
102
- - Implementation approach
103
- - File locations and changes needed
104
- - Dependencies and impacts
105
- - Validation criteria
106
-
107
- **Output:** Complete design document ready for `/build`
108
-
109
- ## Output Format
110
-
111
- ```
112
- DESIGN DOCUMENT:
113
-
114
- REQUIREMENT:
115
- [Clear statement of what needs to be designed]
116
-
117
- ANALYSIS:
118
- - Current state: [what exists]
119
- - Problem: [what needs solving]
120
- - Constraints: [framework rules, patterns, etc.]
121
-
122
- DESIGN:
123
- [Architecture/solution design]
124
-
125
- TRADE-OFFS:
126
- - Option A: [pros/cons]
127
- - Option B: [pros/cons]
128
- - Recommendation: [which and why]
129
-
130
- IMPLEMENTATION PLAN:
131
- - Files to create/modify: [list]
132
- - Changes needed: [detailed breakdown]
133
- - Dependencies: [what depends on this]
134
- - Testing: [how to validate]
135
-
136
- READY FOR /build:
137
- [Summary of what will be built]
138
-
139
- UNRESOLVED:
140
- - [Any open questions]
141
- ```
142
-
143
- ## Rules
144
-
145
- - **NEVER write code** - only design and plan
146
- - **ALWAYS analyze existing patterns** - don't reinvent
147
- - **ALWAYS consider trade-offs** - no solution is perfect
148
- - **ALWAYS reference framework architecture** - stay aligned
149
- - **ALWAYS identify impacts** - what breaks if we change this?
150
- - **ALWAYS prepare for /build** - design should be actionable
151
- - **ALWAYS use `lookup_symbol`** when referencing @donotdev components in your design — verify the API exists before putting it in the plan
152
- - **Import convention:** Always `@donotdev/<package>` top-level, never sub-paths. The only exceptions are `@donotdev/core/server`, `@donotdev/core/vite`, `@donotdev/core/next`, `@donotdev/core/functions`
153
-
154
- ## Integration with WAI-WAY & BMAD
155
-
156
- - Uses **BMAD PRINTER** persona (proven, battle-tested)
157
- - Follows WAI-WAY Phase 2 (ENTITIES) + Architecture
158
- - Output feeds into `/build` command (BMAD FORGER/Builder)
159
-
160
- ## Mode Detection
161
-
162
- **CRITICAL:** Check working mode first.
163
-
164
- **Framework dev indicators:**
165
- - `packages/` directory exists
166
- - `CLAUDE.md` says "Framework Development Mode"
167
- - Using `dn` CLI
168
-
169
- **Consumer app indicators:**
170
- - `apps/` or `src/` directory exists
171
- - `CLAUDE.md` says "Consumer App Development Mode"
172
- - Using `dndev` CLI
173
-
174
- **If framework dev detected:**
175
- - STOP and inform user: "`/design` is for consumer apps. In framework dev, design directly using Architecture Hub patterns, then code in `packages/*/src/`"
176
-
177
- **If consumer app detected:**
178
- - Use ONLY published `@donotdev/*` packages
179
- - Cannot reference internal framework patterns
180
-
181
- ## Requirements
182
-
183
- - MCP server configured (`.mcp.json` or `.cursor/mcp.json`) - for component/package lookups
184
- - Architecture docs available (for framework context)