@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
@@ -0,0 +1,32 @@
1
+ ---
2
+ description: "Definition of Done - every change must complete all items"
3
+ globs: "src/**,apps/**"
4
+ ---
5
+
6
+ # Definition of Done
7
+
8
+ Every change is incomplete until ALL applicable items are done.
9
+
10
+ ## Mandatory (every change)
11
+
12
+ 1. **Code** - simple, follows existing patterns, robust, secure
13
+ 2. **Typecheck** - `dndev tc` passes
14
+ 3. **i18n** - all user-facing strings via `t('key')`. Locale files updated.
15
+
16
+ ## Mandatory for new features
17
+
18
+ 4. **Tests** - unit test for new logic, page test for new pages
19
+ 5. **Spec compliance** - if a spec exists, verify delivery matches it
20
+
21
+ ## Output format
22
+
23
+ Every skill output MUST end with:
24
+
25
+ ```
26
+ ## Definition of Done
27
+ - [x] Code: <files changed>
28
+ - [x] Typecheck: dndev tc - PASS
29
+ - [x] i18n: <locale files updated, or N/A>
30
+ - [x] Tests: <test file, or N/A>
31
+ - [x] Spec compliance: <verified, or N/A>
32
+ ```
@@ -0,0 +1,39 @@
1
+ ---
2
+ description: "DoNotDev framework usage - how to use the framework correctly"
3
+ globs: "src/**,apps/**"
4
+ ---
5
+
6
+ # Using the DoNotDev Framework
7
+
8
+ The framework's MCP server and component library cover 99% of what you need. Use them.
9
+
10
+ ## Before ANY `@donotdev` import (MANDATORY)
11
+
12
+ 1. Call `lookup_symbol({ symbol: "ComponentName" })` first. No exceptions.
13
+ 2. **Only use props returned by `lookup_symbol()`.** Never invent props.
14
+ 3. Common hallucination traps (these DO NOT exist): `size`, `tone`, `color`, `padding`, `margin`, `spacing`, `columns`, `background`, `fields`.
15
+ 4. Import from `@donotdev/<pkg>` top-level only. Never sub-paths.
16
+
17
+ ## Use framework components, not HTML
18
+
19
+ `<div>` → Stack | `<button>` → Button | `<input>` → TextInput | `<a>` → Link | `<p>`/`<h1>` → Text | `<table>` → DataTable | `<form>` → Form | `<ul>` → List | `<img>` → Image
20
+
21
+ Hook-enforced. Native HTML in source files is blocked.
22
+
23
+ ## No custom CSS
24
+
25
+ No `.css`, `.scss`, `.less`, `.module.css` files. No Tailwind utility classes. Styling = component props + theme tokens. Hook-enforced.
26
+
27
+ ## When the framework doesn't cover your need
28
+
29
+ 1. Confirm with `lookup_symbol()` + `search_framework("keyword")`
30
+ 2. Build custom component in `src/components/`
31
+ 3. Add JSDoc: `@custom-component - framework gap, see issue #XX`
32
+ 4. GitHub issue is auto-created by the guard hook
33
+
34
+ ## Conventions
35
+
36
+ - **i18n-first.** All user-facing strings via `t('key')`. No hardcoded text.
37
+ - **Import order.** React, vendors, @donotdev, relative.
38
+ - **No fallbacks.** Fail loud. Never `|| default`.
39
+ - **Typecheck.** `dndev tc` only. Never `bunx tsc`, `npx tsc`, or raw `tsc`.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "Git discipline - enforced on all operations"
3
+ globs: "**"
4
+ ---
5
+
6
+ # Git Rules
7
+
8
+ - **Atomic commits.** One logical change per commit. Never mix refactor + feature + fix.
9
+ - **Conventional format.** `type(scope): message` - e.g. `feat(auth): add email verification flow`.
10
+ - **Message = why**, not what. The diff shows what.
11
+ - **Never force-push.** No `--force`, no `-f` after push. Hook-enforced.
12
+ - **Never skip hooks.** No `--no-verify`. Fix the root cause.
13
+ - **Never amend published commits.** New commit to fix.
14
+ - **Push is deployment.** `git push` triggers the pipeline. Be intentional.
@@ -0,0 +1,13 @@
1
+ ---
2
+ description: "Security baseline - enforced on all code"
3
+ globs: "**"
4
+ ---
5
+
6
+ # Security Rules
7
+
8
+ - **Never commit secrets.** No API keys, tokens, passwords, or credentials in code. Use `.env`.
9
+ - **Never trust input.** Validate at system boundaries - user input, API responses, URL params.
10
+ - **Never expose internals.** No stack traces, internal paths, or system details in client output.
11
+ - **Sanitize before render.** User-generated content is always suspect.
12
+ - **Least privilege.** Request minimum permissions. Expose minimum surface.
13
+ - **Run `dndev doctor` and `/grill` before production.**
@@ -1,6 +1,102 @@
1
1
  {
2
- "statusLine": {
3
- "type": "command",
4
- "command": "python3 .claude/statusline.py"
5
- }
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.sh\""
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "PreToolUse": [
15
+ {
16
+ "matcher": "Bash",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash.sh\""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "matcher": "Edit|Write",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-write.sh\"",
30
+ "statusMessage": "Write guard"
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "PostToolUse": [],
36
+ "Stop": [
37
+ {
38
+ "matcher": "",
39
+ "hooks": [
40
+ {
41
+ "type": "command",
42
+ "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/typecheck-stop.sh\""
43
+ }
44
+ ]
45
+ }
46
+ ]
47
+ },
48
+ "permissions": {
49
+ "allow": [
50
+ "Bash(git status*)",
51
+ "Bash(git diff*)",
52
+ "Bash(git log*)",
53
+ "Bash(git branch*)",
54
+ "Bash(git add*)",
55
+ "Bash(git commit*)",
56
+ "Bash(git push*)",
57
+ "Bash(git checkout*)",
58
+ "Bash(git stash*)",
59
+ "Bash(dndev *)",
60
+ "Bash(dndev)",
61
+ "Bash(bun run *)",
62
+ "Bash(bun add *)",
63
+ "Bash(bunx dndev*)",
64
+ "Bash(ls *)",
65
+ "Bash(mkdir *)",
66
+ "Read",
67
+ "Glob",
68
+ "Grep",
69
+ "Skill(brainstorm)",
70
+ "Skill(design)",
71
+ "Skill(build)",
72
+ "Skill(polish)",
73
+ "Skill(grill)",
74
+ "Skill(techdebt)",
75
+ "mcp__donotdev__lookup_symbol",
76
+ "mcp__donotdev__search_framework",
77
+ "mcp__donotdev__list_features",
78
+ "mcp__donotdev__get_guideline",
79
+ "mcp__donotdev__init_implementation",
80
+ "mcp__donotdev__update_progress",
81
+ "mcp__donotdev__get_progress",
82
+ "mcp__donotdev__get_phase_status",
83
+ "mcp__donotdev__start_phase",
84
+ "mcp__donotdev__complete_phase",
85
+ "mcp__donotdev__approve_phase",
86
+ "mcp__donotdev__run_typecheck",
87
+ "mcp__donotdev__record_lesson",
88
+ "mcp__donotdev__score_lesson",
89
+ "mcp__donotdev__get_project_history",
90
+ "mcp__donotdev__setup_coach"
91
+ ],
92
+ "deny": [
93
+ "Bash(bunx tsc*)",
94
+ "Bash(npx tsc*)",
95
+ "Bash(bun install*)",
96
+ "Bash(npm install*)",
97
+ "Bash(yarn install*)",
98
+ "Bash(rm -rf *)"
99
+ ]
100
+ },
101
+ "enableAllProjectMcpServers": true
6
102
  }
@@ -1,50 +1,45 @@
1
1
  ---
2
2
  name: build
3
- description: Implement features using framework defaults. Use AFTER /design. Activates WAI-WAY Phase 3 COMPOSE.
4
- argument-hint: [requirement or LLD reference]
3
+ description: Build workflow. Implements approved design using framework components. Activates WAI-WAY Phase 3 (COMPOSE).
4
+ argument-hint: [feature, page, or task]
5
5
  disable-model-invocation: true
6
6
  ---
7
7
 
8
- # Build — Compose the App
8
+ # Build - Implementation (Phase 3 COMPOSE)
9
9
 
10
- **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
10
+ **WORKFLOW:** `/brainstorm` -> `/design` -> `/build` -> `/polish`
11
11
 
12
- ## Step 0 — Start Phase (MANDATORY)
12
+ ## Step 0 - Start Phase (MANDATORY)
13
13
 
14
14
  ```
15
15
  start_phase(3)
16
16
  ```
17
- Do NOT write code without this call.
18
17
 
19
- ## Step 1 — Prepare
18
+ Do NOT proceed without this call.
20
19
 
21
- **Input:** $ARGUMENTS (LLD from `/design` or direct requirement)
20
+ ## Step 1 - Implement approved scope
22
21
 
23
- 1. Read LLD if it exists
24
- 2. **STOP before every `@donotdev` import** → call `lookup_symbol({ symbol: "Name" })`. No exceptions. Do NOT guess props, hooks, or APIs.
25
- 3. Import convention: always `@donotdev/<package>` — never sub-paths. Only exceptions: `@donotdev/core/server`, `@donotdev/core/vite`, `@donotdev/core/next`, `@donotdev/core/functions`.
22
+ Input: `$ARGUMENTS` + approved HLD/LLD.
26
23
 
27
- ## Step 2 — Build in phases
24
+ Rules:
25
+ - Implement only approved scope.
26
+ - Follow existing patterns in the app first.
27
+ - Use framework components and top-level imports (`@donotdev/<pkg>` only).
28
+ - Before any `@donotdev` symbol import, call `lookup_symbol()` first.
29
+ - Do not invent props.
28
30
 
29
- 1. **Entities** — create entity files
30
- 2. **Routes** — create route config
31
- 3. **Auth** — if needed
32
- 4. **Pages** — using framework defaults only (no styling, no customization)
33
- 5. **Custom components** — if any
34
- 6. **Integration** — wire everything together
31
+ ## Step 2 - Validate
35
32
 
36
- Rules:
37
- - Framework defaults ONLY — styling deferred to `/polish`
38
- - Hardcode all strings — i18n deferred to `/polish`
39
- - Run `dndev tc` after every file change — fix errors immediately
40
- - Validate each phase before proceeding
33
+ ```bash
34
+ dndev tc
35
+ ```
41
36
 
42
- ## Step 3 — Complete Phase
37
+ Type-check must pass before completion.
43
38
 
44
- When all pages built and `dndev tc` passes:
39
+ ## Step 3 - Complete Phase
45
40
 
46
41
  ```
47
- complete_phase({ files: ["src/pages/...all files..."], summary: "N pages composed, all type-checking" })
42
+ complete_phase({ files: [...], summary: "Phase 3 compose complete" })
48
43
  ```
49
44
 
50
- Wait for user `approve_phase()` → then proceed to `/polish`.
45
+ Wait for user `approve_phase()` then proceed to `/polish`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: grill
3
- description: Critical staff-engineer code review — flags problems before shipping. Blocking review with high-signal findings only.
3
+ description: Critical staff-engineer code review - flags problems before shipping. Blocking review with high-signal findings only.
4
4
  disable-model-invocation: true
5
5
  argument-hint: [files, areas, or "full"]
6
6
  ---
@@ -9,37 +9,48 @@ argument-hint: [files, areas, or "full"]
9
9
 
10
10
  Skeptical staff engineer doing a blocking code review. Find things that will **break, lose data, or mislead**.
11
11
 
12
- ## Step 0 — Situational Awareness
12
+ ## Step 0 - Situational Awareness
13
13
 
14
- 1. Read `.dndev/grill-report.json` — last run's SHA, target, items
15
- 2. Read `.dndev/grill-ignore.json` — accepted deviations (SSOT for exclusions)
14
+ 1. Read `.dndev/grill-report.json` - last run's SHA, target, items
15
+ 2. Read `.dndev/grill-ignore.json` - accepted deviations (SSOT for exclusions)
16
16
  3. Check current `git rev-parse --short HEAD`
17
17
 
18
18
  **No-op:** Same perimeter + same SHA as last run → skip. Nothing changed.
19
19
 
20
- **If `$ARGUMENTS` provided** — use as perimeter.
21
- **If empty** — check what changed since last grill. Propose and proceed unless ambiguous.
20
+ **If `$ARGUMENTS` provided** - use as perimeter.
21
+ **If empty** - check what changed since last grill. Propose and proceed unless ambiguous.
22
22
 
23
- ## Step 1 — Archive
23
+ ## Step 1 - Archive
24
24
 
25
25
  If `.dndev/grill-report.json` has resolved items (`fixed`, `resolved`, `rejected`):
26
26
  - Archive to `.dndev/grill-history.json`
27
27
  - Keep surviving items for merge
28
28
 
29
- ## Step 2 — Two-Pass Scan
29
+ ## Step 2 - Three-Pass Scan
30
30
 
31
- ### Pass 1 — CRITICAL (stops for user decision)
31
+ ### Pass 1 - CRITICAL (stops for user decision)
32
32
 
33
33
  Items that must be resolved before shipping. After listing, present each individually: **Fix / Acknowledge / Skip**. One item = one question. Do NOT proceed to Pass 2 until resolved.
34
34
 
35
- - **BLOCKER** — breaks in production, loses data, security issues, breaking API changes
36
- - **WARN-CRITICAL** — auth bypass, data corruption on normal flows
35
+ - **BLOCKER** - breaks in production, loses data, security issues, breaking API changes
36
+ - **WARN-CRITICAL** - auth bypass, data corruption on normal flows
37
37
  - @donotdev component misuse without `lookup_symbol` verification
38
38
 
39
- ### Pass 2 — INFORMATIONAL (listed, no action required)
39
+ ### Pass 2 - INFORMATIONAL (listed, no action required)
40
40
 
41
- - **WARN** — real problems users will hit (missing edge cases, misleading dead code)
42
- - **NOTE** — sparingly, genuine gotchas only
41
+ - **WARN** - real problems users will hit (missing edge cases, misleading dead code)
42
+ - **NOTE** - sparingly, genuine gotchas only
43
+
44
+ ### Pass 3 - DEFINITION OF DONE (new)
45
+
46
+ For each changed file, verify completeness:
47
+
48
+ | Check | Severity | What to look for |
49
+ |-------|----------|-----------------|
50
+ | i18n | WARN | Hardcoded user-facing strings (should use `t('key')`) |
51
+ | Tests | WARN | New logic without corresponding test file |
52
+ | Spec compliance | BLOCKER | Feature in spec not implemented or partially done |
53
+ | Theme compliance | WARN | Hardcoded colors/sizes instead of theme tokens |
43
54
 
44
55
  ### What NOT to flag:
45
56
  - Optimization suggestions, style, formatting
@@ -49,7 +60,7 @@ Items that must be resolved before shipping. After listing, present each individ
49
60
 
50
61
  **Self-test:** "Would I block a PR for this?" No → skip.
51
62
 
52
- ## Step 3 — Filter + Write
63
+ ## Step 3 - Filter + Write
53
64
 
54
65
  1. Filter out `grill-ignore.json` matches (fuzzy on issue text)
55
66
  2. Deduplicate against carried items
@@ -1,14 +1,19 @@
1
1
  ---
2
2
  name: polish
3
- description: Generate tests, database rules, CI/CD, config, fix bugs, i18n (Phase 4). Use AFTER /build when the app works and needs production-readiness.
3
+ description: "QA audit against approved spec. Tests, security rules, CI/CD, deployment. Verify delivery matches contract. Consumer workflow only. Use AFTER /build."
4
4
  argument-hint: [task]
5
- disable-model-invocation: true
6
5
  ---
7
6
 
8
- # Polish — Production-Ready
7
+ # Polish — QA Audit Against Spec
9
8
 
10
9
  **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
11
10
 
11
+ ## Philosophy: Verify, Don't Add
12
+
13
+ `/build` delivers the complete app. `/polish` verifies it matches the spec. This is QA, not feature work.
14
+
15
+ If something is missing, it's a `/build` bug — go back and fix it there.
16
+
12
17
  ## Step 0 — Start Phase (MANDATORY)
13
18
 
14
19
  ```
@@ -16,61 +21,69 @@ start_phase(4)
16
21
  ```
17
22
  Do NOT proceed without this call.
18
23
 
19
- ## Step 1 — Read Context
24
+ ## Step 1 — Spec Compliance Audit
25
+
26
+ Read the approved spec and verify delivery:
27
+
28
+ | Check | Source | Pass Criteria |
29
+ |-------|--------|---------------|
30
+ | Pages exist | HLD page map | Every page in spec is implemented |
31
+ | Entities correct | LLD field specs | Fields, states, access match exactly |
32
+ | Auth works | HLD auth section | Correct providers, guards, roles |
33
+ | i18n complete | HLD features | All specified languages have translations |
34
+ | Theme applied | HLD essence/theme | Colors, fonts, density, radius match |
35
+ | Features enabled | HLD features | Every feature in spec is functional |
20
36
 
21
- - `guides/wai-way/spec_template.md` — validated spec (test plan)
22
- - `entities/index.ts` — all entity definitions
23
- - `src/pages/` — all page files
37
+ **Any mismatch = STOP, report, fix in `/build` first.**
24
38
 
25
- ## Steps 2-5 — Parallel-capable
39
+ ## Step 2 — Generate Tests
26
40
 
27
- These steps are independent. Launch them in parallel when possible:
41
+ Tests verify the SPEC, not the code. The spec is the test plan.
28
42
 
29
- ### Tests
30
- Call `get_guide("TESTING")` for patterns.
31
- - Entity tests → `tests/entities/[Entity].test.ts`
32
- - Page tests → `tests/pages/[Page].test.tsx`
33
- - Access control → `tests/access/access-rules.test.ts`
43
+ - **Entity tests** → `tests/entities/[Entity].test.ts`
44
+ - **Page tests** → `tests/pages/[Page].test.tsx`
45
+ - **Access control** → `tests/access/access-rules.test.ts`
34
46
 
35
- ### Database Rules
36
- Auto-detect provider (Firestore or Supabase RLS). Generate rules from entity access definitions.
47
+ ## Step 3 — Database Rules
37
48
 
38
- ### CI/CD
39
- Create `.github/workflows/ci.yml` — type-check → test → build → deploy.
49
+ Auto-detect provider (Supabase RLS or Firestore rules). Generate from entity access definitions.
40
50
 
41
- ### Config
42
- - `src/config/app.ts` — APP_NAME, preset, footer
43
- - `src/config/legal.ts` — company, contacts, jurisdiction
44
- - `.env` — provider config, license key
51
+ ## Step 4 — CI/CD
52
+
53
+ Create `.github/workflows/ci.yml`: type-check → test → build → deploy.
54
+
55
+ ## Step 5 — Security Review
56
+
57
+ - No secrets in code
58
+ - Auth guards on protected routes
59
+ - Database rules cover all entities
60
+ - Input validated at boundaries
45
61
 
46
62
  ## Step 6 — Validate
47
63
 
48
64
  ```bash
49
- bun test
65
+ dndev tc # Type-check
66
+ bun test # All tests pass
50
67
  ```
51
- All tests must pass. Fix failures.
52
68
 
53
69
  ## Step 7 — Mobile Check
54
70
 
55
- DevTools → 375px → navigation, forms, text, buttons (44px min).
56
-
57
- ## Step 8 — i18n (Optional)
58
-
59
- Extract strings to `src/locales/`, replace with `useTranslation()`.
71
+ 375px width: navigation, forms, text, buttons > 44px, no horizontal scroll.
60
72
 
61
73
  ## Ship Readiness
62
74
 
63
- - `dndev tc` passes
64
- - `bun test` passes
65
- - Database rules generated
66
- - CI/CD created
67
- - No critical bugs
68
- - Mobile works at 375px
75
+ - [ ] Spec compliance: every spec item delivered
76
+ - [ ] Type-check passes
77
+ - [ ] Tests pass
78
+ - [ ] Database rules generated
79
+ - [ ] CI/CD created
80
+ - [ ] Security reviewed
81
+ - [ ] Mobile works
69
82
 
70
83
  ## Complete Phase
71
84
 
72
85
  ```
73
- complete_phase({ files: ["...all test/config files..."], summary: "Tests passing, config complete, ready to ship" })
86
+ complete_phase({ files: [...], summary: "QA passed, spec-compliant, ready to ship" })
74
87
  ```
75
88
 
76
- Wait for user `approve_phase()`. Then → `dndev deploy`.
89
+ Wait for user `approve_phase()`. Then → deploy.
File without changes
@@ -5,7 +5,11 @@ globs: ["**/*.md"]
5
5
 
6
6
  # No Documentation File Creation
7
7
 
8
- **NEVER create .md files** (analysis, summary, plan, brainstorm, status, etc.) unless the user explicitly asks for it.
8
+ **NEVER create arbitrary .md files** (analysis, summary, plan, brainstorm, status, etc.) unless the user explicitly asks for it.
9
+
10
+ Allowed workflow exceptions for this scaffold:
11
+ - `docs/HLD.md`
12
+ - `docs/LLD.md`
9
13
 
10
14
  Session notes, progress tracking, and lessons go in `.dndev/` using the MCP tools:
11
15
  - `record_lesson()` for gotchas and learnings
File without changes
File without changes
@@ -9,7 +9,6 @@
9
9
  # See apps/<your-app>/.env.example for the full list.
10
10
  #
11
11
  # For the license key:
12
- # apps/<your-app>/.env → VITE_DONOTDEV_LICENSE_KEY=dndev_your_key_here
13
12
  #
14
13
  # For Firebase config:
15
14
  # apps/<your-app>/.env → VITE_FIREBASE_API_KEY=...
@@ -61,6 +61,7 @@ Desktop.ini
61
61
  # DnDev discovery outputs (regenerated at build time)
62
62
  *.generated.ts
63
63
  *.generated.log
64
+ apps/*/public/route-manifest.json
64
65
 
65
66
  # Cache
66
67
  .cache/
File without changes
File without changes
@@ -0,0 +1,63 @@
1
+ # AI Agent Instructions
2
+
3
+ > **You are building a DoNotDev app.** This file is the single source of truth for how to work here.
4
+
5
+ ## Golden path (do this first)
6
+
7
+ 1. **Enable MCP** — project includes `.mcp.json` / `.cursor/mcp.json`. If tools fail, run **`get_guideline("AGENT_START_HERE")`** for IDE-specific steps.
8
+ 2. **`list_features()`** — see what the framework already ships (avoid reinventing).
9
+ 3. **`start_phase(0)`** — begin Phase 0; work only inside active phases until **`complete_phase`** + user approval.
10
+
11
+ Deep setup, tool list, and environment notes: **`get_guideline("AGENT_START_HERE")`**.
12
+ Architecture and API contracts: **`get_guideline(...)`** and **`lookup_symbol(...)`** — prefer these over guessing.
13
+
14
+ ## The 5 phases
15
+
16
+ Work inside an active phase: **`start_phase(N)`** before work, **`complete_phase({ files })`** before moving on, **`dndev tc`** before completing a phase when you changed code.
17
+
18
+ | Phase | Name | Skill (slash) | Focus |
19
+ |-------|------|---------------|--------|
20
+ | 0 | **BRAINSTORM** | `/brainstorm` | Requirements → validated spec |
21
+ | 1 | **SCAFFOLD** | `/design` | Routes and `*Page.tsx` stubs |
22
+ | 2 | **ENTITIES** | `/design` | Data models in `entities/` |
23
+ | 3 | **COMPOSE** | `/build` | Pages with framework components |
24
+ | 4 | **CONFIGURE** | `/polish` | Tests, config, i18n, ship readiness; use `/grill` and `/techdebt` before release |
25
+
26
+ ## Framework usage (non-negotiable)
27
+
28
+ - **`lookup_symbol({ symbol: "Name" })` before `@donotdev` usage** — real props and types only; do not invent APIs.
29
+ - **Imports:** `@donotdev/<package>` top-level only (no deep paths unless the framework docs explicitly allow it).
30
+ - **No native HTML** in app UI code — use framework components (Stack, Text, Button, etc.). Details: **`get_guideline`** (components / layouts / pages).
31
+ - **No custom CSS** — props, variants, theme tokens only.
32
+ - **ESM only** — no `require()`.
33
+ - **RTL:** logical properties (`start` / `end`), not physical `left` / `right`.
34
+
35
+ ## Custom components
36
+
37
+ Last resort: after **`lookup_symbol`** + **`search_framework`**. If you must add one, put it under `src/components/` and document the gap (e.g. JSDoc `@custom-component`). Do not block the user on tooling — deliver working UI.
38
+
39
+ ## CLI essentials
40
+
41
+ `dndev` is the project CLI (global or `bunx dndev`). Common commands:
42
+
43
+ | Command | Purpose |
44
+ |---------|---------|
45
+ | `dndev dev` / `dndev dev:app` | Dev server |
46
+ | `dndev tc` / `dndev tc:app` | Type-check (use after code changes) |
47
+ | `dndev build` | Production build |
48
+ | `dndev coach` / `dndev setup` / `dndev doctor` | Env and health |
49
+
50
+ Run **`dndev --help`** for the full list. **`dndev create-app`** is interactive (no `--preset`).
51
+
52
+ ## Docs and markdown
53
+
54
+ - Do not create random `.md` files. Allowed workflow outputs when the phase requires them: e.g. **`docs/HLD.md`**, **`docs/LLD.md`**.
55
+ - Session notes: **`.dndev/`** and MCP tools (`record_lesson`, etc.).
56
+
57
+ ## Before production
58
+
59
+ `dndev doctor`, **`/grill`**, and provider-specific setup from **`get_guideline("AGENT_START_HERE")`** / **`setup_coach`** / **`get_guideline("soc2")`**. Golden path: **`dndev coach`** → fill `.env` → **`dndev setup`** → **`dndev doctor`**.
60
+
61
+ ## MCP tools (quick reference)
62
+
63
+ `start_phase` · `complete_phase` · `approve_phase` · `get_phase_status` · `lookup_symbol` · `get_guideline` · `search_framework` · `setup_coach` · `list_features` · `run_typecheck` · `record_lesson`
@@ -1 +1 @@
1
- Enforce AI.md
1
+ @AGENTS.md