Skip to content

donaldfilimon/abi / .agents/skills/pptx

Use this skill any time a .pptx 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 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, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

FileKindSize
SKILL.mdskill md9.1 KB
references/creating.mdmarkdown18.8 KB
references/editing.mdmarkdown28.2 KB
references/template_taxonomy.jsonconfig112.3 KB
references/templates/activewear_collection_overview.jsscript31.4 KB
references/templates/africa_fmcg_value_chain_playbook.jsscript40.1 KB
references/templates/ag_trade_finance_pitch_deck.jsscript32.3 KB
references/templates/agri_commodities_trading_primer.jsscript31.9 KB
references/templates/agtech_seed_round_pitch_deck.jsscript36.9 KB
references/templates/ai_blockchain_market_briefing.jsscript47.6 KB
references/templates/ai_llm_technical_history.jsscript34.4 KB
references/templates/ai_robotics_startup_pitch_deck.jsscript70.8 KB
references/templates/ai_sports_media_partnership_pitch.jsscript38.4 KB
references/templates/ai_startup_series_a_pitch_deck.jsscript18.3 KB
references/templates/american_regional_pizza_guide.jsscript23.4 KB
references/templates/animation_studio_company_history.jsscript20.5 KB
references/templates/apothecary_brand_introduction.jsscript18.7 KB
references/templates/art_gallery_exhibition_presentation.jsscript92.5 KB
references/templates/auto_repair_company_profile.jsscript68.7 KB
references/templates/automotive_board_strategy_review.jsscript52.0 KB
references/templates/bagel_shop_menu_pitch_deck.jsscript32.3 KB
references/templates/bakery_business_pitch_deck.jsscript31.8 KB
references/templates/bakery_commercial_loan_pitch.jsscript32.9 KB
references/templates/bakery_concept_vision_board.jsscript31.6 KB
references/templates/biology_dissertation_proposal.jsscript37.4 KB
references/templates/biotech_cloud_rd_infrastructure_proposal.jsscript49.7 KB
references/templates/biotech_series_b_pitch_deck.jsscript53.4 KB
references/templates/biotech_startup_pitch_deck.jsscript23.7 KB
references/templates/cafe_concept_vision_pitch_deck.jsscript22.0 KB
references/templates/cfo_financial_performance_review.jsscript41.4 KB
references/templates/childcare_operator_partnership_pitch.jsscript32.2 KB
references/templates/coffee_franchise_prospectus.jsscript51.8 KB
references/templates/college_admissions_consulting_pitch.jsscript31.2 KB
references/templates/college_sports_policy_briefing.jsscript17.9 KB
references/templates/comedy_writing_guide.jsscript22.3 KB
references/templates/consumer_goods_annual_budget.jsscript15.9 KB
references/templates/cruise_itinerary_trade_portfolio.jsscript42.8 KB
references/templates/crypto_hedge_fund_pitch_deck.jsscript34.5 KB
references/templates/crypto_portfolio_management.jsscript25.6 KB
references/templates/crypto_quantum_risk_briefing.jsscript47.2 KB
references/templates/crypto_series_a_pitch_deck.jsscript51.2 KB
references/templates/destination_marketing_event_pitch.jsscript27.9 KB
references/templates/economic_consulting_prospectus.jsscript25.3 KB
references/templates/edinburgh_fringe_performer_guide.jsscript27.3 KB
references/templates/edtech_ai_product_pitch_deck.jsscript95.7 KB
references/templates/education_calculus_lecture.jsscript29.6 KB
references/templates/education_intro_chemistry_lecture.jsscript23.0 KB
references/templates/education_intro_to_piano_lecture.jsscript26.6 KB
references/templates/education_literature_canterbury_tales.jsscript18.9 KB
references/templates/education_music_theory_lesson.jsscript22.6 KB
references/templates/education_university_profile.jsscript48.6 KB
references/templates/education_visual_essay_presentation.jsscript25.4 KB
references/templates/education_water_polo_basics.jsscript22.8 KB
references/templates/electronic_music_promoter_field_report.jsscript38.9 KB
references/templates/energy_storage_vendor_assessment.jsscript36.4 KB
references/templates/entertainment_creative_pitch_deck.jsscript27.1 KB
references/templates/entertainment_film_pitch_deck.jsscript110.2 KB
references/templates/family_office_portfolio_review.jsscript52.9 KB
references/templates/fashion_apparel_lookbook.jsscript41.0 KB
references/templates/feature_film_pitch_deck.jsscript32.1 KB
references/templates/finance_10k_filing_analysis_guide.jsscript35.2 KB
references/templates/finance_ai_fixed_income_briefing.jsscript34.5 KB
references/templates/finance_ai_portfolio_analysis.jsscript21.5 KB
references/templates/finance_cockroach_portfolio_strategy.jsscript32.8 KB
references/templates/finance_crypto_fund_pitch_deck.jsscript27.1 KB
references/templates/finance_day_trading_primer.jsscript35.2 KB
references/templates/finance_digital_asset_custody_briefing.jsscript44.1 KB
references/templates/finance_employee_excellence_awards.jsscript24.4 KB
references/templates/finance_equity_investment_analysis.jsscript117.2 KB
references/templates/finance_equity_portfolio_performance_report.jsscript48.5 KB
references/templates/finance_equity_research_index_analysis.jsscript39.2 KB
references/templates/finance_equity_research_investment_thesis.jsscript42.2 KB
references/templates/finance_equity_research_stock_pitch.jsscript35.8 KB
references/templates/finance_hedge_fund_pitch_deck.jsscript29.6 KB
references/templates/finance_hedge_fund_primer.jsscript78.5 KB
references/templates/finance_ifrs_us_gaap_training.jsscript7.6 KB
references/templates/finance_investment_committee_memo.jsscript41.2 KB
references/templates/finance_investment_portfolio_brief.jsscript32.0 KB
references/templates/finance_lihtc_bond_portfolio_review.jsscript43.6 KB
references/templates/finance_nft_marketplace_pitch_deck.jsscript44.5 KB
references/templates/finance_portfolio_quarterly_review.jsscript40.7 KB
references/templates/finance_prediction_markets_investment_memo.jsscript28.9 KB
references/templates/finance_private_credit_primer.jsscript34.7 KB
references/templates/finance_quant_trading_desk_proposal.jsscript50.5 KB
references/templates/finance_rwa_tokenization_pitch.jsscript39.6 KB
references/templates/finance_spv_pre_ipo_pitch.jsscript50.0 KB
references/templates/finance_vc_investment_memo.jsscript32.8 KB
references/templates/finance_vc_investment_memo_2.jsscript43.9 KB
references/templates/finance_venture_capital_primer.jsscript31.5 KB
references/templates/fintech_ai_series_a_pitch_deck.jsscript44.5 KB
references/templates/fitness_franchise_qbr_performance.jsscript40.6 KB
references/templates/fitness_gym_summer_press_kit.jsscript32.0 KB
references/templates/fitness_personal_training_keynote.jsscript22.9 KB
references/templates/fixed_income_macro_outlook.jsscript145.9 KB
references/templates/flower_shop_company_profile.jsscript44.1 KB
references/templates/food_beverage_bakery_brand_profile.jsscript19.1 KB
references/templates/food_beverage_seed_pitch_deck.jsscript30.9 KB
references/templates/food_delivery_subscription_pitch.jsscript59.1 KB
references/templates/future_mobility_trends_keynote.jsscript44.2 KB
references/templates/game_design_character_brief.jsscript44.2 KB
references/templates/gaming_ai_startup_pitch_deck.jsscript41.9 KB
references/templates/gaming_product_portfolio_review.jsscript33.5 KB
references/templates/garyvee_content_strategy_framework.jsscript25.7 KB
references/templates/gelateria_seed_pitch_deck.jsscript26.6 KB
references/templates/geospatial_data_analysis_training.jsscript33.3 KB
references/templates/grocery_flash_sale_promotion.jsscript32.9 KB
references/templates/healthcare_ai_partnership_proposal.jsscript31.8 KB
references/templates/healthcare_ma_pitch_deck.jsscript52.0 KB
references/templates/healthcare_nursing_performance_review.jsscript33.7 KB
references/templates/healthcare_patient_accessibility_survey.jsscript37.4 KB
references/templates/healthcare_patient_forms_standardization.jsscript56.8 KB
references/templates/healthcare_promis57_patient_guide.jsscript43.3 KB
references/templates/healthcare_std_prophylaxis_grand_rounds.jsscript51.9 KB
references/templates/healthcare_tb_testing_clinical_training.jsscript23.9 KB
references/templates/hedge_fund_portfolio_strategy.jsscript26.7 KB
references/templates/hospitality_bed_and_breakfast_promo.jsscript41.9 KB
references/templates/indoor_golf_club_launch_deck.jsscript25.9 KB
references/templates/institutional_crypto_exchange_pitch_deck.jsscript63.0 KB
references/templates/interior_design_studio_portfolio.jsscript36.4 KB
references/templates/intro_to_guitar_lecture.jsscript33.0 KB
references/templates/italy_travel_destination_guide.jsscript49.5 KB
references/templates/japan_travel_destination_guide.jsscript35.3 KB
references/templates/jazz_bar_concept_pitch.jsscript34.5 KB
references/templates/k12_literacy_tutoring_pitch.jsscript26.0 KB
references/templates/kids_taekwondo_marketing.jsscript24.8 KB
references/templates/labor_economics_research_presentation.jsscript27.7 KB
references/templates/local_ai_consulting_pitch_deck.jsscript35.0 KB
references/templates/local_business_pitch_deck.jsscript28.1 KB
references/templates/local_city_history_overview.jsscript31.0 KB
references/templates/local_ice_cream_shop_pitch_deck.jsscript26.9 KB
references/templates/luxury_design_brand_story.jsscript17.9 KB
references/templates/luxury_eyewear_retail_seed_pitch.jsscript31.9 KB
references/templates/luxury_hospitality_brand_guidelines.jsscript25.2 KB
references/templates/luxury_interior_design_partnership_deck.jsscript22.5 KB
references/templates/luxury_nanny_placement_brochure.jsscript37.5 KB
references/templates/macro_research_yield_curve_report.jsscript42.5 KB
references/templates/mba_financial_crisis_lecture.jsscript55.7 KB
references/templates/mental_health_app_pitch_deck.jsscript42.4 KB
references/templates/middle_school_nutrition_lesson.jsscript26.8 KB
references/templates/mobile_pet_grooming_seed_pitch_deck.jsscript25.8 KB
references/templates/mobile_pet_grooming_service_overview.jsscript48.8 KB
references/templates/municipal_water_infrastructure_proposal.jsscript35.7 KB
references/templates/music_festival_seed_pitch_deck.jsscript27.6 KB
references/templates/music_label_pitch_deck.jsscript44.7 KB
references/templates/nonprofit_wildlife_conservation_prospectus.jsscript50.3 KB
references/templates/nursing_documentation_transformation_strategy.jsscript37.3 KB
references/templates/orbital_compute_investor_memo.jsscript45.1 KB
references/templates/paintball_arena_pitch_deck.jsscript31.5 KB
references/templates/paragliding_school_prospectus.jsscript37.6 KB
references/templates/pest_control_company_overview.jsscript33.6 KB
references/templates/pharma_product_launch_deck.jsscript42.3 KB
references/templates/photography_studio_portfolio.jsscript18.1 KB
references/templates/pressure_washing_company_profile.jsscript36.6 KB
references/templates/public_health_snus_field_guide.jsscript45.4 KB
references/templates/real_estate_development_pitch.jsscript29.7 KB
references/templates/real_estate_fund_investment_briefing.jsscript40.7 KB
references/templates/real_estate_investing_primer.jsscript43.4 KB
references/templates/real_estate_market_overview.jsscript18.0 KB
references/templates/real_estate_neighborhood_buyer_guide.jsscript27.8 KB
references/templates/real_estate_self_storage_community_pitch.jsscript62.0 KB
references/templates/regional_airport_pitch_deck.jsscript29.6 KB
references/templates/restaurant_concept_pitch_deck.jsscript20.8 KB
references/templates/restaurant_concept_vision_deck.jsscript24.4 KB
references/templates/restaurant_culinary_profile.jsscript25.1 KB
references/templates/restaurant_franchise_pitch_deck.jsscript39.2 KB
references/templates/restaurant_investor_pitch_deck.jsscript35.5 KB
references/templates/retail_bookstore_profile.jsscript29.4 KB
references/templates/retail_florist_business_profile.jsscript17.3 KB
references/templates/retail_pet_store_pitch_deck.jsscript23.2 KB
references/templates/retail_product_catalog_overview.jsscript27.4 KB
references/templates/retro_tech_cafe_pitch_deck.jsscript80.9 KB
references/templates/scuba_dive_operator_prospectus.jsscript37.7 KB
references/templates/seaborn_data_visualization_training.jsscript31.4 KB
references/templates/skateboarding_beginner_course_lesson.jsscript27.1 KB
references/templates/snowboard_school_prospectus.jsscript42.5 KB
references/templates/snowboarding_beginner_lesson.jsscript24.1 KB
references/templates/sports_betting_saas_pitch_deck.jsscript33.1 KB
references/templates/sports_market_expansion_strategy.jsscript93.5 KB
references/templates/sports_marketing_promo_calendar.jsscript21.3 KB
references/templates/sports_sponsorship_pitch_deck.jsscript30.2 KB
references/templates/student_transportation_company_overview.jsscript41.3 KB
references/templates/surf_school_intro_lesson.jsscript31.0 KB
references/templates/tech_hardware_expansion_strategy.jsscript41.1 KB
references/templates/tv_series_pitch_deck.jsscript38.5 KB
references/templates/university_giving_day_fundraising.jsscript25.0 KB
references/templates/urban_landscaping_service_proposal.jsscript28.9 KB
references/templates/us_history_student_presentation.jsscript38.1 KB
references/templates/vacation_rental_quarterly_financial_report.jsscript35.3 KB
references/templates/video_game_industry_history.jsscript32.0 KB
references/templates/video_game_pitch_deck.jsscript45.7 KB
references/templates/vintage_computer_cafe_pitch_deck.jsscript32.0 KB
references/templates/wakeboarding_coaching_prospectus.jsscript35.8 KB
references/templates/web3_defi_app_design_review.jsscript51.2 KB
references/templates/wellness_startup_seed_pitch_deck.jsscript57.6 KB
references/templates/wine_tourism_strategy_brief.jsscript33.8 KB
references/templates/youth_soccer_training_program.jsscript42.5 KB
references/templates/youtube_channel_media_kit.jsscript52.1 KB
scripts/__init__.pyscript0 B
scripts/add_slide.pyscript6.7 KB
scripts/check_overlaps.pyscript17.2 KB

