law-reverse-validate

Validates that machine-readable YAML elements are grounded in original legal text.

20|4|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/MinBZK/regelrecht --skill law-reverse-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: law-reverse-validate
Source: https://github.com/MinBZK/regelrecht/tree/main/.claude/skills/law-reverse-validate
Command: npx skills add https://github.com/MinBZK/regelrecht --skill law-reverse-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that every element in machine_readable sections is grounded in the original legal text, preventing hallucinations and misinterpretations during law execution.

Core Features & Use Cases

  • Scope fidelity: checks that all inputs, definitions, and conditions strictly reference the article text they belong to.
  • Cross-law integrity: detects and flags cross-provision dependencies that violate source-based design.
  • Use Case: after generating or editing machine_readable YAML in regulation files, run this check to ensure every piece remains within the original article while producing a trustworthy execution model.

Quick Start

Run after editing machine_readable sections to verify every element traces to the original text.

Frequently Asked Questions about law-reverse-validate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate machine_readable law sections against original legal text?

Validating machine_readable law sections involves checking that every element is grounded in the original article text to prevent hallucinations. This process enforces scope fidelity, verifies correct source references, and ensures alignment with article boundaries during corpus generation or YAML auditing.

What causes hallucinations in machine_readable regulation YAML?

Hallucinations in machine_readable regulation YAML occur when generated elements lack grounding in the original legal text. This happens during corpus generation or editing when inputs, definitions, or conditions drift beyond their intended article boundaries or violate source-based design dependencies.

When should I audit machine_readable legal data for scope fidelity?

Auditing machine_readable legal data for scope fidelity should occur after creating or editing machine_readable sections, during corpus generation, or when auditing YAML data for legal accuracy. This ensures every element traces correctly to the original article text.

How do I detect cross-provision dependencies in machine_readable law?

Detecting cross-provision dependencies in machine_readable law requires checking that all inputs, definitions, and conditions strictly reference their parent article text. The validation process flags cross-law dependencies that violate source-based design principles.

Can I use source-grounding validation for existing legal YAML files?

Source-grounding validation can be applied to existing legal YAML files during auditing tasks. It checks that every machine_readable element traces to the original article text, enforcing correct use of source references and alignment with article boundaries.

What are the limitations of validating machine_readable law against source text?

Validation of machine_readable law against source text is limited to checking scope fidelity, source reference correctness, and article boundary alignment. It does not generate new content but verifies existing machine_readable sections remain grounded in the original legal text.