@donotdev/cli 0.0.29 → 0.0.31

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 (37) hide show
  1. package/dependencies-matrix.json +28 -29
  2. package/dist/bin/commands/build.js +17 -12
  3. package/dist/bin/commands/bump.js +422 -185
  4. package/dist/bin/commands/cacheout.js +17 -12
  5. package/dist/bin/commands/coach.js +17 -12
  6. package/dist/bin/commands/create-app.js +17 -12
  7. package/dist/bin/commands/create-project.js +17 -12
  8. package/dist/bin/commands/db.js +17 -12
  9. package/dist/bin/commands/deploy.js +17 -12
  10. package/dist/bin/commands/dev.js +17 -12
  11. package/dist/bin/commands/doctor.js +17 -12
  12. package/dist/bin/commands/emu.js +17 -12
  13. package/dist/bin/commands/format.js +17 -12
  14. package/dist/bin/commands/get-demo.js +17 -12
  15. package/dist/bin/commands/make-admin.js +17 -12
  16. package/dist/bin/commands/preview.js +17 -12
  17. package/dist/bin/commands/seed.js +17 -12
  18. package/dist/bin/commands/setup-cicd.js +17 -12
  19. package/dist/bin/commands/setup.js +17 -12
  20. package/dist/bin/commands/staging.js +17 -12
  21. package/dist/bin/commands/sync-secrets.js +17 -12
  22. package/dist/bin/commands/type-check.js +17 -12
  23. package/dist/bin/commands/wai.js +17 -12
  24. package/dist/bin/dndev.js +1 -1
  25. package/dist/bin/donotdev.js +1 -1
  26. package/dist/index.js +17 -12
  27. package/package.json +1 -1
  28. package/templates/app-next/src/globals.css.example +3 -2
  29. package/templates/overlay-supabase/src/config/providers.expo.ts.example +2 -0
  30. package/templates/overlay-supabase/src/config/providers.ts.example +2 -0
  31. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +58 -0
  32. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
  33. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +46 -0
  34. package/templates/root-consumer/.claude/skills/design/output-template.md +35 -0
  35. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +70 -0
  36. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +76 -0
  37. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +46 -0
@@ -6838,7 +6838,7 @@ import {
6838
6838
  sep,
6839
6839
  extname
6840
6840
  } from "node:path";
