Agent skill

Regle Rules

by victorgarciaesgi in 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…

MITAuto-check passed

Install Regle Rules

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

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

GitHub CLI
$ gh skill install victorgarciaesgi/regle regle-rules --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-rules .claude/skills/regle-rules && 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-rules
GitHub stars
506
Token cost
~564 tokens
SKILL.md length
147 words
Files
5 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

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…

  • Conditionally applying validation rules in a Regle form
  • SKILL.md covers Key Concepts, References and Related skills
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Regle Rules is an agent skill from 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, applyIf, assignIf, pipe). Use when declaring, customizing, composing, or conditionally applying validation rules in a Regle form. For form setup see regle.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/rules-built-in.md`, `references/rules-custom.md` and `references/rules-operators.md`). Compatibility notes: Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.

It works with Vue.js. The repository describes itself as: ✅ Headless form validation library for Vue.js. The licence is MIT.

When your agent uses it

  • Conditionally applying validation rules in a Regle form

Example prompts

  • “/regle-rules”

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 typescript).

    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 Rules loads about 564 tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 147 words of instructions outside code blocks.

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

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). 147 words, ~564 tokens.

Download SKILL.mdSave it as .claude/skills/regle-rules/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
regle-rules
description
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.
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 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.

ts
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
  • regle — form setup with useRegle, validation properties, displaying errors, modifiers.
  • regle-typescript — typing rules schemas with inferRules and RegleComputedRules.

© 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-rules of victorgarciaesgi/regle.

  • SKILL.md
  • references/rules-built-in.md
  • references/rules-custom.md
  • references/rules-operators.md
  • references/rules-wrappers.md

Open the folder on GitHubat commit 9d69771

Compare with similar skills

Regle Rules 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 Rules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Regle Rules this skillvictorgarciaesgi/regle506—~564Automated safety check: PassMIT
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
GSAP Core Animationgreensock/gsap-skills16k4 repos~3.7kAutomated safety check: PassMIT
GSAP in Vue, Nuxt and Sveltegreensock/gsap-skills16k4 repos~2.6kAutomated safety check: PassMIT
Vuetify Playgroundvuetifyjs/vuetify41k—~730Automated safety check: PassCustom licence
Inertia Vue Developmentanonaddy/anonaddy4.9k3 repos~3.4kAutomated safety check: PassMIT

Similar skills

  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • GSAP Core Animation

    greensock/gsap-skills

    Covers the GSAP core API for tweens, easing, staggers, defaults and matchMedia, and when to choose GSAP over CSS animations or other JavaScript animation libraries.

    16k GitHub starsUsed in 4 repos~3.7k tokens
    Frontend & DesignAuto-check passed
  • GSAP in Vue, Nuxt and Svelte

    greensock/gsap-skills

    Shows how to use GSAP in Vue, Nuxt, Svelte and other lifecycle-based frameworks: create after mount, scope selectors to the component, and revert on unmount.

    16k GitHub starsUsed in 4 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Vuetify Playground

    vuetifyjs/vuetify

    Maintains the Vuetify repo's local Playground.vue so contributors get a realistic reproduction and a short demo they can paste into a pull request description.

    41k GitHub stars~730 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Inertia Vue Development

    anonaddy/anonaddy

    Develops Inertia.js v3 Vue client-side applications. An agent skill from anonaddy/anonaddy.

    4.9k GitHub starsUsed in 3 repos~3.4k tokens
    Auto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed

More from victorgarciaesgi/regle

All 9 skills in this repo
  • Regle

    victorgarciaesgi/regle

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

    506 GitHub stars~840 tokensUpdated 11 days ago
    Auto-check passed
  • 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 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 Rules

What does Regle Rules do?

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…. Regle Rules is an agent skill from 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, applyIf, assignIf, pipe).

When should I use Regle Rules?

Regle Rules fits situations like: conditionally applying validation rules in a Regle form.

How do I install Regle Rules in Claude Code?

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

How do I install Regle Rules in Codex?

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

Can I use Regle Rules 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-rules -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-rules, .gemini/skills/regle-rules, .github/skills/regle-rules and .opencode/skills/regle-rules in your project.

What does Regle Rules need to run?

SKILL.md names no scripts, command-line tools or credentials: Regle Rules 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 Rules 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 Rules 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 Rules use?

Regle Rules 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 Rules use?

About 564 tokens (SKILL.md is roughly 2.3k 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 3.2k tokens, read only when the agent opens those files.

What are the alternatives to Regle Rules?

Skills that share tags, products or a category with Regle Rules: Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), GSAP Core Animation (greensock/gsap-skills, 16k stars), GSAP in Vue, Nuxt and Svelte (greensock/gsap-skills, 16k stars) and Vuetify Playground (vuetifyjs/vuetify, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Regle Rules?

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.