references/templates/healthcare_tb_testing_clinical_training.js

View on GitHub
/**
 * TB Testing and Treatment - Clinic Training Deck
 * Faithful recreation of the provided PPTX via pptxgenjs.
 *
 * Usage:
 *   npm install pptxgenjs
 *   node deck.js
 *
 * Expects an `assets/` folder next to this file containing image1.png ... image22.png
 * (extracted from the original PPTX's ppt/media/ folder).
 */

const pptxgen = require("pptxgenjs");
const path = require("path");

const ASSETS = path.join(__dirname, "assets");
const asset = (name) => path.join(ASSETS, name);

// ---------- Palette ----------
const BG         = "0F172A"; // slide background (deep navy)
const TEXT       = "F1F5F9"; // primary light text
const MUTED      = "94A3B8"; // footer/source text
const SUBTLE     = "CBD5E1"; // secondary body text
const AMBER      = "F59E0B"; // primary accent
const BLUE       = "3B82F6"; // secondary accent
const BLUE_LIGHT = "60A5FA"; // circle stroke
const CYAN       = "22D3EE"; // negative-result accent
const RED        = "EF4444"; // active TB accent
const CARD       = "1E293B"; // card/roundRect fill
const DIVIDER    = "334155"; // faint dashed divider
const SLATE_DARK = "1E293B";

