victorgarciaesgi/regle

regle-typescript

TypeScript integration for Regle — type-safe validated output (`InferSafeOutput`, `$validate`), inferring state from rules (`InferInput`), typing computed rules (`inferRules`, `RegleComputedRules`), and typing component props (`InferRegleRoot`, `RegleRoot`, `RegleFieldStatus`, `SuperCompatibleRegleRoot`).

First seen Feb 9, 2026

Installation

$ npx skills add victorgarciaesgi/regle --skill regle-typescript

Summary

  • TypeScript integration for Regle — type-safe validated output (`InferSafeOutput`, `$validate`), inferring state from rules (`InferInput`), typing computed rules (`inferRules`, `RegleComputedRules`), and typing component props (`InferRegleRoot`, `RegleRoot`, `RegleFieldStatus`, `SuperCompatibleRegleRoot`).
  • Use when typing rules schemas, passing `r$` between components, or extracting validated data types.

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

npx skills add victorgarciaesgi/regle

Browse all from victorgarciaesgi/regle

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 502
License LICENSE
Default branch main
Open issues 12
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.27.0
LicenseMIT
CompatibilityRequires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.
More metadata
author
Victor Garcia
version
1.27.0
source
https://reglejs.dev

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,142 B
  • docs SUMMARY.md 432 B

History

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

SKILL.md

Regle TypeScript

Regle provides first-class TypeScript support with full type inference. This skill covers type-safe validation output, typing rules schemas, and typing component props.

Key Exports

Export Package Purpose
InferInput @regle/core Infer state type from rules
InferSafeOutput @regle/core Infer validated output type from r$
inferRules @regle/core Preserve autocompletion in computed rules
RegleComputedRules @regle/core Type helper for explicit rule typing
InferRegleRoot @regle/core Extract r$ type from a composable
RegleFieldStatus @regle/core Type for a single field status prop

References

Topic Description Reference
Type Safe Output $validate return types, InferSafeOutput [typescript-type-safe-output](references/typescript-type-safe-output.md)
Typing Rules inferRules, RegleComputedRules, nested properties [typescript-typing-rules](references/typescript-typing-rules.md)
Typing Props InferRegleRoot, RegleFieldStatus, typing component props [typescript-typing-props](references/typescript-typing-props.md)

Related skills

  • regle — form setup with useRegle, validation properties.
  • regle-rulesinferRules is used when typing computed rule objects.
  • regle-advanced — scoped validation and patterns where typed props matter.