Command Palette

Search for a command to run...

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

find_case_note_anecdotes

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

Find illustrative anecdotes from supervision case notes for a given topic. Pulls a filtered batch of raw case notes from BigQuery (using existing document…

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

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

Skill: Find Case Note Anecdotes

Overview

This skill standardizes the workflow to surface anecdotes from case notes: filter raw case notes down to a plausible candidate pool with a BQ query, then have Claude read through the filtered set and pull out salient examples. It leans on the source queries already encoded in the document collection YAMLs at recidiviz/NOT_FOR_PRODUCTION_USE/documents/store/config/document_collections/, so we get one consistent way to access raw case notes per state.

TODO(#78183): Update path to productionized version of case notes configs directory.

Caveats up front:

  • Always treat the output as a starting point that needs human review, not a finished artifact.
  • Results are anecdotal and not statistically representative. Do not present them as such.
  • Never query US_ME or US_CA case notes — see CLAUDE.md.

Step 1: Gather inputs from the user

Ask the user (in one message) to write a short request for what kind of anecdote they're looking for in terms of these three inputs. List the defaults inline and tell the user they can override any of them in the same reply.

  1. Topic — What kind of anecdote are they looking for? (e.g., "loss of housing", "employer terminating someone for an absence", "successful completion of a treatment program"). Get specific enough to translate into keywords.

  2. State(s) — Which state(s)? Currently configured: US_AZ, US_CO, US_IX, US_NC, US_ND, US_NE, US_TN. Never query US_ME or US_CA (per CLAUDE.md).

  3. System Type(s) Do you want to look at incarceration case notes, supervision case notes, or both?

  4. Recidiviz-implicated scope (optional). Default is none (any person whose case notes fit the topic). Otherwise, you can specify something like "people who were viewed in Workflows for the supervision level downgrade opportunity before receiving it" or "people who were registered for the JII tablet app before being released to supervision."

    See Step 3.5 for the SQL patterns. Default to no implication scoping unless the user mentions impact, attribution, an internal deck, or product-team storytelling.

State the following defaults to the user and tell them they can override:

  • How many anecdotes: 5–10
  • Recency window: last 1 year
  • Project: recidiviz-staging (mirrors prod for raw data)
  • Exclusions: none

Tell the user: "For example, you can ask for anecdotes of people in Idaho who were granted work release after being viewed in Workflows and have secured stable employment on supervision."

Translate the topic into a 5–15 keyword list before moving on (include variants and abbreviations — e.g. for housing loss: evict, eviction, homeless, kicked out, lost housing, shelter, nowhere to stay, couch surf). Show the keyword list back to the user for confirmation before running the query — the keyword list is the load-bearing part of the filter.

Validate state coverage before proceeding

The skill has two independent state gates. Check both before running any queries; if either fails, stop and tell the user which gate failed and what the options are.

Gate 1 — Case-notes config exists for the requested state. Look for a file in:

  • recidiviz/NOT_FOR_PRODUCTION_USE/documents/store/config/document_collections/{state}

Ignore context.yaml documents in that directory.

Without this, the skill has no canonical document_generation_query to build on and can't run at all. Configs are owned by @mayukas and @ageiduschek; if a state needs a new one, that's a separate workstream. If the user requests a state not in the configured list (Step 1), stop and offer: (a) switch to a state that has a config or (b) skip the skill and write a one-off query against any per-state case notes view they have in mind.

Gate 2 — Recidiviz-tool footprint exists for the requested state (only applies if Step 1.6 specified Recidiviz-implication scoping). Invoke find_recidiviz_implicated_people and use its State-coverage check under Mode A to confirm the requested state has nontrivial volume for the implication signal (Workflows funnel, JII tablet app, Tasks preview, PSI, Insights/Outliers, etc.).

If the requested state has zero (or near-zero) implicated people, tell the user the state isn't yet on the relevant Recidiviz product so the implication-scoped search would return nothing. Offer to (a) drop the implication scoping (see if the case-notes-only search yields anything useful), (b) switch states to one where the product is live, or (c) confirm the gap is the answer the user wanted.


Step 2: Find the source query

For each requested state, the case notes source query lives in:

recidiviz/NOT_FOR_PRODUCTION_USE/documents/store/config/document_collections/{state}/

Choose which document store(s

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

Установить find_case_note_anecdotes в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл find_case_note_anecdotes?

Find illustrative anecdotes from supervision case notes for a given topic. Pulls a filtered batch of raw case notes from BigQuery (using existing document collection configs as the source query), groups by person, and reads through them to surface salient examples. Optionally scopes the candidate set to "Recidiviz-implicated" people — those who interacted with our tools (Workflows opportunity engagement, the Tasks contact-compliance tool, the PSI sentencing assistant pre-sentence, or the JII tablet app) — for impact-attributed storytelling. Use when the user asks for case note anecdotes, real-world examples from case notes, narrative stories from supervision data, qualitative evidence for an impact deck, or wants to back up an analysis with qualitative evidence.

Как установить скилл find_case_note_anecdotes?

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

Скилл find_case_note_anecdotes запускает скрипты?

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

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

Сравнить find_case_note_anecdotes с