const FONT_HEAD = "Georgia";
const FONT_BODY = "Garamond";

// ---------- Presentation ----------
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9"; // 10" x 5.625"
pres.title  = "TB Testing and Treatment";
pres.author = "Clinic Training";

// Helper: consistent footer (title + page number) on content slides
function addFooter(slide, pageNum) {
  slide.addText("TB Testing & Treatment", {
    x: 0.6, y: 5.3, w: 6.0, h: 0.3,
    fontFace: FONT_BODY, fontSize: 10, color: MUTED, margin: 0
  });
  slide.addText(String(pageNum), {
    x: 9.0, y: 5.3, w: 0.6, h: 0.3,
    fontFace: FONT_BODY, fontSize: 10, color: MUTED, align: "right", margin: 0
  });
}

// Helper: standard slide background
function addBg(slide) {
  slide.background = { color: BG };
}

// ---------- Slide 1 — Title ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText(
    [
      { text: "Screening for Tomorrow", options: { breakLine: true } },
      { text: "Treating for Today" }
    ],
    { x: 0.6, y: 1.35, w: 9.0, h: 1.5,
      fontFace: FONT_HEAD, fontSize: 42, bold: true, color: TEXT, margin: 0 }
  );
  s.addText("TB Testing and Treatment", {
    x: 0.6, y: 2.953, w: 8.8, h: 0.5,
    fontFace: FONT_HEAD, fontSize: 32, bold: true, color: TEXT, margin: 0
  });
  s.addText(
    [
      { text: "Clinic Training · Residents and Nurses", options: { breakLine: true } },
      { text: "San Francisco, California · April 9, 2026" }
    ],
    { x: 0.6, y: 3.609, w: 8.8, h: 0.8,
      fontFace: FONT_BODY, fontSize: 20, bold: true, color: TEXT, margin: 0 }
  );
  s.addText("1", {
    x: 9.0, y: 5.3, w: 0.6, h: 0.3,
    fontFace: FONT_BODY, fontSize: 10, color: MUTED, align: "right", margin: 0
  });
}

