foryourhealth111-pixel/Vibe-Skills / bundled/skills/treatment-plans
treatment-plans
VerifiedGenerate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based interventions with minimal text citations, regulatory compliance (HIPAA), and professional formatting. Prioritizes brevity and clinical actionability.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 51.5 KB |
| assets/STYLING_QUICK_REFERENCE.md | markdown | 3.8 KB |
| assets/chronic_disease_management_plan.tex | other | 28.7 KB |
| assets/general_medical_treatment_plan.tex | other | 22.7 KB |
| assets/medical_treatment_plan.sty | other | 5.3 KB |
| assets/mental_health_treatment_plan.tex | other | 33.7 KB |
| assets/one_page_treatment_plan.tex | other | 5.3 KB |
| assets/pain_management_plan.tex | other | 32.5 KB |
| assets/perioperative_care_plan.tex | other | 29.3 KB |
| assets/quality_checklist.md | markdown | 14.7 KB |
| assets/rehabilitation_treatment_plan.tex | other | 29.7 KB |
| references/README.md | markdown | 16.6 KB |
| references/goal_setting_frameworks.md | markdown | 16.2 KB |
| references/intervention_guidelines.md | markdown | 18.6 KB |
| references/regulatory_compliance.md | markdown | 17.2 KB |
| references/specialty_specific_guidelines.md | markdown | 26.1 KB |
| references/treatment_plan_standards.md | markdown | 16.3 KB |
| scripts/check_completeness.py | script | 9.7 KB |
| scripts/generate_template.py | script | 7.3 KB |
| scripts/timeline_generator.py | script | 12.3 KB |
| scripts/validate_treatment_plan.py | script | 12.1 KB |
scripts/generate_template.py
View on GitHub#!/usr/bin/env python3
"""
Generate Treatment Plan Template
Interactive script to select and generate treatment plan templates.
"""
import os
import sys
import shutil
import argparse
from pathlib import Path
from datetime import datetime
# Template types and descriptions
TEMPLATES = {
'general_medical': {
'name': 'General Medical Treatment Plan',
'file': 'general_medical_treatment_plan.tex',
'description': 'For primary care and chronic disease management (diabetes, hypertension, etc.)'
},
'rehabilitation': {
'name': 'Rehabilitation Treatment Plan',
'file': 'rehabilitation_treatment_plan.tex',
'description': 'For physical therapy, occupational therapy, and rehabilitation services'
},
'mental_health': {
'name': 'Mental Health Treatment Plan',
'file': 'mental_health_treatment_plan.tex',
'description': 'For psychiatric and behavioral health treatment'
},
'chronic_disease': {
'name': 'Chronic Disease Management Plan',
'file': 'chronic_disease_management_plan.tex',
'description': 'For complex multimorbidity and long-term care coordination'
},
'perioperative': {
'name': 'Perioperative Care Plan',
'file': 'perioperative_care_plan.tex',
'description': 'For surgical and procedural patient management'
},
'pain_management': {
'name': 'Pain Management Plan',
'file': 'pain_management_plan.tex',
'description': 'For acute and chronic pain treatment (multimodal approach)'
}
}
def get_templates_dir():
"""Get the path to the templates directory."""
# Assume script is in .claude/skills/treatment-plans/scripts/
script_dir = Path(__file__).parent
templates_dir = script_dir.parent / 'assets'
return templates_dir
def list_templates():
"""Display available templates."""
print("\n" + "="*70)
print("AVAILABLE TREATMENT PLAN TEMPLATES")
print("="*70)
for i, (key, info) in enumerate(TEMPLATES.items(), 1):
print(f"\n{i}. {info['name']}")
print(f" Type: {key}")
print(f" File: {info['file']}")
print(f" Description: {info['description']}")
print("\n" + "="*70)
def interactive_selection():
"""Interactive template selection."""
list_templates()
while True:
try:
choice = input("\nSelect template number (1-6) or 'q' to quit: ").strip().lower()
if choice == 'q':
print("Exiting...")
sys.exit(0)
choice_num = int(choice)
if 1 <= choice_num <= len(TEMPLATES):
template_key = list(TEMPLATES.keys())[choice_num - 1]
return template_key
else:
print(f"Please enter a number between 1 and {len(TEMPLATES)}.")
except ValueError:
print("Invalid input. Please enter a number or 'q' to quit.")
def get_output_filename(template_key, custom_name=None):
"""Generate output filename."""
if custom_name:
# Ensure .tex extension
if not custom_name.endswith('.tex'):
custom_name += '.tex'
return custom_name
# Default: template_key_YYYYMMDD.tex
timestamp = datetime.now().strftime('%Y%m%d')
return f"{template_key}_plan_{timestamp}.tex"
def copy_template(template_key, output_path):
"""Copy template to output location."""
templates_dir = get_templates_dir()
template_file = TEMPLATES[template_key]['file']
source_path = templates_dir / template_file
if not source_path.exists():
raise FileNotFoundError(f"Template not found: {source_path}")
# Create output directory if it doesn't exist
output_path = Path(output_path)
output_path.parent.mkdir(parents=True, exist_ok=True)
# Copy template
shutil.copy2(source_path, output_path)
return output_path
def display_success(output_path, template_key):
"""Display success message with next steps."""
template_info = TEMPLATES[template_key]
print("\n" + "="*70)
print("✓ TEMPLATE GENERATED SUCCESSFULLY")
print("="*70)
print(f"\nTemplate: {template_info['name']}")
print(f"Output file: {output_path}")
print(f"File size: {os.path.getsize(output_path):,} bytes")
print("\n" + "-"*70)
print("NEXT STEPS:")
print("-"*70)
print("\n1. CUSTOMIZE THE TEMPLATE:")
print(" - Open the .tex file in your LaTeX editor")
print(" - Replace all [bracketed placeholders] with patient-specific information")
print(" - Remove or modify sections as appropriate for your patient")
print("\n2. COMPILE TO PDF:")
print(f" $ pdflatex {output_path.name}")
print("\n3. VALIDATE (optional):")
print(f" $ python check_completeness.py {output_path.name}")
print(f" $ python validate_treatment_plan.py {output_path.name}")
print("\n4. DE-IDENTIFY BEFORE SHARING:")
print(" - Remove all HIPAA identifiers (18 identifiers)")
print(" - See regulatory_compliance.md reference for details")
print("\n" + "="*70)
def main():
parser = argparse.ArgumentParser(
description='Generate treatment plan template',
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
Examples:
# Interactive mode (recommended for first-time users)
python generate_template.py
# Direct generation with type specification
python generate_template.py --type general_medical --output diabetes_plan.tex
# Generate with default filename
python generate_template.py --type mental_health
# List available templates
python generate_template.py --list
Available template types:
general_medical, rehabilitation, mental_health, chronic_disease,
perioperative, pain_management
"""
)
parser.add_argument(
'--type',
choices=list(TEMPLATES.keys()),
help='Template type to generate'
)
parser.add_argument(
'--output',
help='Output filename (default: auto-generated with timestamp)'
)
parser.add_argument(
'--list',
action='store_true',
help='List available templates and exit'
)
args = parser.parse_args()
# List templates and exit
if args.list:
list_templates()
return
# Determine template type
if args.type:
template_key = args.type
print(f"\nGenerating template: {TEMPLATES[template_key]['name']}")
else:
# Interactive mode
template_key = interactive_selection()
# Determine output filename
if args.output:
output_filename = args.output
else:
output_filename = get_output_filename(template_key)
# Default output to current directory
output_path = Path.cwd() / output_filename
# Confirm overwrite if file exists
if output_path.exists():
response = input(f"\nFile {output_filename} already exists. Overwrite? (y/n): ").strip().lower()
if response != 'y':
print("Cancelled.")
return
# Copy template
try:
output_path = copy_template(template_key, output_path)
display_success(output_path, template_key)
except Exception as e:
print(f"\n✗ ERROR: {e}", file=sys.stderr)
sys.exit(1)
if __name__ == '__main__':
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |