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

View on GitHub
// canterbury.js - Faithful pptxgenjs recreation of Canterbury.pptx
// Usage: node canterbury.js  (requires ./images/ folder with the 14 PNGs)

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.defineLayout({ name: "CANTERBURY", width: 20, height: 11.25 });
pres.layout = "CANTERBURY";
pres.author = "Spencer";
pres.title = "The Canterbury Tales";

// ---------- palette ----------
const C = {
  burgundyBg: "4A1520",
  creamBg:    "F2E9D8",
  greenBg:    "1B2A1C",
  gold:       "B8923A",
  burgundy:   "6B1F2E",
  dark:       "1A1512",
  cream:      "F2E9D8",
  white:      "FFFFFF",
};

// alpha (0..1) -> pptxgenjs transparency (0..100)
const tr = (alpha) => Math.round((1 - alpha) * 100);

// Draw the thin border rect present on every slide
function addBorder(slide, lineColor) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0.458, y: 0.458, w: 19.083, h: 10.333,
    fill: { type: "none" },
    line: { color: lineColor, width: 0.6, transparency: tr(0.22), dashType: "solid" },
  });
}

// Convenience: standard text box defaults
function T(slide, text, opts) {
  slide.addText(text, Object.assign({
    fontFace: "Arial",
    margin: 0.02,
    valign: "top",
    isTextBox: true,
    shrinkText: true,
  }, opts));
}

// Header labels (top-left chapter, top-right "N OF VIII")
function addHeader(slide, left, right, accentColor) {
  T(slide, left, {
    x: 1.042, y: 1.042, w: 6.6, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: accentColor, align: "left",
  });
  // right-aligned to slide edge
  T(slide, right, {
    x: 16.6, y: 1.042, w: 2.45, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: accentColor, align: "right",
  });
}

