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/finance_ai_portfolio_analysis.js

View on GitHub
// AI_Stocks_revised.js
// Recreates the "AI Stocks: Risk-Reward Investment Analysis" deck.
//
// Usage:
//   npm install pptxgenjs
//   node AI_Stocks_revised.js
//
// Outputs: AI_Stocks_revised.pptx in the current directory.

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9"; // 10 x 5.625 in
pres.author = "Portfolio Strategy Research";
pres.title = "AI Stocks: Risk-Reward Investment Analysis";

// ---------------------------------------------------------------------------
// Design tokens
// ---------------------------------------------------------------------------
const C = {
  navy:       "0A1628",
  bg:         "F0F4F8",
  teal:       "0D9488",
  tealLight:  "5EEAD4",
  tealMint:   "99F6E4",
  white:      "FFFFFF",
  slate:      "1E293B",
  slateMid:   "475569",
  slateLight: "94A3B8",
  divider:    "CBD5E1",
  rowAlt:     "E2E8F0",
  // accent palette for stocks / bars
  amber:  "F59E0B",
  blue:   "3B82F6",
  purple: "A78BFA",
  pink:   "EC4899",
  gray:   "94A3B8",
  red:    "EF4444",
  green:  "10B981",
};

const F = { serif: "Georgia", sans: "Calibri" };

// ---------------------------------------------------------------------------
// Helpers
// ---------------------------------------------------------------------------
function headerBar(slide) {
  slide.background = { color: C.bg };
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 1.0,
    fill: { color: C.navy }, line: { color: C.navy, width: 0 },
  });
}

function title(slide, text, opts = {}) {
  slide.addText(text, {
    x: 0.55, y: 0.15, w: 9.0, h: 0.70,
    fontSize: opts.size || 32, bold: true, color: C.white,
    fontFace: F.serif, align: "left", valign: "middle", margin: 0,
  });
}

function source(slide, text) {
  slide.addText(text, {
    x: 0.55, y: 5.20, w: 9.0, h: 0.32,
    fontSize: 10, italic: true, color: C.slateMid,
    fontFace: F.sans, margin: 0,
  });
}

// ===========================================================================
// SLIDE 1 — Title
// ===========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  // Decorative offset circles on the right
  s.addShape(pres.shapes.OVAL, {
    x: 6.8, y: -1.0, w: 5.0, h: 5.0,
    fill: { color: "0F2A3F", transparency: 30 },
    line: { color: C.navy, width: 0 },
  });
  s.addShape(pres.shapes.OVAL, {
    x: 7.5, y: 0.2, w: 3.5, h: 3.5,
    fill: { color: "143850", transparency: 20 },
    line: { color: C.navy, width: 0 },
  });

  s.addText("AI Stocks", {
    x: 0.7, y: 1.55, w: 8, h: 1.1,
    fontSize: 60, bold: true, color: C.white,
    fontFace: F.serif, margin: 0,
  });
  s.addText("Risk-Reward Investment Analysis", {
    x: 0.7, y: 2.65, w: 8, h: 0.55,
    fontSize: 24, color: C.tealLight, fontFace: F.sans, margin: 0,
  });
  s.addText(
    "PLACEHOLDER",
    { x: 0.7, y: 3.45, w: 8, h: 0.45, fontSize: 14, color: C.slateLight, fontFace: F.sans, margin: 0 }
  );

  // Bottom teal footer bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 5.10, w: 10, h: 0.53,
    fill: { color: C.teal }, line: { color: C.teal, width: 0 },
  });
  s.addText("April 2026  |  Portfolio Strategy Research", {
    x: 0.55, y: 5.15, w: 9, h: 0.45,
    fontSize: 13, color: C.white, fontFace: F.sans, valign: "middle", margin: 0,
  });
}