// ---------- Slide 2 — Seven Linked Clinical Skills ----------
{
  const s = pres.addSlide();
  addBg(s);

  // Title with "Seven" in accent
  s.addText(
    [
      { text: "Seven", options: { color: TEXT } },
      { text: " Linked Clinical Skills in TB Testing", options: { color: TEXT } }
    ],
    { x: 0.6, y: 0.326, w: 8.8, h: 0.5,
      fontFace: FONT_HEAD, fontSize: 22, bold: true, margin: 0 }
  );

  // Background illustration (stylized apple/lung graphic)
  s.addImage({ path: asset("image8.png"), x: 4.4, y: 0.3, w: 5.0, h: 4.2 });

  // Seven category rows: icon + label
  const items = [
    { img: "image1.png",  label: "Epidemiology" },
    { img: "image2.png",  label: "Patient Profiles" },
    { img: "image3.png",  label: "PPD Flowcharts" },
    { img: "image4.png",  label: "PPD and QuantiFERON" },
    { img: "image5.png",  label: "CXR Findings" },
    { img: "image6.png",  label: "Patient Cases" },
    { img: "image7.png",  label: "References" }
  ];
  items.forEach((it, i) => {
    const y = 1.5 + i * 0.5;
    s.addImage({ path: asset(it.img), x: 0.6, y: y + 0.05, w: 0.28, h: 0.28 });
    s.addText(it.label, {
      x: 1.1, y: y, w: 4.0, h: 0.4,
      fontFace: FONT_HEAD, fontSize: 18, bold: true, color: TEXT,
      valign: "middle", margin: 0
    });
  });

  // Big "1 in 4" callout
  s.addText("1 in 4", {
    x: 4.9, y: 4.012, w: 4.0, h: 0.55,
    fontFace: FONT_HEAD, fontSize: 36, bold: true, color: AMBER,
    align: "center", margin: 0
  });
  s.addText(
    [
      { text: "people globally infected", options: { breakLine: true } },
      { text: "with TB bacteria" }
    ],
    { x: 4.9, y: 4.562, w: 4.0, h: 0.55,
      fontFace: FONT_BODY, fontSize: 16, bold: true, color: TEXT,
      align: "center", margin: 0 }
  );

  addFooter(s, 2);
}

