skilld-dev/vue-ecosystem-skills

vee-validate-skilld

Painless forms for Vue.js. ALWAYS use when writing code importing \"vee-validate\". Consult for debugging, best practices, or modifying vee-validate, vee validate.

First seen Feb 19, 2026

Installation

$ npx skills add skilld-dev/vue-ecosystem-skills --skill vee-validate-skilld

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from skilld-dev/vue-ecosystem-skills · top by installs.

npx skills add skilld-dev/vue-ecosystem-skills

Browse all from skilld-dev/vue-ecosystem-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 178
License LICENSE
Default branch main
Open issues 2
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version4.15.1
More metadata
version
4.15.1
generated_at
2026-04-20
references_synced_at
2026-04-20

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,944 B
  • docs SUMMARY.md 190 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 172 installs

SKILL.md

logaretm/vee-validate [email protected]

Tags: prev: 1.0.0-beta.10, next-edge: 4.5.0-alpha.2, edge: 4.5.0-alpha.6

References: [Docs](./references/docs/_INDEX.md)

API Changes

This section documents version-specific API changes for vee-validate v4.x — prioritize these over legacy patterns.

  • BREAKING: v-model support disabled by default in v4.10.0 for performance; enable via configure({ validateOnModelUpdate: true }) or per-field syncVModel [source](./references/releases/CHANGELOG.md)
  • NEW: defineField introduced in v4.9.0 — replaces defineComponentBinds and defineInputBinds for cleaner Composition API integration [source](./references/releases/CHANGELOG.md)
  • DEPRECATED: Reactive initial values deprecated in v4.12.0; use non-reactive objects or getters to prevent unintended sync [source](./references/releases/CHANGELOG.md)
  • NEW: useFormContext exposed in v4.14.0 for accessing form state in deeply nested components without manual injection [source](./references/releases/CHANGELOG.md)
  • NEW: setValue exposed on Field instances and slot props in v4.13.0 for manual value updates [source](./references/releases/CHANGELOG.md)
  • NEW: Composition setter hooks (useSetFieldValue, useSetFormValues, useSetFormErrors) added in v4.11.0 for external state management [source](./references/releases/CHANGELOG.md)
  • NEW: handleBlur accepts shouldValidate parameter since v4.10.0 to control validation triggers on blur events [source](./references/releases/CHANGELOG.md)
  • NEW: syncVModel accepts target model prop name as a string in v4.10.0 for custom model support [source](./references/releases/CHANGELOG.md)
  • NEW: isValidating state added to useForm and form slot props in v4.9.3 to track async validation status [source](./references/releases/CHANGELOG.md)
  • NEW: move(oldIdx, newIdx) added to FieldArray in v4.6.0 for reordering items within array fields [source](./references/releases/CHANGELOG.md)
  • NEW: Specialized state hooks (useIsFieldDirty, useIsFormValid, useFieldValue) added in v4.1.0 for granular state access [source](./references/releases/[email protected])
  • DEPRECATED: handleInput deprecated in v4.4.0; use handleChange for both input and change events [source](./references/releases/CHANGELOG.md)
  • NEW: label support in defineField added in v4.12.0 for consistent error message generation [source](./references/releases/CHANGELOG.md)
  • NEW: ResetFormOpts with force flag added to useResetForm in v4.13.0 to clear values without merging [source](./references/releases/CHANGELOG.md)

Also changed: defineComponentBinds deprecated · defineInputBinds deprecated · useFieldModel deprecated · unsetValueOnUnmount config added · keepValuesOnUnmount reactivity improved · useForm validate returns object · useResetForm hook added · nested field meta querying new v4.12.3

Best Practices

  • Prefer defineField() for binding components and inputs — returns a v-model ref and a props object for clean, non-deprecated binding [source](./references/docs/src/pages/api/use-form.mdx)
const [email, emailProps] = defineField('email', {
  validateOnBlur: true,
  props: state => ({ 'aria-invalid': !!state.errors.length })
});
  • Display errors conditionally using meta.touched — prevents "aggressive" validation where error messages appear before the user interacts with the field [source](./references/docs/src/pages/guide/best-practices.mdx)
  • Use toTypedSchema() for comprehensive TypeScript safety — wraps Yup, Zod, or Valibot schemas to differentiate between input (UI) and output (submitted) types [source](./references/docs/src/pages/guide/composition-api/typed-schema.mdx)
import { toTypedSchema } from '@vee-validate/zod';
import * as z from 'zod';

const { values } = useForm({
  validationSchema: toTypedSchema(z.object({ email: z.string().email() }))
});
  • Mark validation schemas as non-reactive — wrap schemas in markRaw or declare them outside of ref/reactive to avoid unnecessary deep reactivity overhead [source](./references/docs/src/pages/guide/best-practices.mdx)
  • Tree-shake schema validator imports — only import the specific functions you need (e.g., import { string } from 'yup') to keep bundle sizes to a minimum [source](./references/docs/src/pages/guide/best-practices.mdx)
  • Pass reactive field names as getters in useField — use a function (e.g., () => props.name) to ensure vee-validate tracks name changes in dynamic forms [source](./references/docs/src/pages/guide/composition-api/caveats.mdx)
  • Enable keepValuesOnUnmount for multi-step forms — preserves field state when components are hidden via v-if or tab switching [source](./references/docs/src/pages/guide/composition-api/nested-objects-and-arrays.mdx)
const { values } = useForm({
  keepValuesOnUnmount: true
});
  • Use field.key for stable iteration in v-foruseFieldArray provides unique identifiers that persist through array operations, unlike indices [source](./references/docs/src/pages/guide/composition-api/nested-objects-and-arrays.mdx)
  • Escape field names with [] to disable automatic nesting — wrap names (e.g., [user.name]) to treat dots as literal characters rather than object paths [source](./references/docs/src/pages/guide/composition-api/nested-objects-and-arrays.mdx)
  • Filter submission values with handleSubmit.withControlled() — ensures only fields explicitly registered via useField or defineField are included in the payload [source](./references/docs/src/pages/api/use-form.mdx)