configure-cni-source
БесплатноБез исполняемых скриптовНе проверенConfigure a new document source for the Case Note Insights (CNI) pipeline — wiring both a doc store and extractor configs. Use when adding a new document…
от Recidiviz★ 48 звёзд на GitHubОб этом скилле
Configure CNI Source
Guide for adding a new document collection source to the Case Note Insights (CNI) pipeline. CNI uses LLMs to extract structured information (employment, housing, payment, etc.) from documents such as case notes.
A "source" is a state + document system combination — for example, Tennessee TOMIS case notes or Arizona supervision contact notes. This could be:
- A new state: the state has no CNI document collections yet
- A new system within an existing state: the state already has CNI collections for supervision case notes, but you want to add facilities case notes
When to use
Use this skill when wiring a new document collection to the CNI pipeline — including both creating the doc store config and configuring one or more extractor collections to process those documents.
Before starting — ask the user for these inputs
Prompt for each input sequentially. Ask one question, wait for the answer, then ask the next. Do not infer any of these.
Step A — State code Ask: "What is the state code? (e.g. US_TN)"
Step B — Extractor collections Ask: "Which extractor collections should be
configured for this source? (e.g. case_note_employment_info,
case_note_housing_info, case_note_payment_info)" — list the existing
collections by checking recidiviz/documents/config/extractor_collections/ and
present the options.
Note: This skill only wires an existing extractor collection to a new doc store. Creating a brand-new extractor collection type (new prompts, new output schema) is a separate process that must be completed first. If the user needs a collection that doesn't exist yet, flag it and pause — don't proceed until the new collection has been created.
Step C — State agency name Ask: "What is the full official name of the state agency?" — used in the extractor prompt.
Step D — Document orientation Ask: "How should we describe these documents to the model? (1–2 sentences about the source system and who writes them)"
Step E — Golden eval sheet URLs Ask: "Do you have golden eval Google Sheet URLs for each collection? Share whichever you have; I'll use a placeholder for any not yet ready."
Step F — Raw data tables After the state code is confirmed, read the raw
data config at recidiviz/ingest/direct/regions/{state_code_lower}/raw_data/ to
identify candidate tables that likely hold the documents. Present your findings
and ask the user to confirm which table(s) to use and which columns map to the
document text and any useful metadata. Do not write any query until the user
confirms.
Note: All doc stores and extractors created so far are for supervision case notes. Facilities case notes may or may not come from a different source — sometimes supervision and facilities notes live in the same raw table and are distinguished by a filter column; other times they come from entirely separate tables. Clarify the scope with the user before identifying candidate tables.
Step G — Document contents query Draft the BQ SQL that produces
(person_external_id, person_external_id_type, document_text, document_update_datetime)
based on the confirmed tables and columns. Show the draft to the user and ask
them to approve it before writing any files. Ask the user to confirm with the
implementation engineer for that state that the raw data table selection and
query logic are correct before you write any files.
Step H — Metadata columns Confirm which metadata columns (if any) to expose
alongside the document text. Do not add a date column if the datetime is
already captured by document_update_datetime — that column is a standard field
in every metadata table and can be used directly in the extractor filter as
DATE(document_update_datetime).
Files to create or modify
1. Doc store — recidiviz/documents/config/document_collections/{state_code_lower}/{collection_name}.yaml
Create this file. Use existing states as reference (e.g.
recidiviz/documents/config/document_collections/us_az/supervision_case_notes.yaml).
Required fields:
# yaml-language-server: $schema=./../../../store/yaml_schema/schema.jsonpragma at the toproot_entity_id_type: person_external_idmetadata_columns— only metadata genuinely useful for filtering or downstream analysis. Do not add a redundant date column whendocument_update_datetimealready captures it.query— the BQ SQL that produces the document rows. Read the raw table schemas before writing; do not guess column names.
2. Extractors — one per collection
These steps assume each extractor collection already exists. If a collection
directory doesn't exist under extractor_collections/, it must be created as a
separate effort before continuing here.
For each collection confirmed in Step B, create:
recidiviz/documents/config/extractor_collections/{collection}/{state_code_lower}/extractor.yaml
Required fields in each:
extractor_collect
Установить configure-cni-source в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл configure-cni-source?
Configure a new document source for the Case Note Insights (CNI) pipeline — wiring both a doc store and extractor configs. Use when adding a new document collection for a new state or a new document system within an existing state.
Как установить скилл configure-cni-source?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-cni-source запускает скрипты?
Нет, скилл состоит только из инструкций (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