// ---------- Helper: slides 3 & 4 are effectively single-image content slides ----------
function addMapSlide(opts) {
  const s = pres.addSlide();
  addBg(s);
  s.addText(opts.title, {
    x: 0.6, y: 0.326, w: 8.8, h: 0.5,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  s.addText(opts.sub, {
    x: 0.6, y: 0.85, w: 4.0, h: 0.3,
    fontFace: FONT_HEAD, fontSize: 18, bold: true, color: TEXT, margin: 0
  });
  s.addImage({ path: asset(opts.img), x: opts.imgX, y: 1.2, w: opts.imgW, h: opts.imgH });
  s.addText(opts.source, {
    x: 0.6, y: 4.9, w: 5.0, h: 0.25,
    fontFace: FONT_BODY, fontSize: 10, italic: true, color: MUTED, margin: 0
  });
  addFooter(s, opts.page);
  return s;
}

// ---------- Slide 3 — US map ----------
addMapSlide({
  title: "US TB Cases Surged to a Record High in 2024",
  sub: "United States · 2024",
  img: "image9.png", imgX: 0.84, imgW: 8.327, imgH: 3.65,
  source: "Source: CDC TB Surveillance Report, 2024",
  page: 3
});

// ---------- Slide 4 — California map ----------
addMapSlide({
  title: "San Francisco Faces a Disproportionate TB Burden",
  sub: "San Francisco · 2024",
  img: "image10.png", imgX: 1.889, imgW: 6.222, imgH: 3.5,
  source: "Source: SF DPH TB Report, 2024",
  page: 4
});

// ---------- Slide 5 — Three patient profiles ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("BCG and Symptom Status Drive the Testing Pathway", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });

  const profiles = [
    { barX: 0.6,  colX: 0.82, barColor: BLUE,  tag: "BCG Only",  tagColor: BLUE,
      name: "Maria Santos",   mrn: "MRN SF-4471",
      lines: ["Philippines · BCG+", "Asymptomatic", "Routine PPD"] },
    { barX: 3.6,  colX: 3.82, barColor: AMBER, tag: "Latent TB", tagColor: AMBER,
      name: "David Nguyen",   mrn: "MRN SF-4472",
      lines: ["Vietnam · No BCG", "IGRA+ 6 mo ago", "No treatment"] },
    { barX: 6.6,  colX: 6.82, barColor: RED,   tag: "Active TB", tagColor: RED,
      name: "James Okonkwo",  mrn: "MRN SF-4473",
      lines: ["Nigeria · BCG+", "3-wk cough", "Night sweats"] }
  ];
  profiles.forEach(p => {
    // Vertical accent bar
    s.addShape(pres.shapes.RECTANGLE, {
      x: p.barX, y: 1.63, w: 0.05, h: 2.818,
      fill: { color: p.barColor }, line: { color: p.barColor }
    });
    // Category tag
    s.addText(p.tag, {
      x: p.colX, y: 1.63, w: 2.0, h: 0.3,
      fontFace: FONT_HEAD, fontSize: 18, bold: true, color: p.tagColor, margin: 0
    });
    // Name
    s.addText(p.name, {
      x: p.colX, y: 1.98, w: 2.8, h: 0.4,
      fontFace: FONT_HEAD, fontSize: 20, bold: true, color: TEXT, margin: 0
    });
    // MRN
    s.addText(p.mrn, {
      x: p.colX, y: 2.43, w: 2.7, h: 0.25,
      fontFace: FONT_BODY, fontSize: 18, color: TEXT, margin: 0
    });
    // Detail lines
    s.addText(
      p.lines.map((ln, idx) => ({
        text: ln,
        options: { breakLine: idx < p.lines.length - 1 }
      })),
      { x: p.colX, y: 3.13, w: 2.8, h: 1.5,
        fontFace: FONT_BODY, fontSize: 18, color: TEXT, paraSpaceAfter: 4, margin: 0 }
    );
  });

  addFooter(s, 5);
}

// ---------- Helper: PPD flowchart slides (6, 7, 8) ----------
function addFlowchartSlide(opts) {
  const s = pres.addSlide();
  addBg(s);

  // Main title
  s.addText(opts.title, {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  // Patient subtitle (italic)
  s.addText(opts.patient, {
    x: 0.6, y: 0.9, w: 7.0, h: 0.25,
    fontFace: FONT_HEAD, fontSize: 16, bold: true, italic: true, color: TEXT, margin: 0
  });
  // Age/country
  s.addText(opts.age, {
    x: 0.6, y: 1.4, w: 3.8, h: 0.4,
    fontFace: FONT_HEAD, fontSize: 18, bold: true, color: TEXT, margin: 0
  });
  // History lines
  s.addText(
    opts.history.map((ln, i) => ({
      text: ln, options: { breakLine: i < opts.history.length - 1 }
    })),
    { x: 0.6, y: 1.9, w: 3.8, h: 1.4,
      fontFace: FONT_BODY, fontSize: 14, color: SUBTLE, paraSpaceAfter: 4, margin: 0 }
  );

  // Three numbered circles + step labels
  const steps = [
    { n: "1", y: 1.35, label: "Patient Presents" },
    { n: "2", y: 2.15, label: "PPD Placed Intradermally" },
    { n: "3", y: 2.95, label: "Read at 48-72 Hours" }
  ];
  steps.forEach(st => {
    s.addShape(pres.shapes.OVAL, {
      x: 4.75, y: st.y, w: 0.5, h: 0.5,
      fill: { color: BG }, line: { color: BLUE_LIGHT, width: 1.5 }
    });
    s.addText(st.n, {
      x: 4.75, y: st.y, w: 0.5, h: 0.5,
      fontFace: FONT_HEAD, fontSize: 14, bold: true, color: BLUE_LIGHT,
      align: "center", valign: "middle", margin: 0
    });
    s.addText(st.label, {
      x: 5.45, y: st.y + 0.05, w: 4.0, h: 0.4,
      fontFace: FONT_HEAD, fontSize: 15, bold: true, color: TEXT,
      valign: "middle", margin: 0
    });
  });

  // Vertical connector lines between circles
  s.addShape(pres.shapes.LINE, {
    x: 5.0, y: 1.85, w: 0, h: 0.3,
    line: { color: BLUE_LIGHT, width: 1 }
  });
  s.addShape(pres.shapes.LINE, {
    x: 5.0, y: 2.65, w: 0, h: 0.3,
    line: { color: BLUE_LIGHT, width: 1 }
  });
  // Stem from circle 3 down to branching point
  s.addShape(pres.shapes.LINE, {
    x: 5.0, y: 3.45, w: 0, h: 0.3,
    line: { color: BLUE_LIGHT, width: 1, dashType: "dash" }
  });
  // Horizontal branch line
  s.addShape(pres.shapes.LINE, {
    x: 2.75, y: 3.75, w: 4.5, h: 0,
    line: { color: BLUE_LIGHT, width: 1, dashType: "dash" }
  });
  // Left/right drops
  s.addShape(pres.shapes.LINE, {
    x: 2.75, y: 3.75, w: 0, h: 0.2,
    line: { color: BLUE_LIGHT, width: 1, dashType: "dash" }
  });
  s.addShape(pres.shapes.LINE, {
    x: 7.25, y: 3.75, w: 0, h: 0.2,
    line: { color: BLUE_LIGHT, width: 1, dashType: "dash" }
  });

  // Two outcome cards
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 0.6, y: 3.95, w: 4.3, h: 1.3, rectRadius: 0.08,
    fill: { color: CARD }, line: { color: CYAN, width: 1.5 }
  });
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 5.1, y: 3.95, w: 4.3, h: 1.3, rectRadius: 0.08,
    fill: { color: CARD }, line: { color: AMBER, width: 1.5 }
  });

  // NEGATIVE label
  s.addText("NEGATIVE", {
    x: 0.6, y: 4.07, w: 4.3, h: 0.3,
    fontFace: FONT_HEAD, fontSize: 15, bold: true, color: CYAN, align: "center", margin: 0
  });
  s.addText(opts.negThreshold, {
    x: 0.6, y: 4.37, w: 4.3, h: 0.25,
    fontFace: FONT_HEAD, fontSize: 13, bold: true, color: CYAN, align: "center", margin: 0
  });
  s.addText(
    opts.negBody.map((ln, i) => ({ text: ln, options: { breakLine: i < opts.negBody.length - 1 } })),
    { x: 0.75, y: 4.7, w: 4.0, h: 0.55,
      fontFace: FONT_BODY, fontSize: 11, color: SUBTLE, align: "center", margin: 0 }
  );

  // POSITIVE label
  s.addText("POSITIVE", {
    x: 5.1, y: 4.07, w: 4.3, h: 0.3,
    fontFace: FONT_HEAD, fontSize: 15, bold: true, color: AMBER, align: "center", margin: 0
  });
  s.addText(opts.posThreshold, {
    x: 5.1, y: 4.37, w: 4.3, h: 0.25,
    fontFace: FONT_HEAD, fontSize: 13, bold: true, color: AMBER, align: "center", margin: 0
  });
  s.addText(
    opts.posBody.map((ln, i) => ({ text: ln, options: { breakLine: i < opts.posBody.length - 1 } })),
    { x: 5.25, y: 4.7, w: 4.0, h: 0.55,
      fontFace: FONT_BODY, fontSize: 11, color: SUBTLE, align: "center", margin: 0 }
  );

  addFooter(s, opts.page);
}

