Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers.

MITAuto-check passedFrontend & Design

Install Regle

skills CLI
$ npx skills add victorgarciaesgi/regle --skill regle -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install victorgarciaesgi/regle regle --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/victorgarciaesgi/regle.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/regle .claude/skills/regle && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
regle
GitHub stars
506
Token cost
~840 tokens
SKILL.md length
208 words
Files
5 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers.

  • Editing Regle forms
  • SKILL.md covers MCP Server, Quick Start, Key Concepts and Core, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Binding v-model to r$.$value

What it does

Regle is an agent skill from victorgarciaesgi/regle. Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers. Use when adding or editing Regle forms, binding v-model to r$.$value, or reading $error/$errors/$invalid/$validate/$reset. For validation rules see regle-rules; for advanced patterns see regle-advanced.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/core-displaying-errors.md`, `references/core-modifiers.md` and `references/core-use-regle.md`). Compatibility notes: Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.

It sits in Frontend & Design, covering Forms and validation. It works with Vue.js and Zod. The repository describes itself as: ✅ Headless form validation library for Vue.js. The licence is MIT.

When your agent uses it

  • Editing Regle forms
  • Binding v-model to r$.$value
  • Reading $error/$errors/$invalid/$validate/$reset

Example prompts

  • “/regle”

Requirements

  • Compatibility (from SKILL.md): Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.

What it can do on your machine

Read from SKILL.md and the folder at commit 9d69771. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json, typescript and vue).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.

    From compatibility in the SKILL.md frontmatter.

Context cost

Regle loads about 840 tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 208 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~840
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from victorgarciaesgi/regle at commit 9d69771, republished under its MIT licence (© victorgarciaesgi). 208 words, ~840 tokens.

Download SKILL.mdSave it as .claude/skills/regle/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
regle
description
Core Regle form validation in Vue 3 — setup with `useRegle`, the reactive `r$` object, validation properties, displaying errors, and modifiers. Use when adding or editing Regle forms, binding `v-model` to `r$.$value`, or reading `$error`/`$errors`/`$invalid`/`$validate`/`$reset`. For validation rules see regle-rules; for advanced patterns see regle-advanced.
compatibility
Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.
license
MIT
metadata.author
Victor Garcia
metadata.version
1.27.0
metadata.source
https://reglejs.dev

Regle

Regle is a type-safe, model-based, headless form validation library for Vue 3. It provides full TypeScript inference, reactive validation, and works with any UI framework or design system.

MCP Server

Regle provides an MCP server that can be used to get documentation and autocomplete for Regle. If it's available, use it to get up-to-date information on the API.

json
{
  "mcpServers": {
    "regle": {
      "command": "npx",
      "args": ["@regle/mcp-server"]
    }
  }
}

## Installation

```sh
# Core + built-in rules
pnpm add @regle/core @regle/rules

# Optional: schema support (Zod, Valibot, ArkType)
pnpm add @regle/schemas

Requires Vue 3.3+ and TypeScript 5.1+.

Quick Start

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

const { r$ } = useRegle(
  { name: '', email: '' },
  {
    name: { required, minLength: minLength(3) },
    email: { required, email },
  }
);
vue
<template>
  <input v-model="r$.$value.name" placeholder="Name" />
  <ul v-if="r$.$errors.name.length">
    <li v-for="error of r$.$errors.name" :key="error">{{ error }}</li>
  </ul>

  <button @click="r$.$validate()">Submit</button>
</template>

Key Concepts

  • State: first argument -- raw object, reactive, ref, or single value
  • Rules: second argument -- mirrors the data structure, each field gets a rules object
  • r$: returned reactive object with values, errors, dirty state, and validation methods
  • All rules are optional by default; add required to enforce a field

Core

TopicDescriptionReference
useRegleState definition, rules declaration, dynamic rules, r$ objectcore-use-regle
Validation Properties$invalid, $dirty, $error, $errors, $pending, $validate, $touch, $resetcore-validation-properties
Displaying ErrorsShowing errors, custom messages, getErrors, flatErrorscore-displaying-errors
ModifiersautoDirty, lazy, silent, rewardEarly, disabled, validationGroups, per-field modifierscore-modifiers
  • regle-rules — built-in rules, custom rules (createRule), rule wrappers (withMessage, withParams, withAsync), and rule operators (and, or, applyIf, assignIf).
  • regle-advanced — collections, async, server errors, reset, scoped validation, variants, global config.
  • regle-schemas — Zod, Valibot, ArkType, and Standard Schema integration.
  • regle-typescript — type-safe output, typing rules schemas and component props.

© victorgarciaesgi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/regle of victorgarciaesgi/regle.

  • SKILL.md
  • references/core-displaying-errors.md
  • references/core-modifiers.md
  • references/core-use-regle.md
  • references/core-validation-properties.md

Open the folder on GitHubat commit 9d69771

Compare with similar skills

Regle next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Regle compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Regle this skillvictorgarciaesgi/regle506—~840Automated safety check: PassMIT
Fa Form Builderfantastic-admin/basic3.4k—~670Automated safety check: PassMIT
Nuxt Code EditorCaoMeiYouRen/caomei-auth220—~437Automated safety check: PassMIT
JSON Render Catalogyonatangross/orchestkit292—~6.4kAutomated safety check: PassMIT
Buefy Vue UI Componentsbuefy/buefy9.5k—~8.2kAutomated safety check: PassMIT
Formkitformkit/formkit4.8k—~1.7kAutomated safety check: PassMIT