// ===========================================================================
// SLIDE 2 — AI Stock Basket: ranked horizontal bar list
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "The AI Stock Basket");

  s.addText("8 mega-cap names · equal-risk-contribution weighted", {
    x: 0.55, y: 1.10, w: 9.0, h: 0.35,
    fontSize: 14, italic: true, color: C.slateMid, fontFace: F.sans, margin: 0,
  });

  const stocks = [
    ["NVDA",  25, C.teal],
    ["MSFT",  20, "14B8A6"],
    ["GOOGL", 15, C.tealLight],
    ["META",  12, C.amber],
    ["AMZN",  10, C.blue],
    ["AVGO",   8, C.purple],
    ["PLTR",   5, C.pink],
    ["AMD",    5, C.gray],
  ];
  const rowH = 0.42, top = 1.60, barX = 1.85, barMaxW = 6.20;

  stocks.forEach(([tk, wt, color], i) => {
    const cy = top + i * rowH;
    // Ticker
    s.addText(tk, {
      x: 0.55, y: cy + 0.05, w: 1.25, h: 0.32,
      fontSize: 18, bold: true, color: C.slate, fontFace: F.serif, margin: 0,
    });
    // Bar background
    s.addShape(pres.shapes.RECTANGLE, {
      x: barX, y: cy + 0.10, w: barMaxW, h: 0.22,
      fill: { color: C.rowAlt }, line: { color: C.rowAlt, width: 0 },
    });
    // Bar fill
    s.addShape(pres.shapes.RECTANGLE, {
      x: barX, y: cy + 0.10, w: barMaxW * (wt / 25), h: 0.22,
      fill: { color }, line: { color, width: 0 },
    });
    // Weight
    s.addText(`${wt}%`, {
      x: 8.30, y: cy + 0.05, w: 1.10, h: 0.32,
      fontSize: 18, bold: true, color: C.teal, fontFace: F.sans, margin: 0,
    });
  });

  source(s, "Source: Hypothetical equal-risk-contribution weighted basket, rebalanced quarterly.");
}

// ===========================================================================
// SLIDE 3 — Traditional 60/40 baseline
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "Traditional 60/40 Portfolio Baseline");

  // Horizontal bar chart of asset allocation
  const allocData = [{
    name: "Allocation",
    labels: ["US Large Cap", "Int'l Developed", "Emerging Mkts", "US Bonds", "Int'l Bonds", "REITs"],
    values: [35, 10, 5, 30, 10, 10],
  }];
  s.addChart(pres.charts.BAR, allocData, {
    x: 0.30, y: 1.15, w: 4.85, h: 3.95,
    barDir: "bar",
    chartColors: [C.navy],
    showValue: true,
    dataLabelFontSize: 10,
    dataLabelColor: C.slate,
    catAxisLabelFontSize: 11,
    catAxisLabelColor: C.slateMid,
    valAxisHidden: true,
    showLegend: false,
    plotArea: { fill: { color: C.white } },
  });

  // Stat block on the right (inline, no box)
  s.addText("Historical Performance (10Y Annualized)", {
    x: 5.40, y: 1.20, w: 4.20, h: 0.40,
    fontSize: 14, bold: true, color: C.teal, fontFace: F.sans, margin: 0,
  });
  const stats3 = [
    ["7.8%",   C.teal,  "Annualized Return"],
    ["10.2%",  C.amber, "Annualized Volatility"],
    ["0.57",   C.slate, "Sharpe Ratio"],
    ["-22.4%", C.red,   "Max Drawdown"],
    ["0.82",   C.teal,  "Sortino Ratio"],
  ];
  stats3.forEach(([val, color, label], i) => {
    const y = 1.85 + i * 0.62;
    s.addText(val, {
      x: 5.50, y, w: 1.55, h: 0.45,
      fontSize: 26, bold: true, color, fontFace: F.serif, margin: 0,
    });
    s.addText(label, {
      x: 7.10, y: y + 0.06, w: 2.50, h: 0.40,
      fontSize: 13, color: C.slateMid, fontFace: F.sans, margin: 0,
    });
  });

  source(s, "Benchmark: 60% global equities / 40% global bonds. Data: Jan 2015 – Dec 2024.");
}

