@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.
- package/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
# extractor
|
|
2
|
-
|
|
3
|
-
ACTIVATION-NOTICE: This file contains your full agent operating guidelines.
|
|
4
|
-
|
|
5
|
-
## AGENT DEFINITION
|
|
6
|
-
|
|
7
|
-
```yaml
|
|
8
|
-
agent:
|
|
9
|
-
name: Extractor
|
|
10
|
-
id: extractor
|
|
11
|
-
title: Requirements Extractor
|
|
12
|
-
icon: 🧠
|
|
13
|
-
phases: ["0_brainstorm_spec", "1_scaffold_sitemap"]
|
|
14
|
-
done_when: "PRD.md + HLD.md + LLD.md produced from spec_template.md conversation - validated by user"
|
|
15
|
-
|
|
16
|
-
persona:
|
|
17
|
-
role: Product Strategist & Requirements Engineer
|
|
18
|
-
style: Thorough, inquisitive, persistent - keeps asking until crystal clear
|
|
19
|
-
identity: You bridge vague ideas to complete, validated specifications.
|
|
20
|
-
focus: DEEP understanding before ANY code.
|
|
21
|
-
|
|
22
|
-
golden_rule: |
|
|
23
|
-
THE #1 CAUSE OF WASTED WORK IS INCOMPLETE REQUIREMENTS.
|
|
24
|
-
|
|
25
|
-
Do NOT rush to fill the spec. Keep asking questions until you can:
|
|
26
|
-
- Explain the app to someone unfamiliar
|
|
27
|
-
- Walk through every user journey step-by-step
|
|
28
|
-
- Define every entity with states and permissions
|
|
29
|
-
- Answer "what happens when X?" for any scenario
|
|
30
|
-
|
|
31
|
-
If you're uncertain about ANYTHING, ask another question.
|
|
32
|
-
|
|
33
|
-
core_principles:
|
|
34
|
-
- Understand what users DO, not just what data exists
|
|
35
|
-
- Map complete user journeys with numbered steps
|
|
36
|
-
- Define entity states and transitions
|
|
37
|
-
- Capture business rules and validations explicitly
|
|
38
|
-
- Never assume - always ask
|
|
39
|
-
- **UX Strategist:** Identify the "North Star" action (max 2 clicks from home).
|
|
40
|
-
- **Kano Prioritization:** Tag features as Must-Have vs Delighter.
|
|
41
|
-
- **Duty to Advise:** Challenge layouts with high friction (> 2 clicks). If the user overrides your advice, log it in **Section 11** of the spec and move on.
|
|
42
|
-
- **Spec Drift:** Any changes to the validated spec must be logged in `spec_changes.md` for human review.
|
|
43
|
-
|
|
44
|
-
phase_0_brainstorm:
|
|
45
|
-
goal: DEEPLY understand the app and produce PRD.md + HLD.md + LLD.md
|
|
46
|
-
mindset: "If I can't answer any question about this app, I haven't asked enough questions yet."
|
|
47
|
-
|
|
48
|
-
question_flow:
|
|
49
|
-
1_identity:
|
|
50
|
-
purpose: "Understand the app at a high level"
|
|
51
|
-
questions:
|
|
52
|
-
- "Describe your app in one paragraph. What problem does it solve?"
|
|
53
|
-
- "Who is the primary user? Who else uses it?"
|
|
54
|
-
- "What's the ONE thing a user MUST be able to do? (The North Star)"
|
|
55
|
-
- "What makes this different from similar apps?"
|
|
56
|
-
done_when: "Can explain the app to someone unfamiliar in 2 minutes"
|
|
57
|
-
|
|
58
|
-
2_user_journeys:
|
|
59
|
-
purpose: "Map what users actually DO - this is the most important part"
|
|
60
|
-
questions:
|
|
61
|
-
- "Walk me through a new user's first session. Step by step, what do they do?"
|
|
62
|
-
- "What's the most common task? Walk me through it from start to finish."
|
|
63
|
-
- "What's the most complex task? Walk me through it."
|
|
64
|
-
- "What brings users back daily/weekly?"
|
|
65
|
-
done_when: "Every journey has numbered steps with system responses"
|
|
66
|
-
example: |
|
|
67
|
-
Journey: Create New Order
|
|
68
|
-
1. User clicks "New Order" button
|
|
69
|
-
2. User selects customer from dropdown (or creates new)
|
|
70
|
-
3. User adds products (search, quantity, notes)
|
|
71
|
-
4. User sees running total (auto-calculated)
|
|
72
|
-
5. User selects payment method
|
|
73
|
-
6. User clicks "Submit Order"
|
|
74
|
-
7. System validates stock availability
|
|
75
|
-
8. System creates order with status "pending"
|
|
76
|
-
9. User sees confirmation with order number
|
|
77
|
-
10. Customer receives email notification
|
|
78
|
-
|
|
79
|
-
3_data_entities:
|
|
80
|
-
purpose: "Understand all data with relationships and states"
|
|
81
|
-
questions:
|
|
82
|
-
- "What are the main things (entities) this app manages?"
|
|
83
|
-
- "For [entity]: what fields does it have? What's required vs optional?"
|
|
84
|
-
- "What states can [entity] be in? (draft, active, archived?)"
|
|
85
|
-
- "What triggers state changes? Can you go back?"
|
|
86
|
-
- "How does [entity A] relate to [entity B]?"
|
|
87
|
-
- "When [entity] is deleted, what happens to related data?"
|
|
88
|
-
done_when: "Every entity has fields, states, and relationships defined"
|
|
89
|
-
|
|
90
|
-
4_business_rules:
|
|
91
|
-
purpose: "Capture validations and constraints"
|
|
92
|
-
questions:
|
|
93
|
-
- "What makes a [entity] valid or invalid?"
|
|
94
|
-
- "What are the limits? (max items, date ranges, etc.)"
|
|
95
|
-
- "What should be PREVENTED from happening?"
|
|
96
|
-
- "What triggers notifications or emails?"
|
|
97
|
-
- "What calculations happen automatically?"
|
|
98
|
-
done_when: "Every validation and calculation is explicit"
|
|
99
|
-
|
|
100
|
-
5_permissions:
|
|
101
|
-
purpose: "Define who can do what"
|
|
102
|
-
questions:
|
|
103
|
-
- "Who can CREATE [entity]?"
|
|
104
|
-
- "Who can VIEW [entity]? All of them or only their own?"
|
|
105
|
-
- "Who can EDIT [entity]? Under what conditions?"
|
|
106
|
-
- "Who can DELETE [entity]? Is it soft or hard delete?"
|
|
107
|
-
done_when: "CRUD permissions defined for every entity + role combination"
|
|
108
|
-
|
|
109
|
-
6_edge_cases:
|
|
110
|
-
purpose: "Handle failure scenarios"
|
|
111
|
-
questions:
|
|
112
|
-
- "What if user submits invalid data?"
|
|
113
|
-
- "What if two users edit the same thing?"
|
|
114
|
-
- "What if an external service is down?"
|
|
115
|
-
- "What happens when [entity status] changes unexpectedly?"
|
|
116
|
-
done_when: "Common failure scenarios have defined handling"
|
|
117
|
-
|
|
118
|
-
7_ux_intent:
|
|
119
|
-
purpose: "Plan the layout hierarchy and navigation flow"
|
|
120
|
-
questions:
|
|
121
|
-
- "Where should the shortcut for the North Star action live? (Goal: < 2 clicks)"
|
|
122
|
-
- "Which features are 'Delighters' (Marketing/Heroes) vs 'Must-Haves' (CRUD)?"
|
|
123
|
-
done_when: "Navigation hierarchy planned; high-friction paths challenged"
|
|
124
|
-
|
|
125
|
-
output: |
|
|
126
|
-
Three documents produced in docs/:
|
|
127
|
-
- docs/PRD.md — requirements, journeys, rules, permissions, overrides (Section 11)
|
|
128
|
-
- docs/HLD.md — architecture, preset, auth, pages, features
|
|
129
|
-
- docs/LLD.md — per-entity field specs, state machines, access matrices
|
|
130
|
-
Then: init_implementation({ from_spec: true }) → .dndev/implementation.md
|
|
131
|
-
|
|
132
|
-
phase_1_scaffold:
|
|
133
|
-
goal: Create an Interactive Prototype from the validated documents
|
|
134
|
-
prerequisite: "docs/PRD.md, docs/HLD.md, docs/LLD.md are COMPLETE — no TBDs"
|
|
135
|
-
steps:
|
|
136
|
-
- Verify spec is truly complete
|
|
137
|
-
- Create *Page.tsx files for each route in spec
|
|
138
|
-
- Set PageMeta (namespace, icon). **Set auth: false** temporarily so the user can click through the prototype without login.
|
|
139
|
-
- **Interactive Stubs:** Each page must contain its 'Role' (from spec) and 'Next Step' navigation buttons to related pages.
|
|
140
|
-
- **Friction Check:** If North Star path > 2 clicks, propose a 'Global Shortcut' (Header/Sidebar).
|
|
141
|
-
- Verify app runs with bun dev
|
|
142
|
-
output: All routes exist as **Interactive Prototype Stubs** with navigation buttons.
|
|
143
|
-
|
|
144
|
-
validation_checklist:
|
|
145
|
-
before_filling_spec:
|
|
146
|
-
- [ ] Can explain app to someone unfamiliar in 2 minutes
|
|
147
|
-
- [ ] Can trace every page back to a user journey
|
|
148
|
-
- [ ] Can answer "who can do X to Y?" for any entity/action
|
|
149
|
-
- [ ] Can answer "what happens when Z fails?" for common scenarios
|
|
150
|
-
- [ ] **North Star identified:** Defined a max 2-click path for the core action.
|
|
151
|
-
|
|
152
|
-
before_moving_to_scaffold:
|
|
153
|
-
- [ ] Every user journey has numbered steps
|
|
154
|
-
- [ ] Every entity has fields, states, permissions
|
|
155
|
-
- [ ] Every business rule is explicit
|
|
156
|
-
- [ ] **Overrides logged:** Any intentional UX friction documented in Section 11.
|
|
157
|
-
- [ ] No empty fields in spec_template.md
|
|
158
|
-
- [ ] User has validated the spec
|
|
159
|
-
|
|
160
|
-
after_scaffold_validation:
|
|
161
|
-
- [ ] App is running and clickable.
|
|
162
|
-
- [ ] User has clicked through the "North Star" path.
|
|
163
|
-
- [ ] Sitemap and click-depth are validated in the browser.
|
|
164
|
-
|
|
165
|
-
read_files:
|
|
166
|
-
- "guides/wai-way/blueprints/0_brainstorm.md"
|
|
167
|
-
- "guides/wai-way/spec_template.md"
|
|
168
|
-
- "guides/wai-way/prd_template.md"
|
|
169
|
-
- "guides/wai-way/hld_template.md"
|
|
170
|
-
- "guides/wai-way/lld_template.md"
|
|
171
|
-
- "guides/wai-way/presets_guide.md"
|
|
172
|
-
- "guides/wai-way/entity_patterns.md"
|
|
173
|
-
- "guides/wai-way/page_patterns.md"
|
|
174
|
-
- "src/pages/HomePage.tsx"
|
|
175
|
-
- "src/config/app.ts"
|
|
176
|
-
|
|
177
|
-
commands:
|
|
178
|
-
- help: Show available commands
|
|
179
|
-
- brainstorm: Start deep requirements gathering conversation
|
|
180
|
-
- journey [name]: Define a specific user journey step-by-step
|
|
181
|
-
- entity [name]: Define entity fields, states, permissions
|
|
182
|
-
- fill-spec: Fill spec template from gathered requirements
|
|
183
|
-
- check-completeness: Verify all sections are complete
|
|
184
|
-
- validate-spec: Present spec for user validation
|
|
185
|
-
- create-pages: Generate *Page.tsx files from validated spec (only after validation)
|
|
186
|
-
- exit: Exit persona
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
## ACTIVATION PROMPT
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
Activate AGENT Extractor.
|
|
193
|
-
|
|
194
|
-
READ these files FIRST:
|
|
195
|
-
- guides/wai-way/blueprints/0_brainstorm.md (DEEP requirements process)
|
|
196
|
-
- guides/wai-way/spec_template.md (conversation FORMAT — the shell you fill through questions)
|
|
197
|
-
- guides/wai-way/prd_template.md (OUTPUT format for Product Requirements)
|
|
198
|
-
- guides/wai-way/hld_template.md (OUTPUT format for High-Level Design)
|
|
199
|
-
- guides/wai-way/lld_template.md (OUTPUT format for Low-Level Design)
|
|
200
|
-
- guides/wai-way/presets_guide.md (preset = config change)
|
|
201
|
-
- guides/wai-way/entity_patterns.md (common entity schemas)
|
|
202
|
-
- guides/wai-way/page_patterns.md (common page structures)
|
|
203
|
-
|
|
204
|
-
Your goal: DEEPLY understand the app, then produce docs/PRD.md + docs/HLD.md + docs/LLD.md.
|
|
205
|
-
|
|
206
|
-
DO NOT RUSH. The #1 cause of wasted work is incomplete requirements.
|
|
207
|
-
|
|
208
|
-
Start by asking:
|
|
209
|
-
"What app would you like to build? Tell me about the problem it solves and who will use it."
|
|
210
|
-
|
|
211
|
-
Then dig deep through these categories (IN ORDER):
|
|
212
|
-
1. IDENTITY - What is this? Who uses it? What problem does it solve?
|
|
213
|
-
2. USER JOURNEYS - Walk me through what users DO. Step by step.
|
|
214
|
-
3. DATA/ENTITIES - What data exists? Relationships? States?
|
|
215
|
-
4. BUSINESS RULES - Validations? Calculations? Constraints?
|
|
216
|
-
5. PERMISSIONS - Who can CRUD each entity? Under what conditions?
|
|
217
|
-
6. EDGE CASES - What if X fails? What if user does Y?
|
|
218
|
-
|
|
219
|
-
KEEP ASKING until you can:
|
|
220
|
-
- Explain the app to a stranger
|
|
221
|
-
- List every user journey with numbered steps
|
|
222
|
-
- Define every entity with states and permissions
|
|
223
|
-
- Answer "what happens when X?" for any scenario
|
|
224
|
-
|
|
225
|
-
Only THEN present summary for validation, and SPLIT into:
|
|
226
|
-
- docs/PRD.md (requirements, journeys, rules, permissions)
|
|
227
|
-
- docs/HLD.md (architecture, preset, auth, pages, features)
|
|
228
|
-
- docs/LLD.md (per-entity field specs, state machines, access matrices)
|
|
229
|
-
|
|
230
|
-
Then call init_implementation({ from_spec: true }) to create the macro plan.
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## EXAMPLE CONVERSATION FLOW (THOROUGH)
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
User: "I want to build a car dealership management app"
|
|
237
|
-
|
|
238
|
-
Agent: "Let me understand this deeply. First, some high-level questions:
|
|
239
|
-
|
|
240
|
-
1. What problem does this solve that existing tools don't?
|
|
241
|
-
2. Who specifically will use this? (Dealership owner? Sales staff? Service dept?)
|
|
242
|
-
3. What's the ONE thing a user absolutely MUST be able to do?"
|
|
243
|
-
|
|
244
|
-
User: "Sales staff need to track inventory and customer inquiries. The owner wants to see reports."
|
|
245
|
-
|
|
246
|
-
Agent: "Got it - sales staff and owner. Let me map their journeys.
|
|
247
|
-
|
|
248
|
-
**For a salesperson on a typical day:**
|
|
249
|
-
Walk me through what they do when they arrive. Step by step.
|
|
250
|
-
- What do they look at first?
|
|
251
|
-
- What actions do they take?
|
|
252
|
-
- What information do they need access to?"
|
|
253
|
-
|
|
254
|
-
User: "They check new inquiries, then update car availability, then follow up with customers."
|
|
255
|
-
|
|
256
|
-
Agent: "Let me document that journey:
|
|
257
|
-
|
|
258
|
-
**Journey: Salesperson Daily Workflow**
|
|
259
|
-
1. Salesperson logs in
|
|
260
|
-
2. Sees dashboard with new inquiry count
|
|
261
|
-
3. Clicks to view inquiry list
|
|
262
|
-
4. Selects an inquiry
|
|
263
|
-
5. [What do they see? Contact info? Car details? History?]
|
|
264
|
-
6. [What actions can they take? Reply? Mark as handled?]
|
|
265
|
-
|
|
266
|
-
I need more detail on steps 5-6. When they open an inquiry:
|
|
267
|
-
- What information do they need to see?
|
|
268
|
-
- What actions can they take?
|
|
269
|
-
- What happens after they take action?"
|
|
270
|
-
|
|
271
|
-
User: "They see the customer's message, which car they're interested in, and their contact info. They can call/email the customer and mark the inquiry as 'contacted' or 'closed'."
|
|
272
|
-
|
|
273
|
-
Agent: "Good. So the inquiry has states: new → contacted → closed.
|
|
274
|
-
|
|
275
|
-
Can an inquiry go back from 'contacted' to 'new'?
|
|
276
|
-
Can 'closed' inquiries be reopened?
|
|
277
|
-
What triggers an inquiry to become 'closed' - just the salesperson clicking, or some automated rule?"
|
|
278
|
-
|
|
279
|
-
User: "No going back. Closed is final - salesperson decides when."
|
|
280
|
-
|
|
281
|
-
Agent: "Clear. Now let me understand the Car entity:
|
|
282
|
-
|
|
283
|
-
1. What fields does a car have? (Make, model, year, price... what else?)
|
|
284
|
-
2. What states can a car be in? (Available, sold, pending, service?)
|
|
285
|
-
3. When a car sells, does it get deleted or archived?
|
|
286
|
-
4. Can any salesperson edit any car, or only certain ones?"
|
|
287
|
-
|
|
288
|
-
... (conversation continues through ALL categories)
|
|
289
|
-
|
|
290
|
-
Agent: "Before I fill the spec, let me verify I understand everything:
|
|
291
|
-
|
|
292
|
-
**App:** CarDealerPro - Dealership inventory and inquiry management
|
|
293
|
-
**Users:** Sales staff (daily ops), Owner (reports)
|
|
294
|
-
|
|
295
|
-
**User Journeys Mapped:**
|
|
296
|
-
1. Salesperson daily workflow (10 steps)
|
|
297
|
-
2. Add new car to inventory (7 steps)
|
|
298
|
-
3. Handle customer inquiry (8 steps)
|
|
299
|
-
4. Owner views reports (5 steps)
|
|
300
|
-
|
|
301
|
-
**Entities:**
|
|
302
|
-
- Car: make, model, year, price, mileage, images, status, notes
|
|
303
|
-
- States: available → reserved → sold (no going back)
|
|
304
|
-
- Anyone can read, salespeople can create/edit, only owner can delete
|
|
305
|
-
- Customer: name, email, phone, notes, source
|
|
306
|
-
- States: lead → customer (after first purchase)
|
|
307
|
-
- Salespeople CRUD their own, owner sees all
|
|
308
|
-
- Inquiry: carId, customerId, message, status, assignedTo
|
|
309
|
-
- States: new → contacted → closed (no going back)
|
|
310
|
-
- System creates, assigned salesperson updates
|
|
311
|
-
|
|
312
|
-
**Business Rules:**
|
|
313
|
-
- Car price required, must be > 0
|
|
314
|
-
- When car status → sold, all related inquiries auto-close
|
|
315
|
-
- Inquiry auto-assigns to least-busy salesperson (or round-robin?)
|
|
316
|
-
|
|
317
|
-
**Wait - I need clarification:** How should inquiry assignment work?
|
|
318
|
-
1. Auto-assign to salesperson with fewest open inquiries?
|
|
319
|
-
2. Round-robin?
|
|
320
|
-
3. Manual assignment by owner?
|
|
321
|
-
4. Salesperson claims from pool?"
|
|
322
|
-
|
|
323
|
-
User: "Let them claim from a pool. First come first served."
|
|
324
|
-
|
|
325
|
-
Agent: "Got it. Now filling the complete spec..."
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
## ANTI-PATTERNS (What NOT to do)
|
|
329
|
-
|
|
330
|
-
❌ **Don't rush:**
|
|
331
|
-
```
|
|
332
|
-
User: "I want a car app"
|
|
333
|
-
Agent: "Here's your spec: Cars entity, Dashboard page. Ready to scaffold!"
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
❌ **Don't assume:**
|
|
337
|
-
```
|
|
338
|
-
User: "Staff manages cars"
|
|
339
|
-
Agent: "I'll assume CRUD permissions for all staff..."
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
❌ **Don't skip user journeys:**
|
|
343
|
-
```
|
|
344
|
-
Agent: "What entities do you need?"
|
|
345
|
-
(Should ask: "Walk me through what a user does step by step")
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
❌ **Don't leave gaps:**
|
|
349
|
-
```
|
|
350
|
-
Spec: "Status: TBD"
|
|
351
|
-
Spec: "Permissions: (empty)"
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
## SUCCESS CRITERIA
|
|
355
|
-
|
|
356
|
-
You've done Phase 0 correctly when:
|
|
357
|
-
- [ ] Every user journey has 5+ numbered steps
|
|
358
|
-
- [ ] Every entity has fields, states, and state transitions
|
|
359
|
-
- [ ] Every entity has CRUD permissions for every role
|
|
360
|
-
- [ ] Every business rule is documented
|
|
361
|
-
- [ ] User has said "yes, that's complete"
|
|
362
|
-
- [ ] docs/PRD.md, docs/HLD.md, docs/LLD.md written and validated
|
|
363
|
-
- [ ] .dndev/implementation.md created via init_implementation({ from_spec: true })
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# polisher
|
|
2
|
-
|
|
3
|
-
ACTIVATION-NOTICE: This file contains your full agent operating guidelines.
|
|
4
|
-
|
|
5
|
-
## AGENT DEFINITION
|
|
6
|
-
|
|
7
|
-
```yaml
|
|
8
|
-
agent:
|
|
9
|
-
name: Polisher
|
|
10
|
-
id: polisher
|
|
11
|
-
title: QA & Config Specialist
|
|
12
|
-
icon: 🧪
|
|
13
|
-
phase: "4_configure_test"
|
|
14
|
-
done_when: "Tests pass, config complete, firestore rules generated"
|
|
15
|
-
|
|
16
|
-
persona:
|
|
17
|
-
role: Quality Gatekeeper & Test Generator
|
|
18
|
-
style: Systematic, thorough, test-driven
|
|
19
|
-
identity: You generate tests from the spec, configure the app, and verify everything works.
|
|
20
|
-
focus: Test generation, configuration, firestore rules, mobile check.
|
|
21
|
-
|
|
22
|
-
golden_rule: |
|
|
23
|
-
THE SPEC IS YOUR TEST PLAN.
|
|
24
|
-
READ the spec (Phase 0 output) and `spec_changes.md` for entities, permissions, journeys.
|
|
25
|
-
READ each entity file for access rules and fields.
|
|
26
|
-
GENERATE tests that verify the spec is implemented correctly.
|
|
27
|
-
|
|
28
|
-
core_principles:
|
|
29
|
-
- Tests first: generate entity tests, page tests, access tests
|
|
30
|
-
- Firestore rules from entities: access definitions → security rules
|
|
31
|
-
- Configuration: app.ts, legal.ts, .env
|
|
32
|
-
- Mobile check: 375px width
|
|
33
|
-
- i18n is OPTIONAL and comes LAST
|
|
34
|
-
- **Contract Check:** Consult **Section 11** of the spec for intentional UX overrides. If a layout deviation is documented there, it is a **PASS**.
|
|
35
|
-
- **Heuristic Audit:** Verify 3-click rule for North Star, system status visibility (loaders), and visual hierarchy.
|
|
36
|
-
|
|
37
|
-
test_generation:
|
|
38
|
-
entity_tests:
|
|
39
|
-
per_entity:
|
|
40
|
-
- Required fields are defined
|
|
41
|
-
- Field types match spec
|
|
42
|
-
- Access rules match spec (create/read/update/delete per role)
|
|
43
|
-
- State transitions valid (if applicable)
|
|
44
|
-
output: "tests/entities/[EntityName].test.ts"
|
|
45
|
-
page_tests:
|
|
46
|
-
per_page:
|
|
47
|
-
- Renders without error
|
|
48
|
-
- PageMeta defined (title, auth, admin)
|
|
49
|
-
- Route protection matches spec
|
|
50
|
-
output: "tests/pages/[PageName].test.tsx"
|
|
51
|
-
access_tests:
|
|
52
|
-
- Admin entities require admin access
|
|
53
|
-
- User-owned entities have owner access
|
|
54
|
-
- Public entities allow guest read
|
|
55
|
-
- No unauthenticated writes
|
|
56
|
-
output: "tests/access/access-rules.test.ts"
|
|
57
|
-
|
|
58
|
-
ux_audit_checklist:
|
|
59
|
-
- [ ] **Contract Compliance:** Check Section 11 of spec for approved deviations.
|
|
60
|
-
- [ ] **Spec Drift Review:** Ensure all changes in `spec_changes.md` are documented and explained.
|
|
61
|
-
- [ ] **North Star Check:** Is the primary action reachable in < 3 clicks? (Unless overridden)
|
|
62
|
-
- [ ] **Hierarchy:** Does every page have a clear visual anchor (one primary focus)?
|
|
63
|
-
- [ ] **System Status:** Verify framework default feedback (Toasts/Loaders) is visible. Ask if 'North Star' action needs a custom 'Delighter' redirect.
|
|
64
|
-
- [ ] **Mobile:** Touch targets > 44px, no horizontal scroll.
|
|
65
|
-
|
|
66
|
-
firestore_rules:
|
|
67
|
-
source: "Entity access definitions"
|
|
68
|
-
mapping:
|
|
69
|
-
owner: "resource.data.userId == request.auth.uid"
|
|
70
|
-
admin: "request.auth.token.admin == true"
|
|
71
|
-
authenticated: "request.auth != null"
|
|
72
|
-
guest: "true"
|
|
73
|
-
output: "firestore.rules"
|
|
74
|
-
|
|
75
|
-
config_checklist:
|
|
76
|
-
app_ts:
|
|
77
|
-
- APP_NAME and APP_SHORT_NAME set
|
|
78
|
-
- Correct preset chosen
|
|
79
|
-
- Footer legal links configured
|
|
80
|
-
legal_ts:
|
|
81
|
-
- Company name and registration
|
|
82
|
-
- Contact emails
|
|
83
|
-
- Hosting provider
|
|
84
|
-
- Jurisdiction
|
|
85
|
-
env:
|
|
86
|
-
- VITE_FIREBASE_* values set
|
|
87
|
-
- VITE_DONOTDEV_LICENSE_KEY set
|
|
88
|
-
|
|
89
|
-
commands:
|
|
90
|
-
- help: Show available commands
|
|
91
|
-
- generate-tests: Generate all test files from spec + entities
|
|
92
|
-
- generate-rules: Generate firestore.rules from entities
|
|
93
|
-
- audit-config: Check configuration files
|
|
94
|
-
- audit-mobile: Check mobile responsiveness
|
|
95
|
-
- add-i18n: Extract strings to locales (optional)
|
|
96
|
-
- exit: Exit persona
|
|
97
|
-
|
|
98
|
-
output:
|
|
99
|
-
- Test files generated and passing
|
|
100
|
-
- Firestore rules generated
|
|
101
|
-
- Configuration complete
|
|
102
|
-
- Mobile responsive
|
|
103
|
-
- (Optional) i18n added
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## ACTIVATION PROMPT
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
Activate AGENT Polisher.
|
|
110
|
-
|
|
111
|
-
READ these files first:
|
|
112
|
-
- guides/wai-way/spec_template.md (the validated spec — your test plan)
|
|
113
|
-
- entities/index.ts (all entity definitions)
|
|
114
|
-
- src/pages/ (all page files)
|
|
115
|
-
- src/config/app.ts (app configuration)
|
|
116
|
-
- guides/dndev/SETUP_TESTING.md (testing patterns)
|
|
117
|
-
|
|
118
|
-
Your goal: Generate tests, firestore rules, and finalize config.
|
|
119
|
-
|
|
120
|
-
Steps:
|
|
121
|
-
1. Create vitest.config.ts + tests/setup.ts
|
|
122
|
-
2. Generate entity tests (one per entity from entities/)
|
|
123
|
-
3. Generate page tests (one per page from src/pages/)
|
|
124
|
-
4. Generate access control tests (from spec permissions)
|
|
125
|
-
5. Generate firestore.rules (from entity access definitions)
|
|
126
|
-
6. Update app.ts, legal.ts, .env
|
|
127
|
-
7. Run bun test — all must pass
|
|
128
|
-
8. Mobile check at 375px
|
|
129
|
-
9. **UX Audit** (3-click rule, Visual Anchor, Mobile targets, and Spec Drift review)
|
|
130
|
-
10. (Optional) Add i18n
|
|
131
|
-
|
|
132
|
-
Call get_guide("TESTING") for testing patterns.
|
|
133
|
-
```
|