Treatment plans

From aipoch/medical-research-skills · View interactive version

Treatment plans is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Generate concise (typically 1–4 pages) patient-centered medical treatment plans in LaTeX/PDF when a clinician needs an actionable plan with SMART goals, evidence-based interventions, monitoring, and HIPAA-aware documentation.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Use this skill when you need to produce a clinically actionable, professionally typeset treatment plan (LaTeX → PDF), especially when:

  1. You must create an individualized plan for a patient across any specialty (medicine, surgery, rehab, behavioral health).
  2. You need a concise “quick reference” plan (often 1 page) for busy clinical workflows.
  3. You are coordinating multidisciplinary care (e.g., PCP + specialists + PT/OT + behavioral health) with clear roles and follow-up.
  4. You must document chronic disease management with measurable targets, monitoring cadence, and escalation thresholds.
  5. You need a structured plan for perioperative care or pain management with safety checks and risk mitigation.

Key Features

Dependencies

Versions may vary by environment; pin them in your project if you need reproducibility.

Example Usage

Below is a complete, runnable example that (1) generates a template, (2) compiles to PDF, and (3) runs validation checks. Adjust paths to match your repository layout.

1) Generate a LaTeX template

cd .claude/skills/treatment-plans/scripts

# Generate a mental health plan template
python generate_template.py --type mental_health --output depression_treatment_plan.tex

2) (Optional) Generate a diagram for the plan

# Example: a simple treatment pathway flowchart
python scripts/generate_schematic.py "Depression treatment pathway: assessment -> CBT/SSRI -> monitoring -> escalation criteria" -o figures/depression_pathway.png

Include the figure in your .tex file (example snippet):

\begin{figure}[h]
  \centering
  \includegraphics[width=0.95\linewidth]{figures/depression_pathway.png}
  \caption{Treatment pathway overview.}
\end{figure}

3) Compile to PDF

# Recommended (better font support)
xelatex depression_treatment_plan.tex

# If you use bibliography features
bibtex depression_treatment_plan || true
xelatex depression_treatment_plan.tex
xelatex depression_treatment_plan.tex

4) Run completeness and quality validation

python check_completeness.py depression_treatment_plan.tex
python validate_treatment_plan.py depression_treatment_plan.tex

5) (Optional) Generate a timeline artifact

python timeline_generator.py --plan depression_treatment_plan.tex --output timeline.pdf

Implementation Details

Document length strategy

Front-page executive summary (required pattern)

Minimal LaTeX skeleton:

\maketitle
\thispagestyle{empty}

\begin{patientinfo}
  % De-identified demographics, diagnosis, date, framework
\end{patientinfo}

\begin{goalbox}[Primary Treatment Goals]
  \begin{itemize}
    \item Goal 1 (metric + timeframe)
    \item Goal 2 (metric + timeframe)
  \end{itemize}
\end{goalbox}

\begin{keybox}[Core Interventions]
  \begin{itemize}
    \item Intervention 1 (dose/frequency if applicable)
    \item Intervention 2 (visit cadence / therapy frequency)
  \end{itemize}
\end{keybox}

\begin{warningbox}[Critical Decision Points]
  \begin{itemize}
    \item Escalate if threshold X is met
  \end{itemize}
\end{warningbox}

\newpage
\tableofcontents
\newpage

Core clinical sections (for standard 3–4 page plans)

Include only what changes decisions; prefer tables/bullets:

Citation policy (minimalist)

Validation logic (what scripts should check)

Template selection guidance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.