// ===========================================================================
// SLIDE 4 — AI Basket standalone performance
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "AI Basket: Standalone Performance");

  // Line chart: growth of $10K
  const years = ["2015","2016","2017","2018","2019","2020","2021","2022","2023","2024"];
  const lineData = [
    { name: "AI Basket", labels: years, values: [10000,11200,15400,14000,20100,29500,38200,27900,42500,58200] },
    { name: "S&P 500",   labels: years, values: [10000,11300,13700,12900,17100,20300,26100,20700,26100,31400] },
  ];
  s.addChart(pres.charts.LINE, lineData, {
    x: 0.20, y: 1.10, w: 5.95, h: 4.00,
    chartColors: [C.teal, C.slateLight],
    lineSize: 3, lineDataSymbol: "circle", lineDataSymbolSize: 6,
    showLegend: true, legendPos: "t", legendFontSize: 11,
    catAxisLabelFontSize: 10, catAxisLabelColor: C.slateMid,
    valAxisLabelFontSize: 10, valAxisLabelColor: C.slateMid,
    valAxisLabelFormatCode: "$#,##0",
    plotArea: { fill: { color: C.white } },
  });

  // Stat list on right (de-boxed)
  s.addText("AI Basket Metrics", {
    x: 6.40, y: 1.25, w: 3.20, h: 0.40,
    fontSize: 14, bold: true, color: C.teal, fontFace: F.sans, margin: 0,
  });
  const stats4 = [
    ["19.3%",  "Annualized Return"],
    ["24.8%",  "Annualized Volatility"],
    ["0.68",   "Sharpe Ratio"],
    ["-36.1%", "Max Drawdown"],
    ["1.32",   "Beta vs S&P 500"],
  ];
  stats4.forEach(([val, label], i) => {
    const y = 1.65 + i * 0.62;
    s.addText(val, {
      x: 6.40, y, w: 1.55, h: 0.45,
      fontSize: 24, bold: true, color: C.teal, fontFace: F.serif, margin: 0,
    });
    s.addText(label, {
      x: 8.05, y: y + 0.07, w: 1.95, h: 0.40,
      fontSize: 13, color: C.slateMid, fontFace: F.sans, margin: 0,
    });
  });

  source(s, "Growth of $10,000 invested Jan 2015. Hypothetical back-tested returns, net of estimated transaction costs.");
}

// ===========================================================================
// SLIDE 5 — Portfolio Enhancement: Before vs After
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "Portfolio Enhancement: Before vs After AI");

  // Grouped bar chart: 4 metrics
  const compareData = [
    { name: "Traditional 60/40", labels: ["Ann. Return","Volatility","Sharpe Ratio","Sortino Ratio"], values: [7.80, 10.20, 0.57, 0.82] },
    { name: "55/30/15 AI-Enhanced", labels: ["Ann. Return","Volatility","Sharpe Ratio","Sortino Ratio"], values: [10.40, 11.80, 0.74, 1.12] },
  ];
  s.addChart(pres.charts.BAR, compareData, {
    x: 0.20, y: 1.15, w: 5.85, h: 4.00,
    barDir: "col", barGrouping: "clustered",
    chartColors: [C.slateLight, C.teal],
    showValue: true, dataLabelFontSize: 10, dataLabelColor: C.slate,
    catAxisLabelFontSize: 11, catAxisLabelColor: C.slateMid,
    valAxisHidden: true,
    showLegend: true, legendPos: "t", legendFontSize: 11,
    plotArea: { fill: { color: C.white } },
  });

  // Right-side stat improvements (no boxes)
  const improvements = [
    ["+2.6%",  "Return Boost",         "7.8% \u2192 10.4%",  C.green],
    ["+30%",   "Sharpe Improvement",   "0.57 \u2192 0.74",   C.green],
    ["+1.6%",  "Volatility Cost",      "10.2% \u2192 11.8%", C.red],
    ["+37%",   "Sortino Improvement",  "0.82 \u2192 1.12",   C.green],
  ];
  improvements.forEach(([big, label, sub, arrowColor], i) => {
    const y = 1.30 + i * 1.00;
    s.addText(i % 4 === 2 ? "\u2193" : "\u2191", {
      x: 6.20, y, w: 0.45, h: 0.50,
      fontSize: 28, bold: true, color: arrowColor, fontFace: F.sans, align: "center", margin: 0,
    });
    s.addText(big, {
      x: 6.70, y, w: 1.40, h: 0.50,
      fontSize: 32, bold: true, color: C.slate, fontFace: F.serif, margin: 0,
    });
    s.addText(label, {
      x: 8.15, y: y + 0.05, w: 1.80, h: 0.35,
      fontSize: 14, bold: true, color: C.slate, fontFace: F.sans, margin: 0,
    });
    s.addText(sub, {
      x: 8.15, y: y + 0.42, w: 1.80, h: 0.30,
      fontSize: 11, color: C.slateMid, fontFace: F.sans, margin: 0,
    });
  });

  source(s, "AI-Enhanced = 55% equities, 30% bonds, 15% AI basket. Rebalanced quarterly.");
}