// Thin horizontal divider (tiny-height filled rectangle)
function divider(slide, x, y, w, color = C.gold, alpha = 0.5) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x, y, w, h: 0.02,
    fill: { color, transparency: tr(alpha) },
    line: { type: "none" },
  });
}

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

  T(s, "M · CCC · LXXXVII", {
    x: 1.042, y: 1.042, w: 3.81, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "ENGLISH LITERATURE SOPHOMORE PRESENTATION", {
    x: 8.179, y: 1.042, w: 11.103, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "A MEDIEVAL MASTERWORK", {
    x: 1.042, y: 1.717, w: 10.5, h: 0.6,
    fontSize: 19.5, charSpacing: 6.24, color: C.gold, transparency: tr(0.7), align: "left",
  });
  T(s, "The Canterbury Tales", {
    x: 1.042, y: 2.458, w: 8.736, h: 5.187,
    fontSize: 126, charSpacing: -1.26, color: C.cream, align: "left",
  });

  divider(s, 1.042, 8.21, 2.343);
  T(s, "✦", {
    x: 3.573, y: 8.02, w: 0.438, h: 0.433,
    fontSize: 21, charSpacing: 8.4, color: C.gold, align: "left",
  });
  divider(s, 4.115, 8.21, 2.343);

  T(s, "by Geoffrey Chaucer", {
    x: 1.042, y: 8.828, w: 8.736, h: 0.497,
    fontSize: 28.5, italic: true, color: C.gold, align: "left",
  });

  s.addImage({
    path: "images/image-1-1.png",
    x: 11.741, y: 1.885, w: 5.833, h: 7.229,
  });

  s.addText([
    { text: "PRESENTED BY — ", options: { fontSize: 19.5, charSpacing: 5.85, color: C.gold } },
    { text: "[YOUR NAME]",    options: { fontSize: 21,   charSpacing: 5.85, color: C.gold, italic: true } },
  ], {
    x: 1.042, y: 9.858, w: 8.5, h: 0.392,
    fontFace: "Arial", margin: 0.02, valign: "top", align: "left", isTextBox: true, shrinkText: true,
  });

  T(s, "I OF VIII", {
    x: 17.219, y: 9.879, w: 1.823, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
}

// ===================================================================
// SLIDE 2 — The Poet
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.creamBg };
  addBorder(s, C.burgundy);

  T(s, "I · THE POET", {
    x: 1.042, y: 1.042, w: 2.724, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });
  T(s, "II OF VIII", {
    x: 17.062, y: 1.042, w: 1.979, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });

  s.addImage({ path: "images/image-2-1.png", x: 2.917, y: 3.019, w: 4.583, h: 5.417 });

  T(s, "C. 1343 — 1400", {
    x: 10.625, y: 2.162, w: 8.583, h: 0.45,
    fontSize: 19.5, charSpacing: 6.24, color: C.burgundy, transparency: tr(0.7), align: "left",
  });
  T(s, "Geoffrey Chaucer", {
    x: 10.625, y: 2.862, w: 8.583, h: 2.247,
    fontSize: 81, charSpacing: -0.81, color: C.burgundy, align: "left",
  });

  divider(s, 10.625, 5.632, 7.791);
  T(s, "✦", {
    x: 18.604, y: 5.442, w: 0.438, h: 0.433,
    fontSize: 21, charSpacing: 8.4, color: C.gold, align: "left",
  });

  T(s, "Diplomat, courtier, customs officer — and the first great poet to write in English.", {
    x: 10.625, y: 6.208, w: 5.794, h: 1.623,
    fontSize: 33, italic: true, color: C.dark, align: "left",
  });

  // Three stat columns (widened value boxes so text fits on one line)
  const stats = [
    { label: "ERA",      value: "Late Middle Ages", x: 10.625, wL: 2.517, wV: 3.0 },
    { label: "LANGUAGE", value: "Middle English",   x: 13.9,   wL: 2.181, wV: 2.6 },
    { label: "WRITTEN",  value: "1387 – 1400",      x: 16.8,   wL: 1.696, wV: 2.3 },
  ];
  for (const st of stats) {
    T(s, st.label, {
      x: st.x, y: 8.373, w: st.wL, h: 0.421,
      fontSize: 19.5, charSpacing: 3.9, color: C.burgundy, align: "left",
    });
    T(s, st.value, {
      x: st.x, y: 8.814, w: st.wV, h: 0.52,
      fontSize: 25.5, color: C.white, align: "left",
    });
  }
}

// ===================================================================
// SLIDE 3 — The Frame
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.greenBg };
  addBorder(s, C.gold);

  T(s, "II · THE FRAME", {
    x: 1.042, y: 1.042, w: 3.181, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "III OF VIII", {
    x: 16.906, y: 1.042, w: 2.136, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "A STORY INSIDE A STORY", {
    x: 0.773, y: 1.686, w: 18.454, h: 0.5,
    fontSize: 19.5, charSpacing: 6.24, color: C.gold, transparency: tr(0.7), align: "center",
  });

  s.addText([
    { text: "From the Tabard Inn ", options: { fontSize: 72, charSpacing: -0.72, color: C.cream } },
    { text: "to Canterbury.",       options: { fontSize: 72, charSpacing: -0.72, color: C.gold, italic: true } },
  ], {
    x: 0.773, y: 2.428, w: 18.454, h: 2.002,
    fontFace: "Arial", margin: 0.02, valign: "top", align: "center", isTextBox: true, shrinkText: true,
  });

  s.addImage({ path: "images/image-3-1.png", x: 2.708, y: 5.117, w: 14.583, h: 3.021 });

  const steps = [
    { num: "I.",   numGeom: [5.674, 8.659, 0.294, 0.542], cap: "29 pilgrims meet",          capGeom: [4.633, 9.242, 2.376, 0.464] },
    { num: "II.",  numGeom: [9.11,  8.659, 0.422, 0.542], cap: "Each tells a tale",         capGeom: [8.176, 9.242, 2.289, 0.464] },
    { num: "III.", numGeom: [13.266,8.659, 0.551, 0.542], cap: "Best storyteller wins dinner", capGeom: [11.632, 9.242, 3.846, 0.464] },
  ];
  for (const st of steps) {
    T(s, st.num, {
      x: st.numGeom[0], y: st.numGeom[1], w: st.numGeom[2], h: st.numGeom[3],
      fontSize: 30, italic: true, color: C.gold, transparency: tr(0.55), align: "left",
    });
    T(s, st.cap, {
      x: st.capGeom[0], y: st.capGeom[1], w: st.capGeom[2], h: st.capGeom[3],
      fontSize: 22.5, color: C.cream, align: "left",
    });
  }
}

// ===================================================================
// SLIDE 4 — The Company
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.creamBg };
  addBorder(s, C.burgundy);

  T(s, "III · THE COMPANY", {
    x: 1.042, y: 1.042, w: 3.923, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });
  T(s, "IV OF VIII", {
    x: 16.957, y: 1.042, w: 2.085, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });
  T(s, "A CROSS-SECTION OF MEDIEVAL ENGLAND", {
    x: 1.042, y: 1.558, w: 18.454, h: 0.5,
    fontSize: 19.5, charSpacing: 6.24, color: C.burgundy, transparency: tr(0.7), align: "left",
  });
  T(s, "Twenty-nine Pilgrims", {
    x: 1.042, y: 2.05, w: 18.454, h: 1.144,
    fontSize: 81, charSpacing: -0.81, color: C.burgundy, align: "left",
  });

  const pilgrims = [
    { img: "images/image-4-1.png", imgX: 1.779,  name: "The Knight",   nameCenter: 2.404, sub: "VALOR"  },
    { img: "images/image-4-2.png", imgX: 4.818,  name: "Wife of Bath", nameCenter: 5.443, sub: "WIT"    },
    { img: "images/image-4-3.png", imgX: 7.856,  name: "The Miller",   nameCenter: 8.481, sub: "BAWDY"  },
    { img: "images/image-4-4.png", imgX: 10.894, name: "The Pardoner", nameCenter: 11.519, sub: "GREEDY" },
    { img: "images/image-4-5.png", imgX: 13.932, name: "The Prioress", nameCenter: 14.557, sub: "PIOUS"  },
    { img: "images/image-4-6.png", imgX: 16.97,  name: "The Host",     nameCenter: 17.595, sub: "JOVIAL" },
  ];
  for (const p of pilgrims) {
    s.addImage({ path: p.img, x: p.imgX, y: 6.221, w: 1.25, h: 1.667 });
    T(s, p.name, {
      x: p.nameCenter - 1.25, y: 8.033, w: 2.5, h: 0.5,
      fontSize: 21, color: C.burgundy, align: "center",
    });
    T(s, p.sub, {
      x: p.nameCenter - 1.25, y: 8.592, w: 2.5, h: 0.45,
      fontSize: 18, charSpacing: 3.96, color: C.burgundy, transparency: tr(0.75), align: "center",
    });
  }

  T(s, "KNIGHTS · CLERGY · TRADESPEOPLE · ROGUES — ALL ON THE SAME MUDDY ROAD.", {
    x: 1.042, y: 9.829, w: 18.454, h: 0.421,
    fontSize: 19.5, charSpacing: 4.88, color: C.burgundy, transparency: tr(0.6), align: "left",
  });
}

