law-version-drift-check
БесплатноБез исполняемых скриптовНе проверенDetects version drift between machine-readable law YAML files and the binding geldende wettekst on wetten.overheid.nl at the YAML's claimed valid_from…
от NederlandseDigitaleDienst★ 30 звёзд на GitHubОб этом скилле
Law Version Drift Check — Step 0 of every micro-cycle
Detects whether a YAML's text: blocks (and adjacent fields) match the binding
geldende wettekst at the version the YAML claims to represent. The failure this
skill catches is silent: a file passes schema-validation, hallucination-checks
and BDD tests while its content is from an older version of the law. Every
downstream review (wetgevings-fouten, modellering-fouten, untranslatables) then
mis-classifies bevindingen until the drift is closed.
This skill belongs in the desk-layer (regelrecht-stelselanalyse) and runs
before every other review-as.
Core principle — verbatim spiegelregel
De feitelijk geldende wettekst is leidend. Fouten in de wet worden feitelijk overgenomen. Geen "soll"-fietsen.
The YAML's text: block must equal the geldende wettekst character-for-character.
There is one allowed normalization, defined below; every other deviation is
drift, regardless of who is "right". Errata, redactionele oddities, dode
verwijzingen — all preserved verbatim in the YAML. If the wet contains a fout,
the wet itself is the carrier; the YAML mirrors it. A wetgevings-fout (4-weg
klasse 2) is reported to the wetgever separately; it is never silently "corrected"
in the YAML.
The one allowed normalization
|- block scalars in YAML wrap long sentences at ~N characters for editor
readability; wetten.overheid.nl wraps based on its own rendering. Within a single
paragraph, multiple whitespace and intra-paragraph line breaks collapse to a
single space before comparison. Between paragraphs (between leden, between
onderdelen, between verbatim-blocks) structure is preserved exactly.
Anything else — diacritics, quote glyphs («» vs "), capitalization, word
order, punctuation — is part of the law's substance and any deviation is drift.
Position: Step 0 of regelrecht-stelselanalyse
This skill is a hard prerequisite for every micro-cycle. Without a CLEAN (or scope-restricted) drift-report, no YAML edit may be made.
Rationale: drift silently mis-classifies findings across the 4-weg-classificatie:
- A claim "the YAML says X but the wet says Y" is a wetgevings-fout only if the geldende wet truly says Y. If Y had already been changed by a Stb. that was not ingeharvest, the same finding is in fact a modellering-fout (drift). Confusing the two breaks the 4-weg discipline that the cycle relies on.
Strict by design: no bypass parameter, no "this cycle is just docs" escape. If a cycle is purely docs and not touching YAMLs, it doesn't reach Step 0 — the trigger is "about to edit a regulation YAML".
Verdict per article — two axes
| Structural | Textual | Verdict |
|---|---|---|
| match | match | CLEAN |
| match | diff | DRIFT-tekst (with word-level sub-diff) |
| mismatch | (skipped) | DRIFT-structureel (with the missing/extra item named) |
| (any) | not fetchable | NIET-VERIFIEERBAAR (after retry + Staatsblad-fallback) |
Structural axis (assessed first): count of leden, ordered list of onderdeel- letters per lid, alinea-count per lid. A mismatch here is decisive — skip textual, report the missing/extra element by name. This is the axis that catches the most costly drift type: an entire missing onderdeel or lid (a downstream wijziging that was never harvested).
Textual axis: per-paragraph word-level diff after applying the single allowed whitespace normalization. The output is a unified diff at word granularity for every paragraph that differs.
Procedure
1. Inventory the target file
Extract from the YAML:
bwb_id,valid_from- per article:
number,text:block (the literal string after|-),url: - corpus-level: every
competent_authority.namereferenced anywhere in the file
2. Structural inventory from the geldende text
For each article, fetch the structural skeleton at
https://wetten.overheid.nl/<bwb_id>/<valid_from>#Artikel<N>.
Force enumeration in the prompt. Summary-style prompts produce text that looks complete while quietly dropping the last onderdeel. Required form:
"List the structural skeleton of artikel N at this version: number of leden, for each lid the ordered list of onderdeel-letters (a, b, c, …), and the last letter present. Do not paraphrase, do not omit any onderdeel."
Two independent calls per article (different phrasings) and compare; a disagreement is treated as a fetch reliability problem and triggers Staatsblad- fallback for that article.
3. Calibration ijkpunten — verplicht
Before any drift-report is emitted, the skill must independently re-find a set
of pre-recorded known drifts for the corpus under review. The ijkpunten file
lives in the corpus (docs/drift-ijkpunten.md or equivalent), not in this
skill, so the skill stays dossier-agnostic.
If calibration fails to recall ≥ 80% of known drifts: WebFetch is not reliable for this run. Retry with stricter prompts; on a second failure, fall
Установить law-version-drift-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashGrepGlobWebFetchWebSearchAskUserQuestionВложенные файлы
FAQ
Что делает скилл law-version-drift-check?
Detects version drift between machine-readable law YAML files and the binding geldende wettekst on wetten.overheid.nl at the YAML's claimed valid_from. Catches the silent failure where authored content lags behind ingevoerde wijzigingen — a YAML dated 2025-01-01 still carrying pre-Stb.-X text. Activate as Step 0 of every regelrecht-stelselanalyse micro-cycle, before any YAML edit. Strict by design: no bypass, no normalization beyond whitespace within a single paragraph; the geldende wettekst is leading and is mirrored verbatim, including errata. Use proactively when starting a stelselanalyse cycle, before harvest/migrate/extend, or when user mentions "drift", "versie", "geldende tekst", or worries that a YAML may be stale relative to wetten.overheid.nl.
Как установить скилл law-version-drift-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл law-version-drift-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic