skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
victorgarciaesgi/regle86 installs

regle-rules

Regle validation rules — built-in rules from `@regle/rules`, custom rules with `createRule`, rule wrappers (`withMessage`, `withParams`, `withAsync`, `withTooltip`), and rule operators (`and`, `or`, `xor`, `not`, `applyIf`, `assignIf`, `pipe`). Use when declaring, customizing, composing, or conditionally applying validation rules in a Regle form. For form setup see regle.

How do I install this agent skill?

npx skills add https://github.com/victorgarciaesgi/regle --skill regle-rules
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides comprehensive documentation and implementation examples for Regle, a validation library for Vue 3. It covers built-in rules, custom rule creation, and rule composition techniques without any security risks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Regle Rules

Validation rules for Regle. Rules come from @regle/rules, but you can also write your own with createRule, customize them with wrappers, and combine them with operators.

import { useRegle } from '@regle/core';
import { required, email, minLength } from '@regle/rules';

const { r$ } = useRegle(
  { email: '' },
  { email: { required, email, minLength: minLength(5) } }
);

Key Concepts

  • All rules are optional by default; add required to enforce a field.
  • Built-in rules are imported from @regle/rules; some are factories that take parameters (e.g. minLength(3)).
  • Custom rules use createRule for reusability, or an inline function for one-offs.
  • Wrappers adapt an existing rule (message, params, async, tooltip) without rewriting it.
  • Operators combine or conditionally apply rules.

References

TopicDescriptionReference
Built-in RulesAll validation rules from @regle/rulesrules-built-in
Custom RulesInline rules, createRule, reactive parameters, async rules, metadatarules-custom
Rule WrapperswithMessage, withParams, withAsync, withTooltip, chainingrules-wrappers
Rule Operatorsand, or, xor, not, applyIf, assignIf, piperules-operators

Related skills

  • regle — form setup with useRegle, validation properties, displaying errors, modifiers.
  • regle-typescript — typing rules schemas with inferRules and RegleComputedRules.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/victorgarciaesgi/regle/regle-rules">View regle-rules on skillZs</a>