6841
- import { fileURLToPath } from "node:url";
6841
+ import "node:url";
6842
6842
  function safeExecuteAsync(fn, message) {
6843
6843
  return fn().catch((error2) => {
6844
6844
  throw new Error(
@@ -7765,19 +7765,24 @@ var init_PathResolver = __esm({
7765
7765
  return resolved;
7766
7766
  }
7767
7767
  /**
7768
- * Get path to empty.js module for optional dependency aliasing
7769
- * Used by Vite and Turbopack to alias missing optional deps
7770
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7771
- * @returns Package specifier or absolute path to empty.js
7768
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7769
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7770
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7771
+ * condition (.cjs), so we derive the ESM path from it.
7772
7772
  */
7773
- getEmptyModulePath(returnPackageSpecifier = false) {
7774
- if (returnPackageSpecifier) {
7775
- return "@donotdev/core/empty";
7776
- }
7773
+ getEmptyModulePath() {
7774
+ const cjsPath = this.getEmptyCjsModulePath();
7775
+ return cjsPath.replace(/\.cjs$/, ".js");
7776
+ }
7777
+ /**
7778
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7779
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7780
+ * exports, so any named import resolves.
7781
+ */
7782
+ getEmptyCjsModulePath() {
7777
7783
  const resolved = this.resolvePackage("@donotdev/core/empty");
7778
- if (resolved) return resolved;
7779
- const thisDir = dirname(fileURLToPath(import.meta.url));
7780
- return this.normalizePath(join(thisDir, "../empty.js"));
7784
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7785
+ return resolved;
7781
7786
  }
7782
7787
  // === PRIVATE METHODS ===
7783
7788
  /**
@@ -6802,7 +6802,7 @@ import {
6802
6802
  sep,
6803
6803
  extname
6804
6804
  } from "node:path";
6805
- import { fileURLToPath } from "node:url";
6805
+ import "node:url";
6806
6806
  function safeExecuteAsync(fn, message) {
6807
6807
  return fn().catch((error2) => {
6808
6808
  throw new Error(
@@ -7729,19 +7729,24 @@ var init_PathResolver = __esm({
7729
7729
  return resolved;
7730
7730
  }
7731
7731
  /**
7732
- * Get path to empty.js module for optional dependency aliasing
7733
- * Used by Vite and Turbopack to alias missing optional deps
7734
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7735
- * @returns Package specifier or absolute path to empty.js
7732
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7733
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7734
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7735
+ * condition (.cjs), so we derive the ESM path from it.
7736
7736
  */
7737
- getEmptyModulePath(returnPackageSpecifier = false) {
7738
- if (returnPackageSpecifier) {
7739
- return "@donotdev/core/empty";
7740
- }
7737
+ getEmptyModulePath() {
7738
+ const cjsPath = this.getEmptyCjsModulePath();
7739
+ return cjsPath.replace(/\.cjs$/, ".js");
7740
+ }
7741
+ /**
7742
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7743
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7744
+ * exports, so any named import resolves.
7745
+ */
7746
+ getEmptyCjsModulePath() {
7741
7747
  const resolved = this.resolvePackage("@donotdev/core/empty");
7742
- if (resolved) return resolved;
7743
- const thisDir = dirname(fileURLToPath(import.meta.url));
7744
- return this.normalizePath(join(thisDir, "../empty.js"));
7748
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7749
+ return resolved;
7745
7750
  }
7746
7751
  // === PRIVATE METHODS ===
7747
7752
  /**
@@ -6851,7 +6851,7 @@ import {
6851
6851
  sep,
6852
6852
  extname
6853
6853
  } from "node:path";
6854
- import { fileURLToPath } from "node:url";
6854
+ import "node:url";
6855
6855
  function safeExecuteAsync2(fn, message) {
6856
6856
  return fn().catch((error2) => {
6857
6857
  throw new Error(
@@ -7778,19 +7778,24 @@ var init_PathResolver = __esm({
7778
7778
  return resolved;
7779
7779
  }
7780
7780
  /**
7781
- * Get path to empty.js module for optional dependency aliasing
7782
- * Used by Vite and Turbopack to alias missing optional deps
7783
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7784
- * @returns Package specifier or absolute path to empty.js
7781
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7782
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7783
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7784
+ * condition (.cjs), so we derive the ESM path from it.
7785
7785
  */
7786
- getEmptyModulePath(returnPackageSpecifier = false) {
7787
- if (returnPackageSpecifier) {
7788
- return "@donotdev/core/empty";
7789
- }
7786
+ getEmptyModulePath() {
7787
+ const cjsPath = this.getEmptyCjsModulePath();
7788
+ return cjsPath.replace(/\.cjs$/, ".js");
7789
+ }
7790
+ /**
7791
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7792
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7793
+ * exports, so any named import resolves.
7794
+ */
7795
+ getEmptyCjsModulePath() {
7790
7796
  const resolved = this.resolvePackage("@donotdev/core/empty");
7791
- if (resolved) return resolved;
7792
- const thisDir = dirname(fileURLToPath(import.meta.url));
7793
- return this.normalizePath(join(thisDir, "../empty.js"));
7797
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7798
+ return resolved;
7794
7799
  }
7795
7800
  // === PRIVATE METHODS ===
7796
7801
  /**
@@ -6844,7 +6844,7 @@ import {
6844
6844
  sep,
6845
6845
  extname
6846
6846
  } from "node:path";
6847
- import { fileURLToPath } from "node:url";
6847
+ import "node:url";
6848
6848
  function safeExecuteAsync(fn, message) {
6849
6849
  return fn().catch((error2) => {
6850
6850
  throw new Error(
@@ -7771,19 +7771,24 @@ var init_PathResolver = __esm({
7771
7771
  return resolved;
7772
7772
  }
7773
7773
  /**
7774
- * Get path to empty.js module for optional dependency aliasing
7775
- * Used by Vite and Turbopack to alias missing optional deps
7776
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7777
- * @returns Package specifier or absolute path to empty.js
7774
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7775
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7776
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7777
+ * condition (.cjs), so we derive the ESM path from it.
7778
7778
  */
7779
- getEmptyModulePath(returnPackageSpecifier = false) {
7780
- if (returnPackageSpecifier) {
7781
- return "@donotdev/core/empty";
7782
- }
7779
+ getEmptyModulePath() {
7780
+ const cjsPath = this.getEmptyCjsModulePath();
7781
+ return cjsPath.replace(/\.cjs$/, ".js");
7782
+ }
7783
+ /**
7784
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7785
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7786
+ * exports, so any named import resolves.
7787
+ */
7788
+ getEmptyCjsModulePath() {
7783
7789
  const resolved = this.resolvePackage("@donotdev/core/empty");
7784
- if (resolved) return resolved;
7785
- const thisDir = dirname(fileURLToPath(import.meta.url));
7786
- return this.normalizePath(join(thisDir, "../empty.js"));
7790
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7791
+ return resolved;
7787
7792
  }
7788
7793
  // === PRIVATE METHODS ===
7789
7794
  /**
@@ -6687,7 +6687,7 @@ import {
6687
6687
  sep,
6688
6688
  extname
6689
6689
  } from "node:path";
6690
- import { fileURLToPath } from "node:url";
6690
+ import "node:url";
6691
6691
  function safeExecuteAsync(fn, message) {
6692
6692
  return fn().catch((error2) => {
6693
6693
  throw new Error(
@@ -7614,19 +7614,24 @@ var init_PathResolver = __esm({
7614
7614
  return resolved;
7615
7615
  }
7616
7616
  /**
7617
- * Get path to empty.js module for optional dependency aliasing
7618
- * Used by Vite and Turbopack to alias missing optional deps
7619
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7620
- * @returns Package specifier or absolute path to empty.js
7617
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7618
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7619
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7620
+ * condition (.cjs), so we derive the ESM path from it.
7621
7621
  */
7622
- getEmptyModulePath(returnPackageSpecifier = false) {
7623
- if (returnPackageSpecifier) {
7624
- return "@donotdev/core/empty";
7625
- }
7622
+ getEmptyModulePath() {
7623
+ const cjsPath = this.getEmptyCjsModulePath();
7624
+ return cjsPath.replace(/\.cjs$/, ".js");
7625
+ }
7626
+ /**
7627
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7628
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7629
+ * exports, so any named import resolves.
7630
+ */
7631
+ getEmptyCjsModulePath() {
7626
7632
  const resolved = this.resolvePackage("@donotdev/core/empty");
7627
- if (resolved) return resolved;
7628
- const thisDir = dirname(fileURLToPath(import.meta.url));
7629
- return this.normalizePath(join(thisDir, "../empty.js"));
7633
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7634
+ return resolved;
7630
7635
  }
7631
7636
  // === PRIVATE METHODS ===
7632
7637
  /**
@@ -6479,7 +6479,7 @@ import {
6479
6479
  sep,
6480
6480
  extname
6481
6481
  } from "node:path";
6482
- import { fileURLToPath } from "node:url";
6482
+ import "node:url";
6483
6483
  function safeExecuteAsync(fn, message) {
6484
6484
  return fn().catch((error2) => {
6485
6485
  throw new Error(
@@ -7406,19 +7406,24 @@ var init_PathResolver = __esm({
7406
7406
  return resolved;
7407
7407
  }
7408
7408
  /**
7409
- * Get path to empty.js module for optional dependency aliasing
7410
- * Used by Vite and Turbopack to alias missing optional deps
7411
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7412
- * @returns Package specifier or absolute path to empty.js
7409
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7410
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7411
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7412
+ * condition (.cjs), so we derive the ESM path from it.
7413
7413
  */
7414
- getEmptyModulePath(returnPackageSpecifier = false) {
7415
- if (returnPackageSpecifier) {
7416
- return "@donotdev/core/empty";
7417
- }
7414
+ getEmptyModulePath() {
7415
+ const cjsPath = this.getEmptyCjsModulePath();
7416
+ return cjsPath.replace(/\.cjs$/, ".js");
7417
+ }
7418
+ /**
7419
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7420
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7421
+ * exports, so any named import resolves.
7422
+ */
7423
+ getEmptyCjsModulePath() {
7418
7424
  const resolved = this.resolvePackage("@donotdev/core/empty");
7419
- if (resolved) return resolved;
7420
- const thisDir = dirname(fileURLToPath(import.meta.url));
7421
- return this.normalizePath(join(thisDir, "../empty.js"));
7425
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7426
+ return resolved;
7422
7427
  }
7423
7428
  // === PRIVATE METHODS ===
7424
7429
  /**
@@ -6226,7 +6226,7 @@ import {
6226
6226
  sep,
6227
6227
  extname
6228
6228
  } from "node:path";
6229
- import { fileURLToPath } from "node:url";
6229
+ import "node:url";
6230
6230
  function safeExecuteAsync(fn, message) {
6231
6231
  return fn().catch((error2) => {
6232
6232
  throw new Error(
@@ -7153,19 +7153,24 @@ var init_PathResolver = __esm({
7153
7153
  return resolved;
7154
7154
  }
7155
7155
  /**
7156
- * Get path to empty.js module for optional dependency aliasing
7157
- * Used by Vite and Turbopack to alias missing optional deps
7158
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7159
- * @returns Package specifier or absolute path to empty.js
7156
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7157
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7158
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7159
+ * condition (.cjs), so we derive the ESM path from it.
7160
7160
  */
7161
- getEmptyModulePath(returnPackageSpecifier = false) {
7162
- if (returnPackageSpecifier) {
7163
- return "@donotdev/core/empty";
7164
- }
7161
+ getEmptyModulePath() {
7162
+ const cjsPath = this.getEmptyCjsModulePath();
7163
+ return cjsPath.replace(/\.cjs$/, ".js");
7164
+ }
7165
+ /**
7166
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7167
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7168
+ * exports, so any named import resolves.
7169
+ */
7170
+ getEmptyCjsModulePath() {
7165
7171
  const resolved = this.resolvePackage("@donotdev/core/empty");
7166
- if (resolved) return resolved;
7167
- const thisDir = dirname(fileURLToPath(import.meta.url));
7168
- return this.normalizePath(join(thisDir, "../empty.js"));
7172
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7173
+ return resolved;
7169
7174
  }
7170
7175
  // === PRIVATE METHODS ===
7171
7176
  /**
package/dist/bin/dndev.js CHANGED
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.29" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.31" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.29" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.31" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -6986,7 +6986,7 @@ import {
6986
6986
  sep,
6987
6987
  extname
6988
6988
  } from "node:path";
6989
- import { fileURLToPath } from "node:url";
6989
+ import "node:url";
6990
6990
  function safeExecuteAsync(fn, message) {
6991
6991
  return fn().catch((error2) => {
6992
6992
  throw new Error(
@@ -7913,19 +7913,24 @@ var init_PathResolver = __esm({
7913
7913
  return resolved;
7914
7914
  }
7915
7915
  /**
7916
- * Get path to empty.js module for optional dependency aliasing
7917
- * Used by Vite and Turbopack to alias missing optional deps
7918
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7919
- * @returns Package specifier or absolute path to empty.js
7916
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7917
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7918
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7919
+ * condition (.cjs), so we derive the ESM path from it.
7920
7920
  */
7921
- getEmptyModulePath(returnPackageSpecifier = false) {
7922
- if (returnPackageSpecifier) {
7923
- return "@donotdev/core/empty";
7924
- }
7921
+ getEmptyModulePath() {
7922
+ const cjsPath = this.getEmptyCjsModulePath();
7923
+ return cjsPath.replace(/\.cjs$/, ".js");
7924
+ }
7925
+ /**
7926
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7927
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7928
+ * exports, so any named import resolves.
7929
+ */
7930
+ getEmptyCjsModulePath() {
7925
7931
  const resolved = this.resolvePackage("@donotdev/core/empty");
7926
- if (resolved) return resolved;
7927
- const thisDir = dirname(fileURLToPath(import.meta.url));
7928
- return this.normalizePath(join(thisDir, "../empty.js"));
7932
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7933
+ return resolved;
7929
7934
  }
7930
7935
  // === PRIVATE METHODS ===
7931
7936
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,9 +1,10 @@
1
1
  /* Next.js app globals.css */
2
- @import '@donotdev/ui/dndev.css';
2
+ @import '@donotdev/ui/dndev-next.css';
3
3
 
4
4
  @import './themes.css';
5
5
 
6
6
  /**
7
7
  * Font choices (--font-family, --font-sans, etc.) belong in themes.css.
8
- * Fonts (Inter, Space Grotesk, Playfair, Roboto) are bundled via @donotdev/ui; no external fetch, no public/fonts required.
8
+ * Fonts are served from public/fonts/ (auto-copied by framework discovery).
9
+ * dndev-next.css = font-stripped variant — use this for Next.js, NOT dndev.css.
9
10
  */
@@ -6,6 +6,7 @@ import { configureProviders } from '@donotdev/core';
6
6
  import {
7
7
  createClient,
8
8
  SupabaseAuth,
9
+ SupabaseCallableProvider,
9
10
  SupabaseCrudAdapter,
10
11
  SupabaseStorageAdapter,
11
12
  } from '@donotdev/supabase';
@@ -30,5 +31,6 @@ if (!url || !publicKey) {
30
31
  crud: new SupabaseCrudAdapter(supabase),
31
32
  auth: new SupabaseAuth(supabase),
32
33
  storage: new SupabaseStorageAdapter(supabase),
34
+ callable: new SupabaseCallableProvider(supabase),
33
35
  });
34
36
  }
@@ -6,6 +6,7 @@ import { configureProviders } from '@donotdev/core';
6
6
  import {
7
7
  createClient,
8
8
  SupabaseAuth,
9
+ SupabaseCallableProvider,
9
10
  SupabaseCrudAdapter,
10
11
  SupabaseStorageAdapter,
11
12
  } from '@donotdev/supabase';
@@ -28,5 +29,6 @@ if (!url || !publicKey) {
28
29
  crud: new SupabaseCrudAdapter(supabase),
29
30
  auth: new SupabaseAuth(supabase),
30
31
  storage: new SupabaseStorageAdapter(supabase),
32
+ callable: new SupabaseCallableProvider(supabase),
31
33
  });
32
34
  }
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: brainstorm
3
+ description: Extract requirements and generate complete HLD through interactive conversation. First step in the WAI-WAY workflow.
4
+ argument-hint: [app idea or requirement]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Brainstorm — Requirements Extraction
9
+
10
+ **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
11
+
12
+ ## Step 0 — Start Phase (MANDATORY)
13
+
14
+ ```
15
+ start_phase(0)
16
+ ```
17
+ Do NOT proceed without this call.
18
+
19
+ ## Step 1 — Extract
20
+
21
+ **Input:** $ARGUMENTS
22
+
23
+ Ask probing questions **one at a time**. Use MCP to discover framework capabilities.
24
+
25
+ | Extract | Questions |
26
+ |---------|-----------|
27
+ | **Vision** | What is this app? Who uses it? |
28
+ | **Users** | Roles? Permissions? |
29
+ | **Entities** | What "things" exist? Fields? Relations? |
30
+ | **Features** | What can users DO? MVP vs V2? |
31
+ | **Pages** | Screens? Routes? Access levels? |
32
+ | **Constraints** | Platform? Languages? Auth? Integrations? |
33
+ | **Native vs Custom** | What uses framework defaults? What needs custom? |
34
+
35
+ Rules:
36
+ - One question at a time — wait for answer
37
+ - Probe vague answers: "What does 'manage' mean?"
38
+ - Challenge scope: "What's the minimum to launch?"
39
+ - Summarize progress every 3-4 exchanges
40
+ - Never guess — ask
41
+
42
+ ## Step 2 — Generate HLD
43
+
44
+ When all targets extracted, write to `docs/HLD.md` with: Vision, Users, Entities (fields + types + access), Features (MVP/V2), Pages (routes + access), Constraints, Native vs Custom, Open Questions.
45
+
46
+ **Validation before completing:**
47
+ - [ ] No empty sections or TBDs
48
+ - [ ] All entities have fields, states, permissions
49
+ - [ ] All business rules documented
50
+ - [ ] User has validated
51
+
52
+ ## Step 3 — Complete Phase
53
+
54
+ ```
55
+ complete_phase({ files: ["docs/HLD.md"], summary: "HLD complete — N entities, N pages, N features" })
56
+ ```
57
+
58
+ Wait for user `approve_phase()` → then proceed to `/design`.
@@ -0,0 +1,50 @@
1
+ ---
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]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Build — Compose the App
9
+
10
+ **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
11
+
12
+ ## Step 0 — Start Phase (MANDATORY)
13
+
14
+ ```
15
+ start_phase(3)
16
+ ```
17
+ Do NOT write code without this call.
18
+
19
+ ## Step 1 — Prepare
20
+
21
+ **Input:** $ARGUMENTS (LLD from `/design` or direct requirement)
22
+
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`.
26
+
27
+ ## Step 2 — Build in phases
28
+
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
35
+
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
41
+
42
+ ## Step 3 — Complete Phase
43
+
44
+ When all pages built and `dndev tc` passes:
45
+
46
+ ```
47
+ complete_phase({ files: ["src/pages/...all files..."], summary: "N pages composed, all type-checking" })
48
+ ```
49
+
50
+ Wait for user `approve_phase()` → then proceed to `/polish`.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: design
3
+ description: Architecture and design workflow. Creates technical plan / LLD. Use BEFORE /build, AFTER /brainstorm. Activates WAI-WAY Phase 1-2.
4
+ argument-hint: [requirement or question]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Design — Architecture & Planning
9
+
10
+ **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
11
+
12
+ ## Step 0 — Start Phase (MANDATORY)
13
+
14
+ ```
15
+ start_phase(1) # SCAFFOLD (routes, page stubs)
16
+ start_phase(2) # ENTITIES (data models, fields, access)
17
+ ```
18
+ Pick the appropriate phase. Do NOT proceed without this call.
19
+
20
+ ## Step 1 — Analyze
21
+
22
+ **Input:** $ARGUMENTS
23
+
24
+ 1. Read constraints from `CLAUDE.md` and framework docs
25
+ 2. Search codebase for existing patterns
26
+ 3. **Always `lookup_symbol`** when referencing @donotdev components — verify API exists before planning
27
+ 4. Import convention: always `@donotdev/<package>` top-level, never sub-paths
28
+
29
+ ## Step 2 — Design
30
+
31
+ Produce a design document. For the output template, see [output-template.md](output-template.md).
32
+
33
+ Rules:
34
+ - **NEVER write code** — only design and plan
35
+ - **ALWAYS analyze existing patterns** — don't reinvent
36
+ - **ALWAYS consider trade-offs** — no solution is perfect
37
+ - **ALWAYS identify impacts** — what breaks if we change this?
38
+ - **ALWAYS prepare for /build** — design must be actionable
39
+
40
+ ## Step 3 — Complete Phase
41
+
42
+ ```
43
+ complete_phase({ files: ["...affected files..."], summary: "Description of what was designed" })
44
+ ```
45
+
46
+ Wait for user `approve_phase()` → then proceed to `/build`.
@@ -0,0 +1,35 @@
1
+ # Design Document Template
2
+
3
+ Use this format for `/design` output:
4
+
5
+ ```
6
+ DESIGN DOCUMENT:
7
+
8
+ REQUIREMENT:
9
+ [Clear statement of what needs to be designed]
10
+
11
+ ANALYSIS:
12
+ - Current state: [what exists]
13
+ - Problem: [what needs solving]
14
+ - Constraints: [framework rules, patterns, etc.]
15
+
16
+ DESIGN:
17
+ [Architecture/solution design]
18
+
19
+ TRADE-OFFS:
20
+ - Option A: [pros/cons]
21
+ - Option B: [pros/cons]
22
+ - Recommendation: [which and why]
23
+
24
+ IMPLEMENTATION PLAN:
25
+ - Files to create/modify: [list]
26
+ - Changes needed: [detailed breakdown]
27
+ - Dependencies: [what depends on this]
28
+ - Testing: [how to validate]
29
+
30
+ READY FOR /build:
31
+ [Summary of what will be built]
32
+
33
+ UNRESOLVED:
34
+ - [Any open questions]
35
+ ```