Similar skills

  • Fa Form Builder

    fantastic-admin/basic

    为 Fantastic-admin 框架生成独立的表单页面,使用 FaForm/FaFormItem + vee-validate + zod 验证,表单 model 使用 ref,全部使用框架内建 Fa 组件。当用户说:'帮我做一个用户信息填写页'、'我只需要一个提交表单,不需要列表'、'做个设置页面,有几个输入框和保存按钮'、'生成一个注册/编辑/配置表单页'、'只要表单页,不需要增删改查'…

    3.4k GitHub stars~670 tokensUpdated 10 days ago
    Frontend & DesignAuto-check passed
  • Nuxt Code Editor

    CaoMeiYouRen/caomei-auth

    设计或实现 Vue 3、Nuxt 组件、页面、样式、交互、表单、状态绑定与 i18n 文本时使用。负责前端界面与交互的完整实现流程(目标确认、结构设计、实现约束、视觉验证),并遵循项目标准(PrimeVue、SCSS BEM、@mdi/font、Zod)。用户提到 component、page、UI、frontend、form、responsive、SCSS、BEM、i18n、设计落地时都应触发。

    220 GitHub stars~437 tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed
  • JSON Render Catalog

    yonatangross/orchestkit

    json-render component catalog patterns for AI-safe generative UI.

    292 GitHub stars~6.4k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Rules for writing Vue 3 templates with Buefy components on Bulma CSS: install options, prop conventions, b-field wrapping, tables, theming and dialogs.

    9.5k GitHub stars~8.2k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Formkit

    formkit/formkit

    A skill your agent uses when working with FormKit forms, validation, schema, or custom inputs in React, Vue, or Nuxt projects.

    4.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • World Book Skill

    echo-xianyu/worldbook-skill

    Create and manage SillyTavern Character Cards (角色卡) and World Books (世界书).

    212 GitHub stars~1.8k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed

More from victorgarciaesgi/regle

All 9 skills in this repo
  • Regle Migrate Vuelidate

    victorgarciaesgi/regle

    Migrate Vuelidate form validation to Regle. An agent skill from victorgarciaesgi/regle.

    506 GitHub stars~752 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Rules

    victorgarciaesgi/regle

    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…

    506 GitHub stars~564 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Schemas

    victorgarciaesgi/regle

    Validate Regle forms with schema libraries via @regle/schemas — Zod, Valibot, ArkType, and any Standard Schema spec library using useRegleSchema, useRules, refineRules, and InferInput.

    506 GitHub stars~485 tokensUpdated 11 days ago
    Auto-check passed
  • TS Memory Baseline

    victorgarciaesgi/regle

    Measure and compare TypeScript memory usage for @regle/core and test typechecks.

    506 GitHub stars~785 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Advanced

    victorgarciaesgi/regle

    Advanced Regle form validation patterns — collection validation with $each, async rules and $pending, server/externalErrors, $reset options, global config with defineRegleConfig, discriminated-union…

    506 GitHub stars~683 tokensUpdated 11 days ago
    Auto-check passed
  • Code Review

    victorgarciaesgi/regle

    Mandatory pre-commit validation for every Copilot code review on pull requests in the regle monorepo.

    506 GitHub stars~470 tokensUpdated 11 days ago
    Auto-check passed

Works with

Questions about Regle

What does Regle do?

Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers. Regle is an agent skill from victorgarciaesgi/regle. Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers.

When should I use Regle?

Regle fits situations like: editing Regle forms; binding v-model to r$.$value; reading $error/$errors/$invalid/$validate/$reset.

How do I install Regle in Claude Code?

Run `npx skills add victorgarciaesgi/regle --skill regle -a claude-code`. Or copy the skill folder (skills/regle in victorgarciaesgi/regle) into .claude/skills/regle in your project. Claude Code loads it when a task matches its description.

How do I install Regle in Codex?

Run `npx skills add victorgarciaesgi/regle --skill regle -a codex`. Or copy the skill folder (skills/regle in victorgarciaesgi/regle) into .agents/skills/regle in your project. Codex loads it when a task matches its description.

Can I use Regle in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add victorgarciaesgi/regle --skill regle -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/regle, .gemini/skills/regle, .github/skills/regle and .opencode/skills/regle in your project.

What does Regle need to run?

SKILL.md names no scripts, command-line tools or credentials: Regle is instructions for the agent only. Compatibility (from SKILL.md): Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec..

Does Regle access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Regle safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Regle use?

Regle is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Regle use?

About 840 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.

What are the alternatives to Regle?

Skills that share tags, products or a category with Regle: Fa Form Builder (fantastic-admin/basic, 3.4k stars), Nuxt Code Editor (CaoMeiYouRen/caomei-auth, 220 stars), JSON Render Catalog (yonatangross/orchestkit, 292 stars) and Buefy Vue UI Components (buefy/buefy, 9.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Regle?

victorgarciaesgi (a GitHub user) maintains it in victorgarciaesgi/regle, which has 506 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 28, 2026.

Source: victorgarciaesgi/regle on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.