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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Avoid Dynamic Schema Creation in Hot Paths
|
|
3
|
+
impact: LOW-MEDIUM
|
|
4
|
+
impactDescription: Zod 4's JIT compilation makes schema creation slower; creating schemas in loops adds ~0.15ms per creation
|
|
5
|
+
tags: perf, dynamic, hot-path, optimization
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Avoid Dynamic Schema Creation in Hot Paths
|
|
9
|
+
|
|
10
|
+
Zod 4 uses JIT (Just-In-Time) compilation to speed up repeated parsing, but this makes initial schema creation slower. Avoid creating schemas inside loops or frequently-called functions—pre-create them instead.
|
|
11
|
+
|
|
12
|
+
**Incorrect (schema creation in hot path):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
async function validateBatch(items: unknown[]) {
|
|
18
|
+
const results = []
|
|
19
|
+
|
|
20
|
+
for (const item of items) {
|
|
21
|
+
// Schema created for EACH item - slow!
|
|
22
|
+
const schema = z.object({
|
|
23
|
+
id: z.string(),
|
|
24
|
+
value: z.number(),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
results.push(schema.safeParse(item))
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return results
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 1000 items = 1000 schema creations = ~150ms overhead
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Correct (pre-created schema):**
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { z } from 'zod'
|
|
40
|
+
|
|
41
|
+
// Schema created ONCE
|
|
42
|
+
const itemSchema = z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
value: z.number(),
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
async function validateBatch(items: unknown[]) {
|
|
48
|
+
// Reuse the same schema instance
|
|
49
|
+
return items.map(item => itemSchema.safeParse(item))
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// 1000 items = 1 schema creation + 1000 fast parses
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Dynamic schemas with caching:**
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
import { z } from 'zod'
|
|
59
|
+
|
|
60
|
+
// Cache for dynamically-configured schemas
|
|
61
|
+
const schemaCache = new WeakMap<object, z.ZodType>()
|
|
62
|
+
|
|
63
|
+
function getSchemaForConfig(config: { fields: string[] }) {
|
|
64
|
+
// Check cache first
|
|
65
|
+
if (schemaCache.has(config)) {
|
|
66
|
+
return schemaCache.get(config)!
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Create and cache
|
|
70
|
+
const shape: Record<string, z.ZodString> = {}
|
|
71
|
+
for (const field of config.fields) {
|
|
72
|
+
shape[field] = z.string()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const schema = z.object(shape)
|
|
76
|
+
schemaCache.set(config, schema)
|
|
77
|
+
return schema
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Subsequent calls with same config reuse cached schema
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Lazy schema creation:**
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import { z } from 'zod'
|
|
87
|
+
|
|
88
|
+
// Schema created only when first used
|
|
89
|
+
let _userSchema: z.ZodObject<any> | null = null
|
|
90
|
+
|
|
91
|
+
function getUserSchema() {
|
|
92
|
+
if (!_userSchema) {
|
|
93
|
+
_userSchema = z.object({
|
|
94
|
+
id: z.string().uuid(),
|
|
95
|
+
email: z.string().email(),
|
|
96
|
+
profile: z.object({
|
|
97
|
+
name: z.string(),
|
|
98
|
+
avatar: z.string().url().optional(),
|
|
99
|
+
}),
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
return _userSchema
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Or use a getter
|
|
106
|
+
const schemas = {
|
|
107
|
+
_user: null as z.ZodType | null,
|
|
108
|
+
get user() {
|
|
109
|
+
if (!this._user) {
|
|
110
|
+
this._user = z.object({ /* ... */ })
|
|
111
|
+
}
|
|
112
|
+
return this._user
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Benchmark considerations:**
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
// Zod 4 JIT compilation:
|
|
121
|
+
// - Schema creation: ~0.15ms per schema
|
|
122
|
+
// - First parse: triggers JIT compile
|
|
123
|
+
// - Subsequent parses: 7-14x faster
|
|
124
|
+
|
|
125
|
+
// For schemas used once:
|
|
126
|
+
// - Creation + parse: ~0.15ms + first-parse overhead
|
|
127
|
+
// - Consider if validation is even needed
|
|
128
|
+
|
|
129
|
+
// For schemas used many times:
|
|
130
|
+
// - Create once, parse many: optimal
|
|
131
|
+
// - JIT compilation amortized over all parses
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**When NOT to use this pattern:**
|
|
135
|
+
- One-off validation where schema is used once
|
|
136
|
+
- Dynamically generated forms where fields change per request
|
|
137
|
+
- Test files where performance doesn't matter
|
|
138
|
+
|
|
139
|
+
Reference: [Zod v4 Performance](https://zod.dev/v4#performance)
|
package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-cache-schemas.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Cache Schema Instances
|
|
3
|
+
impact: LOW-MEDIUM
|
|
4
|
+
impactDescription: Creating schemas on every render/call wastes CPU; module-level or memoized schemas are created once
|
|
5
|
+
tags: perf, cache, memoization, optimization
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Cache Schema Instances
|
|
9
|
+
|
|
10
|
+
Schema creation has overhead. Creating schemas inside render functions or on every function call wastes CPU cycles. Define schemas at module level or memoize them so they're created once and reused.
|
|
11
|
+
|
|
12
|
+
**Incorrect (creating schema every render):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
function UserForm() {
|
|
18
|
+
// Schema created on EVERY render - wasteful
|
|
19
|
+
const userSchema = z.object({
|
|
20
|
+
name: z.string().min(1),
|
|
21
|
+
email: z.string().email(),
|
|
22
|
+
age: z.number().int().positive(),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const handleSubmit = (data: unknown) => {
|
|
26
|
+
const result = userSchema.safeParse(data)
|
|
27
|
+
// ...
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return <form onSubmit={handleSubmit}>...</form>
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Correct (module-level schema):**
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { z } from 'zod'
|
|
38
|
+
|
|
39
|
+
// Schema created ONCE at module load
|
|
40
|
+
const userSchema = z.object({
|
|
41
|
+
name: z.string().min(1),
|
|
42
|
+
email: z.string().email(),
|
|
43
|
+
age: z.number().int().positive(),
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
type User = z.infer<typeof userSchema>
|
|
47
|
+
|
|
48
|
+
function UserForm() {
|
|
49
|
+
const handleSubmit = (data: unknown) => {
|
|
50
|
+
const result = userSchema.safeParse(data)
|
|
51
|
+
// ...
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return <form onSubmit={handleSubmit}>...</form>
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**For dynamic schemas, use useMemo:**
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { z } from 'zod'
|
|
62
|
+
import { useMemo } from 'react'
|
|
63
|
+
|
|
64
|
+
function DynamicForm({ minAge }: { minAge: number }) {
|
|
65
|
+
// Schema only recreated when minAge changes
|
|
66
|
+
const userSchema = useMemo(() =>
|
|
67
|
+
z.object({
|
|
68
|
+
name: z.string().min(1),
|
|
69
|
+
age: z.number().min(minAge),
|
|
70
|
+
}),
|
|
71
|
+
[minAge]
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
// ...
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**For server-side, use module cache:**
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
// schemas/user.ts - created once per process
|
|
82
|
+
import { z } from 'zod'
|
|
83
|
+
|
|
84
|
+
export const userSchema = z.object({
|
|
85
|
+
id: z.string().uuid(),
|
|
86
|
+
email: z.string().email(),
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
// api/users.ts
|
|
90
|
+
import { userSchema } from '@/schemas/user'
|
|
91
|
+
|
|
92
|
+
export async function POST(req: Request) {
|
|
93
|
+
const body = await req.json()
|
|
94
|
+
const result = userSchema.safeParse(body) // Reuses cached schema
|
|
95
|
+
// ...
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Avoid schema factories in hot paths:**
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
// BAD: Factory called on every validation
|
|
103
|
+
function createUserSchema(role: string) {
|
|
104
|
+
return z.object({
|
|
105
|
+
name: z.string(),
|
|
106
|
+
permissions: z.array(z.string()),
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Called in hot loop
|
|
111
|
+
users.forEach(user => {
|
|
112
|
+
createUserSchema(user.role).parse(user) // New schema every iteration!
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
// GOOD: Cache by key
|
|
116
|
+
const schemaCache = new Map<string, z.ZodObject<any>>()
|
|
117
|
+
|
|
118
|
+
function getUserSchema(role: string) {
|
|
119
|
+
if (!schemaCache.has(role)) {
|
|
120
|
+
schemaCache.set(role, z.object({
|
|
121
|
+
name: z.string(),
|
|
122
|
+
permissions: z.array(z.string()),
|
|
123
|
+
}))
|
|
124
|
+
}
|
|
125
|
+
return schemaCache.get(role)!
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Reuses cached schemas
|
|
129
|
+
users.forEach(user => {
|
|
130
|
+
getUserSchema(user.role).parse(user)
|
|
131
|
+
})
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**When NOT to use this pattern:**
|
|
135
|
+
- One-off validation where schema is used once
|
|
136
|
+
- Test files where performance doesn't matter
|
|
137
|
+
|
|
138
|
+
Reference: [Zod Performance](https://zod.dev/v4#performance)
|
package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-lazy-loading.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Lazy Load Large Schemas
|
|
3
|
+
impact: LOW-MEDIUM
|
|
4
|
+
impactDescription: Large schemas increase initial bundle and parse time; dynamic imports defer loading until needed
|
|
5
|
+
tags: perf, lazy, import, code-splitting
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Lazy Load Large Schemas
|
|
9
|
+
|
|
10
|
+
For applications with many complex schemas, importing all of them upfront increases initial bundle size and startup time. Use dynamic imports to lazy load schemas that aren't needed immediately.
|
|
11
|
+
|
|
12
|
+
**Incorrect (importing all schemas upfront):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
// schemas/index.ts - barrel file with everything
|
|
16
|
+
export * from './user'
|
|
17
|
+
export * from './order'
|
|
18
|
+
export * from './product'
|
|
19
|
+
export * from './analytics' // Large, complex schema
|
|
20
|
+
export * from './reports' // Another large schema
|
|
21
|
+
export * from './admin' // Admin-only schemas
|
|
22
|
+
|
|
23
|
+
// app/page.tsx
|
|
24
|
+
import { userSchema, orderSchema, analyticsSchema, reportsSchema } from '@/schemas'
|
|
25
|
+
// All schemas loaded even if not used on this page
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Correct (lazy loading schemas):**
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// Only import what's immediately needed
|
|
32
|
+
import { userSchema } from '@/schemas/user'
|
|
33
|
+
|
|
34
|
+
async function loadAnalyticsSchema() {
|
|
35
|
+
const { analyticsSchema } = await import('@/schemas/analytics')
|
|
36
|
+
return analyticsSchema
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Use when needed
|
|
40
|
+
async function handleAnalyticsData(data: unknown) {
|
|
41
|
+
const schema = await loadAnalyticsSchema()
|
|
42
|
+
return schema.safeParse(data)
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Route-based schema loading:**
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
// app/admin/reports/page.tsx
|
|
50
|
+
'use client'
|
|
51
|
+
|
|
52
|
+
import { useEffect, useState } from 'react'
|
|
53
|
+
import type { z } from 'zod'
|
|
54
|
+
|
|
55
|
+
export default function ReportsPage() {
|
|
56
|
+
const [schema, setSchema] = useState<z.ZodType | null>(null)
|
|
57
|
+
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
// Load schema only when this route is accessed
|
|
60
|
+
import('@/schemas/reports').then(({ reportsSchema }) => {
|
|
61
|
+
setSchema(reportsSchema)
|
|
62
|
+
})
|
|
63
|
+
}, [])
|
|
64
|
+
|
|
65
|
+
if (!schema) return <Loading />
|
|
66
|
+
|
|
67
|
+
// Use schema...
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Better pattern with React Suspense:**
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
// schemas/reports.ts
|
|
75
|
+
import { z } from 'zod'
|
|
76
|
+
|
|
77
|
+
export const reportsSchema = z.object({
|
|
78
|
+
// Large complex schema
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
// app/admin/reports/page.tsx
|
|
82
|
+
import { lazy, Suspense } from 'react'
|
|
83
|
+
|
|
84
|
+
const ReportsForm = lazy(() => import('./ReportsForm'))
|
|
85
|
+
|
|
86
|
+
export default function ReportsPage() {
|
|
87
|
+
return (
|
|
88
|
+
<Suspense fallback={<Loading />}>
|
|
89
|
+
<ReportsForm />
|
|
90
|
+
</Suspense>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// ReportsForm.tsx - schema imported with component
|
|
95
|
+
import { reportsSchema } from '@/schemas/reports'
|
|
96
|
+
|
|
97
|
+
export default function ReportsForm() {
|
|
98
|
+
// Schema available when component loads
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Schema registry for conditional loading:**
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
// schemas/registry.ts
|
|
106
|
+
const schemaLoaders = {
|
|
107
|
+
user: () => import('./user').then(m => m.userSchema),
|
|
108
|
+
order: () => import('./order').then(m => m.orderSchema),
|
|
109
|
+
analytics: () => import('./analytics').then(m => m.analyticsSchema),
|
|
110
|
+
reports: () => import('./reports').then(m => m.reportsSchema),
|
|
111
|
+
} as const
|
|
112
|
+
|
|
113
|
+
type SchemaName = keyof typeof schemaLoaders
|
|
114
|
+
|
|
115
|
+
const schemaCache = new Map<SchemaName, z.ZodType>()
|
|
116
|
+
|
|
117
|
+
export async function getSchema(name: SchemaName) {
|
|
118
|
+
if (!schemaCache.has(name)) {
|
|
119
|
+
const schema = await schemaLoaders[name]()
|
|
120
|
+
schemaCache.set(name, schema)
|
|
121
|
+
}
|
|
122
|
+
return schemaCache.get(name)!
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Usage
|
|
126
|
+
const schema = await getSchema('analytics')
|
|
127
|
+
schema.parse(data)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**When NOT to use this pattern:**
|
|
131
|
+
- Server-side rendering where all code is available
|
|
132
|
+
- Small applications with few schemas
|
|
133
|
+
- Schemas used on every page (defeats purpose)
|
|
134
|
+
|
|
135
|
+
Reference: [Next.js Dynamic Imports](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
|
package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/perf-zod-mini.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Zod Mini for Bundle-Sensitive Applications
|
|
3
|
+
impact: LOW-MEDIUM
|
|
4
|
+
impactDescription: Full Zod is ~17kb gzipped; Zod Mini is ~1.9kb - 85% smaller for frontend-critical bundles
|
|
5
|
+
tags: perf, bundle, mini, tree-shaking
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Zod Mini for Bundle-Sensitive Applications
|
|
9
|
+
|
|
10
|
+
For frontend applications where bundle size is critical, use `@zod/mini` instead of `zod`. Zod Mini provides the same validation capabilities with a functional API that tree-shakes better, reducing bundle size by ~85%.
|
|
11
|
+
|
|
12
|
+
**When to consider Zod Mini:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
// Your app if:
|
|
16
|
+
// - Bundle size is critical (mobile-first, slow networks)
|
|
17
|
+
// - Edge functions with size limits
|
|
18
|
+
// - Simple validation needs (no complex transforms)
|
|
19
|
+
// - Tree-shaking is important
|
|
20
|
+
|
|
21
|
+
// Zod: ~17kb gzipped
|
|
22
|
+
import { z } from 'zod'
|
|
23
|
+
|
|
24
|
+
// Zod Mini: ~1.9kb gzipped (when tree-shaken)
|
|
25
|
+
import * as z from '@zod/mini'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Standard Zod (method chaining):**
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { z } from 'zod'
|
|
32
|
+
|
|
33
|
+
// Methods are attached to schema objects - hard to tree-shake
|
|
34
|
+
const userSchema = z.object({
|
|
35
|
+
name: z.string().min(1).max(100),
|
|
36
|
+
email: z.string().email(),
|
|
37
|
+
age: z.number().int().positive(),
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const result = userSchema.safeParse(data)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Zod Mini (functional API):**
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import * as z from '@zod/mini'
|
|
47
|
+
|
|
48
|
+
// Functions are imported individually - tree-shakeable
|
|
49
|
+
const userSchema = z.object({
|
|
50
|
+
name: z.pipe(z.string(), z.minLength(1), z.maxLength(100)),
|
|
51
|
+
email: z.pipe(z.string(), z.email()),
|
|
52
|
+
age: z.pipe(z.number(), z.int(), z.positive()),
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
const result = z.safeParse(userSchema, data)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**API differences:**
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
// Standard Zod
|
|
62
|
+
z.string().min(5).max(100).email()
|
|
63
|
+
z.number().int().positive()
|
|
64
|
+
z.array(z.string()).min(1)
|
|
65
|
+
schema.parse(data)
|
|
66
|
+
schema.safeParse(data)
|
|
67
|
+
|
|
68
|
+
// Zod Mini
|
|
69
|
+
z.pipe(z.string(), z.minLength(5), z.maxLength(100), z.email())
|
|
70
|
+
z.pipe(z.number(), z.int(), z.positive())
|
|
71
|
+
z.pipe(z.array(z.string()), z.minLength(1))
|
|
72
|
+
z.parse(schema, data)
|
|
73
|
+
z.safeParse(schema, data)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**When to stick with regular Zod:**
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
// Use regular Zod when:
|
|
80
|
+
// - Server-side where bundle size doesn't matter
|
|
81
|
+
// - Complex schemas with many transforms
|
|
82
|
+
// - Need full method chaining ergonomics
|
|
83
|
+
// - Bundle size isn't a constraint
|
|
84
|
+
|
|
85
|
+
// The 17kb isn't huge - only optimize if needed
|
|
86
|
+
// Server: 17kb is negligible
|
|
87
|
+
// Browser: 17kb ≈ 0.6ms additional startup on 3G
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Shared schemas between packages:**
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
// shared-schemas/package.json
|
|
94
|
+
{
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"@zod/mini": "^4.0.0" // Mini for frontend-shared schemas
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// If you need both, Zod Mini schemas work with regular Zod
|
|
101
|
+
// But prefer consistency - pick one for your codebase
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Bundle size comparison:**
|
|
105
|
+
|
|
106
|
+
| Package | Gzipped Size | Use Case |
|
|
107
|
+
|---------|--------------|----------|
|
|
108
|
+
| `zod@3` | ~13kb | Legacy, stable |
|
|
109
|
+
| `zod@4` | ~17kb | Full features |
|
|
110
|
+
| `@zod/mini` | ~1.9kb | Bundle-critical |
|
|
111
|
+
|
|
112
|
+
**When NOT to use this pattern:**
|
|
113
|
+
- Server-side applications (bundle size irrelevant)
|
|
114
|
+
- When method chaining ergonomics are preferred
|
|
115
|
+
- Complex schemas that benefit from full API
|
|
116
|
+
|
|
117
|
+
Reference: [Zod Mini](https://zod.dev/packages/mini)
|
package/dist/templates/frontend/react-vite-help/.cursor/skills/zod/references/refine-add-path.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add Path to Refinement Errors
|
|
3
|
+
impact: MEDIUM
|
|
4
|
+
impactDescription: Errors without path show at object level; adding path highlights the specific field that failed
|
|
5
|
+
tags: refine, path, errors, forms
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Add Path to Refinement Errors
|
|
9
|
+
|
|
10
|
+
When using `.refine()` on object schemas for cross-field validation, add a `path` option to indicate which field the error relates to. Without it, the error appears at the object level, making form error display confusing.
|
|
11
|
+
|
|
12
|
+
**Incorrect (error at object level):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const formSchema = z.object({
|
|
18
|
+
password: z.string().min(8),
|
|
19
|
+
confirmPassword: z.string(),
|
|
20
|
+
}).refine(
|
|
21
|
+
(data) => data.password === data.confirmPassword,
|
|
22
|
+
{ message: 'Passwords do not match' } // No path specified
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const result = formSchema.safeParse({
|
|
26
|
+
password: 'secret123',
|
|
27
|
+
confirmPassword: 'different',
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
if (!result.success) {
|
|
31
|
+
const flattened = result.error.flatten()
|
|
32
|
+
// {
|
|
33
|
+
// formErrors: ['Passwords do not match'], // At form level!
|
|
34
|
+
// fieldErrors: {} // Empty - no field association
|
|
35
|
+
// }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Form UI can't highlight which field has the error
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Correct (error with path):**
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { z } from 'zod'
|
|
45
|
+
|
|
46
|
+
const formSchema = z.object({
|
|
47
|
+
password: z.string().min(8),
|
|
48
|
+
confirmPassword: z.string(),
|
|
49
|
+
}).refine(
|
|
50
|
+
(data) => data.password === data.confirmPassword,
|
|
51
|
+
{
|
|
52
|
+
message: 'Passwords do not match',
|
|
53
|
+
path: ['confirmPassword'], // Error appears on this field
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
const result = formSchema.safeParse({
|
|
58
|
+
password: 'secret123',
|
|
59
|
+
confirmPassword: 'different',
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
if (!result.success) {
|
|
63
|
+
const flattened = result.error.flatten()
|
|
64
|
+
// {
|
|
65
|
+
// formErrors: [],
|
|
66
|
+
// fieldErrors: {
|
|
67
|
+
// confirmPassword: ['Passwords do not match'] // Associated with field
|
|
68
|
+
// }
|
|
69
|
+
// }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Form can now show error next to confirmPassword input
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Multiple cross-field validations:**
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
const dateRangeSchema = z.object({
|
|
79
|
+
startDate: z.coerce.date(),
|
|
80
|
+
endDate: z.coerce.date(),
|
|
81
|
+
minDays: z.number().optional(),
|
|
82
|
+
maxDays: z.number().optional(),
|
|
83
|
+
}).refine(
|
|
84
|
+
(data) => data.endDate >= data.startDate,
|
|
85
|
+
{ message: 'End date must be after start date', path: ['endDate'] }
|
|
86
|
+
).refine(
|
|
87
|
+
(data) => {
|
|
88
|
+
if (!data.minDays) return true
|
|
89
|
+
const days = (data.endDate.getTime() - data.startDate.getTime()) / 86400000
|
|
90
|
+
return days >= data.minDays
|
|
91
|
+
},
|
|
92
|
+
{ message: 'Date range is too short', path: ['endDate'] }
|
|
93
|
+
).refine(
|
|
94
|
+
(data) => {
|
|
95
|
+
if (!data.maxDays) return true
|
|
96
|
+
const days = (data.endDate.getTime() - data.startDate.getTime()) / 86400000
|
|
97
|
+
return days <= data.maxDays
|
|
98
|
+
},
|
|
99
|
+
{ message: 'Date range is too long', path: ['endDate'] }
|
|
100
|
+
)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**With superRefine for multiple path errors:**
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
const orderSchema = z.object({
|
|
107
|
+
billingAddress: z.object({
|
|
108
|
+
street: z.string(),
|
|
109
|
+
city: z.string(),
|
|
110
|
+
}),
|
|
111
|
+
shippingAddress: z.object({
|
|
112
|
+
street: z.string(),
|
|
113
|
+
city: z.string(),
|
|
114
|
+
}),
|
|
115
|
+
sameAsBilling: z.boolean(),
|
|
116
|
+
}).superRefine((data, ctx) => {
|
|
117
|
+
if (data.sameAsBilling) {
|
|
118
|
+
// If sameAsBilling but addresses differ, show errors on shipping
|
|
119
|
+
if (data.shippingAddress.street !== data.billingAddress.street) {
|
|
120
|
+
ctx.addIssue({
|
|
121
|
+
code: z.ZodIssueCode.custom,
|
|
122
|
+
message: 'Must match billing address',
|
|
123
|
+
path: ['shippingAddress', 'street'], // Nested path
|
|
124
|
+
})
|
|
125
|
+
}
|
|
126
|
+
if (data.shippingAddress.city !== data.billingAddress.city) {
|
|
127
|
+
ctx.addIssue({
|
|
128
|
+
code: z.ZodIssueCode.custom,
|
|
129
|
+
message: 'Must match billing address',
|
|
130
|
+
path: ['shippingAddress', 'city'],
|
|
131
|
+
})
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**When NOT to use this pattern:**
|
|
138
|
+
- When the error genuinely applies to the whole object
|
|
139
|
+
- Simple single-field refinements (path is implicit)
|
|
140
|
+
|
|
141
|
+
Reference: [Zod API - refine](https://zod.dev/api#refine)
|