Clinical Decision Support Documents
Description
Generate professional clinical decision support (CDS) documents for pharmaceutical companies, clinical researchers, and medical decision-makers. This skill specializes in analytical, evidence-based documents that inform treatment strategies and drug development:
- Patient Cohort Analysis - Biomarker-stratified group analyses with statistical outcome comparisons
- Treatment Recommendation Reports - Evidence-based clinical guidelines with GRADE grading and decision algorithms
All documents are generated as publication-ready LaTeX/PDF files optimized for pharmaceutical research, regulatory submissions, and clinical guideline development.
Note: For individual patient treatment plans at the bedside, use the treatment-plans skill instead. This skill focuses on group-level analyses and evidence synthesis for pharmaceutical/research settings.
Capabilities
Document Types
Patient Cohort Analysis
- Biomarker-based patient stratification (molecular subtypes, gene expression, IHC)
- Molecular subtype classification (e.g., GBM mesenchymal-immune-active vs proneural, breast cancer subtypes)
- Outcome metrics with statistical analysis (OS, PFS, ORR, DOR, DCR)
- Statistical comparisons between subgroups (hazard ratios, p-values, 95% CI)
- Survival analysis with Kaplan-Meier curves and log-rank tests
- Efficacy tables and waterfall plots
- Comparative effectiveness analyses
- Pharmaceutical cohort reporting (trial subgroups, real-world evidence)
Treatment Recommendation Reports
- Evidence-based treatment guidelines for specific disease states
- Strength of recommendation grading (GRADE system: 1A, 1B, 2A, 2B, 2C)
- Quality of evidence assessment (high, moderate, low, very low)
- Treatment algorithm flowcharts with TikZ diagrams
- Line-of-therapy sequencing based on biomarkers
- Decision pathways with clinical and molecular criteria
- Pharmaceutical strategy documents
- Clinical guideline development for medical societies
Clinical Features
- Biomarker Integration: Genomic alterations (mutations, CNV, fusions), gene expression signatures, IHC markers, PD-L1 scoring
- Statistical Analysis: Hazard ratios, p-values, confidence intervals, survival curves, Cox regression, log-rank tests
- Evidence Grading: GRADE system (1A/1B/2A/2B/2C), Oxford CEBM levels, quality of evidence assessment
- Clinical Terminology: SNOMED-CT, LOINC, proper medical nomenclature, trial nomenclature
- Regulatory Compliance: HIPAA de-identification, confidentiality headers, ICH-GCP alignment
- Professional Formatting: Compact 0.5in margins, color-coded recommendations, publication-ready, suitable for regulatory submissions
Pharmaceutical and Research Use Cases
This skill is specifically designed for pharmaceutical and clinical research applications:
Drug Development
- Phase 2/3 Trial Analyses: Biomarker-stratified efficacy and safety analyses
- Subgroup Analyses: Forest plots showing treatment effects across patient subgroups
- Companion Diagnostic Development: Linking biomarkers to drug response
- Regulatory Submissions: IND/NDA documentation with evidence summaries
Medical Affairs
- KOL Education Materials: Evidence-based treatment algorithms for thought leaders
- Medical Strategy Documents: Competitive landscape and positioning strategies
- Advisory Board Materials: Cohort analyses and treatment recommendation frameworks
- Publication Planning: Manuscript-ready analyses for peer-reviewed journals
Clinical Guidelines
- Guideline Development: Evidence synthesis with GRADE methodology for specialty societies
- Consensus Recommendations: Multi-stakeholder treatment algorithm development
- Practice Standards: Biomarker-based treatment selection criteria
- Quality Measures: Evidence-based performance metrics
Real-World Evidence
- RWE Cohort Studies: Retrospective analyses of patient cohorts from EMR data
- Comparative Effectiveness: Head-to-head treatment comparisons in real-world settings
- Outcomes Research: Long-term survival and safety in clinical practice
- Health Economics: Cost-effectiveness analyses by biomarker subgroup
When to Use
Use this skill when you need to:
- Analyze patient cohorts stratified by biomarkers, molecular subtypes, or clinical characteristics
- Generate treatment recommendation reports with evidence grading for clinical guidelines or pharmaceutical strategies
- Compare outcomes between patient subgroups with statistical analysis (survival, response rates, hazard ratios)
- Produce pharmaceutical research documents for drug development, clinical trials, or regulatory submissions
- Develop clinical practice guidelines with GRADE evidence grading and decision algorithms
- Document biomarker-guided therapy selection at the population level (not individual patients)
- Synthesize evidence from multiple trials or real-world data sources
- Create clinical decision algorithms with flowcharts for treatment sequencing
Do NOT use this skill for:
- Individual patient treatment plans (use
treatment-plans skill)
- Bedside clinical care documentation (use
treatment-plans skill)
- Simple patient-specific treatment protocols (use
treatment-plans skill)
Document Structure
CRITICAL REQUIREMENT: All clinical decision support documents MUST begin with a complete executive summary on page 1 that spans the entire first page before any table of contents or detailed sections.
Page 1 Executive Summary Structure
The first page of every CDS document should contain ONLY the executive summary with the following components:
Required Elements (all on page 1):
Document Title and Type
- Main title (e.g., "Biomarker-Stratified Cohort Analysis" or "Evidence-Based Treatment Recommendations")
- Subtitle with disease state and focus
Report Information Box (using colored tcolorbox)
- Document type and purpose
- Date of analysis/report
- Disease state and patient population
- Author/institution (if applicable)
- Analysis framework or methodology
Key Findings Boxes (3-5 colored boxes using tcolorbox)
- Primary Results (blue box): Main efficacy/outcome findings
- Biomarker Insights (green box): Key molecular subtype findings
- Clinical Implications (yellow/orange box): Actionable treatment implications
- Statistical Summary (gray box): Hazard ratios, p-values, key statistics
- Safety Highlights (red box, if applicable): Critical adverse events or warnings
Visual Requirements:
- Use
\thispagestyle{empty} to remove page numbers from page 1
- All content must fit on page 1 (before
\newpage)
- Use colored tcolorbox environments with different colors for visual hierarchy
- Boxes should be scannable and highlight most critical information
- Use bullet points, not narrative paragraphs
- End page 1 with
\newpage before table of contents or detailed sections
Example First Page LaTeX Structure:
\maketitle
\thispagestyle{empty}
% Report Information Box
\begin{tcolorbox}[colback=blue!5!white, colframe=blue!75!black, title=Report Information]
\textbf{Document Type:} Patient Cohort Analysis\\
\textbf{Disease State:} HER2-Positive Metastatic Breast Cancer\\
\textbf{Analysis Date:} \today\\
\textbf{Population:} 60 patients, biomarker-stratified by HR status
\end{tcolorbox}
\vspace{0.3cm}
% Key Finding #1: Primary Results
\begin{tcolorbox}[colback=blue!5!white, colframe=blue!75!black, title=Primary Efficacy Results]
\begin{itemize}
\item Overall ORR: 72\% (95\% CI: 59-83\%)
\item Median PFS: 18.5 months (95\% CI: 14.2-22.8)
\item Median OS: 35.2 months (95\% CI: 28.1-NR)
\end{itemize}
\end{tcolorbox}
\vspace{0.3cm}
% Key Finding #2: Biomarker Insights
\begin{tcolorbox}[colback=green!5!white, colframe=green!75!black, title=Biomarker Stratification Findings]
\begin{itemize}
\item HR+/HER2+: ORR 68\%, median PFS 16.2 months
\item HR-/HER2+: ORR 78\%, median PFS 22.1 months
\item HR status significantly associated with outcomes (p=0.041)
\end{itemize}
\end{tcolorbox}
\vspace{0.3cm}
% Key Finding #3: Clinical Implications
\begin{tcolorbox}[colback=orange!5!white, colframe=orange!75!black, title=Clinical Recommendations]
\begin{itemize}
\item Strong efficacy observed regardless of HR status (Grade 1A)
\item HR-/HER2+ patients showed numerically superior outcomes
\item Treatment recommended for all HER2+ MBC patients
\end{itemize}
\end{tcolorbox}
\newpage
\tableofcontents % TOC on page 2
\newpage % Detailed content starts page 3
Patient Cohort Analysis (Detailed Sections - Page 3+)
- Cohort Characteristics: Demographics, baseline features, patient selection criteria
- Biomarker Stratification: Molecular subtypes, genomic alterations, IHC profiles
- Treatment Exposure: Therapies received, dosing, treatment duration by subgroup
- Outcome Analysis: Response rates (ORR, DCR), survival data (OS, PFS), DOR
- Statistical Methods: Kaplan-Meier survival curves, hazard ratios, log-rank tests, Cox regression
- Subgroup Comparisons: Biomarker-stratified efficacy, forest plots, statistical significance
- Safety Profile: Adverse events by subgroup, dose modifications, discontinuations
- Clinical Recommendations: Treatment implications based on biomarker profiles
- Figures: Waterfall plots, swimmer plots, survival curves, forest plots
- Tables: Demographics table, biomarker frequency, outcomes by subgroup
Treatment Recommendation Reports (Detailed Sections - Page 3+)
Page 1 Executive Summary for Treatment Recommendations should include:
- Report Information Box: Disease state, guideline version/date, target population
- Key Recommendations Box (green): Top 3-5 GRADE-graded recommendations by line of therapy
- Biomarker Decision Criteria Box (blue): Key molecular markers influencing treatment selection
- Evidence Summary Box (gray): Major trials supporting recommendations (e.g., KEYNOTE-189, FLAURA)
- Critical Monitoring Box (orange/red): Essential safety monitoring requirements
Detailed Sections (Page 3+):
- Clinical Context: Disease state, epidemiology, current treatment landscape
- Target Population: Patient characteristics, biomarker criteria, staging
- Evidence Review: Systematic literature synthesis, guideline summary, trial data
- Treatment Options: Available therapies with mechanism of action
- Evidence Grading: GRADE assessment for each recommendation (1A, 1B, 2A, 2B, 2C)
- Recommendations by Line: First-line, second-line, subsequent therapies
- Biomarker-Guided Selection: Decision criteria based on molecular profiles
- Treatment Algorithms: TikZ flowcharts showing decision pathways
- Monitoring Protocol: Safety assessments, efficacy monitoring, dose modifications
- Special Populations: Elderly, renal/hepatic impairment, comorbidities
- References: Full bibliography with trial names and citations
Output Format
MANDATORY FIRST PAGE REQUIREMENT:
- Page 1: Full-page executive summary with 3-5 colored tcolorbox elements
- Page 2: Table of contents (optional)
- Page 3+: Detailed sections with methods, results, figures, tables
Document Specifications:
- Primary: LaTeX/PDF with 0.5in margins for compact, data-dense presentation
- Length: Typically 5-15 pages (1 page executive summary + 4-14 pages detailed content)
- Style: Publication-ready, pharmaceutical-grade, suitable for regulatory submissions
- First Page: Always a complete executive summary spanning entire page 1 (see Document Structure section)
Visual Elements:
- Colors:
- Page 1 boxes: blue=data/information, green=biomarkers/recommendations, yellow/orange=clinical implications, red=warnings
- Recommendation boxes (green=strong recommendation, yellow=conditional, blue=research needed)
- Biomarker stratification (color-coded molecular subtypes)
- Statistical significance (color-coded p-values, hazard ratios)
- Tables:
- Demographics with baseline characteristics
- Biomarker frequency by subgroup
- Outcomes table (ORR, PFS, OS, DOR by molecular subtype)
- Adverse events by cohort
- Evidence summary tables with GRADE ratings
- Figures:
- Kaplan-Meier survival curves with log-rank p-values and number at risk tables
- Waterfall plots showing best response by patient
- Forest plots for subgroup analyses with confidence intervals
- TikZ decision algorithm flowcharts
- Swimmer plots for individual patient timelines
- Statistics: Hazard ratios with 95% CI, p-values, median survival times, landmark survival rates
- Compliance: De-identification per HIPAA Safe Harbor, confidentiality notices for proprietary data
Integration
This skill integrates with:
- scientific-writing: Citation management, statistical reporting, evidence synthesis
- clinical-reports: Medical terminology, HIPAA compliance, regulatory documentation
- scientific-schematics: TikZ flowcharts for decision algorithms and treatment pathways
- treatment-plans: Individual patient applications of cohort-derived insights (bidirectional)
Key Differentiators from Treatment-Plans Skill
Clinical Decision Support (this skill):
- Audience: Pharmaceutical companies, clinical researchers, guideline committees, medical affairs
- Scope: Population-level analyses, evidence synthesis, guideline development
- Focus: Biomarker stratification, statistical comparisons, evidence grading
- Output: Multi-page analytical documents (5-15 pages typical) with extensive figures and tables
- Use Cases: Drug development, regulatory submissions, clinical practice guidelines, medical strategy
- Example: "Analyze 60 HER2+ breast cancer patients by hormone receptor status with survival outcomes"
Treatment-Plans Skill:
- Audience: Clinicians, patients, care teams
- Scope: Individual patient care planning
- Focus: SMART goals, patient-specific interventions, monitoring plans
- Output: Concise 1-4 page actionable care plans
- Use Cases: Bedside clinical care, EMR documentation, patient-centered planning
- Example: "Create treatment plan for a 55-year-old patient with newly diagnosed type 2 diabetes"
When to use each:
- Use clinical-decision-support for: cohort analyses, biomarker stratification studies, treatment guideline development, pharmaceutical strategy documents
- Use treatment-plans for: individual patient care plans, treatment protocols for specific patients, bedside clinical documentation
Example Usage
Patient Cohort Analysis
Example 1: NSCLC Biomarker Stratification
> Analyze a cohort of 45 NSCLC patients stratified by PD-L1 expression (<1%, 1-49%, ≥50%)
> receiving pembrolizumab. Include outcomes: ORR, median PFS, median OS with hazard ratios
> comparing PD-L1 ≥50% vs <50%. Generate Kaplan-Meier curves and waterfall plot.
Example 2: GBM Molecular Subtype Analysis
> Generate cohort analysis for 30 GBM patients classified into Cluster 1 (Mesenchymal-Immune-Active)
> and Cluster 2 (Proneural) molecular subtypes. Compare outcomes including median OS, 6-month PFS rate,
> and response to TMZ+bevacizumab. Include biomarker profile table and statistical comparison.
Example 3: Breast Cancer HER2 Cohort
> Analyze 60 HER2-positive metastatic breast cancer patients treated with trastuzumab-deruxtecan,
> stratified by prior trastuzumab exposure (yes/no). Include ORR, DOR, median PFS with forest plot
> showing subgroup analyses by hormone receptor status, brain metastases, and number of prior lines.
Treatment Recommendation Report
Example 1: HER2+ Metastatic Breast Cancer Guidelines
> Create evidence-based treatment recommendations for HER2-positive metastatic breast cancer including
> biomarker-guided therapy selection. Use GRADE system to grade recommendations for first-line
> (trastuzumab+pertuzumab+taxane), second-line (trastuzumab-deruxtecan), and third-line options.
> Include decision algorithm flowchart based on brain metastases, hormone receptor status, and prior therapies.
Example 2: Advanced NSCLC Treatment Algorithm
> Generate treatment recommendation report for advanced NSCLC based on PD-L1 expression, EGFR mutation,
> ALK rearrangement, and performance status. Include GRADE-graded recommendations for each molecular subtype,
> TikZ flowchart for biomarker-directed therapy selection, and evidence tables from KEYNOTE-189, FLAURA,
> and CheckMate-227 trials.
Example 3: Multiple Myeloma Line-of-Therapy Sequencing
> Create treatment algorithm for newly diagnosed multiple myeloma through relapsed/refractory setting.
> Include GRADE recommendations for transplant-eligible vs ineligible, high-risk cytogenetics considerations,
> and sequencing of daratumumab, carfilzomib, and CAR-T therapy. Provide flowchart showing decision points
> at each line of therapy.
Key Features
Biomarker Classification
- Genomic: Mutations, CNV, gene fusions
- Expression: RNA-seq, IHC scores
- Molecular subtypes: Disease-specific classifications
- Clinical actionability: Therapy selection guidance
Outcome Metrics
- Survival: OS (overall survival), PFS (progression-free survival)
- Response: ORR (objective response rate), DOR (duration of response), DCR (disease control rate)
- Quality: ECOG performance status, symptom burden
- Safety: Adverse events, dose modifications
Statistical Methods
- Survival analysis: Kaplan-Meier curves, log-rank tests
- Group comparisons: t-tests, chi-square, Fisher's exact
- Effect sizes: Hazard ratios, odds ratios with 95% CI
- Significance: p-values, multiple testing corrections
Evidence Grading
GRADE System
- 1A: Strong recommendation, high-quality evidence
- 1B: Strong recommendation, moderate-quality evidence
- 2A: Weak recommendation, high-quality evidence
- 2B: Weak recommendation, moderate-quality evidence
- 2C: Weak recommendation, low-quality evidence
Recommendation Strength
- Strong: Benefits clearly outweigh risks
- Conditional: Trade-offs exist, patient values important
- Research: Insufficient evidence, clinical trials needed
Best Practices
For Cohort Analyses
- Patient Selection Transparency: Clearly document inclusion/exclusion criteria, patient flow, and reasons for exclusions
- Biomarker Clarity: Specify assay methods, platforms (e.g., FoundationOne, Caris), cut-points, and validation status
- Statistical Rigor:
- Report hazard ratios with 95% confidence intervals, not just p-values
- Include median follow-up time for survival analyses
- Specify statistical tests used (log-rank, Cox regression, Fisher's exact)
- Account for multiple comparisons when appropriate
- Outcome Definitions: Use standard criteria:
- Response: RECIST 1.1, iRECIST for immunotherapy
- Adverse events: CTCAE version 5.0
- Performance status: ECOG or Karnofsky
- Survival Data Presentation:
- Median OS/PFS with 95% CI
- Landmark survival rates (6-month, 12-month, 24-month)
- Number at risk tables below Kaplan-Meier curves
- Censoring clearly indicated
- Subgroup Analyses: Pre-specify subgroups; clearly label exploratory vs pre-planned analyses
- Data Completeness: Report missing data and how it was handled
For Treatment Recommendation Reports
- Evidence Grading Transparency:
- Use GRADE system consistently (1A, 1B, 2A, 2B, 2C)
- Document rationale for each grade
- Clearly state quality of evidence (high, moderate, low, very low)
- Comprehensive Evidence Review:
- Include phase 3 randomized trials as primary evidence
- Supplement with phase 2 data for emerging therapies
- Note real-world evidence and meta-analyses
- Cite trial names (e.g., KEYNOTE-189, CheckMate-227)
- Biomarker-Guided Recommendations:
- Link specific biomarkers to therapy recommendations
- Specify testing methods and validated assays
- Include FDA/EMA approval status for companion diagnostics
- Clinical Actionability: Every recommendation should have clear implementation guidance
- Decision Algorithm Clarity: TikZ flowcharts should be unambiguous with clear yes/no decision points
- Special Populations: Address elderly, renal/hepatic impairment, pregnancy, drug interactions
- Monitoring Guidance: Specify safety labs, imaging, and frequency
- Update Frequency: Date recommendations and plan for periodic updates
General Best Practices
- First Page Executive Summary (MANDATORY):
- ALWAYS create a complete executive summary on page 1 that spans the entire first page
- Use 3-5 colored tcolorbox elements to highlight key findings
- No table of contents or detailed sections on page 1
- Use
\thispagestyle{empty} and end with \newpage
- This is the single most important page - it should be scannable in 60 seconds
- De-identification: Remove all 18 HIPAA identifiers before document generation (Safe Harbor method)
- Regulatory Compliance: Include confidentiality notices for proprietary pharmaceutical data
- Publication-Ready Formatting: Use 0.5in margins, professional fonts, color-coded sections
- Reproducibility: Document all statistical methods to enable replication
- Conflict of Interest: Disclose pharmaceutical funding or relationships when applicable
- Visual Hierarchy: Use colored boxes consistently (blue=data, green=biomarkers, yellow/orange=recommendations, red=warnings)
References
See the references/ directory for detailed guidance on:
- Patient cohort analysis and stratification methods
- Treatment recommendation development
- Clinical decision algorithms
- Biomarker classification and interpretation
- Outcome analysis and statistical methods
- Evidence synthesis and grading systems
Templates
See the assets/ directory for LaTeX templates:
cohort_analysis_template.tex - Biomarker-stratified patient cohort analysis with statistical comparisons
treatment_recommendation_template.tex - Evidence-based clinical practice guidelines with GRADE grading
clinical_pathway_template.tex - TikZ decision algorithm flowcharts for treatment sequencing
biomarker_report_template.tex - Molecular subtype classification and genomic profile reports
evidence_synthesis_template.tex - Systematic evidence review and meta-analysis summaries
Template Features:
- 0.5in margins for compact presentation
- Color-coded recommendation boxes
- Professional tables for demographics, biomarkers, outcomes
- Built-in support for Kaplan-Meier curves, waterfall plots, forest plots
- GRADE evidence grading tables
- Confidentiality headers for pharmaceutical documents
Scripts
See the scripts/ directory for analysis and visualization tools:
generate_survival_analysis.py - Kaplan-Meier curve generation with log-rank tests, hazard ratios, 95% CI
create_waterfall_plot.py - Best response visualization for cohort analyses
create_forest_plot.py - Subgroup analysis visualization with confidence intervals
create_cohort_tables.py - Demographics, biomarker frequency, and outcomes tables
build_decision_tree.py - TikZ flowchart generation for treatment algorithms
biomarker_classifier.py - Patient stratification algorithms by molecular subtype
calculate_statistics.py - Hazard ratios, Cox regression, log-rank tests, Fisher's exact
validate_cds_document.py - Quality and compliance checks (HIPAA, statistical reporting standards)
grade_evidence.py - Automated GRADE assessment helper for treatment recommendations
1---2name: clinical-decision-support3description: Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.4---5
6# Clinical Decision Support Documents
7
8## Description
9
10Generate professional clinical decision support (CDS) documents for pharmaceutical companies, clinical researchers, and medical decision-makers. This skill specializes in analytical, evidence-based documents that inform treatment strategies and drug development:
11
121. **Patient Cohort Analysis** - Biomarker-stratified group analyses with statistical outcome comparisons
132. **Treatment Recommendation Reports** - Evidence-based clinical guidelines with GRADE grading and decision algorithms
14
15All documents are generated as publication-ready LaTeX/PDF files optimized for pharmaceutical research, regulatory submissions, and clinical guideline development.
16
17**Note:** For individual patient treatment plans at the bedside, use the `treatment-plans` skill instead. This skill focuses on group-level analyses and evidence synthesis for pharmaceutical/research settings.
18
19## Capabilities
20
21### Document Types
22
23**Patient Cohort Analysis**
24- Biomarker-based patient stratification (molecular subtypes, gene expression, IHC)
25- Molecular subtype classification (e.g., GBM mesenchymal-immune-active vs proneural, breast cancer subtypes)
26- Outcome metrics with statistical analysis (OS, PFS, ORR, DOR, DCR)
27- Statistical comparisons between subgroups (hazard ratios, p-values, 95% CI)
28- Survival analysis with Kaplan-Meier curves and log-rank tests
29- Efficacy tables and waterfall plots
30- Comparative effectiveness analyses
31- Pharmaceutical cohort reporting (trial subgroups, real-world evidence)
32
33**Treatment Recommendation Reports**
34- Evidence-based treatment guidelines for specific disease states
35- Strength of recommendation grading (GRADE system: 1A, 1B, 2A, 2B, 2C)
36- Quality of evidence assessment (high, moderate, low, very low)
37- Treatment algorithm flowcharts with TikZ diagrams
38- Line-of-therapy sequencing based on biomarkers
39- Decision pathways with clinical and molecular criteria
40- Pharmaceutical strategy documents
41- Clinical guideline development for medical societies
42
43### Clinical Features
44
45- **Biomarker Integration**: Genomic alterations (mutations, CNV, fusions), gene expression signatures, IHC markers, PD-L1 scoring
46- **Statistical Analysis**: Hazard ratios, p-values, confidence intervals, survival curves, Cox regression, log-rank tests
47- **Evidence Grading**: GRADE system (1A/1B/2A/2B/2C), Oxford CEBM levels, quality of evidence assessment
48- **Clinical Terminology**: SNOMED-CT, LOINC, proper medical nomenclature, trial nomenclature
49- **Regulatory Compliance**: HIPAA de-identification, confidentiality headers, ICH-GCP alignment
50- **Professional Formatting**: Compact 0.5in margins, color-coded recommendations, publication-ready, suitable for regulatory submissions
51
52## Pharmaceutical and Research Use Cases
53
54This skill is specifically designed for pharmaceutical and clinical research applications:
55
56**Drug Development**
57- **Phase 2/3 Trial Analyses**: Biomarker-stratified efficacy and safety analyses
58- **Subgroup Analyses**: Forest plots showing treatment effects across patient subgroups
59- **Companion Diagnostic Development**: Linking biomarkers to drug response
60- **Regulatory Submissions**: IND/NDA documentation with evidence summaries
61
62**Medical Affairs**
63- **KOL Education Materials**: Evidence-based treatment algorithms for thought leaders
64- **Medical Strategy Documents**: Competitive landscape and positioning strategies
65- **Advisory Board Materials**: Cohort analyses and treatment recommendation frameworks
66- **Publication Planning**: Manuscript-ready analyses for peer-reviewed journals
67
68**Clinical Guidelines**
69- **Guideline Development**: Evidence synthesis with GRADE methodology for specialty societies
70- **Consensus Recommendations**: Multi-stakeholder treatment algorithm development
71- **Practice Standards**: Biomarker-based treatment selection criteria
72- **Quality Measures**: Evidence-based performance metrics
73
74**Real-World Evidence**
75- **RWE Cohort Studies**: Retrospective analyses of patient cohorts from EMR data
76- **Comparative Effectiveness**: Head-to-head treatment comparisons in real-world settings
77- **Outcomes Research**: Long-term survival and safety in clinical practice
78- **Health Economics**: Cost-effectiveness analyses by biomarker subgroup
79
80## When to Use
81
82Use this skill when you need to:
83
84- **Analyze patient cohorts** stratified by biomarkers, molecular subtypes, or clinical characteristics
85- **Generate treatment recommendation reports** with evidence grading for clinical guidelines or pharmaceutical strategies
86- **Compare outcomes** between patient subgroups with statistical analysis (survival, response rates, hazard ratios)
87- **Produce pharmaceutical research documents** for drug development, clinical trials, or regulatory submissions
88- **Develop clinical practice guidelines** with GRADE evidence grading and decision algorithms
89- **Document biomarker-guided therapy selection** at the population level (not individual patients)
90- **Synthesize evidence** from multiple trials or real-world data sources
91- **Create clinical decision algorithms** with flowcharts for treatment sequencing
92
93**Do NOT use this skill for:**
94- Individual patient treatment plans (use `treatment-plans` skill)
95- Bedside clinical care documentation (use `treatment-plans` skill)
96- Simple patient-specific treatment protocols (use `treatment-plans` skill)
97
98## Document Structure
99
100**CRITICAL REQUIREMENT: All clinical decision support documents MUST begin with a complete executive summary on page 1 that spans the entire first page before any table of contents or detailed sections.**
101
102### Page 1 Executive Summary Structure
103
104The first page of every CDS document should contain ONLY the executive summary with the following components:
105
106**Required Elements (all on page 1):**
1071. **Document Title and Type**
108 - Main title (e.g., "Biomarker-Stratified Cohort Analysis" or "Evidence-Based Treatment Recommendations")
109 - Subtitle with disease state and focus
110
1112. **Report Information Box** (using colored tcolorbox)
112 - Document type and purpose
113 - Date of analysis/report
114 - Disease state and patient population
115 - Author/institution (if applicable)
116 - Analysis framework or methodology
117
1183. **Key Findings Boxes** (3-5 colored boxes using tcolorbox)
119 - **Primary Results** (blue box): Main efficacy/outcome findings
120 - **Biomarker Insights** (green box): Key molecular subtype findings
121 - **Clinical Implications** (yellow/orange box): Actionable treatment implications
122 - **Statistical Summary** (gray box): Hazard ratios, p-values, key statistics
123 - **Safety Highlights** (red box, if applicable): Critical adverse events or warnings
124
125**Visual Requirements:**
126- Use `\thispagestyle{empty}` to remove page numbers from page 1
127- All content must fit on page 1 (before `\newpage`)
128- Use colored tcolorbox environments with different colors for visual hierarchy
129- Boxes should be scannable and highlight most critical information
130- Use bullet points, not narrative paragraphs
131- End page 1 with `\newpage` before table of contents or detailed sections
132
133**Example First Page LaTeX Structure:**
134```latex
135\maketitle
136\thispagestyle{empty}
137
138% Report Information Box
139\begin{tcolorbox}[colback=blue!5!white, colframe=blue!75!black, title=Report Information]
140\textbf{Document Type:} Patient Cohort Analysis\\
141\textbf{Disease State:} HER2-Positive Metastatic Breast Cancer\\
142\textbf{Analysis Date:} \today\\
143\textbf{Population:} 60 patients, biomarker-stratified by HR status
144\end{tcolorbox}
145
146\vspace{0.3cm}
147
148% Key Finding #1: Primary Results
149\begin{tcolorbox}[colback=blue!5!white, colframe=blue!75!black, title=Primary Efficacy Results]
150\begin{itemize}
151 \item Overall ORR: 72\% (95\% CI: 59-83\%)
152 \item Median PFS: 18.5 months (95\% CI: 14.2-22.8)
153 \item Median OS: 35.2 months (95\% CI: 28.1-NR)
154\end{itemize}
155\end{tcolorbox}
156
157\vspace{0.3cm}
158
159% Key Finding #2: Biomarker Insights
160\begin{tcolorbox}[colback=green!5!white, colframe=green!75!black, title=Biomarker Stratification Findings]
161\begin{itemize}
162 \item HR+/HER2+: ORR 68\%, median PFS 16.2 months
163 \item HR-/HER2+: ORR 78\%, median PFS 22.1 months
164 \item HR status significantly associated with outcomes (p=0.041)
165\end{itemize}
166\end{tcolorbox}
167
168\vspace{0.3cm}
169
170% Key Finding #3: Clinical Implications
171\begin{tcolorbox}[colback=orange!5!white, colframe=orange!75!black, title=Clinical Recommendations]
172\begin{itemize}
173 \item Strong efficacy observed regardless of HR status (Grade 1A)
174 \item HR-/HER2+ patients showed numerically superior outcomes
175 \item Treatment recommended for all HER2+ MBC patients
176\end{itemize}
177\end{tcolorbox}
178
179\newpage
180\tableofcontents % TOC on page 2
181\newpage % Detailed content starts page 3
182```
183
184### Patient Cohort Analysis (Detailed Sections - Page 3+)
185- **Cohort Characteristics**: Demographics, baseline features, patient selection criteria
186- **Biomarker Stratification**: Molecular subtypes, genomic alterations, IHC profiles
187- **Treatment Exposure**: Therapies received, dosing, treatment duration by subgroup
188- **Outcome Analysis**: Response rates (ORR, DCR), survival data (OS, PFS), DOR
189- **Statistical Methods**: Kaplan-Meier survival curves, hazard ratios, log-rank tests, Cox regression
190- **Subgroup Comparisons**: Biomarker-stratified efficacy, forest plots, statistical significance
191- **Safety Profile**: Adverse events by subgroup, dose modifications, discontinuations
192- **Clinical Recommendations**: Treatment implications based on biomarker profiles
193- **Figures**: Waterfall plots, swimmer plots, survival curves, forest plots
194- **Tables**: Demographics table, biomarker frequency, outcomes by subgroup
195
196### Treatment Recommendation Reports (Detailed Sections - Page 3+)
197
198**Page 1 Executive Summary for Treatment Recommendations should include:**
1991. **Report Information Box**: Disease state, guideline version/date, target population
2002. **Key Recommendations Box** (green): Top 3-5 GRADE-graded recommendations by line of therapy
2013. **Biomarker Decision Criteria Box** (blue): Key molecular markers influencing treatment selection
2024. **Evidence Summary Box** (gray): Major trials supporting recommendations (e.g., KEYNOTE-189, FLAURA)
2035. **Critical Monitoring Box** (orange/red): Essential safety monitoring requirements
204
205**Detailed Sections (Page 3+):**
206- **Clinical Context**: Disease state, epidemiology, current treatment landscape
207- **Target Population**: Patient characteristics, biomarker criteria, staging
208- **Evidence Review**: Systematic literature synthesis, guideline summary, trial data
209- **Treatment Options**: Available therapies with mechanism of action
210- **Evidence Grading**: GRADE assessment for each recommendation (1A, 1B, 2A, 2B, 2C)
211- **Recommendations by Line**: First-line, second-line, subsequent therapies
212- **Biomarker-Guided Selection**: Decision criteria based on molecular profiles
213- **Treatment Algorithms**: TikZ flowcharts showing decision pathways
214- **Monitoring Protocol**: Safety assessments, efficacy monitoring, dose modifications
215- **Special Populations**: Elderly, renal/hepatic impairment, comorbidities
216- **References**: Full bibliography with trial names and citations
217
218## Output Format
219
220**MANDATORY FIRST PAGE REQUIREMENT:**
221- **Page 1**: Full-page executive summary with 3-5 colored tcolorbox elements
222- **Page 2**: Table of contents (optional)
223- **Page 3+**: Detailed sections with methods, results, figures, tables
224
225**Document Specifications:**
226- **Primary**: LaTeX/PDF with 0.5in margins for compact, data-dense presentation
227- **Length**: Typically 5-15 pages (1 page executive summary + 4-14 pages detailed content)
228- **Style**: Publication-ready, pharmaceutical-grade, suitable for regulatory submissions
229- **First Page**: Always a complete executive summary spanning entire page 1 (see Document Structure section)
230
231**Visual Elements:**
232- **Colors**:
233 - Page 1 boxes: blue=data/information, green=biomarkers/recommendations, yellow/orange=clinical implications, red=warnings
234 - Recommendation boxes (green=strong recommendation, yellow=conditional, blue=research needed)
235 - Biomarker stratification (color-coded molecular subtypes)
236 - Statistical significance (color-coded p-values, hazard ratios)
237- **Tables**:
238 - Demographics with baseline characteristics
239 - Biomarker frequency by subgroup
240 - Outcomes table (ORR, PFS, OS, DOR by molecular subtype)
241 - Adverse events by cohort
242 - Evidence summary tables with GRADE ratings
243- **Figures**:
244 - Kaplan-Meier survival curves with log-rank p-values and number at risk tables
245 - Waterfall plots showing best response by patient
246 - Forest plots for subgroup analyses with confidence intervals
247 - TikZ decision algorithm flowcharts
248 - Swimmer plots for individual patient timelines
249- **Statistics**: Hazard ratios with 95% CI, p-values, median survival times, landmark survival rates
250- **Compliance**: De-identification per HIPAA Safe Harbor, confidentiality notices for proprietary data
251
252## Integration
253
254This skill integrates with:
255- **scientific-writing**: Citation management, statistical reporting, evidence synthesis
256- **clinical-reports**: Medical terminology, HIPAA compliance, regulatory documentation
257- **scientific-schematics**: TikZ flowcharts for decision algorithms and treatment pathways
258- **treatment-plans**: Individual patient applications of cohort-derived insights (bidirectional)
259
260## Key Differentiators from Treatment-Plans Skill
261
262**Clinical Decision Support (this skill):**
263- **Audience**: Pharmaceutical companies, clinical researchers, guideline committees, medical affairs
264- **Scope**: Population-level analyses, evidence synthesis, guideline development
265- **Focus**: Biomarker stratification, statistical comparisons, evidence grading
266- **Output**: Multi-page analytical documents (5-15 pages typical) with extensive figures and tables
267- **Use Cases**: Drug development, regulatory submissions, clinical practice guidelines, medical strategy
268- **Example**: "Analyze 60 HER2+ breast cancer patients by hormone receptor status with survival outcomes"
269
270**Treatment-Plans Skill:**
271- **Audience**: Clinicians, patients, care teams
272- **Scope**: Individual patient care planning
273- **Focus**: SMART goals, patient-specific interventions, monitoring plans
274- **Output**: Concise 1-4 page actionable care plans
275- **Use Cases**: Bedside clinical care, EMR documentation, patient-centered planning
276- **Example**: "Create treatment plan for a 55-year-old patient with newly diagnosed type 2 diabetes"
277
278**When to use each:**
279- Use **clinical-decision-support** for: cohort analyses, biomarker stratification studies, treatment guideline development, pharmaceutical strategy documents
280- Use **treatment-plans** for: individual patient care plans, treatment protocols for specific patients, bedside clinical documentation
281
282## Example Usage
283
284### Patient Cohort Analysis
285
286**Example 1: NSCLC Biomarker Stratification**
287```
288> Analyze a cohort of 45 NSCLC patients stratified by PD-L1 expression (<1%, 1-49%, ≥50%)
289> receiving pembrolizumab. Include outcomes: ORR, median PFS, median OS with hazard ratios
290> comparing PD-L1 ≥50% vs <50%. Generate Kaplan-Meier curves and waterfall plot.
291```
292
293**Example 2: GBM Molecular Subtype Analysis**
294```
295> Generate cohort analysis for 30 GBM patients classified into Cluster 1 (Mesenchymal-Immune-Active)
296> and Cluster 2 (Proneural) molecular subtypes. Compare outcomes including median OS, 6-month PFS rate,
297> and response to TMZ+bevacizumab. Include biomarker profile table and statistical comparison.
298```
299
300**Example 3: Breast Cancer HER2 Cohort**
301```
302> Analyze 60 HER2-positive metastatic breast cancer patients treated with trastuzumab-deruxtecan,
303> stratified by prior trastuzumab exposure (yes/no). Include ORR, DOR, median PFS with forest plot
304> showing subgroup analyses by hormone receptor status, brain metastases, and number of prior lines.
305```
306
307### Treatment Recommendation Report
308
309**Example 1: HER2+ Metastatic Breast Cancer Guidelines**
310```
311> Create evidence-based treatment recommendations for HER2-positive metastatic breast cancer including
312> biomarker-guided therapy selection. Use GRADE system to grade recommendations for first-line
313> (trastuzumab+pertuzumab+taxane), second-line (trastuzumab-deruxtecan), and third-line options.
314> Include decision algorithm flowchart based on brain metastases, hormone receptor status, and prior therapies.
315```
316
317**Example 2: Advanced NSCLC Treatment Algorithm**
318```
319> Generate treatment recommendation report for advanced NSCLC based on PD-L1 expression, EGFR mutation,
320> ALK rearrangement, and performance status. Include GRADE-graded recommendations for each molecular subtype,
321> TikZ flowchart for biomarker-directed therapy selection, and evidence tables from KEYNOTE-189, FLAURA,
322> and CheckMate-227 trials.
323```
324
325**Example 3: Multiple Myeloma Line-of-Therapy Sequencing**
326```
327> Create treatment algorithm for newly diagnosed multiple myeloma through relapsed/refractory setting.
328> Include GRADE recommendations for transplant-eligible vs ineligible, high-risk cytogenetics considerations,
329> and sequencing of daratumumab, carfilzomib, and CAR-T therapy. Provide flowchart showing decision points
330> at each line of therapy.
331```
332
333## Key Features
334
335### Biomarker Classification
336- Genomic: Mutations, CNV, gene fusions
337- Expression: RNA-seq, IHC scores
338- Molecular subtypes: Disease-specific classifications
339- Clinical actionability: Therapy selection guidance
340
341### Outcome Metrics
342- Survival: OS (overall survival), PFS (progression-free survival)
343- Response: ORR (objective response rate), DOR (duration of response), DCR (disease control rate)
344- Quality: ECOG performance status, symptom burden
345- Safety: Adverse events, dose modifications
346
347### Statistical Methods
348- Survival analysis: Kaplan-Meier curves, log-rank tests
349- Group comparisons: t-tests, chi-square, Fisher's exact
350- Effect sizes: Hazard ratios, odds ratios with 95% CI
351- Significance: p-values, multiple testing corrections
352
353### Evidence Grading
354
355**GRADE System**
356- **1A**: Strong recommendation, high-quality evidence
357- **1B**: Strong recommendation, moderate-quality evidence
358- **2A**: Weak recommendation, high-quality evidence
359- **2B**: Weak recommendation, moderate-quality evidence
360- **2C**: Weak recommendation, low-quality evidence
361
362**Recommendation Strength**
363- **Strong**: Benefits clearly outweigh risks
364- **Conditional**: Trade-offs exist, patient values important
365- **Research**: Insufficient evidence, clinical trials needed
366
367## Best Practices
368
369### For Cohort Analyses
370
3711. **Patient Selection Transparency**: Clearly document inclusion/exclusion criteria, patient flow, and reasons for exclusions
3722. **Biomarker Clarity**: Specify assay methods, platforms (e.g., FoundationOne, Caris), cut-points, and validation status
3733. **Statistical Rigor**:
374 - Report hazard ratios with 95% confidence intervals, not just p-values
375 - Include median follow-up time for survival analyses
376 - Specify statistical tests used (log-rank, Cox regression, Fisher's exact)
377 - Account for multiple comparisons when appropriate
3784. **Outcome Definitions**: Use standard criteria:
379 - Response: RECIST 1.1, iRECIST for immunotherapy
380 - Adverse events: CTCAE version 5.0
381 - Performance status: ECOG or Karnofsky
3825. **Survival Data Presentation**:
383 - Median OS/PFS with 95% CI
384 - Landmark survival rates (6-month, 12-month, 24-month)
385 - Number at risk tables below Kaplan-Meier curves
386 - Censoring clearly indicated
3876. **Subgroup Analyses**: Pre-specify subgroups; clearly label exploratory vs pre-planned analyses
3887. **Data Completeness**: Report missing data and how it was handled
389
390### For Treatment Recommendation Reports
391
3921. **Evidence Grading Transparency**:
393 - Use GRADE system consistently (1A, 1B, 2A, 2B, 2C)
394 - Document rationale for each grade
395 - Clearly state quality of evidence (high, moderate, low, very low)
3962. **Comprehensive Evidence Review**:
397 - Include phase 3 randomized trials as primary evidence
398 - Supplement with phase 2 data for emerging therapies
399 - Note real-world evidence and meta-analyses
400 - Cite trial names (e.g., KEYNOTE-189, CheckMate-227)
4013. **Biomarker-Guided Recommendations**:
402 - Link specific biomarkers to therapy recommendations
403 - Specify testing methods and validated assays
404 - Include FDA/EMA approval status for companion diagnostics
4054. **Clinical Actionability**: Every recommendation should have clear implementation guidance
4065. **Decision Algorithm Clarity**: TikZ flowcharts should be unambiguous with clear yes/no decision points
4076. **Special Populations**: Address elderly, renal/hepatic impairment, pregnancy, drug interactions
4087. **Monitoring Guidance**: Specify safety labs, imaging, and frequency
4098. **Update Frequency**: Date recommendations and plan for periodic updates
410
411### General Best Practices
412
4131. **First Page Executive Summary (MANDATORY)**:
414 - ALWAYS create a complete executive summary on page 1 that spans the entire first page
415 - Use 3-5 colored tcolorbox elements to highlight key findings
416 - No table of contents or detailed sections on page 1
417 - Use `\thispagestyle{empty}` and end with `\newpage`
418 - This is the single most important page - it should be scannable in 60 seconds
4192. **De-identification**: Remove all 18 HIPAA identifiers before document generation (Safe Harbor method)
4203. **Regulatory Compliance**: Include confidentiality notices for proprietary pharmaceutical data
4214. **Publication-Ready Formatting**: Use 0.5in margins, professional fonts, color-coded sections
4225. **Reproducibility**: Document all statistical methods to enable replication
4236. **Conflict of Interest**: Disclose pharmaceutical funding or relationships when applicable
4247. **Visual Hierarchy**: Use colored boxes consistently (blue=data, green=biomarkers, yellow/orange=recommendations, red=warnings)
425
426## References
427
428See the `references/` directory for detailed guidance on:
429- Patient cohort analysis and stratification methods
430- Treatment recommendation development
431- Clinical decision algorithms
432- Biomarker classification and interpretation
433- Outcome analysis and statistical methods
434- Evidence synthesis and grading systems
435
436## Templates
437
438See the `assets/` directory for LaTeX templates:
439- `cohort_analysis_template.tex` - Biomarker-stratified patient cohort analysis with statistical comparisons
440- `treatment_recommendation_template.tex` - Evidence-based clinical practice guidelines with GRADE grading
441- `clinical_pathway_template.tex` - TikZ decision algorithm flowcharts for treatment sequencing
442- `biomarker_report_template.tex` - Molecular subtype classification and genomic profile reports
443- `evidence_synthesis_template.tex` - Systematic evidence review and meta-analysis summaries
444
445**Template Features:**
446- 0.5in margins for compact presentation
447- Color-coded recommendation boxes
448- Professional tables for demographics, biomarkers, outcomes
449- Built-in support for Kaplan-Meier curves, waterfall plots, forest plots
450- GRADE evidence grading tables
451- Confidentiality headers for pharmaceutical documents
452
453## Scripts
454
455See the `scripts/` directory for analysis and visualization tools:
456- `generate_survival_analysis.py` - Kaplan-Meier curve generation with log-rank tests, hazard ratios, 95% CI
457- `create_waterfall_plot.py` - Best response visualization for cohort analyses
458- `create_forest_plot.py` - Subgroup analysis visualization with confidence intervals
459- `create_cohort_tables.py` - Demographics, biomarker frequency, and outcomes tables
460- `build_decision_tree.py` - TikZ flowchart generation for treatment algorithms
461- `biomarker_classifier.py` - Patient stratification algorithms by molecular subtype
462- `calculate_statistics.py` - Hazard ratios, Cox regression, log-rank tests, Fisher's exact
463- `validate_cds_document.py` - Quality and compliance checks (HIPAA, statistical reporting standards)
464- `grade_evidence.py` - Automated GRADE assessment helper for treatment recommendations
465