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,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use issue.path for Nested Error Location
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: Without path information, users can't identify which nested field failed; path provides exact location in complex objects
|
|
5
|
+
tags: error, path, nested, debugging
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use issue.path for Nested Error Location
|
|
9
|
+
|
|
10
|
+
When validating nested objects or arrays, `issue.path` tells you exactly where the error occurred. This is essential for highlighting the correct form field or providing precise error messages in complex data structures.
|
|
11
|
+
|
|
12
|
+
**Incorrect (ignoring path information):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const orderSchema = z.object({
|
|
18
|
+
customer: z.object({
|
|
19
|
+
name: z.string().min(1, 'Name required'),
|
|
20
|
+
address: z.object({
|
|
21
|
+
street: z.string().min(1, 'Street required'),
|
|
22
|
+
city: z.string().min(1, 'City required'),
|
|
23
|
+
}),
|
|
24
|
+
}),
|
|
25
|
+
items: z.array(z.object({
|
|
26
|
+
productId: z.string(),
|
|
27
|
+
quantity: z.number().positive('Quantity must be positive'),
|
|
28
|
+
})),
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const result = orderSchema.safeParse({
|
|
32
|
+
customer: { name: '', address: { street: '', city: '' } },
|
|
33
|
+
items: [{ productId: 'abc', quantity: -1 }],
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
if (!result.success) {
|
|
37
|
+
// Only showing message, not WHERE the error is
|
|
38
|
+
result.error.issues.forEach(issue => {
|
|
39
|
+
console.log(issue.message) // 'Name required', 'Street required', 'Quantity must be positive'
|
|
40
|
+
// User: "Which quantity? Which field?"
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Correct (using path information):**
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { z } from 'zod'
|
|
49
|
+
|
|
50
|
+
const orderSchema = z.object({
|
|
51
|
+
customer: z.object({
|
|
52
|
+
name: z.string().min(1, 'Name required'),
|
|
53
|
+
address: z.object({
|
|
54
|
+
street: z.string().min(1, 'Street required'),
|
|
55
|
+
city: z.string().min(1, 'City required'),
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
58
|
+
items: z.array(z.object({
|
|
59
|
+
productId: z.string(),
|
|
60
|
+
quantity: z.number().positive('Quantity must be positive'),
|
|
61
|
+
})),
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
const result = orderSchema.safeParse({
|
|
65
|
+
customer: { name: '', address: { street: '', city: '' } },
|
|
66
|
+
items: [{ productId: 'abc', quantity: -1 }],
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
if (!result.success) {
|
|
70
|
+
result.error.issues.forEach(issue => {
|
|
71
|
+
// path is an array of keys/indices
|
|
72
|
+
console.log(`${issue.path.join('.')}: ${issue.message}`)
|
|
73
|
+
// 'customer.name: Name required'
|
|
74
|
+
// 'customer.address.street: Street required'
|
|
75
|
+
// 'customer.address.city: City required'
|
|
76
|
+
// 'items.0.quantity: Quantity must be positive'
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Building field-specific error mapping:**
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
function mapErrorsToFields(error: z.ZodError) {
|
|
85
|
+
const fieldErrors: Map<string, string[]> = new Map()
|
|
86
|
+
|
|
87
|
+
for (const issue of error.issues) {
|
|
88
|
+
const fieldPath = issue.path.join('.')
|
|
89
|
+
const existing = fieldErrors.get(fieldPath) ?? []
|
|
90
|
+
fieldErrors.set(fieldPath, [...existing, issue.message])
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return fieldErrors
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Usage
|
|
97
|
+
const errors = mapErrorsToFields(result.error)
|
|
98
|
+
errors.get('customer.name') // ['Name required']
|
|
99
|
+
errors.get('items.0.quantity') // ['Quantity must be positive']
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**For array items, get index from path:**
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
const itemsWithErrors: Set<number> = new Set()
|
|
106
|
+
|
|
107
|
+
result.error.issues.forEach(issue => {
|
|
108
|
+
if (issue.path[0] === 'items' && typeof issue.path[1] === 'number') {
|
|
109
|
+
itemsWithErrors.add(issue.path[1])
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
// Highlight items at indices: Set { 0 }
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Using path with format():**
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
const formatted = result.error.format()
|
|
120
|
+
|
|
121
|
+
// Access errors at any path level
|
|
122
|
+
formatted.customer?.address?.city?._errors // ['City required']
|
|
123
|
+
formatted.items?.[0]?.quantity?._errors // ['Quantity must be positive']
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**When NOT to use this pattern:**
|
|
127
|
+
- Flat objects where field name is obvious
|
|
128
|
+
- When using form libraries that handle path mapping
|
|
129
|
+
|
|
130
|
+
Reference: [Zod Error Handling](https://zod.dev/error-handling)
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use flatten() for Form Error Display
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: Raw ZodError.issues requires manual path parsing; flatten() provides field-keyed errors ready for form display
|
|
5
|
+
tags: error, flatten, forms, user-experience
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use flatten() for Form Error Display
|
|
9
|
+
|
|
10
|
+
`ZodError.issues` is an array that requires manual processing to map errors to form fields. `ZodError.flatten()` returns an object with `fieldErrors` keyed by field name, ready for form libraries and UI display.
|
|
11
|
+
|
|
12
|
+
**Incorrect (manual issue processing):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const formSchema = z.object({
|
|
18
|
+
email: z.string().email('Invalid email'),
|
|
19
|
+
password: z.string().min(8, 'Password too short'),
|
|
20
|
+
profile: z.object({
|
|
21
|
+
name: z.string().min(1, 'Name required'),
|
|
22
|
+
}),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
function getFieldErrors(error: z.ZodError) {
|
|
26
|
+
const errors: Record<string, string> = {}
|
|
27
|
+
|
|
28
|
+
for (const issue of error.issues) {
|
|
29
|
+
// Manual path joining - error prone
|
|
30
|
+
const field = issue.path.join('.')
|
|
31
|
+
if (!errors[field]) {
|
|
32
|
+
errors[field] = issue.message
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return errors
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const result = formSchema.safeParse(data)
|
|
40
|
+
if (!result.success) {
|
|
41
|
+
const errors = getFieldErrors(result.error)
|
|
42
|
+
// { email: 'Invalid email', 'profile.name': 'Name required' }
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Correct (using flatten):**
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { z } from 'zod'
|
|
50
|
+
|
|
51
|
+
const formSchema = z.object({
|
|
52
|
+
email: z.string().email('Invalid email'),
|
|
53
|
+
password: z.string().min(8, 'Password too short'),
|
|
54
|
+
profile: z.object({
|
|
55
|
+
name: z.string().min(1, 'Name required'),
|
|
56
|
+
}),
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
const result = formSchema.safeParse(data)
|
|
60
|
+
|
|
61
|
+
if (!result.success) {
|
|
62
|
+
const { formErrors, fieldErrors } = result.error.flatten()
|
|
63
|
+
|
|
64
|
+
// formErrors: string[] - top-level errors (from .refine on the object)
|
|
65
|
+
// fieldErrors: { [key]: string[] } - errors by field
|
|
66
|
+
|
|
67
|
+
// Ready for form display
|
|
68
|
+
console.log(fieldErrors)
|
|
69
|
+
// {
|
|
70
|
+
// email: ['Invalid email'],
|
|
71
|
+
// password: ['Password too short'],
|
|
72
|
+
// 'profile.name': ['Name required']
|
|
73
|
+
// }
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**With React Hook Form:**
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { zodResolver } from '@hookform/resolvers/zod'
|
|
81
|
+
import { useForm } from 'react-hook-form'
|
|
82
|
+
|
|
83
|
+
const { register, formState: { errors } } = useForm({
|
|
84
|
+
resolver: zodResolver(formSchema),
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
// errors are already flattened by the resolver
|
|
88
|
+
// <input {...register('email')} />
|
|
89
|
+
// {errors.email && <span>{errors.email.message}</span>}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Customizing flatten output:**
|
|
93
|
+
|
|
94
|
+
```typescript
|
|
95
|
+
const flattened = result.error.flatten((issue) => ({
|
|
96
|
+
message: issue.message,
|
|
97
|
+
code: issue.code,
|
|
98
|
+
}))
|
|
99
|
+
|
|
100
|
+
// fieldErrors now contains custom objects
|
|
101
|
+
// {
|
|
102
|
+
// email: [{ message: 'Invalid email', code: 'invalid_string' }],
|
|
103
|
+
// }
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**For deeply nested objects, use format():**
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
const result = formSchema.safeParse(data)
|
|
110
|
+
|
|
111
|
+
if (!result.success) {
|
|
112
|
+
const formatted = result.error.format()
|
|
113
|
+
// {
|
|
114
|
+
// _errors: [],
|
|
115
|
+
// email: { _errors: ['Invalid email'] },
|
|
116
|
+
// profile: {
|
|
117
|
+
// _errors: [],
|
|
118
|
+
// name: { _errors: ['Name required'] }
|
|
119
|
+
// }
|
|
120
|
+
// }
|
|
121
|
+
|
|
122
|
+
// Access nested errors naturally
|
|
123
|
+
formatted.profile?.name?._errors // ['Name required']
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**When NOT to use this pattern:**
|
|
128
|
+
- When you need access to full issue metadata (code, path as array)
|
|
129
|
+
- When using a form library that expects different error format
|
|
130
|
+
|
|
131
|
+
Reference: [Zod Error Handling](https://zod.dev/error-handling)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/object-discriminated-unions.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use Discriminated Unions for Type Narrowing
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Regular unions require manual type guards; discriminated unions enable TypeScript's automatic narrowing and Zod's optimized parsing
|
|
5
|
+
tags: object, discriminatedUnion, narrowing, typescript
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use Discriminated Unions for Type Narrowing
|
|
9
|
+
|
|
10
|
+
When a field's type depends on another field's value (e.g., `type: 'success'` means `data` exists, `type: 'error'` means `error` exists), use `z.discriminatedUnion()`. This enables TypeScript's automatic type narrowing and Zod's optimized O(1) parsing instead of trying each variant.
|
|
11
|
+
|
|
12
|
+
**Incorrect (regular union - no automatic narrowing):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const successSchema = z.object({
|
|
18
|
+
type: z.literal('success'),
|
|
19
|
+
data: z.object({ id: z.string() }),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const errorSchema = z.object({
|
|
23
|
+
type: z.literal('error'),
|
|
24
|
+
message: z.string(),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// Regular union - Zod tries each option in order
|
|
28
|
+
const responseSchema = z.union([successSchema, errorSchema])
|
|
29
|
+
|
|
30
|
+
type Response = z.infer<typeof responseSchema>
|
|
31
|
+
|
|
32
|
+
function handleResponse(response: Response) {
|
|
33
|
+
// TypeScript doesn't narrow automatically
|
|
34
|
+
if (response.type === 'success') {
|
|
35
|
+
response.data // Error: Property 'data' does not exist on type 'Response'
|
|
36
|
+
// Must cast or use type guards
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Correct (discriminated union):**
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { z } from 'zod'
|
|
45
|
+
|
|
46
|
+
const successSchema = z.object({
|
|
47
|
+
type: z.literal('success'),
|
|
48
|
+
data: z.object({ id: z.string() }),
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
const errorSchema = z.object({
|
|
52
|
+
type: z.literal('error'),
|
|
53
|
+
message: z.string(),
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
// Discriminated union - Zod uses 'type' field for O(1) dispatch
|
|
57
|
+
const responseSchema = z.discriminatedUnion('type', [
|
|
58
|
+
successSchema,
|
|
59
|
+
errorSchema,
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
type Response = z.infer<typeof responseSchema>
|
|
63
|
+
|
|
64
|
+
function handleResponse(response: Response) {
|
|
65
|
+
// TypeScript narrows automatically!
|
|
66
|
+
if (response.type === 'success') {
|
|
67
|
+
response.data.id // Works - TypeScript knows data exists
|
|
68
|
+
} else {
|
|
69
|
+
response.message // Works - TypeScript knows message exists
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Common use cases:**
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
// API responses
|
|
78
|
+
const apiResponse = z.discriminatedUnion('status', [
|
|
79
|
+
z.object({ status: z.literal('success'), data: z.unknown() }),
|
|
80
|
+
z.object({ status: z.literal('error'), error: z.string(), code: z.number() }),
|
|
81
|
+
z.object({ status: z.literal('loading') }),
|
|
82
|
+
])
|
|
83
|
+
|
|
84
|
+
// Event types
|
|
85
|
+
const event = z.discriminatedUnion('type', [
|
|
86
|
+
z.object({ type: z.literal('click'), x: z.number(), y: z.number() }),
|
|
87
|
+
z.object({ type: z.literal('keypress'), key: z.string() }),
|
|
88
|
+
z.object({ type: z.literal('scroll'), delta: z.number() }),
|
|
89
|
+
])
|
|
90
|
+
|
|
91
|
+
// Database records with polymorphic types
|
|
92
|
+
const notification = z.discriminatedUnion('channel', [
|
|
93
|
+
z.object({ channel: z.literal('email'), address: z.string().email() }),
|
|
94
|
+
z.object({ channel: z.literal('sms'), phoneNumber: z.string() }),
|
|
95
|
+
z.object({ channel: z.literal('push'), deviceToken: z.string() }),
|
|
96
|
+
])
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Type-safe handling:**
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
const paymentSchema = z.discriminatedUnion('method', [
|
|
103
|
+
z.object({
|
|
104
|
+
method: z.literal('card'),
|
|
105
|
+
cardNumber: z.string(),
|
|
106
|
+
expiryDate: z.string(),
|
|
107
|
+
}),
|
|
108
|
+
z.object({
|
|
109
|
+
method: z.literal('bank'),
|
|
110
|
+
accountNumber: z.string(),
|
|
111
|
+
routingNumber: z.string(),
|
|
112
|
+
}),
|
|
113
|
+
z.object({
|
|
114
|
+
method: z.literal('crypto'),
|
|
115
|
+
walletAddress: z.string(),
|
|
116
|
+
}),
|
|
117
|
+
])
|
|
118
|
+
|
|
119
|
+
type Payment = z.infer<typeof paymentSchema>
|
|
120
|
+
|
|
121
|
+
function processPayment(payment: Payment) {
|
|
122
|
+
switch (payment.method) {
|
|
123
|
+
case 'card':
|
|
124
|
+
return chargeCard(payment.cardNumber, payment.expiryDate)
|
|
125
|
+
case 'bank':
|
|
126
|
+
return initiateBankTransfer(payment.accountNumber, payment.routingNumber)
|
|
127
|
+
case 'crypto':
|
|
128
|
+
return sendCrypto(payment.walletAddress)
|
|
129
|
+
// TypeScript exhaustiveness check - no default needed
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**When NOT to use this pattern:**
|
|
135
|
+
- When variants don't share a common discriminator field
|
|
136
|
+
- When the discriminator isn't a literal type (use regular union)
|
|
137
|
+
|
|
138
|
+
Reference: [Zod API - Discriminated Unions](https://zod.dev/api#discriminated-unions)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/object-extend-for-composition.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use extend() for Adding Fields
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Merging objects manually loses type information; extend() preserves types and allows overriding fields safely
|
|
5
|
+
tags: object, extend, composition, inheritance
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use extend() for Adding Fields
|
|
9
|
+
|
|
10
|
+
When building on existing schemas, use `.extend()` to add new fields rather than manually spreading. Extend preserves type information, allows overriding existing fields, and keeps the schema relationship explicit.
|
|
11
|
+
|
|
12
|
+
**Incorrect (manual object spreading):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const baseUserSchema = z.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
// Manual spreading loses Zod's schema relationship
|
|
23
|
+
const adminUserSchema = z.object({
|
|
24
|
+
...baseUserSchema.shape, // Accessing internal .shape
|
|
25
|
+
role: z.literal('admin'),
|
|
26
|
+
permissions: z.array(z.string()),
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
// Problems:
|
|
30
|
+
// 1. If baseUserSchema changes, TypeScript might not catch issues
|
|
31
|
+
// 2. Can't override fields easily
|
|
32
|
+
// 3. Loses schema methods and metadata
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Correct (using extend):**
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { z } from 'zod'
|
|
39
|
+
|
|
40
|
+
const baseUserSchema = z.object({
|
|
41
|
+
id: z.string(),
|
|
42
|
+
name: z.string(),
|
|
43
|
+
email: z.string().email(),
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
// Extend to add fields
|
|
47
|
+
const adminUserSchema = baseUserSchema.extend({
|
|
48
|
+
role: z.literal('admin'),
|
|
49
|
+
permissions: z.array(z.string()),
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
type AdminUser = z.infer<typeof adminUserSchema>
|
|
53
|
+
// {
|
|
54
|
+
// id: string;
|
|
55
|
+
// name: string;
|
|
56
|
+
// email: string;
|
|
57
|
+
// role: 'admin';
|
|
58
|
+
// permissions: string[];
|
|
59
|
+
// }
|
|
60
|
+
|
|
61
|
+
// Override existing fields
|
|
62
|
+
const strictEmailSchema = baseUserSchema.extend({
|
|
63
|
+
email: z.string().email().endsWith('@company.com'), // Stricter validation
|
|
64
|
+
})
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Building hierarchies with extend:**
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
// Base entity with common fields
|
|
71
|
+
const entitySchema = z.object({
|
|
72
|
+
id: z.string().uuid(),
|
|
73
|
+
createdAt: z.date(),
|
|
74
|
+
updatedAt: z.date(),
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// User extends entity
|
|
78
|
+
const userSchema = entitySchema.extend({
|
|
79
|
+
email: z.string().email(),
|
|
80
|
+
name: z.string(),
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
// Product extends entity
|
|
84
|
+
const productSchema = entitySchema.extend({
|
|
85
|
+
name: z.string(),
|
|
86
|
+
price: z.number().positive(),
|
|
87
|
+
sku: z.string(),
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
// Order extends entity with references
|
|
91
|
+
const orderSchema = entitySchema.extend({
|
|
92
|
+
userId: z.string().uuid(),
|
|
93
|
+
items: z.array(z.object({
|
|
94
|
+
productId: z.string().uuid(),
|
|
95
|
+
quantity: z.number().int().positive(),
|
|
96
|
+
})),
|
|
97
|
+
total: z.number().positive(),
|
|
98
|
+
})
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Combining extend with other methods:**
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
const baseSchema = z.object({
|
|
105
|
+
id: z.string(),
|
|
106
|
+
name: z.string(),
|
|
107
|
+
email: z.string(),
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
// Create input: no id, add password
|
|
111
|
+
const createSchema = baseSchema
|
|
112
|
+
.omit({ id: true })
|
|
113
|
+
.extend({
|
|
114
|
+
password: z.string().min(8),
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
// Update input: all optional except id
|
|
118
|
+
const updateSchema = baseSchema
|
|
119
|
+
.partial()
|
|
120
|
+
.extend({
|
|
121
|
+
id: z.string(), // Override to make required
|
|
122
|
+
})
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Merge for combining independent schemas:**
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
const addressSchema = z.object({
|
|
129
|
+
street: z.string(),
|
|
130
|
+
city: z.string(),
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
const contactSchema = z.object({
|
|
134
|
+
email: z.string().email(),
|
|
135
|
+
phone: z.string(),
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
// Merge combines two schemas (both required)
|
|
139
|
+
const customerSchema = addressSchema.merge(contactSchema)
|
|
140
|
+
// { street: string; city: string; email: string; phone: string }
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**When NOT to use this pattern:**
|
|
144
|
+
- When schemas are genuinely independent (use merge or intersection)
|
|
145
|
+
- When you need to remove fields (use omit)
|
|
146
|
+
|
|
147
|
+
Reference: [Zod API - extend](https://zod.dev/api#extend)
|
package/templates/frontend/react-vite/.cursor/skills/zod/references/object-optional-vs-nullable.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Distinguish optional() from nullable()
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Confusing undefined and null semantics causes "property does not exist" vs "property is null" bugs; choose deliberately
|
|
5
|
+
tags: object, optional, nullable, undefined
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Distinguish optional() from nullable()
|
|
9
|
+
|
|
10
|
+
`.optional()` allows `undefined` (field can be missing), while `.nullable()` allows `null` (field must be present but can be null). Choosing the wrong one causes subtle bugs in database operations, JSON serialization, and API contracts.
|
|
11
|
+
|
|
12
|
+
**Incorrect (confusing optional and nullable):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const userSchema = z.object({
|
|
18
|
+
name: z.string(),
|
|
19
|
+
// Intended: field might not exist
|
|
20
|
+
nickname: z.string().nullable(), // Wrong! Requires field to be present
|
|
21
|
+
// Intended: field exists but might be null
|
|
22
|
+
deletedAt: z.date().optional(), // Wrong! Allows field to be missing
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
// This fails - nickname is required
|
|
26
|
+
userSchema.parse({ name: 'John' })
|
|
27
|
+
// ZodError: Required at "nickname"
|
|
28
|
+
|
|
29
|
+
// This passes but loses semantic meaning
|
|
30
|
+
userSchema.parse({ name: 'John', nickname: null, deletedAt: undefined })
|
|
31
|
+
// Is deletedAt undefined because not deleted, or because data is incomplete?
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Correct (using optional and nullable deliberately):**
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { z } from 'zod'
|
|
38
|
+
|
|
39
|
+
const userSchema = z.object({
|
|
40
|
+
name: z.string(),
|
|
41
|
+
|
|
42
|
+
// optional() - field might not exist in the object
|
|
43
|
+
nickname: z.string().optional(),
|
|
44
|
+
// Type: string | undefined
|
|
45
|
+
|
|
46
|
+
// nullable() - field must exist, but value can be null
|
|
47
|
+
deletedAt: z.date().nullable(),
|
|
48
|
+
// Type: Date | null
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
// Field can be omitted
|
|
52
|
+
userSchema.parse({ name: 'John', deletedAt: null }) // Valid
|
|
53
|
+
|
|
54
|
+
// Field must be present (even if null)
|
|
55
|
+
userSchema.parse({ name: 'John', nickname: 'Johnny' })
|
|
56
|
+
// ZodError: Required at "deletedAt"
|
|
57
|
+
|
|
58
|
+
// Correct usage
|
|
59
|
+
userSchema.parse({
|
|
60
|
+
name: 'John',
|
|
61
|
+
nickname: 'Johnny', // Or omit entirely
|
|
62
|
+
deletedAt: null, // Must be present, null means "not deleted"
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**When to use each:**
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
// optional() - field may not exist
|
|
70
|
+
// Use for: Optional form fields, sparse updates, optional config
|
|
71
|
+
z.object({
|
|
72
|
+
bio: z.string().optional(), // User might not have filled this
|
|
73
|
+
middleName: z.string().optional(), // Not everyone has one
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// nullable() - field exists but value can be null
|
|
77
|
+
// Use for: Database nullable columns, "cleared" values, explicit absence
|
|
78
|
+
z.object({
|
|
79
|
+
deletedAt: z.date().nullable(), // null = not deleted, Date = when deleted
|
|
80
|
+
parentId: z.string().nullable(), // null = root node, string = has parent
|
|
81
|
+
approvedBy: z.string().nullable(), // null = pending, string = approver
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
// nullish() - either undefined or null
|
|
85
|
+
// Use for: Lenient APIs, legacy data, optional nullable DB columns
|
|
86
|
+
z.object({
|
|
87
|
+
legacyField: z.string().nullish(), // string | null | undefined
|
|
88
|
+
})
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**API response patterns:**
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
// API includes null for "no value" (good for explicit absence)
|
|
95
|
+
const apiResponseSchema = z.object({
|
|
96
|
+
data: z.object({
|
|
97
|
+
user: z.object({
|
|
98
|
+
name: z.string(),
|
|
99
|
+
avatar: z.string().nullable(), // null = no avatar set
|
|
100
|
+
}).nullable(), // null = user not found
|
|
101
|
+
}),
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
// Type: { data: { user: { name: string; avatar: string | null } | null } }
|
|
105
|
+
|
|
106
|
+
// Partial updates send only changed fields
|
|
107
|
+
const updateSchema = z.object({
|
|
108
|
+
name: z.string().optional(), // Omitted = don't change
|
|
109
|
+
avatar: z.string().nullable().optional(), // null = clear avatar
|
|
110
|
+
})
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**When NOT to use this pattern:**
|
|
114
|
+
- When interacting with systems that treat null and undefined as equivalent
|
|
115
|
+
- When using nullish() for maximum flexibility is acceptable
|
|
116
|
+
|
|
117
|
+
Reference: [Zod API - optional/nullable](https://zod.dev/api#optional)
|