Command Palette

Search for a command to run...

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

classification-ingest-gaps

БесплатноБез исполняемых скриптовНе проверен

Build a report of what a state needs to ingest before the classification diagnosis metrics work for it (the Initial Diagnosis tab of Looker dashboard 319, the…

Recidivizот Recidiviz★ 48 звёзд на GitHub

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

Classification ingest gaps

Produces one published HTML report per state, in exactly the format of example_us_az.html in this directory. The report covers:

  • Three ingest changes unlock everything. The numbered changes (three or fewer) that unlock every metric, as blocker cards.
  • Defining violence: [State] decides. How the state should define is_violent, with precedents, candidate definitions, and questions for the state.
  • Field by field. Every entity field the metrics read, what the state has in staging today, a status pill, and the action.
  • Metric by metric. Each metric, where it lives, and which numbered change blocks it.
  • Things to know before mapping. Data quirks found while profiling.

Step 1: Get the state code

Take the state code from the skill arguments. If none was given, ask with AskUserQuestion ("Which state should the classification ingest report cover?"), offering a few likely states (e.g. US_AZ, US_IA, US_CO, US_NE) and letting the user type another through Other. Normalize to US_XX.

  • US_ME and US_CA: never query their data. Stop and tell the user; continue only if they explicitly confirm.
  • US_ID vs US_IX: confirm which code the user means before querying.

Step 2: Find the custody classification instrument

Run query 1 in queries.md. The custody classification is usually the RISK-class assessment_type given in prison that has a scored assessment_level and the most rows (e.g. AZ_CUSTODY_CLASS). If more than one RISK instrument could be the custody classification (e.g. a custody score and an internal risk score of the same size), ask the user which to diagnose. Note every other RISK instrument for the "Other ... RISK instruments stay out" bullet.

If the state has no RISK-class assessment that could be a custody classification, tell the user the state can't be diagnosed until one is ingested, and stop.

Step 3: Profile the data

Run every query in queries.md for the state and instrument. Every number in the report must come from these results. Do not reuse numbers from the AZ example.

Use today's date for the "queried on" date and for the 3-year lookbacks.

Step 4: Decide each field's status

Use these pills and only these:

Pill Use when
Blocker The field is empty or wrong and every downstream metric that needs it shows nothing for the state. Today: assessment_decision not APPROVED, is_violent never set.
Needed Empty, but only some metrics need it, or the value is already in assessment_metadata and only needs mapping (override level, subtype).
Verify Populated, but something looks off: out-of-range dates, no dismissal outcomes, scales that disagree.
Later Not used by any current metric.
Ready Populated well enough for every metric that reads it.

Number the top-level changes (1, 2, 3) in the order of the AZ example: approve the instrument, flag violent incidents, map overrides and reclassifications. Drop a change the state doesn't need and renumber, and update the "Metric by metric" table's "blocked by" column to match. If nothing is blocked, say so in the first section's heading, e.g. "Nothing blocks [State]; two fields need checking", and keep the blocker cards only for Needed or Verify items.

Step 5: Write the violence definition section

This section stays even when is_violent is already set, since the state should still confirm the definition. Keep, in this order:

  1. The opening paragraph on why is_violent must reflect what the state cares about most, and that a provisional definition gets replaced by the state's choice.
  2. The precedents table (TN, MI, IX), unchanged. Leave out the row for the state the report is about.
  3. A paragraph on whether severity alone works for this state, citing the top most-severe incident types (query 4) and where its assaults and fights sit.
  4. The candidate starting definitions table: a Narrow definition (violent types in the most severe class) and a Broad one (violent types in the two most severe classes), each listing its incident types with counts and a total.
  5. One paragraph comparing the two (how many times more outcomes the broad one gives).
  6. The "Questions for [State]" box, rewritten around this state's ambiguous types (fights, threats, weapons, riots, staff assaults by substance, attempts).

If the state already sets is_violent, also report what the current definition flags and how many incidents, and frame the candidates as alternatives for the state to weigh.

Step 6: Build the page

Copy example_us_az.html to the scratchpad as <state>_classification_ingest.html (e.g. us_ia_classification_ingest.html) and edit the copy:

  • Keep the <style> block, the section order, the section headings' wording (swapping "Arizona"/"AZ" for the state's name and code), the tables' columns, and the pill classes exactly as they are.
  • Change only state-specific content: the title, ey
Полный SKILL.md на GitHub

Установить classification-ingest-gaps в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

example_us_az.htmlqueries.md

FAQ

Что делает скилл classification-ingest-gaps?

Build a report of what a state needs to ingest before the classification diagnosis metrics work for it (the Initial Diagnosis tab of Looker dashboard 319, the score-vs-violence and AUC views, and the state-agnostic violence model). Use when the user asks what a state needs to ingest for classification, whether a state is ready for the classification diagnosis dashboard, or runs this skill with a state code.

Как установить скилл classification-ingest-gaps?

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

Скилл classification-ingest-gaps запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить classification-ingest-gaps с