reference-and-concept-hygiene
БесплатноБез исполняемых скриптовНе проверенBuilds and audits a concept-ontology for a regelrecht corpus to decide and verify reference types — cross-law source-binding vs intra-law source-binding vs…
от NederlandseDigitaleDienst★ 30 звёзд на GitHubОб этом скилле
Cross-law Concept & Binding Ontology
Two recurring questions in a cross-law model: (1) what reference type should a value be — a cross-law source-binding, an intra-law source-binding, an open-norm leaf, or an external-fact leaf — and (2) is a given binding sound, given that the same term can denote a different concept in a different law. This skill answers both by building a concept-ontology and auditing references against it.
Core principle — type follows derivation, soundness follows concept identity
The reference type of a modeled value is fixed by who derives it. A source-binding is sound only when the producer and the consumer denote the same concept. The lexical surface — the word in the
text:— is not the concept: two laws can use one word for different concepts (false friends), or different words for one concept (synonyms). The engine runs a conflated binding without complaint; only concept analysis catches it.
Reference-type decision procedure
For each modeled value, ask in order:
- Does another regulation derive it (an endpoint computes it)? → cross-law source-binding.
- Does the same regulation derive it in another article? → intra-law source-binding.
- Does the law delegate the determination to a factual or discretionary judgment ("naar de omstandigheden te beoordelen", "naar het oordeel van", "zo nodig geschat" — an open norm)? → open-norm leaf (an injected judgment; the legislator opened the slot).
- Brute fact that no regulation derives and the law does not delegate as an open norm? → external-fact leaf.
Anti-patterns to flag:
- Orphan plain-param — a value that a regulation actually derives (1 or 2) modeled as a brute input. Smell: a leaf whose name matches an existing endpoint, or a value the text grounds in "vastgesteld op grond van [andere regeling]".
- Negation/complement re-entry — a value that is the logical complement of an existing determination (¬X) modeled as an independent leaf, so the model permits X ∧ ¬X. Derive it from the single determination instead.
The ontology — cluster by concept, not by word
The discriminator is the determination-mode, not the lexeme. For each term the corpus reckons with, tag its mode:
- computed-rule — derived by an endpoint;
- register/administrative — an inschrijving in a register; a formal act;
- factual open-norm — "naar de omstandigheden"; a weging of facts;
- composite — a status = a factual core + a qualifier (e.g. lawful-X = factual-X + a legality predicate);
- brute fact.
Then cluster surface forms into canonical concepts by mode + legal referent, not by spelling:
- False friends — one lexeme, different concepts. A residence/ingezetene term that is register-based in statute A but a factual "naar de omstandigheden"-weging in statute B is a different concept. Binding A's predicate to B's endpoint is a conflation even though the words match and the engine runs.
- Synonyms — different lexemes, one concept → a binding is appropriate.
- Composites — never bind a composite to one of its parts (lawful-resident ↛ factual-resident); decompose into the part-bindings.
Binding-soundness audit
For each existing source-binding P (law A) ← E (law B):
- Same canonical concept (mode + referent)? If not → CONFLATION (false friend); flag.
- Is the consumer a composite and the producer one of its parts (or vice versa)? → PART/WHOLE mismatch; decompose.
Across the corpus:
- Is one concept re-entered as several independent leafs? → DUPLICATION; lost single-source-of-truth and lost mutual-exclusion invariant. Derive the rest from one determination.
- Does a plain-param correspond to something a regulation derives? → ORPHAN; rebind.
Classification of each finding
| Bucket | Meaning | Action |
|---|---|---|
| structural-fix | the reference type or binding is mechanically wrong vs the derivation/concept facts | rebind / derive from one source / decompose |
| concept-question (jurist) | whether two concepts are legally equivalent is a normative call (e.g. "do we accept a register as proxy for a factual open norm?") | jurist decides; document the proxy-with-rationale or reject |
| accept-with-rationale | a deliberate proxy (e.g. a register as best machine-readable indicator of a factual norm) | keep — but model the register as an indicator that feeds the open-norm weging, never as its silent replacement; annotate |
Cardinal rule: a register may inform a factual open-norm determination but must not silently replace it — that substitution is the canonical conflation (mirrors the standard "naar de omstandigheden te beoordelen" + "een enkele inschrijving is niet voldoende"-doctrine). Keep the model symmetric: if one side of a stelsel models a concept factually, the mirror side must too, unless a documented decision sa
Установить reference-and-concept-hygiene в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashGrepGlobWebFetchWebSearchAskUserQuestionFAQ
Что делает скилл reference-and-concept-hygiene?
Builds and audits a concept-ontology for a regelrecht corpus to decide and verify reference types — cross-law source-binding vs intra-law source-binding vs open-norm leaf vs external-fact leaf — and to catch concept conflation across laws. Core principle: a value's reference type is fixed by WHO derives it, and a binding is sound only when producer and consumer denote the SAME concept; the lexical surface (the word in the text) is not the concept. Detects false friends (one term, different concepts — e.g. a register-based vs a factual "naar de omstandigheden"-based residence/ingezetene concept), orphan plain-params (a value a regulation actually derives, modeled as a brute input), negation/complement re-entry (¬X modeled as an independent leaf next to X), and duplication (one concept re-entered as several independent leafs, losing the single-source-of-truth invariant). Produces a law-level glossary and a stelsel-level concept map with sound same-concept binding edges and flagged lexical-match-but-concept-mismatch edges. Use when deciding whether a value should be cross-law/intra-law/leaf, when the same term means different things across laws, or when a binding might silently conflate concepts.
Как установить скилл reference-and-concept-hygiene?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл reference-and-concept-hygiene запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic