Skip to content
Back to skills

Regle Advanced

ASecurity

Advanced Regle form validation patterns — collection validation with `$each`, async rules and `$pending`, server/`externalErrors`, `$reset` options, global config with `defineRegleConfig`, discriminated-union variants, cross-component `useScopedRegle`/`useCollectScope`, `mergeRegles`, and object-level `$self`. Use for arrays of fields, async/server validation, scoped or merged forms, i18n messages, or variant forms. For schema libraries see regle-schemas.

  • 505 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
developmenttypescriptvue

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned August 31, 2026

npx -y skills add victorgarciaesgi/regle --skill regle-advanced --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regle Advanced?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Regle Advanced
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/victorgarciaesgi-regle-advanced/badge)](https://www.skillsdirectory.com/skills/victorgarciaesgi-regle-advanced)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: regle-advanced
description: Advanced Regle form validation patterns — collection validation with `$each`, async rules and `$pending`, server/`externalErrors`, `$reset` options, global config with `defineRegleConfig`, discriminated-union variants, cross-component `useScopedRegle`/`useCollectScope`, `mergeRegles`, and object-level `$self`. Use for arrays of fields, async/server validation, scoped or merged forms, i18n messages, or variant forms. For schema libraries see regle-schemas.
license: MIT
compatibility: Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.
metadata:
  author: Victor Garcia
  version: "1.27.0"
  source: https://reglejs.dev
---

# Regle Advanced Patterns

Advanced usage patterns for Regle form validation in Vue 3. Covers collections, async validation, server errors, reset options, global configuration, discriminated unions (variants), scoped validation, merging, and object-level self validation.

## Common Patterns

| Topic | Description | Reference |
|-------|-------------|-----------|
| Collections | `$each` for array validation, collection errors, custom keys | [common-collections](references/common-collections.md) |
| Async Validation | Async rules, `$pending` state, debouncing | [common-async-validation](references/common-async-validation.md) |
| Server Errors | `externalErrors`, dot-path errors, clearing errors | [common-server-errors](references/common-server-errors.md) |
| Reset Forms | `$reset` options: `toInitialState`, `toOriginalState`, `toState` | [common-reset-forms](references/common-reset-forms.md) |

## Advanced

| Topic | Description | Reference |
|-------|-------------|-----------|
| Global Config | `defineRegleConfig`, custom messages, i18n, global modifiers | [advanced-global-config](references/advanced-global-config.md) |
| Variants | `createVariant`, `narrowVariant`, discriminated unions | [advanced-variants](references/advanced-variants.md) |
| Scoped Validation | `useScopedRegle`, `useCollectScope`, cross-component validation | [advanced-scoped-validation](references/advanced-scoped-validation.md) |
| Merge Regles | `mergeRegles` to combine multiple form instances | [advanced-merge-regles](references/advanced-merge-regles.md) |
| Self Validation | `$self` for object-level cross-field validation | [advanced-self-validation](references/advanced-self-validation.md) |

## Related skills

- **regle** — form setup with `useRegle`, validation properties, displaying errors, modifiers.
- **regle-rules** — built-in/custom rules, wrappers, and operators.
- **regle-schemas** — Zod, Valibot, ArkType, and Standard Schema integration.
- **regle-typescript** — typing rules schemas and component props.

Files in this skill

  • SKILL.md2.7 KB
  • references/advanced-global-config.md2.6 KB
  • references/advanced-merge-regles.md1.2 KB
  • references/advanced-scoped-validation.md2.6 KB
  • references/advanced-self-validation.md1.3 KB
  • references/advanced-variants.md2.6 KB
  • references/common-async-validation.md1.6 KB
  • references/common-collections.md1.8 KB
  • references/common-reset-forms.md1.6 KB
  • references/common-server-errors.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.