law-reverse-validate
БесплатноБез исполняемых скриптовНе проверенPerforms a hallucination check on machine_readable sections by verifying every element traces back to the original legal text. Use this skill proactively…
от NederlandseDigitaleDienst★ 30 звёзд на GitHubОб этом скилле
Law Reverse Validate, the hallucination check
Verifies that every element in a machine_readable section traces back to the
legal text of its own entry. This catches invented logic, phantom
conditions and bindings to outputs that do not exist.
The text is the standard. A model that reaches the evidently intended outcome by a route the words do not describe is a finding, and one that survives review longest, because the answer looks right.
Scope, both directions
Each machine_readable interprets ONLY the text of its own entry. Two opposite
failures follow, and the second one gets missed more often.
Leaked in. A condition, threshold or value from another provision,
reimplemented here instead of referenced. Flag it: the correct mechanism is an
input with source.regulation or source.output, an open_term for a value
the law leaves open, or hooks/overrides for reactive interaction. Also flag a
legal_character that does not match what the entry does, such as BESCHIKKING
on a norm article that only sets an amount.
Left unconnected. An output that restricts an entitlement and that nothing in this file reads. A restriction nothing reads does not restrict. A scope violation makes a model too strict in the wrong place, a dangling restriction makes it too generous everywhere, so the two rank equally.
Check it by listing every boolean output whose name starts with geen_, niet_,
is_uitgesloten, voldoet_aan, or that a markings.target entry names, and
finding its reader. An overrides block counts as a reader only when its
article field is the number of the producing entry exactly as this file
writes it. In round 3 four of five overrides pointed at "2", "3" and "7"
while the producers are stored as 2.1, 3.1 and 7.3, so nothing fired and
the halving in article 2, fourth lid never happened.
Procedure
Read the target law YAML.
For every entry with a
machine_readable, read thetextfield first: that text is the scope. Then check every element against it:- each
input,parameteranddefinition: is it in this text? - each
actionand operation: does this text describe this logic? - each comparison value: does this text state this threshold or amount?
- each
source: does this text refer to that law or that article, and does the binding resolve (see below)? - each
open_termsentry: does this text leave the content open? - each
markingsentry: see the marking checks below. - each
overridesentry: does this text say "in afwijking van", "onverminderd", "blijft buiten toepassing" or "met dien verstande"? A second sentence that adds a ground is not a derogation. - each
hooksentry: does this text describe a rule triggered by a lifecycle event ("na bekendmaking", "bij bezwaar")? - each
declaresentry: does this text fix that document property? - each
endpoint: is there a reason for external callability?
- each
Classify:
| Traceable in THIS entry's text? | Needed for logic? | Action |
|---|---|---|
| YES | YES | Keep |
| YES | NO | Keep (informational) |
| NO, but in another provision | YES | Scope violation: refactor to a source reference |
| NO | YES | Report as assumption |
| NO | NO | Remove |
| Produced here, restricting, read by nothing | (any) | Dangling restriction: bind it from the entry whose outcome it restricts |
- Remove what has to go, collect the assumptions for the report.
- Re-run
just validate <file>after any removal. Removing an element can break a required field or leave a dangling$variable. Fix that before reporting.
Cross-law binding check
A source: binding is a factual claim: the target regulation produces this
output. A binding to an output that does not exist is a hallucination of the same
kind as a fabricated article reference, and it hides better, because the YAML is
schema-valid and the name looks plausible.
For every source: { regulation, output }:
- Does the target law YAML exist in
corpus/regulation/nl/...? - Does the named output really occur there, as an
- output:in some entry?
A dangling binding is a modelling error, never an engine limitation. Fix the output name, or add the output to the target law on the entry that should own it. Never downgrade the binding to a plain parameter to make the error disappear: that hides the gap instead of closing it.
A binding to a law that has not been harvested yet is not a finding. The binding is correct and it says where the answer has to come from. Whether the regulation is in the corpus is a state of the corpus, tracked by the resolve step (RFC-029), and it does not belong in the law file. Report it as harvest work, not as a defect in the model.
Marking checks
Markings say the format cannot express a construct. Five things go wrong.
A marking standing in for an open term. "Zo spoedig mogelijk", "onverwijld",
Установить law-reverse-validate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditBashGrepGlobFAQ
Что делает скилл law-reverse-validate?
Performs a hallucination check on machine_readable sections by verifying every element traces back to the original legal text. Use this skill proactively when: machine_readable sections have been generated or modified, after /law-generate completes, when reviewing corpus YAML files for legal accuracy, or when user mentions "validate", "verify", or "hallucination check" for law YAML files. Activate automatically after editing machine_readable sections in corpus regulation YAML files.
Как установить скилл law-reverse-validate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл law-reverse-validate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic