AGENT SKILL

case-setup

Sets up a new case folder for tracking a patient's portal records (Epic MyChart or another patient portal): creates the folder structure, the case instructions file, and a start-here guide, and records the handful of facts every other skill needs. Use when someone says "set up a case", "start tracking my mom's results", "new case folder", "get started with mychart-advisor", or "first time using this", or when another mychart-advisor skill finds no case AGENTS.md. Safe to rerun to repair a folder.

License 许可
MIT
最近更新
2026-10-01
Stars
★ 1
Forks
0

01 前言 Front Matter

name
case-setup
license
MIT
metadata
{ "plugin": "mychart-advisor" }
description
Sets up a new case folder for tracking a patient's portal records (Epic MyChart or another patient portal): creates the folder structure, the case instructions file, and a start-here guide, and records the handful of facts every other skill needs. Use when someone says "set up a case", "start tracking my mom's results", "new case folder", "get started with mychart-advisor", or "first time using this", or when another mychart-advisor skill finds no case AGENTS.md. Safe to rerun to repair a folder.
compatibility
Python 3.10+ (standard library only). Works in any agent that can read and write local files and run a command.

02 资源文件 5

03 SKILL.md 正文

Set up a case folder

<!-- guardrails:start -->

Ground rules

This skill helps a patient and family understand the records, answer what a tool can answer, and bring sharper questions to the care team. The treating team makes the diagnosis and every treatment decision.

  • Generate and rank possible diagnoses freely, including rare and dangerous-to-miss ones, and name the test that would settle each. That analysis is the point, so do not hedge it away. Word findings as "consistent with," "argues for," or "argues against," state how strong each inference is, and never state a diagnosis as fact.
  • Never tell anyone to start, stop, or change a treatment or dose. Anything the team might do becomes a question to ask them.
  • Contact no one. Every output goes to the family first, and they decide what to share.
  • Keep everything in the case folder. Never copy records into memory, other projects, or shared tools. Never put a name, birth date, record number, facility, clinician name, or exact date into a web search or fetch.
  • If anything suggests an emergency, say so first and plainly: call 911 or the local emergency number, or alert the care team now. <!-- guardrails:end -->

One patient, one folder. This skill creates the folder once and repairs it later. It writes no analysis.

The script and templates live next to this file, in scripts/ and assets/. In Claude Code that folder is ${CLAUDE_SKILL_DIR}.

1. Find the folder

If the working directory already has an AGENTS.md that begins with # Case folder:, this is a repair. Skip to step 4 and say so.

Otherwise ask where the case folder should live. Suggest the working directory if it is empty or already holds Test Results/ or Care Team Notes/. Recommend a folder that is not synced to a shared drive and is not inside a git repository. One folder per patient.

2. Ask for the case facts

Ask in one message, and say every item is optional except how to refer to the patient. Never guess an answer, and never fill one in from the records later without asking.

  • How to refer to the patient. A first name or "Mom" is fine.
  • Age.
  • The user's relationship to the patient.
  • Care setting: inpatient, emergency, outpatient workup, or other.
  • Facility.
  • When this episode started: admission date or first visit.
  • The reason, in one sentence, in the family's words.
  • Attending or physician of record.
  • Outpatient or primary physician.
  • Which patient portal they use.

Write the answers to .advisor/facts.json inside the case folder (create .advisor/ first) with the keys PATIENT_LABEL, AGE, RELATIONSHIP, SETTING, FACILITY, START_DATE, REASON, ATTENDING, OUTPATIENT, PORTAL.

3. Ask for the private identifiers

Explain why. These are the strings that must never go into a web search. Skills check web queries against them, and in Claude Code a hook blocks any search that contains one. The list never leaves the folder and is never quoted in any output.

Ask for the patient's full legal name and nicknames, date of birth, medical record numbers, facility names, and the names of clinicians the family knows. All are optional. More entries mean stronger protection.

4. Build the folder

Run from anywhere:

python3 "${CLAUDE_SKILL_DIR}/scripts/scaffold.py" --root "<case folder>" --facts "<case folder>/.advisor/facts.json"

The script creates every folder and starting file listed in assets/case-folder-layout.md, fills the templates, and never overwrites an existing file. On a repair, leave out --facts. Delete .advisor/facts.json afterward.