// ===================================================================
// SLIDE 5 — Knight's Tale
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.burgundyBg };
  addBorder(s, C.gold);

  T(s, "IV · TALE THE FIRST", {
    x: 1.042, y: 1.042, w: 4.287, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "V OF VIII", {
    x: 17.113, y: 1.042, w: 1.928, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "A TALE OF CHIVALRY", {
    x: 1.042, y: 1.993, w: 9.104, h: 0.5,
    fontSize: 19.5, charSpacing: 6.24, color: C.gold, transparency: tr(0.7), align: "left",
  });
  T(s, "The Knight's Tale", {
    x: 1.042, y: 2.631, w: 9.104, h: 2.41,
    fontSize: 87, charSpacing: -0.87, color: C.cream, align: "left",
  });

  divider(s, 1.042, 5.502, 4.055);
  T(s, "✦", {
    x: 5.284, y: 5.312, w: 0.438, h: 0.433,
    fontSize: 21, charSpacing: 8.4, color: C.gold, align: "left",
  });
  divider(s, 5.826, 5.502, 4.055);

  T(s, "Two noble cousins imprisoned in Athens fall in love with the same woman — and resolve it, as knights do, with a tournament.", {
    x: 1.042, y: 6.016, w: 9.5, h: 2.45,
    fontSize: 33, italic: true, color: C.cream, transparency: tr(0.85), align: "left",
  });

  T(s, "THEME", {
    x: 1.042, y: 8.7, w: 2.3, h: 0.421,
    fontSize: 19.5, charSpacing: 4.29, color: C.gold, align: "left",
  });
  T(s, "Love & Fate", {
    x: 1.042, y: 9.15, w: 3.0, h: 0.52,
    fontSize: 25.5, color: C.cream, align: "left",
  });
  T(s, "TONE", {
    x: 4.5, y: 8.7, w: 2.268, h: 0.421,
    fontSize: 19.5, charSpacing: 4.29, color: C.gold, align: "left",
  });
  T(s, "Courtly, Heroic", {
    x: 4.5, y: 9.15, w: 3.2, h: 0.52,
    fontSize: 25.5, color: C.cream, align: "left",
  });

  s.addImage({ path: "images/image-5-1.png", x: 12.232, y: 2.706, w: 5.417, h: 6.042 });
}

// ===================================================================
// SLIDE 6 — Wife of Bath's Tale
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.creamBg };
  addBorder(s, C.burgundy);

  T(s, "V · TALE THE SECOND", {
    x: 1.042, y: 1.042, w: 4.597, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });
  T(s, "VI OF VIII", {
    x: 16.957, y: 1.042, w: 2.085, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });

  s.addImage({ path: "images/image-6-1.png", x: 2.351, y: 2.706, w: 5.417, h: 6.042 });

  T(s, "A TALE OF SOVEREIGNTY", {
    x: 10.119, y: 2.339, w: 9.105, h: 0.5,
    fontSize: 19.5, charSpacing: 6.24, color: C.burgundy, transparency: tr(0.7), align: "left",
  });
  T(s, "The Wife of Bath's Tale", {
    x: 10.119, y: 2.976, w: 9.105, h: 2.247,
    fontSize: 81, charSpacing: -0.81, color: C.burgundy, align: "left",
  });

  divider(s, 10.119, 5.684, 4.055);
  T(s, "✦", {
    x: 14.361, y: 5.494, w: 0.438, h: 0.433,
    fontSize: 21, charSpacing: 8.4, color: C.gold, align: "left",
  });
  divider(s, 14.904, 5.684, 4.055);

  s.addText([
    { text: "A knight must answer one question to save his life: ", options: { fontSize: 33, italic: true, color: C.dark } },
    { text: "\"What do women most desire?\"",                       options: { fontSize: 33, italic: true, color: C.burgundy } },
  ], {
    x: 10.119, y: 6.198, w: 8.8, h: 1.8,
    fontFace: "Arial", margin: 0.02, valign: "top", align: "left", isTextBox: true, shrinkText: true,
  });

  T(s, "THEME", {
    x: 10.119, y: 8.196, w: 2.652, h: 0.421,
    fontSize: 19.5, charSpacing: 4.29, color: C.burgundy, align: "left",
  });
  T(s, "Power in Marriage", {
    x: 10.119, y: 8.637, w: 3.5, h: 0.52,
    fontSize: 25.5, color: C.white, align: "left",
  });
  T(s, "TONE", {
    x: 13.95, y: 8.196, w: 2.371, h: 0.421,
    fontSize: 19.5, charSpacing: 4.29, color: C.burgundy, align: "left",
  });
  T(s, "Bold, Subversive", {
    x: 13.95, y: 8.637, w: 3.5, h: 0.52,
    fontSize: 25.5, color: C.white, align: "left",
  });
}