// ---------- Slide 6 ----------
addFlowchartSlide({
  page: 6,
  title: "BCG Patients: Use IGRA to Confirm Infection",
  patient: "Maria Santos · BCG Only",
  age: "28 y/o · Philippines",
  history: ["BCG vaccine at birth", "Asymptomatic", "Routine employment PPD"],
  negThreshold: "< 10 mm",
  negBody: ["No TB infection.", "BCG does not cause", "false-negatives. Reassure."],
  posThreshold: "≥ 10 mm",
  posBody: ["Likely BCG cross-reactivity.", "Order IGRA.", "If negative, no infection."]
});

// ---------- Slide 7 ----------
addFlowchartSlide({
  page: 7,
  title: "IGRA-Positive Patients Need LTBI Treatment",
  patient: "David Nguyen · Latent TB, No BCG",
  age: "45 y/o · Vietnam",
  history: ["No BCG vaccine", "IGRA positive 6 months ago", "Never treated for LTBI"],
  negThreshold: "< 10 mm",
  negBody: ["False negative possible.", "Prior IGRA positive;", "treat for LTBI."],
  posThreshold: "≥ 10 mm",
  posBody: ["Confirms LTBI.", "Order CXR.", "If normal, start treatment."]
});

// ---------- Slide 8 ----------
addFlowchartSlide({
  page: 8,
  title: "Active TB Can Produce False-Negative PPD",
  patient: "James Okonkwo · Active TB",
  age: "38 y/o · Nigeria",
  history: ["BCG vaccine at birth", "3-week productive cough", "Night sweats, weight loss"],
  negThreshold: "< 5 mm",
  negBody: ["PPD can be falsely negative.", "Continue CXR,", "AFB, NAAT workup."],
  posThreshold: "≥ 5 mm",
  posBody: ["Supports diagnosis.", "Isolate, start RIPE.", "Notify Public Health."]
});

// ---------- Slide 9 — PPD 4-step (image-based) ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("PPD Requires a 48-72 Hour Read Window", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  s.addImage({ path: asset("image11.png"), x: 0.0, y: 1.5, w: 10.0, h: 3.2 });
  addFooter(s, 9);
}

// ---------- Slide 10 — QuantiFERON 3-step ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("QuantiFERON Eliminates BCG Confounding", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  s.addImage({ path: asset("image12.png"), x: 0.0, y: 1.5, w: 10.0, h: 3.2 });
  addFooter(s, 10);
}

// ---------- Slide 11 — Four illustrated CXR patterns ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("Recognize These Four CXR Patterns to Avoid Missed TB", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  const imgs = ["image13.png", "image14.png", "image15.png", "image16.png"];
  const labels = ["Apical Infiltrate", "Cavitary Lesion", "Miliary Pattern", "Hilar Adenopathy"];
  const xs = [0.6, 2.845, 5.095, 7.345];
  imgs.forEach((im, i) => {
    s.addImage({ path: asset(im), x: xs[i], y: 1.456, w: 2.055, h: 1.644 });
    s.addText(labels[i], {
      x: xs[i], y: 3.38, w: 2.055, h: 0.32,
      fontFace: FONT_HEAD, fontSize: 16, bold: true, color: AMBER,
      align: "center", margin: 0
    });
  });
  s.addText("Illustrated patterns, see next slide for actual CXR examples", {
    x: 0.6, y: 4.6, w: 8.8, h: 0.3,
    fontFace: FONT_HEAD, fontSize: 14, bold: true, italic: true, color: TEXT,
    align: "center", margin: 0
  });
  addFooter(s, 11);
}