Then write the identifiers to .advisor/identifiers.txt, one per line. On a repair, append only new entries.

If the host cannot run commands, create the same structure by hand from assets/case-folder-layout.md, assets/case-AGENTS.template.md, and assets/START-HERE.template.md.

5. Tell the user how records get in

Keep this short, and point to START-HERE.md in the folder for the full table.

  • Save each test result from the portal as a PDF into Test Results/.
  • Save each clinical note as a PDF into Care Team Notes/.
  • Put medication lists, discharge papers, outside records, and photos of paperwork into Other Records/.
  • Keep the portal's file names.
  • In Epic MyChart, results are under Test Results and notes under Visits or Notes, depending on the health system. Open each item and use the print or download option to save it as a PDF.

6. Offer the next step

Offer patient-intake next. A short history interview makes every later analysis better. If PDFs are already in the folders, say that ingest-results is ready to run after intake.

Report what was created, in a few lines. Do not print the identifiers.

04 同仓库更多 Skills

deremer
deremer/mychart-advisor

record-observations

Captures what the family saw, heard, or was told at the bedside or at home since the last entry: changes in alertness, thinking, movement, eating, sleep, pain, or mood, new symptoms, reactions after a medication or procedure, and what a doctor or nurse said. Appends a dated entry to notes/bedside-status.md in the case folder and flags anything that conflicts with the chart. Use when someone says "record an observation", "bedside update", "he seemed confused today", "the doctor told us", "log what happened", or "capture what the nurse said". Also runs as the first step of ingest-results.

★ 1
deremer
deremer/mychart-advisor

prep-questions

Prepares a short, ranked, record-grounded question list for an upcoming conversation with the care team: a one-screen card to use in the room and a detail section with reasons, sources, and what a good answer sounds like. Tailors the list to who the conversation is with and how much time there is, and skips questions the records or the tool can already answer. Use when someone says "prep questions", "what should we ask", "rounds tomorrow", "family meeting", "call with the doctor", "before we talk to the specialist", or "what do I ask the nurse".

★ 1
deremer
deremer/mychart-advisor

patient-intake

Interviews the patient or family, one topic at a time, to record the patient's history in their own words: the current illness and its timeline, past medical and surgical history, medications and supplements, allergies, family history, exposures and travel, baseline function, earlier workups, and what the family most wants to understand. Writes notes/patient-history.md in the case folder. Use when someone says "patient history", "intake", "add to the history", "I remembered something about his past", "family history", or after case-setup. Resumable and safe to rerun.

★ 1
deremer
deremer/mychart-advisor

ingest-results

Ingests newly downloaded patient-portal PDFs (test results, care team notes, and other records from Epic MyChart or another portal) into a case folder. Extracts the text, rebuilds lab trend tables as CSV and markdown, updates the results and notes indexes, the running summaries, and the discrepancy log, refreshes where the case stands, and writes a short what-changed note the family can read on a phone. Offers to record bedside observations first. Use when someone says "ingest", "new results", "new notes", "I downloaded more files", "update the labs", "what changed", or "refresh the case".

★ 1
deremer
deremer/mychart-advisor

independent-consult

Runs a blinded, independent consult on the patient's records, the kind of fresh outside read a family might hire. A team of agents that has not seen the treating team's conclusions or the family's prior analysis builds a fact base, generates every hypothesis the records cannot yet rule out, investigates each family of hypotheses with literature, attacks its own conclusions with a red team, reconciles against the treating team and prior analysis, and produces one verified, cited report with a test plan. Use only when someone explicitly asks for an "independent consult", "blinded second opinion", "fresh unbiased review", or "leave no stone unturned", or for a consult addendum or status. Expensive: from about 10 to 35 or more agents.

★ 1
deremer
deremer/mychart-advisor

design-panel

Designs the case conference panel for one patient: reads the case folder, interviews the family where the records leave gaps, and chooses the specialist seats this case needs, for example oncology when cancer is on the differential, interventional radiology when a procedure is in play, or a specialty the team has not yet consulted. Writes a roster, an ownership map, and one brief per seat into panel/ so case-conference can run them. Use before the first case conference, when someone says "design the panel", "which specialists should review this", "add a seat", or "update the panel", or when ingest-results says the panel may need a new seat.

★ 1