/elder-care-casework:snf-reviewfrom elder-care-casework
End-to-end Skilled Nursing Facility records review, from a folder of facility PDFs to cited, tagged findings. START HERE for any nursing-home or SNF chart review — runs the whole pipeline — file inventory, page-level document mapping and OCR/readability triage, packetization of large mixed scanned charts, parallel reviewer dispatch, and aggregation into Findings / HotItems / Timeline / Gaps roll-ups plus machine-readable JSON. Use when the user says "review my mother's nursing home records", "go through the chart the facility sent", "we got 800 pages back from the HIPAA request", "review the SNF records", "tag the findings in this chart", "run the full records review", or "/snf-review" — or has any facility record production too large to read page by page. For an inventory-only or map-only pass, use snf-inventory or snf-document-map instead.
Ships in elder-care-casework. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Orchestrate the complete adversarial review workflow defined by the snf-records-review skill. Produce per-packet findings files and the four roll-up documents.
Read ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/SKILL.md, ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/RUBRIC.md, and ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/REVIEWER_PROMPT.md before starting so the rubric is loaded and the reviewer prompt is available.
{{PATIENT_NAME}}, {{FACILITY_NAME}}, {{DROP_DATE}} placeholders in the reviewer prompt.{{CASE_BACKGROUND}}. Ask for whichever of these apply: what the payer or facility did and when, which appeals or disputes are already open and at what level, whether the discharge destination is contested, and what the family disputes in the facility's account. Keep the user's phrasing; do not substitute an example case's posture for theirs.--stay-start and --stay-end.<pdf-dir-name>-review/.FacilityShortName, SpringfieldSNF).case-context/; if present, read case_profile.md, deadlines.md, and open_questions.md before filling {{CASE_BACKGROUND}}./fleet handoff.Run the pipeline step by step. Mark progress with TodoWrite.
Invoke the snf-inventory skill (or run the script directly):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/inventory.py \
--in-dir "<pdf-dir>" --out-dir "<out>/inventory" \
--stay-start <date> --stay-end <date>
Invoke /snf-document-map (or run the script directly):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/build_document_map.py \
--in-dir "<pdf-dir>" --out-dir "<out>/document-map" \
--stay-start <date> --stay-end <date>
If a source records request is supplied, append --request-file "<request-file>". The resulting document_map.md includes a Records request comparison section that separates requested items that appear present from requested items that are possible, not_found, or indeterminate_ocr.
Read <out>/document-map/document_map.md before reviewer dispatch. If it shows indeterminate_ocr for load-bearing expected documents, decide with the user whether to remediate OCR first or proceed with that limitation clearly marked in reviewer prompts and final gaps.
The document-map script uses the local PDF toolkit when present: pdftotext -layout for extraction, pdfinfo for metadata, pdfimages -list for scanned-page hints, and pdffonts for text-layer hints. In diagnostic comparison mode, if these tools disagree with pypdf, prefer the strongest source but preserve the extraction method in the map.
By default, the mapper now prefers pdftotext -layout when it is available and skips per-page pypdf extraction whenever Poppler returns non-empty page text. Add --prefer-pdftotext=false only for diagnostic both-engine comparison.
If the agent environment has a short per-command timeout, treat inventory and document-map generation as resumable per-file work rather than one giant run:
<out>/per-file/<pdf-stem>/ for each source PDF and run the scripts against a temp input directory containing only a symlink to that PDF.<out>/logs/inventory.<pdf-stem>.log and <out>/logs/document-map.<pdf-stem>.log so the caller can poll progress without rerunning extraction.<out>/per-file/<pdf-stem>/DONE.json sentinel containing source filename, SHA-256, page count, script name, output paths, and completion timestamp. On resume, skip matching DONE entries.qpdf --split-pages (or another deterministic splitter), then map the chunks while maintaining a manifest from derived chunk pages back to original PDF/page citations.Do not quote PHI from logs in chat summaries. Report counts, filenames, and statuses unless the user explicitly asks for quoted content.
Preferred for large or disorganized charts: use the document-map packet plan. Packet materialization uses qpdf when available and falls back to pdfseparate + pdfunite.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/materialize_packet_plan.py \
--packet-plan "<out>/document-map/review_packet_plan.json" \
--source-dir "<pdf-dir>" \
--out-dir "<out>/review-packets"
Use --dry-run first if the corpus is very large or if you need to inspect packet boundaries before writing derived PDFs.
Fallback only when the document-map plan is unavailable: split large charts using inferred sections.
For any PDF in the inventory with >200 pages, split it:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/split_by_sections.py \
--pdf "<large-pdf>" \
--inventory-json "<out>/inventory/<large-pdf-stem>.json" \
--out-dir "<out>/chart-parts" \
--min-pages 30 --max-pages 60
Requires qpdf in PATH. Install with the platform package manager if missing (brew install qpdf on macOS, apt-get install -y qpdf on Debian/Ubuntu).
Build the final review list from <out>/document-map/review_packet_plan.json and, if materialized, <out>/review-packets/MANIFEST.json. For each packet, spawn a sub-agent via the Agent tool (subagent_type: general-purpose) with a filled-in copy of ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/REVIEWER_PROMPT.md. Dispatch them concurrently — send one message with multiple Agent tool calls, not one at a time.
Each reviewer's prompt MUST include:
${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/REVIEWER_PROMPT.md and substitute placeholders).${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/RUBRIC.md.${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/FINDINGS_TEMPLATE.md.<out>/document-map/document_map.json.<out>/findings/<packet-stem>.md.Reviewer prompts must explicitly distinguish true gaps from OCR-indeterminate gaps. If a packet is mostly image-only, the reviewer should create a gap/remediation note rather than guessing.
If the user wants to offload packet review to GitHub Copilot CLI, read ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/COPILOT_CLI_DISPATCH.md and run ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/plan_copilot_dispatch.py after packet materialization. Start in plan-only mode; it creates prompt files, a dispatch manifest, a run script, and a /fleet prompt under <out>/copilot-dispatch/ without launching jobs.
Only launch Copilot CLI jobs when the user explicitly approves --run. Use low bounded concurrency first (--max-concurrent 1 or 2). Prefer the default reviewer-tools permission mode; use allow-all / --yolo only with explicit user approval. Keep Copilot session logs and prompt files in the private case output root and out of git.
Once all reviewer findings files exist:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/aggregate_findings.py \
--findings-dir "<out>/findings" \
--out-dir "<out>" \
--prefix "<prefix>"
Produces <prefix>_Findings.md, <prefix>_HotItems.md, <prefix>_Timeline.md, <prefix>_Gaps.md.
Also produces <prefix>_Findings.json and <prefix>_Summary.json for dashboards, MCP ingestion, spreadsheets, or later case-context enrichment.
Summarize for the user in plain language:
HotItems.md).hipaa-records-request skill), separated from OCR remediation items.case-context-ledger to add value-3 findings and unresolved gaps, run /hipaa-records-request for narrow follow-up requests, run /snf-appeal-supplement for the appeal draft, build a dashboard, or add an admin-interaction-log entry if anything new turned up.indeterminate_ocr, not missing.--stay-start / --stay-end) isn't known, ask — it drives the in-stay vs. out-of-window flag that matters for appeal narrative.What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/admin-interaction-logAppend a dated, factual entry to an ongoing SNF/facility Admin Interaction Log in terse, cited, third-person prose that states facts without characterizing anyone's motive and without emotional language, so the log can later be attached to a complaint, appeal, or ombudsman filing. Creates the log file if one does not exist yet. Use when the user says "log an interaction", "add an entry to the admin log", "document this call with the facility", "note this for the log", or mentions a phone call / voicemail / visit / email exchange with facility staff that needs to be preserved for the case record./audio-transcript-reviewReview and enrich elder-care audio transcripts from plan-of-care meetings, IDT calls, facility phone calls, voicemail, payer calls, JFS/ODM calls, or staff conversations. Supports local Whisper/Parakeet transcription outputs, speaker labeling/diarization reconciliation, timestamped statement attribution, casework evidence tagging, transcript-quality triage, and routing into admin logs, appeals, complaints, Medicaid disputes, legal-referral packets, and case-context ledgers.Other plugins' skills for the same job
/case-context-ledgerCreate or update a durable elder-care case context ledger for long-running Medicare, Medicaid, SNF, facility, payer, and regulatory matters. Use when the user says "case memory", "case context", "update the case file", "track deadlines", "remember this for the appeal", "build a case ledger", or needs canonical facts, contacts, deadlines, document inventory, evidence register, open questions, and decision log across multiple skills and large record productions.npx claudepluginhub mbeacom/elder-care-casework --plugin elder-care-casework