Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

law-generate

БесплатноЗапускает вложенные скриптыНе проверен

Generates machine_readable execution logic for Dutch law YAML files: writes the machine_readable sections, validates against the schema, and (when a shell is…

NederlandseDigitaleDienstот NederlandseDigitaleDienst★ 30 звёзд на GitHub

Об этом скилле

Law Generate

Writes machine_readable sections for Dutch law YAML files against schema/latest/schema.json. The schema is the single source of truth and just validate is the arbiter. When in doubt, read the schema.

Text before intent

The specification describes what the legal text says, not what the legislature meant. You translate the words in the text field of the entry you are working on. Nothing else.

The mistake comes from reading the article well. You will see which outcome is evidently intended, and model the shortest route to that outcome. That route is almost always simpler than the text, and it is almost always wrong: it drops a condition the text states, or supplies one the text does not, and the model then produces the right answer for the wrong reason until a case arrives where the intent and the text part ways.

So no shortcuts and no repair of a provision that reads badly. When faithfulness to the text yields something other than what was evidently intended, that is the correct result, and one this corpus is meant to make visible. Record it and move on. Where the text genuinely cannot be followed, say so with a marking or an open term, both described below, and never by quietly modelling the intent instead.

Setup

  1. Read the target law YAML file.
  2. Read reference.md (schema shapes) and examples.md (worked patterns) in this skill directory.
  3. Count the entries. Over 20, work in batches of roughly 15. This does not apply when the prompt names the entries: then that list is the batch.

Do not read another corpus law as a template. The existing corpus predates several of the rules below and copying its habits reproduces its defects; examples.md has the patterns that are current.

The entries you were given

When the prompt names entry numbers, that list is your entire scope. Leave every entry outside it untouched, including one that plainly needs work.

The length of the list says which kind of run this is, and the two ask different things of you.

Several entries is a window of a walk through the law. A run before this one took the entries above and a run after it takes the ones below. Covering the window is the assignment: every entry in the list is answered, with a model, a marking, an open term or a declaration, and none is passed over. The worker measures progress inside the window and rejects a run that shows none.

One entry is targeted work, and there is no walk. No later run picks up the rest, and the entry was named because something specific is wanted from it: an article a waiting root needs, an article whose open term a newly harvested regulation now fills, or an entry that came back wrong. Coverage of the law is not the assignment here. Judge what the entry needs from the entry, report on it alone, and do not list what other entries still lack: that reads as work someone forgot rather than work nobody asked for.

Scope

Each machine_readable interprets ONLY the text of its own entry.

Do not pull anything in. No conditions from other articles, no hardcoded values that another provision sets, no "obvious" requirement the text does not mention, no merging of two leden the text keeps apart. If article 2 grants an entitlement and the age requirement sits in article 11 of another law, article 2 gets a cross-law input, not an inline leeftijd >= 18.

And do not leave a condition unconnected. This half is easier to forget, and it is the half this corpus gets wrong. If your entry produces an output that expresses a restriction (an age test, an asset test, an insurance requirement), some entry has to read it. Where the restriction belongs to the entitlement in this entry, this model reads it. Where it belongs elsewhere, the entry that grants the entitlement reads it across a source binding, and that is not a scope violation: the condition it then applies is "geen aanspraak op grond van artikel 3", which its own text does refer to.

An output that nothing consumes restricts nothing, however cautious it looks. Measured on the zorgtoeslag in round 3: the age test of article 1 and the asset test of article 3 were both produced and neither was ever read. The model granted the allowance to a sixteen-year-old and to a millionaire, and every individual article looked correct.

Binding to an entry outside your scope is allowed and expected, in a window run and in a targeted one alike. Editing your own entry to add a binding is not editing another entry.

The law may be inefficient, redundant or circular. Model it as written.

Aanhef and onderdelen

An aanhef with its onderdelen is one norm spread over several entries. The corpus splits below article level. A lid with an enumeration is stored as one entry for the aanhef (3.2) and one per onderdeel (3.2.a to 3.2.f), each with its own text and its own place for a machine_readable. Neither entry states a rule on its own.

**The model for such a lid goes on the aanhef

Полный SKILL.md на GitHub

Установить law-generate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Edit
Write
Bash
Grep
Glob

Вложенные файлы

examples.mdreference.mdscripts/batch_validate.shscripts/extract_operations.pyscripts/migrate_v04_to_v05.pytesting.md

FAQ

Что делает скилл law-generate?

Generates machine_readable execution logic for Dutch law YAML files: writes the machine_readable sections, validates against the schema, and (when a shell is available) runs the BDD suites until the model is correct. Use this skill proactively when: editing or creating machine_readable sections in law YAML files, working with corpus regulation files, or when user mentions 'generate', 'machine_readable', or wants to make a law executable. Activate automatically when user discusses law YAML files that need executable logic.

Как установить скилл law-generate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл law-generate запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить law-generate с