// ===========================================================================
// SLIDE 6 — Efficient Frontier Shift
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "Efficient Frontier Shift with AI Allocation");

  // Scatter / line: return vs risk
  const frontierData = [
    {
      name: "Traditional Frontier",
      values: [
        { x: 5,  y: 4.2 }, { x: 7, y: 5.8 }, { x: 8.5, y: 6.8 },
        { x: 10, y: 7.8 }, { x: 12.5, y: 8.5 }, { x: 15, y: 9.0 },
        { x: 18, y: 9.3 }, { x: 21, y: 9.5 },
      ],
    },
    {
      name: "AI-Enhanced Frontier",
      values: [
        { x: 5,  y: 4.8 }, { x: 7, y: 6.5 }, { x: 8.5, y: 8.2 },
        { x: 10, y: 9.6 }, { x: 12.5, y: 10.4 }, { x: 15, y: 11.0 },
        { x: 18, y: 11.8 }, { x: 21, y: 12.2 },
      ],
    },
  ];
  s.addChart(pres.charts.SCATTER,
    [
      { name: "X", values: frontierData[0].values.map(p => p.x) },
      ...frontierData.map(d => ({ name: d.name, values: d.values.map(p => p.y) })),
    ],
    {
      x: 0.30, y: 1.10, w: 6.20, h: 4.00,
      chartColors: [C.slateLight, C.teal],
      lineSize: 3, lineDataSymbol: "circle", lineDataSymbolSize: 6,
      catAxisTitle: "Risk (Volatility %)", catAxisTitleFontSize: 11,
      valAxisTitle: "Return (%)", valAxisTitleFontSize: 11,
      showLegend: true, legendPos: "b", legendFontSize: 11,
      plotArea: { fill: { color: C.white } },
    }
  );

  // Right column: Key Insight + comparison block
  s.addText("Key Insight", {
    x: 6.95, y: 1.40, w: 2.70, h: 0.40,
    fontSize: 16, bold: true, color: C.slate, fontFace: F.serif, margin: 0,
  });
  s.addText(
    "The AI-enhanced frontier sits above and to the left of the traditional curve — investors gain return at every risk level.",
    { x: 6.95, y: 2.00, w: 2.70, h: 1.00, fontSize: 13, color: C.slate, fontFace: F.sans, margin: 0 }
  );

  // Divider
  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.95, y: 3.10, w: 2.70, h: 0.025,
    fill: { color: C.divider }, line: { color: C.divider, width: 0 },
  });

  s.addText("AT 12% VOLATILITY", {
    x: 6.95, y: 3.20, w: 2.70, h: 0.30,
    fontSize: 11, bold: true, color: C.slateMid, fontFace: F.sans, margin: 0, charSpacing: 1,
  });
  s.addText("Traditional", { x: 6.95, y: 3.55, w: 1.40, h: 0.30, fontSize: 13, color: C.slateMid, fontFace: F.sans, margin: 0 });
  s.addText("8.5%",        { x: 8.45, y: 3.50, w: 1.20, h: 0.35, fontSize: 16, bold: true, color: C.slate, fontFace: F.sans, margin: 0 });
  s.addText("AI-Enhanced", { x: 6.95, y: 3.90, w: 1.40, h: 0.30, fontSize: 13, color: C.slateMid, fontFace: F.sans, margin: 0 });
  s.addText("11.0%",       { x: 8.45, y: 3.85, w: 1.20, h: 0.35, fontSize: 16, bold: true, color: C.teal, fontFace: F.sans, margin: 0 });

  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.95, y: 4.30, w: 2.70, h: 0.025,
    fill: { color: C.divider }, line: { color: C.divider, width: 0 },
  });
  s.addText("Return pickup", { x: 6.95, y: 4.45, w: 1.40, h: 0.30, fontSize: 13, italic: true, color: C.slateMid, fontFace: F.sans, margin: 0 });
  s.addText("+2.5pp",        { x: 8.45, y: 4.40, w: 1.20, h: 0.40, fontSize: 20, bold: true, color: C.teal, fontFace: F.sans, margin: 0 });
}