// ===================================================================
// SLIDE 7 — Major Themes
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.greenBg };
  addBorder(s, C.gold);

  T(s, "VI · IDEAS THAT RUN THROUGH", {
    x: 1.042, y: 1.042, w: 6.548, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "VII OF VIII", {
    x: 16.8, y: 1.042, w: 2.241, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.gold, align: "left",
  });
  T(s, "WHAT CHAUCER WAS REALLY WRITING ABOUT", {
    x: 1.042, y: 1.558, w: 18.454, h: 0.5,
    fontSize: 19.5, charSpacing: 6.24, color: C.gold, transparency: tr(0.7), align: "left",
  });
  T(s, "Major Themes", {
    x: 1.042, y: 2.05, w: 18.454, h: 1.062,
    fontSize: 75, charSpacing: -0.75, color: C.cream, align: "left",
  });

  const cards = [
    { x: 1.042,  num: "I.",   title: "Social Class & Corruption", body: "Chaucer skewers a Church grown wealthy, and peasants grown proud.", bodyH: 0.979 },
    { x: 5.599,  num: "II.",  title: "Women & Power",             body: "Who holds the reins in love, marriage, and the household?",         bodyH: 0.667 },
    { x: 10.156, num: "III.", title: "Courtly Love & Desire",     body: "The noble ideal — and its messy, human counterpart.",               bodyH: 0.667 },
    { x: 14.714, num: "IV.",  title: "Faith, Fate & Hypocrisy",   body: "Pilgrims speak of God — but what do their tales actually reveal?",  bodyH: 0.667 },
  ];
  for (const c of cards) {
    s.addShape(pres.shapes.RECTANGLE, {
      x: c.x, y: 3.696, w: 4.245, h: 5.787,
      fill: { type: "none" },
      line: { color: C.cream, width: 0.6, transparency: tr(0.25), dashType: "solid" },
    });
    T(s, c.num, {
      x: c.x + 0.383, y: 4.162, w: 3.582, h: 0.5,
      fontSize: 33, italic: true, color: C.gold, align: "left",
    });
    T(s, c.title, {
      x: c.x + 0.383, y: 4.787, w: 3.582, h: 1.004,
      fontSize: 31.5, color: C.cream, align: "left",
    });
    T(s, c.body, {
      x: c.x + 0.383, y: 5.917, w: 3.75, h: c.bodyH + 0.5,
      fontSize: 15, charSpacing: 0.3, color: C.cream, transparency: tr(0.75), align: "left",
    });
  }

  divider(s, 1.042, 10.049, 8.197);
  T(s, "✦ ✦ ✦", {
    x: 9.427, y: 9.9, w: 1.23, h: 0.35,
    fontSize: 16.5, charSpacing: 6.6, color: C.gold, align: "left",
  });
  divider(s, 10.761, 10.049, 8.198);
}

