law-mvt-research
БесплатноБез исполняемых скриптовНе проверенSearches for Memorie van Toelichting (explanatory memoranda) for a Dutch law and generates Gherkin test scenarios from legislature-intended examples. Use this…
от NederlandseDigitaleDienst★ 30 звёзд на GitHubОб этом скилле
Law MvT Research — Find Parliamentary Examples and Generate Gherkin Scenarios
Searches for Memorie van Toelichting documents and converts legislature-intended examples into Gherkin acceptance tests.
Setup
- Read the target law YAML file to extract
bwb_id, title, andvalid_from. Note its directory: scenarios live beside the law, and you will write there. - Read an existing feature file as Gherkin style reference:
corpus/regulation/nl/wet/participatiewet/scenarios/bijstand.feature
Step 1: Find MvT Documents
First ask law-wetsgeschiedenis which documents discuss the article you need
(toelichting <id> <nr>). It fetches and replays the Kamerdossier and hangs each
explanatory passage on its article and lid, with the Kamerstuk to cite, so you
start from the passages instead of a whole memorie. Fall back to the search
below when it cannot fetch the dossier, or when you need documents outside it.
Extract the bwb_id (e.g., BWBR0018451) from the law YAML's bwb_id field.
Search for related parliamentary documents using the overheid.nl SRU API at
repository.overheid.nl. URL-encode the whole query string before use.
The most productive search is by dossiernummer, which returns the complete
legislative file in one call (bill, MvT, every nota van wijziging, the Eerste
Kamer stukken). Find the dossier number from the title search below, or from the
citation Kamerstukken II ..., 29 762, nr. 3 if you already have one:
https://repository.overheid.nl/sru?operation=searchRetrieve&version=2.0
&query=(c.product-area==officielepublicaties) and (w.dossiernummer==29762)
&maximumRecords=100
When you do not know the dossier, search by title (dt.title is the working
index; dcterms.title is not):
https://repository.overheid.nl/sru?operation=searchRetrieve&version=2.0
&query=(c.product-area==officielepublicaties) and (dt.title any "{KEYWORD}")
&maximumRecords=100
Filter the results by reading <dcterms:title>, not by a type index: the
document kind is written into the title after a semicolon ("…; Memorie van
toelichting", "…; Nota van wijziging"). Filtering on dt.type returns zero
records even when matching documents exist, so it silently hides everything.
The fields that carry the useful metadata are <dcterms:title>,
<dcterms:identifier>, <dcterms:date> and <overheidwetgeving:dossiernummer>.
Collect all of these, since each may explain a different part of the law:
- Memorie van toelichting (explanatory memorandum)
- Nota naar aanleiding van het verslag (response to parliamentary report)
- Nota van wijziging (amendment note)
- Brief van de minister (ministerial letter with examples)
There may be multiple MvT documents (original + amendments). Collect all of them.
Do not use zoekservice.overheid.nl/sru/Search. That host now rejects every
x-connection value except cvdr and bwb, answering anything else with SRU
diagnostic info:srw/diagnostic/1/6 ("Unsupported parameter value"). It also has
no dcterms.references index, so a BWB-id search cannot be made to work there.
Error handling: If a search returns no results:
- Try the alternate query (dossier number vs title, or vice versa)
- Try broadening the title query (use fewer keywords)
- Try WebSearch as a fallback (e.g., search for
site:zoek.officielebekendmakingen.nl memorie van toelichting {law_title}) - If all searches fail, report "No MvT documents found" and proceed — this is not an error
Step 2: Download and Read MvT Content
For each found document, extract the document identifier from the search results.
The <dcterms:identifier> field contains the document identifier, but its format
varies. It may be:
- A full URI:
https://identifier.overheid.nl/BWBR/sgd/kst-36450-3 - A prefixed path:
/sgd/kst-36450-3 - A bare ID:
kst-36450-3
To extract the document ID: take the last path segment (split on /, take the
last non-empty part). For example, kst-36450-3 from any of the above formats.
Then use it to download the HTML version:
https://zoek.officielebekendmakingen.nl/{DOCUMENT_ID}.html
Do not use WebFetch for the document body. WebFetch returns a model's summary of the page, and a summary cannot be quoted: a paraphrase attributed to a real parliamentary document is a fabricated citation, and this corpus is published. Download the raw HTML instead and strip the tags yourself:
curl -s "https://zoek.officielebekendmakingen.nl/{DOCUMENT_ID}.html" -o {DOCUMENT_ID}.html
Then extract text locally (tags stripped, entities unescaped, whitespace
collapsed, nothing else). Every sentence you later quote must survive that path
literally. When a passage carries a table of worked examples, re-extract the
<table> markup cell by cell and reconcile it against the flattened text before
trusting any number: flattening a table can silently misalign rows against
values.
Note the source documents use guillemets («»)
Установить law-mvt-research в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashWebSearchWebFetchGrepGlobFAQ
Что делает скилл law-mvt-research?
Searches for Memorie van Toelichting (explanatory memoranda) for a Dutch law and generates Gherkin test scenarios from legislature-intended examples. Use this skill proactively when: user wants MvT-derived BDD scenarios, mentions "memorie van toelichting", "MvT", "parlementaire stukken", "rekenvoorbeelden", or "kamerstukken" in the context of Dutch law. Activate automatically when a new law YAML file is created and the user discusses testing or validation.
Как установить скилл law-mvt-research?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл law-mvt-research запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic