@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
|
@@ -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
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
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
|
}
|
|
File without changes
|
|
@@ -1,50 +1,45 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: build
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: [
|
|
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
|
|
8
|
+
# Build - Implementation (Phase 3 COMPOSE)
|
|
9
9
|
|
|
10
|
-
**WORKFLOW:** `/brainstorm`
|
|
10
|
+
**WORKFLOW:** `/brainstorm` -> `/design` -> `/build` -> `/polish`
|
|
11
11
|
|
|
12
|
-
## Step 0
|
|
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
|
-
|
|
18
|
+
Do NOT proceed without this call.
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
## Step 1 - Implement approved scope
|
|
22
21
|
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
37
|
+
Type-check must pass before completion.
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
## Step 3 - Complete Phase
|
|
45
40
|
|
|
46
41
|
```
|
|
47
|
-
complete_phase({ files: [
|
|
42
|
+
complete_phase({ files: [...], summary: "Phase 3 compose complete" })
|
|
48
43
|
```
|
|
49
44
|
|
|
50
|
-
Wait for user `approve_phase()`
|
|
45
|
+
Wait for user `approve_phase()` then proceed to `/polish`.
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill
|
|
3
|
-
description: Critical staff-engineer code review
|
|
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
|
|
12
|
+
## Step 0 - Situational Awareness
|
|
13
13
|
|
|
14
|
-
1. Read `.dndev/grill-report.json`
|
|
15
|
-
2. Read `.dndev/grill-ignore.json`
|
|
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**
|
|
21
|
-
**If empty**
|
|
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
|
|
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
|
|
29
|
+
## Step 2 - Three-Pass Scan
|
|
30
30
|
|
|
31
|
-
### Pass 1
|
|
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**
|
|
36
|
-
- **WARN-CRITICAL**
|
|
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
|
|
39
|
+
### Pass 2 - INFORMATIONAL (listed, no action required)
|
|
40
40
|
|
|
41
|
-
- **WARN**
|
|
42
|
-
- **NOTE**
|
|
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
|
|
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:
|
|
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 —
|
|
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 —
|
|
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
|
-
|
|
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
|
-
##
|
|
39
|
+
## Step 2 — Generate Tests
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
Tests verify the SPEC, not the code. The spec is the test plan.
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
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
|
-
|
|
36
|
-
Auto-detect provider (Firestore or Supabase RLS). Generate rules from entity access definitions.
|
|
47
|
+
## Step 3 — Database Rules
|
|
37
48
|
|
|
38
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
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: [
|
|
86
|
+
complete_phase({ files: [...], summary: "QA passed, spec-compliant, ready to ship" })
|
|
74
87
|
```
|
|
75
88
|
|
|
76
|
-
Wait for user `approve_phase()`. Then →
|
|
89
|
+
Wait for user `approve_phase()`. Then → deploy.
|
|
File without changes
|
|
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
|
|
File without changes
|
|
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
|
-
|
|
1
|
+
@AGENTS.md
|