// ===================================================================
// SLIDE 8 — The Legacy
// ===================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.creamBg };
  addBorder(s, C.burgundy);

  T(s, "VII · THE LEGACY", {
    x: 1.042, y: 1.042, w: 3.69, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });
  T(s, "VIII OF VIII", {
    x: 16.644, y: 1.042, w: 2.398, h: 0.35,
    fontSize: 19.5, charSpacing: 5.85, color: C.burgundy, align: "left",
  });

  T(s, "\u201C", {
    x: 1.042, y: 3.024, w: 8.691, h: 1.792,
    fontSize: 180, italic: true, color: C.gold, transparency: tr(0.5), align: "left",
  });
  T(s, "The father of English literature.", {
    x: 1.042, y: 5.086, w: 8.691, h: 2.198,
    fontSize: 45, italic: true, color: C.burgundy, align: "left",
  });

  divider(s, 1.042, 7.642, 2.374);
  T(s, "✦", {
    x: 3.604, y: 7.451, w: 0.438, h: 0.433,
    fontSize: 21, charSpacing: 8.4, color: C.gold, align: "left",
  });
  T(s, "SIX CENTURIES AND STILL READ", {
    x: 1.042, y: 8.051, w: 8.691, h: 0.421,
    fontSize: 19.5, charSpacing: 4.29, color: C.burgundy, align: "left",
  });

  const rows = [
    { img: "images/image-8-1.png", imgY: 3.058, title: "Elevated English",         titleGeom: [12.042, 2.869, 7.124, 0.548], body: "Chose the people's tongue over Latin or French.", bodyGeom: [12.042, 3.438, 7.124, 0.998] },
    { img: "images/image-8-2.png", imgY: 5.154, title: "Invented the \"Character\"", titleGeom: [12.042, 5.204, 6.266, 0.548], body: "Real, flawed people — not archetypes.",           bodyGeom: [12.042, 5.772, 6.266, 0.52]  },
    { img: "images/image-8-3.png", imgY: 7.25,  title: "Shaped Every Writer Since", titleGeom: [12.042, 7.06,  7.124, 0.548], body: "Shakespeare, Dickens, Zadie Smith — all owe him.", bodyGeom: [12.042, 7.629, 7.124, 0.998] },
  ];
  for (const r of rows) {
    s.addImage({ path: r.img, x: 10.521, y: r.imgY, w: 1.146, h: 1.146 });
    T(s, r.title, {
      x: r.titleGeom[0], y: r.titleGeom[1], w: r.titleGeom[2], h: r.titleGeom[3],
      fontSize: 27, color: C.burgundy, align: "left",
    });
    T(s, r.body, {
      x: r.bodyGeom[0], y: r.bodyGeom[1], w: r.bodyGeom[2], h: r.bodyGeom[3],
      fontSize: 25.5, color: C.white, transparency: tr(0.75), align: "left",
    });
  }
  // Row dividers between icon rows
  divider(s, 10.521, 4.769, 8.438, C.burgundy, 0.2);
  divider(s, 10.521, 6.675, 8.438, C.burgundy, 0.2);
}

pres.writeFile({ fileName: "Canterbury.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