// ===========================================================================
// SLIDE 7 — Risk Analysis (table + insight bar)
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "Risk Analysis: What Investors Should Know");

  // Table
  const headerCell = (t) => ({ text: t, options: { bold: true, color: C.white, fill: { color: C.navy }, align: "left", valign: "middle" } });
  const headerCellR = (t) => ({ ...headerCell(t), options: { ...headerCell(t).options, align: "center" } });
  const cell  = (t) => ({ text: t, options: { color: C.slate,    align: "left",   valign: "middle" } });
  const cellC = (t) => ({ text: t, options: { color: C.slate,    align: "center", valign: "middle" } });
  const chgRed   = (t) => ({ text: t, options: { color: C.red,   align: "center", valign: "middle" } });
  const chgAmber = (t) => ({ text: t, options: { color: C.amber, align: "center", valign: "middle" } });
  const chgGreen = (t) => ({ text: t, options: { color: C.green, align: "center", valign: "middle" } });

  const rows = [
    [headerCell("Risk Metric"), headerCellR("Traditional"), headerCellR("AI-Enhanced"), headerCellR("Change")],
    [cell("Max Drawdown"),         cellC("-22.4%"),    cellC("-26.8%"),  chgRed("-4.4%")],
    [cell("Value-at-Risk (95%)"),  cellC("-1.6%"),     cellC("-1.9%"),   chgRed("-0.3%")],
    [cell("Correlation to S&P 500"), cellC("0.88"),    cellC("0.91"),    chgAmber("+0.03")],
    [cell("Recovery Time (Avg)"),  cellC("8 months"),  cellC("6 months"), chgGreen("-2 mo")],
    [cell("Downside Deviation"),   cellC("6.8%"),      cellC("7.5%"),    chgAmber("+0.7%")],
  ];

  s.addTable(rows, {
    x: 0.50, y: 1.20, w: 9.00,
    colW: [3.00, 2.00, 2.00, 2.00],
    rowH: 0.45,
    fontSize: 13, fontFace: F.sans,
    border: { type: "solid", pt: 0.5, color: C.divider },
    fill: { color: C.white },
  });

  // Insight bar at bottom (with teal accent on left)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.40, y: 4.25, w: 0.10, h: 1.20,
    fill: { color: C.teal }, line: { color: C.teal, width: 0 },
  });
  s.addText(
    "Slightly deeper drawdowns and higher daily VaR are the expected trade-off for an AI-tilted growth allocation — but faster 6-month recovery and a stronger Sortino ratio confirm AI stocks add resilient, high-quality upside.",
    {
      x: 0.65, y: 4.20, w: 9.00, h: 1.30,
      fontSize: 18, color: C.slate, fontFace: F.sans, valign: "middle", margin: 0,
    }
  );
}

// ===========================================================================
// SLIDE 8 — Allocation Sensitivity
// ===========================================================================
{
  const s = pres.addSlide();
  headerBar(s);
  title(s, "AI Allocation Sensitivity: How Much Is Optimal?");

  // Bar chart of Sharpe by allocation
  const sensData = [{
    name: "Sharpe Ratio",
    labels: ["0% (Base)", "5%", "10%", "15%", "20%", "25%", "30%"],
    values: [0.57, 0.62, 0.68, 0.74, 0.73, 0.70, 0.65],
  }];
  s.addChart(pres.charts.BAR, sensData, {
    x: 0.20, y: 1.10, w: 6.10, h: 4.00,
    barDir: "col",
    chartColors: [C.teal],
    showValue: true, dataLabelFontSize: 11, dataLabelColor: C.slate,
    catAxisLabelFontSize: 11, catAxisLabelColor: C.slateMid,
    valAxisHidden: true,
    showLegend: false,
    plotArea: { fill: { color: C.white } },
  });

  // Right column: thesis (de-boxed)
  s.addText("Sweet Spot: 10–20%", {
    x: 6.50, y: 1.40, w: 3.30, h: 0.45,
    fontSize: 18, bold: true, color: C.teal, fontFace: F.serif, margin: 0,
  });
  s.addText(
    [
      { text: "A 10–20% AI allocation maximizes the risk-adjusted return of the blended portfolio.", options: { breakLine: true, paraSpaceAfter: 8 } },
      { text: "Beyond 20%, concentration risk in the tech sector erodes diversification benefits.", options: { breakLine: true, paraSpaceAfter: 8 } },
      { text: "At 15%, the Sharpe ratio peaks at 0.74 — a 30% improvement over the baseline." },
    ],
    { x: 6.50, y: 1.95, w: 3.30, h: 3.10, fontSize: 13, color: C.slate, fontFace: F.sans, margin: 0 }
  );

  source(s, "Analysis assumes pro-rata reduction of equity and bond sleeves to fund AI allocation.");
}