// ---------- Slide 12 — Real CXR examples ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("Real CXR Examples for Pattern Recognition", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  const imgs = ["image17.png", "image18.png", "image19.png", "image20.png"];
  const labels = ["Apical Infiltrate", "Cavitary Lesion", "Miliary Pattern", "Hilar Adenopathy"];
  const xsI = [0.554, 2.954, 5.354, 7.754];
  const xsL = [0.454, 2.854, 5.254, 7.654];
  imgs.forEach((im, i) => {
    s.addImage({ path: asset(im), x: xsI[i], y: 1.684, w: 1.693, h: 2.257, rounding: true });
    s.addText(labels[i], {
      x: xsL[i], y: 4.099, w: 1.854, h: 0.242,
      fontFace: FONT_HEAD, fontSize: 14, bold: true, color: AMBER,
      align: "center", margin: 0
    });
  });
  addFooter(s, 12);
}

// ---------- Helper: Case Question slide ----------
function addCaseQuestionSlide(opts) {
  const s = pres.addSlide();
  addBg(s);
  s.addText(opts.title, {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  s.addText(opts.vignette, {
    x: 0.6, y: 1.2, w: 8.8, h: 0.8,
    fontFace: FONT_HEAD, fontSize: 18, color: TEXT, margin: 0
  });
  s.addText("What is the best next step?", {
    x: 0.6, y: opts.promptY, w: 5.0, h: 0.35,
    fontFace: FONT_HEAD, fontSize: 18, bold: true, color: AMBER, margin: 0
  });
  const ys = [opts.firstChoiceY,
              opts.firstChoiceY + 0.4,
              opts.firstChoiceY + 0.8,
              opts.firstChoiceY + 1.2,
              opts.firstChoiceY + 1.6];
  opts.choices.forEach((c, i) => {
    s.addText(c, {
      x: 0.8, y: ys[i], w: 8.6, h: 0.4,
      fontFace: FONT_HEAD, fontSize: 18, color: TEXT, margin: 0
    });
  });
  addFooter(s, opts.page);
}

// ---------- Helper: Case Answer slide ----------
function addCaseAnswerSlide(opts) {
  const s = pres.addSlide();
  addBg(s);
  s.addText(opts.title, {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  // Choices rendered as 5 rows
  const ys = [1.2, 1.62, 2.04, 2.46, 2.88];
  opts.choices.forEach((c, i) => {
    const isCorrect = i === opts.correctIndex;
    s.addText(isCorrect ? c + "  ✓" : c, {
      x: 0.85, y: ys[i], w: 8.5, h: 0.38,
      fontFace: FONT_HEAD, fontSize: 18,
      bold: isCorrect, color: isCorrect ? AMBER : MUTED, margin: 0
    });
  });
  // Amber accent bar next to the correct answer
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.6, y: ys[opts.correctIndex] + 0.03, w: 0.06, h: 0.32,
    fill: { color: AMBER }, line: { color: AMBER }
  });
  // Thin divider
  s.addShape(pres.shapes.LINE, {
    x: 0.6, y: 3.51, w: 8.8, h: 0,
    line: { color: DIVIDER, width: 0.5 }
  });
  // Rationale
  s.addText("Rationale:", {
    x: 0.6, y: 3.78, w: 1.5, h: 0.25,
    fontFace: FONT_HEAD, fontSize: 18, bold: true, color: BLUE, margin: 0
  });
  s.addText(opts.rationale, {
    x: 0.6, y: 4.05, w: 8.8, h: 0.8,
    fontFace: FONT_HEAD, fontSize: 18, color: TEXT, margin: 0
  });
  addFooter(s, opts.page);
}

// ---------- Slide 13 — Case 1 Question ----------
addCaseQuestionSlide({
  page: 13,
  title: "Case 1: Recent Live Vaccine",
  vignette: "34-year-old healthcare worker, annual PPD. Received MMR 3 days ago. No TB symptoms, contacts, or prior positive test.",
  promptY: 2.459,
  firstChoiceY: 2.834,
  choices: [
    "A.  Place PPD today",
    "B.  Defer PPD 4+ weeks",
    "C.  Order QuantiFERON instead",
    "D.  Chest X-ray only",
    "E.  Lower-dose PPD"
  ]
});

// ---------- Slide 14 — Case 1 Answer ----------
addCaseAnswerSlide({
  page: 14,
  title: "Case 1: Recent Live Vaccine · Answer",
  choices: [
    "A.  Place PPD today",
    "B.  Defer PPD 4+ weeks",
    "C.  Order QuantiFERON instead",
    "D.  Chest X-ray only",
    "E.  Lower-dose PPD"
  ],
  correctIndex: 1,
  rationale: "Live vaccines suppress TST response, causing false-negatives. CDC recommends waiting 4+ weeks after live vaccine before PPD."
});

// ---------- Slide 15 — Case 2 Question ----------
addCaseQuestionSlide({
  page: 15,
  title: "Case 2: Pediatric BCG",
  vignette: "7-year-old from Somalia, BCG at birth, school TB screening. Healthy, no symptoms. PPD at 72 hours: 12 mm induration.",
  promptY: 2.46,
  firstChoiceY: 2.834,
  choices: [
    "A.  Attribute to BCG, reassure",
    "B.  Order CXR and IGRA",
    "C.  Start isoniazid now",
    "D.  Two-step PPD",
    "E.  Refer peds ID"
  ]
});

// ---------- Slide 16 — Case 2 Answer ----------
addCaseAnswerSlide({
  page: 16,
  title: "Case 2: Pediatric BCG · Answer",
  choices: [
    "A.  Attribute to BCG, reassure",
    "B.  Order CXR and IGRA",
    "C.  Start isoniazid now",
    "D.  Two-step PPD",
    "E.  Refer peds ID"
  ],
  correctIndex: 1,
  rationale: "Positive PPD in BCG-vaccinated child from endemic country should NOT be attributed to BCG. Proceed with CXR and IGRA."
});

// ---------- Slide 17 — Case 3 Question ----------
addCaseQuestionSlide({
  page: 17,
  title: "Case 3: Prior LTBI Treatment",
  vignette: "52-year-old, completed 4 months rifampin for LTBI in 2020 after positive IGRA. Annual PPD: 14 mm. Asymptomatic.",
  promptY: 2.475,
  firstChoiceY: 2.825,
  choices: [
    "A.  New LTBI regimen",
    "B.  Sputum AFB and isolate",
    "C.  Expected positive, screen and CXR only",
    "D.  Switch to IGRA",
    "E.  Repeat PPD"
  ]
});

// ---------- Slide 18 — Case 3 Answer ----------
addCaseAnswerSlide({
  page: 18,
  title: "Case 3: Prior LTBI Treatment · Answer",
  choices: [
    "A.  New LTBI regimen",
    "B.  Sputum AFB and isolate",
    "C.  Expected positive, screen and CXR only",
    "D.  Switch to IGRA",
    "E.  Repeat PPD"
  ],
  correctIndex: 2,
  rationale: "Once positive, TST and IGRA remain positive after treatment. Do not re-test or re-treat. Annual symptom screen and CXR."
});

// ---------- Slide 19 — Five Rules ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("Five Rules to Apply in Clinical Practice", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  const rules = [
    { head: "Positive PPD in BCG-vaccinated patient",          sub: "Order IGRA, never reassure" },
    { head: "Prior IGRA or PPD positive",                      sub: "Remains positive forever, do not re-test" },
    { head: "Symptomatic patient with negative PPD",           sub: "Still workup for active TB" },
    { head: "Live vaccine within 4 weeks",                     sub: "Defer PPD to avoid false-negative" },
    { head: "CXR with infiltrate, cavity, miliary, or hilar adenopathy", sub: "Isolate and collect AFB" }
  ];
  const ruleYs = [1.15, 1.93, 2.71, 3.49, 4.27];
  rules.forEach((r, i) => {
    const y = ruleYs[i];
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.6, y: y + 0.05, w: 0.04, h: 0.5,
      fill: { color: AMBER }, line: { color: AMBER }
    });
    s.addText(r.head, {
      x: 0.85, y: y, w: 8.5, h: 0.32,
      fontFace: FONT_HEAD, fontSize: 16, bold: true, color: TEXT, margin: 0
    });
    s.addText(r.sub, {
      x: 0.85, y: y + 0.34, w: 8.5, h: 0.28,
      fontFace: FONT_BODY, fontSize: 14, color: AMBER, margin: 0
    });
  });
  addFooter(s, 19);
}

