create-huenei-template 0.2.4 → 0.2.5
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/README.md +123 -7
- package/bin/create-huenei-template.js +0 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +235 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +160 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +322 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +195 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +188 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +176 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/mcp.json +21 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +235 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +172 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +322 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +195 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +188 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +176 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +17 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +236 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/new-component.md +211 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/new-form.md +284 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +257 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/new-page.md +215 -0
- package/dist/templates/frontend/angular-base/.cursor/commands/new-service.md +203 -0
- package/dist/templates/frontend/angular-base/.cursor/mcp.json +19 -10
- package/dist/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +1374 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +35 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +397 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +526 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +593 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +418 -0
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +231 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +487 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +290 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +429 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +599 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +426 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +443 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +333 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +423 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +157 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +1677 -0
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +145 -0
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +586 -0
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +508 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +1058 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/assets/example-template.txt +14 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/best-practices.md +304 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/common-patterns.md +271 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/example-reference.md +26 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/testing.md +282 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/top-errors.md +332 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/package.json +31 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +663 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +77 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +26 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +781 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +573 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +208 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +195 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +25 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +504 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +57 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +400 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +458 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +362 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +336 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +222 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +132 -0
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +493 -0
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +100 -0
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +86 -0
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +39 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +127 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +144 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +113 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +142 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +137 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +118 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +145 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +130 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +131 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +138 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +147 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +123 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +146 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +113 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +102 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +120 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +153 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +138 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +135 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +117 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +141 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +143 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +131 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +105 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +90 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +107 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +102 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +116 -0
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +110 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/add-route.md +211 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/add-tests.md +269 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/new-component.md +232 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/new-form.md +268 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/new-page.md +203 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/new-query.md +287 -0
- package/dist/templates/frontend/react-vite/.cursor/commands/new-table.md +299 -0
- package/dist/templates/frontend/react-vite/.cursor/mcp.json +17 -0
- package/dist/templates/frontend/react-vite/.cursor/rules/architech.mdc +175 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +1374 -98
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-library/SKILL.md +504 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vitest/SKILL.md +493 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/SKILL.md +127 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/add-route.md +211 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +269 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/new-component.md +232 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/new-form.md +268 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/new-page.md +203 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/new-query.md +287 -0
- package/dist/templates/frontend/react-vite-help/.cursor/commands/new-table.md +299 -0
- package/dist/templates/frontend/react-vite-help/.cursor/mcp.json +17 -0
- package/dist/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +175 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +1374 -98
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-library/SKILL.md +504 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vitest/SKILL.md +493 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/AGENTS.md +97 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/SKILL.md +127 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/add-translation.md +184 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-api-service.md +280 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-component.md +298 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-hook.md +291 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-modal.md +345 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-screen.md +267 -0
- package/dist/templates/mobile/expo-base/.cursor/commands/new-tab.md +238 -0
- package/dist/templates/mobile/expo-base/.cursor/mcp.json +21 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/SKILL.md +315 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/animations.md +220 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/controls.md +270 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/form-sheet.md +227 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/gradients.md +106 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/icons.md +213 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/media.md +198 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/route-structure.md +229 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/search.md +248 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/storage.md +121 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/tabs.md +368 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/visual-effects.md +197 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/webgpu-three.md +605 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-api-routes/SKILL.md +368 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-dev-client/SKILL.md +164 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-tailwind-setup/SKILL.md +480 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/native-data-fetching/SKILL.md +491 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/SKILL.md +88 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/expo-router.md +190 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/list-optimization.md +207 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/platform-handling.md +191 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/project-structure.md +174 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/storage-hooks.md +176 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/SKILL.md +1148 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/example-reference.md +27 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/expo-sdk-52-breaking.md +409 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/new-architecture-errors.md +501 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/react-19-migration.md +365 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/scripts/check-rn-version.sh +121 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-expo/scripts/example-script.sh +15 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/use-dom/SKILL.md +417 -0
- package/package.json +6 -7
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +235 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +160 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +322 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +195 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +188 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +176 -0
- package/templates/backend/nestjs-api-postgres/.cursor/mcp.json +21 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +235 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +172 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +322 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +195 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +188 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +176 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +17 -0
- package/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +236 -0
- package/templates/frontend/angular-base/.cursor/commands/new-component.md +211 -0
- package/templates/frontend/angular-base/.cursor/commands/new-form.md +284 -0
- package/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +257 -0
- package/templates/frontend/angular-base/.cursor/commands/new-page.md +215 -0
- package/templates/frontend/angular-base/.cursor/commands/new-service.md +203 -0
- package/templates/frontend/angular-base/.cursor/mcp.json +19 -10
- package/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +1374 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +412 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +35 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +412 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +397 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +526 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +593 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +418 -0
- package/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +231 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +487 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +290 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +429 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +599 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +426 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +443 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +333 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +423 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +157 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +1677 -0
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +145 -0
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +586 -0
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +508 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +1058 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/assets/example-template.txt +14 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/best-practices.md +304 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/common-patterns.md +271 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/example-reference.md +26 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/testing.md +282 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/top-errors.md +332 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/package.json +31 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +663 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +77 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +26 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +781 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +573 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +208 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +195 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +25 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +504 -0
- package/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +57 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +400 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +458 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +362 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +336 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +222 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +132 -0
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +493 -0
- package/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +100 -0
- package/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +86 -0
- package/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +39 -0
- package/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +97 -0
- package/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +127 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +144 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +113 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +142 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +137 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +118 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +145 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +130 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +131 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +138 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +147 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +123 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +146 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +113 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +102 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +120 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +153 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +138 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +135 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +117 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +141 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +143 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +131 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +105 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +90 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +107 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +102 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +116 -0
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +110 -0
- package/templates/frontend/react-vite/.cursor/commands/add-route.md +211 -0
- package/templates/frontend/react-vite/.cursor/commands/add-tests.md +269 -0
- package/templates/frontend/react-vite/.cursor/commands/new-component.md +232 -0
- package/templates/frontend/react-vite/.cursor/commands/new-form.md +268 -0
- package/templates/frontend/react-vite/.cursor/commands/new-page.md +203 -0
- package/templates/frontend/react-vite/.cursor/commands/new-query.md +287 -0
- package/templates/frontend/react-vite/.cursor/commands/new-table.md +299 -0
- package/templates/frontend/react-vite/.cursor/mcp.json +17 -0
- package/templates/frontend/react-vite/.cursor/rules/architech.mdc +175 -0
- package/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +1374 -98
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/templates/frontend/react-vite/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/templates/frontend/react-vite/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/templates/frontend/react-vite/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/templates/frontend/react-vite/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/templates/frontend/react-vite/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/templates/frontend/react-vite/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/templates/frontend/react-vite/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-library/SKILL.md +504 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/templates/frontend/react-vite/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/templates/frontend/react-vite/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite/.cursor/skills/vitest/SKILL.md +493 -0
- package/templates/frontend/react-vite/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/templates/frontend/react-vite/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/templates/frontend/react-vite/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/templates/frontend/react-vite/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/AGENTS.md +97 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/SKILL.md +127 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/templates/frontend/react-vite/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/templates/frontend/react-vite-help/.cursor/commands/add-route.md +211 -0
- package/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +269 -0
- package/templates/frontend/react-vite-help/.cursor/commands/new-component.md +232 -0
- package/templates/frontend/react-vite-help/.cursor/commands/new-form.md +268 -0
- package/templates/frontend/react-vite-help/.cursor/commands/new-page.md +203 -0
- package/templates/frontend/react-vite-help/.cursor/commands/new-query.md +287 -0
- package/templates/frontend/react-vite-help/.cursor/commands/new-table.md +299 -0
- package/templates/frontend/react-vite-help/.cursor/mcp.json +17 -0
- package/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +175 -0
- package/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +1374 -98
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/templates/frontend/react-vite-help/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/templates/frontend/react-vite-help/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/templates/frontend/react-vite-help/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/templates/frontend/react-vite-help/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-library/SKILL.md +504 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vitest/SKILL.md +493 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/templates/frontend/react-vite-help/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/AGENTS.md +97 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/SKILL.md +127 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/templates/frontend/react-vite-help/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/templates/mobile/expo-base/.cursor/commands/add-translation.md +184 -0
- package/templates/mobile/expo-base/.cursor/commands/new-api-service.md +280 -0
- package/templates/mobile/expo-base/.cursor/commands/new-component.md +298 -0
- package/templates/mobile/expo-base/.cursor/commands/new-hook.md +291 -0
- package/templates/mobile/expo-base/.cursor/commands/new-modal.md +345 -0
- package/templates/mobile/expo-base/.cursor/commands/new-screen.md +267 -0
- package/templates/mobile/expo-base/.cursor/commands/new-tab.md +238 -0
- package/templates/mobile/expo-base/.cursor/mcp.json +21 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/SKILL.md +315 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/animations.md +220 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/controls.md +270 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/form-sheet.md +227 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/gradients.md +106 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/icons.md +213 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/media.md +198 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/route-structure.md +229 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/search.md +248 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/storage.md +121 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/tabs.md +368 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/visual-effects.md +197 -0
- package/templates/mobile/expo-base/.cursor/skills/building-native-ui/references/webgpu-three.md +605 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-api-routes/SKILL.md +368 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-dev-client/SKILL.md +164 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-tailwind-setup/SKILL.md +480 -0
- package/templates/mobile/expo-base/.cursor/skills/native-data-fetching/SKILL.md +491 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/SKILL.md +88 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/expo-router.md +190 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/list-optimization.md +207 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/platform-handling.md +191 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/project-structure.md +174 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expert/references/storage-hooks.md +176 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/SKILL.md +1148 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/example-reference.md +27 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/expo-sdk-52-breaking.md +409 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/new-architecture-errors.md +501 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/references/react-19-migration.md +365 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/scripts/check-rn-version.sh +121 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-expo/scripts/example-script.sh +15 -0
- package/templates/mobile/expo-base/.cursor/skills/use-dom/SKILL.md +417 -0
- package/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +0 -26
- package/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +0 -23
- package/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +0 -32
- package/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +0 -55
- package/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +0 -24
- package/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +0 -32
- package/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +0 -23
- package/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +0 -26
- package/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +0 -23
- package/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +0 -32
- package/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +0 -55
- package/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +0 -24
- package/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +0 -32
- package/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +0 -23
package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-coercion-for-form-data.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Coercion for Form and Query Data
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Form data and query params are always strings; without coercion, z.number() rejects "42" and z.boolean() rejects "true"
|
|
5
|
+
tags: schema, coerce, forms, query-params
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Coercion for Form and Query Data
|
|
9
|
+
|
|
10
|
+
HTML forms and URL query parameters always transmit data as strings. Using `z.number()` on form data will fail because `"42"` is not a number. Use `z.coerce.number()` to automatically convert strings to the correct type.
|
|
11
|
+
|
|
12
|
+
**Incorrect (no coercion for form data):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const searchSchema = z.object({
|
|
18
|
+
query: z.string(),
|
|
19
|
+
page: z.number(), // Expects actual number
|
|
20
|
+
limit: z.number(),
|
|
21
|
+
showDeleted: z.boolean(), // Expects actual boolean
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// Form data / query params are strings
|
|
25
|
+
const formData = new URLSearchParams('query=test&page=1&limit=10&showDeleted=true')
|
|
26
|
+
const params = Object.fromEntries(formData)
|
|
27
|
+
// { query: 'test', page: '1', limit: '10', showDeleted: 'true' }
|
|
28
|
+
|
|
29
|
+
searchSchema.parse(params)
|
|
30
|
+
// ZodError: Expected number, received string at "page"
|
|
31
|
+
// ZodError: Expected number, received string at "limit"
|
|
32
|
+
// ZodError: Expected boolean, received string at "showDeleted"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Correct (using coercion):**
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { z } from 'zod'
|
|
39
|
+
|
|
40
|
+
const searchSchema = z.object({
|
|
41
|
+
query: z.string(),
|
|
42
|
+
page: z.coerce.number().int().positive().default(1),
|
|
43
|
+
limit: z.coerce.number().int().min(1).max(100).default(10),
|
|
44
|
+
showDeleted: z.coerce.boolean().default(false),
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
// Form data / query params are strings
|
|
48
|
+
const formData = new URLSearchParams('query=test&page=1&limit=10&showDeleted=true')
|
|
49
|
+
const params = Object.fromEntries(formData)
|
|
50
|
+
|
|
51
|
+
const result = searchSchema.parse(params)
|
|
52
|
+
// { query: 'test', page: 1, limit: 10, showDeleted: true }
|
|
53
|
+
// Types are correct: number, number, boolean
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Available coercion types:**
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
z.coerce.string() // Converts anything to string via String(value)
|
|
60
|
+
z.coerce.number() // Converts via Number(value), NaN fails validation
|
|
61
|
+
z.coerce.boolean() // Truthy/falsy conversion
|
|
62
|
+
z.coerce.bigint() // Converts via BigInt(value)
|
|
63
|
+
z.coerce.date() // Converts via new Date(value)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Coercion edge cases:**
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
// z.coerce.number() behavior
|
|
70
|
+
z.coerce.number().parse("42") // 42
|
|
71
|
+
z.coerce.number().parse("") // 0 (empty string becomes 0!)
|
|
72
|
+
z.coerce.number().parse("abc") // ZodError (NaN fails)
|
|
73
|
+
|
|
74
|
+
// z.coerce.boolean() behavior
|
|
75
|
+
z.coerce.boolean().parse("true") // true
|
|
76
|
+
z.coerce.boolean().parse("false") // true! (non-empty string is truthy)
|
|
77
|
+
z.coerce.boolean().parse("") // false
|
|
78
|
+
z.coerce.boolean().parse("0") // true! (non-empty string)
|
|
79
|
+
|
|
80
|
+
// For strict boolean parsing from strings:
|
|
81
|
+
const strictBooleanSchema = z.enum(['true', 'false']).transform(v => v === 'true')
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**When NOT to use this pattern:**
|
|
85
|
+
- When receiving JSON payloads (already typed correctly)
|
|
86
|
+
- When you want strict type checking without conversion
|
|
87
|
+
|
|
88
|
+
Reference: [Zod API - Coercion](https://zod.dev/api#coercion)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-string-validations.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Apply String Validations at Schema Definition
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Unvalidated strings allow SQL injection, XSS, and malformed data; validating at schema level catches issues at the boundary
|
|
5
|
+
tags: schema, string, validation, security
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Apply String Validations at Schema Definition
|
|
9
|
+
|
|
10
|
+
Plain `z.string()` accepts any string including empty strings, extremely long strings, and malicious content. Apply constraints like `min()`, `max()`, `email()`, `url()`, or `regex()` at schema definition to reject invalid data at the boundary.
|
|
11
|
+
|
|
12
|
+
**Incorrect (no string validations):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const commentSchema = z.object({
|
|
18
|
+
author: z.string(), // Empty string passes
|
|
19
|
+
email: z.string(), // "not-an-email" passes
|
|
20
|
+
content: z.string(), // 10MB string passes, script tags pass
|
|
21
|
+
website: z.string().optional(), // "javascript:alert(1)" passes
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// All of these pass validation
|
|
25
|
+
commentSchema.parse({
|
|
26
|
+
author: '', // Empty - who wrote this?
|
|
27
|
+
email: 'invalid', // Not a real email
|
|
28
|
+
content: '<script>alert("XSS")</script>'.repeat(100000), // XSS + huge
|
|
29
|
+
website: 'javascript:void(0)', // Dangerous URL
|
|
30
|
+
})
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Correct (string validations applied):**
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import { z } from 'zod'
|
|
37
|
+
|
|
38
|
+
const commentSchema = z.object({
|
|
39
|
+
author: z.string()
|
|
40
|
+
.min(1, 'Author is required')
|
|
41
|
+
.max(100, 'Author name too long'),
|
|
42
|
+
|
|
43
|
+
email: z.string()
|
|
44
|
+
.email('Invalid email address'),
|
|
45
|
+
|
|
46
|
+
content: z.string()
|
|
47
|
+
.min(1, 'Comment cannot be empty')
|
|
48
|
+
.max(5000, 'Comment too long'),
|
|
49
|
+
|
|
50
|
+
website: z.string()
|
|
51
|
+
.url('Invalid URL')
|
|
52
|
+
.refine(
|
|
53
|
+
url => url.startsWith('http://') || url.startsWith('https://'),
|
|
54
|
+
'Only http/https URLs allowed'
|
|
55
|
+
)
|
|
56
|
+
.optional(),
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
// Invalid data is rejected
|
|
60
|
+
commentSchema.parse({
|
|
61
|
+
author: '',
|
|
62
|
+
email: 'invalid',
|
|
63
|
+
content: '',
|
|
64
|
+
})
|
|
65
|
+
// ZodError with all violations listed
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Common string validations:**
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
z.string().min(1) // Non-empty (most common need)
|
|
72
|
+
z.string().max(255) // Database varchar limit
|
|
73
|
+
z.string().length(36) // Exact length (UUIDs)
|
|
74
|
+
z.string().email() // Email format
|
|
75
|
+
z.string().url() // URL format
|
|
76
|
+
z.string().uuid() // UUID format
|
|
77
|
+
z.string().cuid() // CUID format
|
|
78
|
+
z.string().regex(/^[a-z0-9-]+$/) // Custom pattern (slugs)
|
|
79
|
+
z.string().startsWith('https://') // Prefix check
|
|
80
|
+
z.string().endsWith('.pdf') // Suffix check
|
|
81
|
+
z.string().includes('@') // Contains check
|
|
82
|
+
z.string().trim() // Strips whitespace (transform)
|
|
83
|
+
z.string().toLowerCase() // Normalizes case (transform)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**When NOT to use this pattern:**
|
|
87
|
+
- When accepting arbitrary user content for display only (sanitize on output instead)
|
|
88
|
+
- When building a passthrough/proxy that shouldn't validate content
|
|
89
|
+
|
|
90
|
+
Reference: [Zod API - Strings](https://zod.dev/api#strings)
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Enums for Fixed String Values
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Plain strings accept any value including typos; enums restrict to valid values and enable autocomplete
|
|
5
|
+
tags: schema, enum, literal, union
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Enums for Fixed String Values
|
|
9
|
+
|
|
10
|
+
When a field should only accept specific values (status, role, type), use `z.enum()` or `z.literal()` instead of `z.string()`. Plain strings accept any value including typos, while enums provide validation, type safety, and IDE autocomplete.
|
|
11
|
+
|
|
12
|
+
**Incorrect (plain string for fixed values):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const orderSchema = z.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
status: z.string(), // Accepts any string
|
|
20
|
+
priority: z.string(), // No constraints
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
type Order = z.infer<typeof orderSchema>
|
|
24
|
+
// { id: string; status: string; priority: string }
|
|
25
|
+
|
|
26
|
+
// Typos and invalid values pass validation
|
|
27
|
+
orderSchema.parse({
|
|
28
|
+
id: '123',
|
|
29
|
+
status: 'pendng', // Typo passes
|
|
30
|
+
priority: 'super-urgent', // Invalid value passes
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
function processOrder(order: Order) {
|
|
34
|
+
if (order.status === 'pending') { // Might never match due to typos
|
|
35
|
+
// ...
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Correct (using z.enum):**
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { z } from 'zod'
|
|
44
|
+
|
|
45
|
+
const OrderStatus = z.enum(['pending', 'processing', 'shipped', 'delivered'])
|
|
46
|
+
const Priority = z.enum(['low', 'medium', 'high'])
|
|
47
|
+
|
|
48
|
+
const orderSchema = z.object({
|
|
49
|
+
id: z.string(),
|
|
50
|
+
status: OrderStatus,
|
|
51
|
+
priority: Priority,
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
type Order = z.infer<typeof orderSchema>
|
|
55
|
+
// { id: string; status: 'pending' | 'processing' | 'shipped' | 'delivered'; priority: 'low' | 'medium' | 'high' }
|
|
56
|
+
|
|
57
|
+
// Typos are caught at validation
|
|
58
|
+
orderSchema.parse({
|
|
59
|
+
id: '123',
|
|
60
|
+
status: 'pendng', // ZodError: Invalid enum value
|
|
61
|
+
priority: 'super-urgent', // ZodError: Invalid enum value
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// Extract enum values for reuse
|
|
65
|
+
OrderStatus.options // ['pending', 'processing', 'shipped', 'delivered']
|
|
66
|
+
type OrderStatusType = z.infer<typeof OrderStatus> // 'pending' | 'processing' | ...
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**For native TypeScript enums:**
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
enum Role {
|
|
73
|
+
Admin = 'admin',
|
|
74
|
+
User = 'user',
|
|
75
|
+
Guest = 'guest',
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Use z.nativeEnum for TS enums
|
|
79
|
+
const userSchema = z.object({
|
|
80
|
+
role: z.nativeEnum(Role),
|
|
81
|
+
})
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**For single literal values (discriminated unions):**
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
const successResponse = z.object({
|
|
88
|
+
status: z.literal('success'),
|
|
89
|
+
data: z.unknown(),
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
const errorResponse = z.object({
|
|
93
|
+
status: z.literal('error'),
|
|
94
|
+
message: z.string(),
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
const response = z.discriminatedUnion('status', [
|
|
98
|
+
successResponse,
|
|
99
|
+
errorResponse,
|
|
100
|
+
])
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**When NOT to use this pattern:**
|
|
104
|
+
- When the set of valid values is dynamic or user-defined
|
|
105
|
+
- When values come from a database that may have more options
|
|
106
|
+
|
|
107
|
+
Reference: [Zod API - Enums](https://zod.dev/api#enums)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Primitive Schemas Correctly
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Incorrect primitive selection causes validation to pass on wrong types; using z.any() or z.unknown() loses all type safety
|
|
5
|
+
tags: schema, primitives, types, basics
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Primitive Schemas Correctly
|
|
9
|
+
|
|
10
|
+
Zod provides specific schemas for each primitive type. Using the wrong schema (e.g., `z.string()` when you need `z.number()`) or falling back to `z.any()` defeats the purpose of validation entirely, allowing corrupt data through.
|
|
11
|
+
|
|
12
|
+
**Incorrect (wrong primitive or any):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
// Using any loses all type safety
|
|
18
|
+
const userSchema = z.object({
|
|
19
|
+
id: z.any(), // Accepts anything - no validation
|
|
20
|
+
age: z.string(), // Wrong type - age should be number
|
|
21
|
+
active: z.any(), // Should be boolean
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// This passes validation but data is wrong
|
|
25
|
+
userSchema.parse({ id: null, age: "twenty", active: "yes" })
|
|
26
|
+
// Result: { id: null, age: "twenty", active: "yes" }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Correct (specific primitives):**
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { z } from 'zod'
|
|
33
|
+
|
|
34
|
+
const userSchema = z.object({
|
|
35
|
+
id: z.string().uuid(), // Specific format validation
|
|
36
|
+
age: z.number().int().positive(), // Correct type with constraints
|
|
37
|
+
active: z.boolean(), // Exact boolean type
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
// Now invalid data is rejected
|
|
41
|
+
userSchema.parse({ id: null, age: "twenty", active: "yes" })
|
|
42
|
+
// Throws ZodError with specific field errors
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Available primitive schemas:**
|
|
46
|
+
- `z.string()` - strings with optional regex, min, max, email, url, uuid
|
|
47
|
+
- `z.number()` - numbers with optional int, positive, negative, min, max
|
|
48
|
+
- `z.bigint()` - BigInt values
|
|
49
|
+
- `z.boolean()` - true/false only
|
|
50
|
+
- `z.date()` - Date objects
|
|
51
|
+
- `z.symbol()` - Symbol type
|
|
52
|
+
- `z.undefined()` - undefined only
|
|
53
|
+
- `z.null()` - null only
|
|
54
|
+
- `z.void()` - undefined (for function returns)
|
|
55
|
+
- `z.never()` - no valid value
|
|
56
|
+
|
|
57
|
+
**When NOT to use this pattern:**
|
|
58
|
+
- When you genuinely need to accept any value (rare - consider `z.unknown()` instead)
|
|
59
|
+
- When migrating legacy code incrementally (use `z.any()` temporarily, then fix)
|
|
60
|
+
|
|
61
|
+
Reference: [Zod Primitives](https://zod.dev/api#primitives)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/schema-use-unknown-not-any.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use z.unknown() Instead of z.any()
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: z.any() bypasses TypeScript's type system entirely; z.unknown() forces type narrowing before use
|
|
5
|
+
tags: schema, unknown, any, type-safety
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use z.unknown() Instead of z.any()
|
|
9
|
+
|
|
10
|
+
`z.any()` infers to `any` type, disabling TypeScript's type checking for that value. `z.unknown()` infers to `unknown`, which forces you to narrow the type before using it. This preserves type safety while still allowing any input.
|
|
11
|
+
|
|
12
|
+
**Incorrect (using z.any):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const eventSchema = z.object({
|
|
18
|
+
type: z.string(),
|
|
19
|
+
payload: z.any(), // Infers to 'any'
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
type Event = z.infer<typeof eventSchema>
|
|
23
|
+
// { type: string; payload: any }
|
|
24
|
+
|
|
25
|
+
function handleEvent(event: Event) {
|
|
26
|
+
// No type error - TypeScript allows anything
|
|
27
|
+
console.log(event.payload.foo.bar.baz) // Runtime crash if structure is wrong
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Correct (using z.unknown):**
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { z } from 'zod'
|
|
35
|
+
|
|
36
|
+
const eventSchema = z.object({
|
|
37
|
+
type: z.string(),
|
|
38
|
+
payload: z.unknown(), // Infers to 'unknown'
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
type Event = z.infer<typeof eventSchema>
|
|
42
|
+
// { type: string; payload: unknown }
|
|
43
|
+
|
|
44
|
+
function handleEvent(event: Event) {
|
|
45
|
+
// TypeScript error: Object is of type 'unknown'
|
|
46
|
+
console.log(event.payload.foo) // Won't compile
|
|
47
|
+
|
|
48
|
+
// Must narrow type first
|
|
49
|
+
if (typeof event.payload === 'object' && event.payload !== null) {
|
|
50
|
+
// Now TypeScript knows it's an object
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Better approach with discriminated unions:**
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
import { z } from 'zod'
|
|
59
|
+
|
|
60
|
+
const userCreatedSchema = z.object({
|
|
61
|
+
type: z.literal('user.created'),
|
|
62
|
+
payload: z.object({
|
|
63
|
+
userId: z.string(),
|
|
64
|
+
email: z.string().email(),
|
|
65
|
+
}),
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
const orderPlacedSchema = z.object({
|
|
69
|
+
type: z.literal('order.placed'),
|
|
70
|
+
payload: z.object({
|
|
71
|
+
orderId: z.string(),
|
|
72
|
+
amount: z.number(),
|
|
73
|
+
}),
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
const eventSchema = z.discriminatedUnion('type', [
|
|
77
|
+
userCreatedSchema,
|
|
78
|
+
orderPlacedSchema,
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
// Full type safety for each event type
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**When NOT to use this pattern:**
|
|
85
|
+
- When you're consuming a third-party API where you truly don't know the shape
|
|
86
|
+
- When prototyping and will add proper types later
|
|
87
|
+
|
|
88
|
+
Reference: [Zod API - unknown](https://zod.dev/api#unknown)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Branded Types for Domain Safety
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: Plain string IDs are interchangeable, allowing userId where orderId is expected; branded types catch these bugs at compile time
|
|
5
|
+
tags: type, brand, domain, nominal
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Branded Types for Domain Safety
|
|
9
|
+
|
|
10
|
+
Plain strings and numbers are interchangeable in TypeScript's structural type system—a `userId` can be passed where an `orderId` is expected. Zod's `.brand()` creates nominal types that prevent mixing up semantically different values.
|
|
11
|
+
|
|
12
|
+
**Incorrect (plain IDs are interchangeable):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const userIdSchema = z.string().uuid()
|
|
18
|
+
const orderIdSchema = z.string().uuid()
|
|
19
|
+
|
|
20
|
+
type UserId = z.infer<typeof userIdSchema> // string
|
|
21
|
+
type OrderId = z.infer<typeof orderIdSchema> // string - same type!
|
|
22
|
+
|
|
23
|
+
async function getOrder(orderId: OrderId) {
|
|
24
|
+
return db.orders.findUnique({ where: { id: orderId } })
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const userId: UserId = '550e8400-e29b-41d4-a716-446655440000'
|
|
28
|
+
getOrder(userId) // No error! TypeScript allows this bug
|
|
29
|
+
// Runtime: queries orders table with user ID, returns nothing or wrong data
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Correct (using branded types):**
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { z } from 'zod'
|
|
36
|
+
|
|
37
|
+
const userIdSchema = z.string().uuid().brand<'UserId'>()
|
|
38
|
+
const orderIdSchema = z.string().uuid().brand<'OrderId'>()
|
|
39
|
+
|
|
40
|
+
type UserId = z.infer<typeof userIdSchema>
|
|
41
|
+
// string & { __brand: 'UserId' }
|
|
42
|
+
|
|
43
|
+
type OrderId = z.infer<typeof orderIdSchema>
|
|
44
|
+
// string & { __brand: 'OrderId' }
|
|
45
|
+
|
|
46
|
+
async function getOrder(orderId: OrderId) {
|
|
47
|
+
return db.orders.findUnique({ where: { id: orderId } })
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const userId = userIdSchema.parse('550e8400-e29b-41d4-a716-446655440000')
|
|
51
|
+
getOrder(userId) // TypeScript error: Argument of type 'UserId' is not assignable to parameter of type 'OrderId'
|
|
52
|
+
|
|
53
|
+
const orderId = orderIdSchema.parse('660e8400-e29b-41d4-a716-446655440001')
|
|
54
|
+
getOrder(orderId) // Works correctly
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Common branded types:**
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
// IDs for different entities
|
|
61
|
+
const UserId = z.string().uuid().brand<'UserId'>()
|
|
62
|
+
const ProductId = z.string().uuid().brand<'ProductId'>()
|
|
63
|
+
const OrderId = z.string().uuid().brand<'OrderId'>()
|
|
64
|
+
|
|
65
|
+
// Email (validated and branded)
|
|
66
|
+
const Email = z.string().email().brand<'Email'>()
|
|
67
|
+
|
|
68
|
+
// Positive numbers
|
|
69
|
+
const PositiveInt = z.number().int().positive().brand<'PositiveInt'>()
|
|
70
|
+
|
|
71
|
+
// Money amounts (in cents)
|
|
72
|
+
const Cents = z.number().int().nonnegative().brand<'Cents'>()
|
|
73
|
+
|
|
74
|
+
// Slugs
|
|
75
|
+
const Slug = z.string().regex(/^[a-z0-9-]+$/).brand<'Slug'>()
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Using with object schemas:**
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
const User = z.object({
|
|
82
|
+
id: z.string().uuid().brand<'UserId'>(),
|
|
83
|
+
email: z.string().email().brand<'Email'>(),
|
|
84
|
+
referredBy: z.string().uuid().brand<'UserId'>().optional(),
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
type User = z.infer<typeof User>
|
|
88
|
+
|
|
89
|
+
function sendReferralBonus(
|
|
90
|
+
referrerId: z.infer<typeof User>['id'],
|
|
91
|
+
refereeId: z.infer<typeof User>['id']
|
|
92
|
+
) {
|
|
93
|
+
// Can't accidentally swap these - both are UserId but distinct values
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**When NOT to use this pattern:**
|
|
98
|
+
- Simple applications without ID confusion risk
|
|
99
|
+
- When interoperating with external systems that expect plain strings
|
|
100
|
+
- Performance-critical paths (brand adds tiny overhead)
|
|
101
|
+
|
|
102
|
+
Reference: [Zod API - brand](https://zod.dev/api#brand)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/type-enable-strict-mode.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Enable TypeScript Strict Mode
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: Without strict mode, Zod's type inference is unreliable; undefined and null slip through, defeating the purpose of validation
|
|
5
|
+
tags: type, typescript, strict, configuration
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Enable TypeScript Strict Mode
|
|
9
|
+
|
|
10
|
+
Zod requires TypeScript's strict mode to work correctly. Without it, `undefined` sneaks into types, `null` checks are bypassed, and type inference becomes unreliable. This undermines the type safety that Zod provides.
|
|
11
|
+
|
|
12
|
+
**Incorrect (strict mode disabled):**
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
// tsconfig.json
|
|
16
|
+
{
|
|
17
|
+
"compilerOptions": {
|
|
18
|
+
"strict": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { z } from 'zod'
|
|
25
|
+
|
|
26
|
+
const userSchema = z.object({
|
|
27
|
+
name: z.string(),
|
|
28
|
+
email: z.string().email(),
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
type User = z.infer<typeof userSchema>
|
|
32
|
+
// With strict:false, type might include undefined implicitly
|
|
33
|
+
|
|
34
|
+
function processUser(user: User) {
|
|
35
|
+
// No error even if user.name could be undefined
|
|
36
|
+
console.log(user.name.toUpperCase()) // Potential runtime crash
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// TypeScript allows calling with undefined
|
|
40
|
+
processUser(undefined as any) // No warning
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Correct (strict mode enabled):**
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
// tsconfig.json
|
|
47
|
+
{
|
|
48
|
+
"compilerOptions": {
|
|
49
|
+
"strict": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { z } from 'zod'
|
|
56
|
+
|
|
57
|
+
const userSchema = z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
email: z.string().email(),
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
type User = z.infer<typeof userSchema>
|
|
63
|
+
// { name: string; email: string } - no implicit undefined
|
|
64
|
+
|
|
65
|
+
function processUser(user: User) {
|
|
66
|
+
// TypeScript knows name is always string
|
|
67
|
+
console.log(user.name.toUpperCase()) // Safe
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// TypeScript catches potential undefined
|
|
71
|
+
processUser(undefined as any) // Error with strict null checks
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Minimum strict settings for Zod:**
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
// tsconfig.json
|
|
78
|
+
{
|
|
79
|
+
"compilerOptions": {
|
|
80
|
+
// Full strict mode (recommended)
|
|
81
|
+
"strict": true,
|
|
82
|
+
|
|
83
|
+
// Or at minimum, enable these:
|
|
84
|
+
"strictNullChecks": true,
|
|
85
|
+
"noImplicitAny": true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Common errors when strict mode is disabled:**
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
// Without strictNullChecks
|
|
94
|
+
const schema = z.string().optional()
|
|
95
|
+
type MaybeString = z.infer<typeof schema>
|
|
96
|
+
// Should be: string | undefined
|
|
97
|
+
// Without strict: just string (undefined is implicit)
|
|
98
|
+
|
|
99
|
+
// Without noImplicitAny
|
|
100
|
+
const schema = z.object({ name: z.string() })
|
|
101
|
+
schema.parse(data) // data could be 'any', bypassing validation
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Migrating to strict mode:**
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
// If enabling strict breaks existing code, fix issues incrementally
|
|
108
|
+
// Common fixes:
|
|
109
|
+
|
|
110
|
+
// 1. Add null checks
|
|
111
|
+
if (user.name !== undefined) {
|
|
112
|
+
console.log(user.name.toUpperCase())
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// 2. Add explicit types
|
|
116
|
+
function processData(data: unknown) { // Was implicit any
|
|
117
|
+
const validated = schema.parse(data)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 3. Handle optional fields
|
|
121
|
+
const user: User = {
|
|
122
|
+
name: 'John',
|
|
123
|
+
email: 'john@example.com', // Now required, was optional without strict
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**When NOT to use this pattern:**
|
|
128
|
+
- Never - always enable strict mode for Zod projects
|
|
129
|
+
|
|
130
|
+
Reference: [Zod Requirements](https://zod.dev/#requirements)
|