// ===========================================================================
// SLIDE 9 — Key Takeaways: ROADMAP
// ===========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  s.addText("Key Takeaways", {
    x: 0.55, y: 0.45, w: 9.0, h: 0.70,
    fontSize: 36, bold: true, color: C.white, fontFace: F.serif, margin: 0,
  });
  s.addText("Four numbers that define the AI-enhanced portfolio thesis", {
    x: 0.55, y: 1.20, w: 9.0, h: 0.40,
    fontSize: 15, italic: true, color: C.slateLight, fontFace: F.sans, margin: 0,
  });

  // Roadmap geometry
  const centers = [1.25, 3.75, 6.25, 8.75];
  const circleD = 1.05;
  const circleY = 2.20;
  const lineY = circleY + circleD / 2 - 0.025;

  // Connecting line
  s.addShape(pres.shapes.RECTANGLE, {
    x: centers[0], y: lineY, w: centers[3] - centers[0], h: 0.05,
    fill: { color: C.teal }, line: { color: C.teal, width: 0 },
  });

  const steps = [
    ["1", "+11.5pp", "Alpha edge",      "AI basket returned 19.3% vs 7.8% for the traditional 60/40 over 10 years."],
    ["2", "+30%",    "Sharpe lift",     "A 15% AI sleeve lifts risk-adjusted returns from 0.57 to 0.74."],
    ["3", "6 mo",    "Faster recovery", "Drawdowns are deeper but resolve in 6 months vs 8 for traditional."],
    ["4", "10–20%",  "Sweet spot",      "Optimal AI allocation; beyond 20%, sector concentration erodes benefits."],
  ];

  steps.forEach(([num, big, label, desc], i) => {
    const cx = centers[i];
    const circleX = cx - circleD / 2;
    // Circle
    s.addShape(pres.shapes.OVAL, {
      x: circleX, y: circleY, w: circleD, h: circleD,
      fill: { color: C.teal },
      line: { color: C.tealLight, width: 3 },
    });
    // Number — vertically centered in circle
    s.addText(num, {
      x: circleX, y: circleY, w: circleD, h: circleD,
      fontSize: 40, bold: true, color: C.white, fontFace: F.serif,
      align: "center", valign: "middle", margin: 0,
    });
    // Big number below circle
    s.addText(big, {
      x: cx - 1.10, y: 3.45, w: 2.20, h: 0.50,
      fontSize: 24, bold: true, color: C.tealLight, fontFace: F.sans,
      align: "center", margin: 0,
    });
    // Label
    s.addText(label, {
      x: cx - 1.10, y: 3.95, w: 2.20, h: 0.35,
      fontSize: 15, bold: true, color: C.white, fontFace: F.sans,
      align: "center", margin: 0,
    });
    // Description
    s.addText(desc, {
      x: cx - 1.15, y: 4.30, w: 2.30, h: 0.85,
      fontSize: 11, color: C.slateLight, fontFace: F.sans,
      align: "center", margin: 0,
    });
  });

  // Footer disclaimer bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 5.10, w: 10, h: 0.53,
    fill: { color: C.teal }, line: { color: C.teal, width: 0 },
  });
  s.addText(
    "Disclaimer: Hypothetical back-tested results. Past performance does not guarantee future results. Not investment advice.",
    {
      x: 0.55, y: 5.18, w: 9.0, h: 0.40,
      fontSize: 11, italic: true, color: C.white, fontFace: F.sans,
      align: "center", valign: "middle", margin: 0,
    }
  );
}

// ---------------------------------------------------------------------------
pres.writeFile({ fileName: "AI_Stocks_revised.pptx" })
  .then((fn) => console.log(`Created: ${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