// ---------- Slide 20 — Thank You ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addImage({ path: asset("image21.png"), x: 4.4, y: 0.3, w: 5.0, h: 5.0 });
  s.addText("Thank You", {
    x: 0.6, y: 2.0, w: 4.5, h: 0.8,
    fontFace: FONT_HEAD, fontSize: 48, bold: true, color: TEXT, margin: 0
  });
  s.addText("Together, we can end TB", {
    x: 0.6, y: 2.9, w: 4.5, h: 0.4,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, italic: true, color: TEXT, margin: 0
  });
  s.addText(
    [
      { text: "Every test matters", options: { breakLine: true } },
      { text: "Every treatment counts", options: { breakLine: true } },
      { text: "Every patient deserves our best" }
    ],
    { x: 0.6, y: 3.5, w: 4.5, h: 1.2,
      fontFace: FONT_HEAD, fontSize: 18, color: TEXT, paraSpaceAfter: 6, margin: 0 }
  );
}

// ---------- Slide 21 — References ----------
{
  const s = pres.addSlide();
  addBg(s);
  s.addText("References and Resources", {
    x: 0.6, y: 0.3, w: 8.8, h: 0.6,
    fontFace: FONT_HEAD, fontSize: 22, bold: true, color: TEXT, margin: 0
  });
  const refs = [
    "TB in San Francisco",
    "CDC: TB in the United States, 2024",
    "CDC: Latent TB Testing and Treatment",
    "Curry International TB Center",
    "ATS/IDSA: TB Treatment Guidelines",
    "CCHCS TB Care Guide (2025)",
    "CDC: Provisional 2025 TB Data",
    "NTCA: LTBI Guidelines"
  ];
  refs.forEach((r, i) => {
    s.addText(r, {
      x: 0.6, y: 1.2 + i * 0.42, w: 8.8, h: 0.38,
      fontFace: FONT_HEAD, fontSize: 18, color: BLUE, margin: 0
    });
  });
  s.addImage({ path: asset("image22.png"), x: 4.6, y: 0.97, w: 5.0, h: 4.2 });
  addFooter(s, 21);
}

// ---------- Write file ----------
pres.writeFile({ fileName: "TB_Testing_and_Treatment.pptx" })
    .then(fn => console.log("Wrote:", fn));
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall