[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EMAGC41HYBP0P3WHPYNFM9":3,"skill-same:01M6EMAGC41HYBP0P3WHPYNFM9":126},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6EMAGC41HYBP0P3WHPYNFM9","pptx",null,"Professional PowerPoint presentation creation, editing, and automation with support for layouts, templates, charts, images, and formatting. Use when working with .pptx files for: (1) Creating presentations from scratch, (2) Editing existing presentations, (3) Applying templates and themes, (4) Adding charts and visualizations, (5) Bulk slide generation, (6) Presentation automation","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"files","presentation","From Scratch","bulk","themes","professional","formatting","creation","generation","creating presentations","images","use","editing","visualizations","Charts","powerpoint","presentations","automation","support","2026-11-10 10:12:30",false,"---\nname: pptx\ndescription: \"Professional PowerPoint presentation creation, editing, and automation with support for layouts, templates, charts, images, and formatting. Use when working with .pptx files for: (1) Creating presentations from scratch, (2) Editing existing presentations, (3) Applying templates and themes, (4) Adding charts and visualizations, (5) Bulk slide generation, (6) Presentation automation\"\n---\n\n# PowerPoint (PPTX) Skill\n\n## Overview\n\nThis skill provides comprehensive PowerPoint presentation creation, editing, and automation capabilities using Python's `python-pptx` library. Create professional presentations programmatically with full control over layouts, themes, content, charts, and visualizations.\n\n## Core Capabilities\n\n- **Presentation Creation**: New presentations, templates, metadata, page configuration\n- **Slide Management**: Add, duplicate, delete, reorder slides with predefined layouts\n- **Content Types**: Text, shapes, images, tables, charts, SmartArt, hyperlinks\n- **Design & Formatting**: Themes, color schemes, fonts, fills, borders, effects\n- **Advanced Features**: Transitions, animations, embedded objects, video\u002Faudio, comments\n\n## Installation\n\nInstall the required library:\n\n```bash\npip install python-pptx\n# or with uv\nuv pip install python-pptx\n```\n\nBasic imports:\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt, Cm\nfrom pptx.dml.color import RGBColor\nfrom pptx.enum.text import PP_ALIGN, MSO_ANCHOR\nfrom pptx.chart.data import CategoryChartData\nfrom pptx.enum.chart import XL_CHART_TYPE\n```\n\nFor complete library setup and supporting packages (Pillow, pandas, matplotlib), see `references\u002Flibrary-setup.md`.\n\n## Core Workflows\n\n### Workflow 1: Creating a Business Presentation\n\n**Goal:** Create a professional presentation with title slide, content slides, and conclusion.\n\n**Steps:**\n\n1. **Initialize Presentation**\n   - Create new presentation object\n   - Set slide dimensions (standard 16:9 or 4:3)\n   - Configure metadata (title, author, subject, keywords)\n\n2. **Add Title Slide**\n   - Use title slide layout (typically `prs.slide_layouts[0]`)\n   - Set title and subtitle text\n   - Apply formatting (font size, color, bold)\n\n3. **Add Content Slides**\n   - Use appropriate layouts (bullet, two-column, title-only, blank)\n   - Populate placeholders or add text boxes\n   - Format text with proper hierarchy\n\n4. **Add Visual Elements**\n   - Insert images with proper sizing and positioning\n   - Add charts with formatted data\n   - Create tables with cell styling\n\n5. **Save Presentation**\n   - Save to .pptx format\n   - Verify file creation\n\n**Quick Example:**\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt\n\nprs = Presentation()\nprs.slide_width = Inches(10)\nprs.slide_height = Inches(7.5)\n\n# Title slide\nslide = prs.slides.add_slide(prs.slide_layouts[0])\nslide.shapes.title.text = \"Q4 Business Review\"\nslide.placeholders[1].text = \"Prepared by: Jane Doe\\nDate: October 25, 2025\"\n\nprs.save('presentation.pptx')\n```\n\nSee `examples\u002Fbusiness-presentation.md` for complete implementation.\n\n### Workflow 2: Adding Charts\n\n**Goal:** Create data visualizations with bar, line, and pie charts.\n\n**Steps:**\n\n1. Prepare chart data using `CategoryChartData`\n2. Define categories and series\n3. Add chart to slide with positioning\n4. Format chart (legend, gridlines, labels)\n\n**Quick Example:**\n\n```python\nfrom pptx.chart.data import CategoryChartData\nfrom pptx.enum.chart import XL_CHART_TYPE\n\nchart_data = CategoryChartData()\nchart_data.categories = ['Q1', 'Q2', 'Q3', 'Q4']\nchart_data.add_series('2025', (9.5, 10.8, 11.2, 13.1))\n\nchart = slide.shapes.add_chart(\n    XL_CHART_TYPE.COLUMN_CLUSTERED,\n    Inches(1), Inches(2), Inches(8), Inches(4.5),\n    chart_data\n).chart\n```\n\nSee `examples\u002Fchart-examples.md` for all chart types.\n\n### Workflow 3: Working with Images\n\n**Goal:** Add, position, and format images in presentations.\n\n**Steps:**\n\n1. Add image with `slide.shapes.add_picture()`\n2. Specify position (left, top) and size (width, height)\n3. Calculate centered positioning if needed\n4. Optimize images before adding (use Pillow for preprocessing)\n\n**Quick Example:**\n\n```python\n# Add image with auto-scaled aspect ratio\npic = slide.shapes.add_picture('logo.png', Inches(1), Inches(1), height=Inches(2))\n\n# Center image on slide\npic.left = int((prs.slide_width - pic.width) \u002F 2)\npic.top = int((prs.slide_height - pic.height) \u002F 2)\n```\n\nSee `examples\u002Fimage-handling.md` for advanced techniques.\n\n### Workflow 4: Creating Tables\n\n**Goal:** Add structured data tables with formatting.\n\n**Steps:**\n\n1. Define table dimensions (rows, cols)\n2. Add table with positioning\n3. Set column widths\n4. Populate headers with bold formatting and background color\n5. Fill data cells with proper alignment\n\n**Quick Example:**\n\n```python\ntable = slide.shapes.add_table(4, 3, Inches(1.5), Inches(2), Inches(7), Inches(3)).table\n\n# Header formatting\ncell = table.cell(0, 0)\ncell.text = \"Product\"\ncell.text_frame.paragraphs[0].font.bold = True\ncell.fill.solid()\ncell.fill.fore_color.rgb = RGBColor(0, 51, 102)\n```\n\nSee `examples\u002Ftable-examples.md` for advanced formatting.\n\n### Workflow 5: Editing Existing Presentations\n\n**Goal:** Modify existing PowerPoint files.\n\n**Steps:**\n\n1. Open presentation with `Presentation('file.pptx')`\n2. Iterate through slides to find content\n3. Modify text, shapes, or add new elements\n4. Save with same or different filename\n\n**Quick Example:**\n\n```python\nprs = Presentation('existing.pptx')\n\n# Find and update text\nfor slide in prs.slides:\n    for shape in slide.shapes:\n        if hasattr(shape, \"text\") and \"Old Name\" in shape.text:\n            shape.text = shape.text.replace(\"Old Name\", \"New Name\")\n\nprs.save('updated.pptx')\n```\n\nSee `examples\u002Fediting-presentations.md` for slide copying and advanced editing.\n\n### Workflow 6: Using Templates\n\n**Goal:** Apply consistent branding with master slides and templates.\n\n**Steps:**\n\n1. Start with template file: `Presentation('template.pptx')`\n2. Examine available layouts\n3. Add slides using template layouts\n4. Apply brand colors consistently\n\n**Quick Example:**\n\n```python\nprs = Presentation('corporate_template.pptx')\n\n# Use template layouts\ntitle_slide = prs.slides.add_slide(prs.slide_layouts[0])\ncontent_slide = prs.slides.add_slide(prs.slide_layouts[1])\n\n# Layouts inherit master formatting\nprs.save('branded_presentation.pptx')\n```\n\nSee `references\u002Ftemplates-and-themes.md` for master slide customization.\n\n### Workflow 7: Bulk Slide Generation\n\n**Goal:** Generate multiple slides automatically from data.\n\n**Steps:**\n\n1. Load data from CSV, JSON, or database\n2. Create presentation object\n3. Iterate through data records\n4. Generate one slide per record\n5. Populate slide with record data\n\n**Quick Example:**\n\n```python\nimport pandas as pd\n\ndf = pd.read_csv('employee_data.csv')\nprs = Presentation()\n\nfor _, row in df.iterrows():\n    slide = prs.slides.add_slide(prs.slide_layouts[1])\n    slide.shapes.title.text = row['Name']\n    # Add employee details to slide body\n\nprs.save('employee_directory.pptx')\n```\n\nSee `examples\u002Fbulk-generation.md` for complete implementations.\n\n## Design Principles\n\n### Color & Typography\n- Use 60-30-10 color rule (60% primary, 30% secondary, 10% accent)\n- Ensure WCAG AA contrast ratios (4.5:1 minimum)\n- Limit to 2 font families maximum\n- Minimum body text: 18pt for readability\n\n### Layout & Composition\n- Follow rule of thirds for element placement\n- Maintain minimum 0.5\" margins on all sides\n- Limit to 5-7 elements per slide\n- Use consistent alignment (snap to grid)\n\n### Visual Hierarchy\n- Size indicates importance (larger = more important)\n- Use color contrast for emphasis\n- Follow Z-pattern for content flow\n\n### Chart Best Practices\n- Choose appropriate chart type (bar for comparison, line for trends, pie for parts-of-whole)\n- Limit to 3-5 colors maximum\n- Always label axes and include data labels\n- Use gridlines sparingly\n\nFor complete design guidelines, see `references\u002Fdesign-best-practices.md`.\n\n## Common Patterns\n\n### Brand Color Application\n\n```python\nBRAND_COLORS = {\n    'primary': RGBColor(0, 51, 102),\n    'secondary': RGBColor(0, 153, 204),\n    'accent': RGBColor(255, 102, 0)\n}\n\n# Apply to text\nshape.text_frame.paragraphs[0].font.color.rgb = BRAND_COLORS['primary']\n\n# Apply to fill\nshape.fill.solid()\nshape.fill.fore_color.rgb = BRAND_COLORS['secondary']\n```\n\n### Centered Element\n\n```python\ndef center_shape(shape, prs):\n    \"\"\"Center shape on slide.\"\"\"\n    shape.left = int((prs.slide_width - shape.width) \u002F 2)\n    shape.top = int((prs.slide_height - shape.height) \u002F 2)\n```\n\n### Text Auto-Fit\n\n```python\nfrom pptx.enum.text import MSO_AUTO_SIZE\n\ntext_frame = shape.text_frame\ntext_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE  # Shrink text\n# or\ntext_frame.auto_size = MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT  # Expand shape\n```\n\n## Troubleshooting Quick Reference\n\n**\"ModuleNotFoundError: No module named 'pptx'\"**\n```bash\npip install python-pptx\n```\n\n**\"AttributeError: 'NoneType' object has no attribute...\"**\n- Check placeholder indices: `[p.placeholder_format.idx for p in slide.placeholders]`\n- Verify layout has expected placeholders\n\n**Images not found**\n- Use absolute paths: `os.path.abspath('image.png')`\n- Verify file exists: `os.path.exists(img_path)`\n\n**Text doesn't fit**\n- Enable auto-fit: `text_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE`\n- Truncate long text with ellipsis\n\n**File size too large**\n- Compress images before adding (use Pillow)\n- Resize images to presentation dimensions (1920x1080 max)\n\nFor complete troubleshooting, see `references\u002Ftroubleshooting.md`.\n\n## Helper Scripts\n\nThe `scripts\u002Fpptx_helper.py` module provides utility functions:\n\n- `create_presentation()`: Initialize with defaults\n- `add_title_slide()`: Add formatted title slide\n- `add_bullet_slide()`: Add slide with bullet points\n- `add_image_slide()`: Add slide with centered image\n- `add_chart_slide()`: Add slide with chart\n- `add_table_slide()`: Add formatted table\n- `apply_brand_colors()`: Apply consistent color scheme\n- `optimize_images()`: Batch optimize images\n\n**Usage:**\n\n```python\nfrom scripts.pptx_helper import create_presentation, add_title_slide, add_chart_slide\n\nprs = create_presentation(title=\"My Presentation\")\nadd_title_slide(prs, \"Main Title\", \"Subtitle\")\nadd_chart_slide(prs, \"Sales Data\", chart_type='bar',\n                categories=['Q1', 'Q2', 'Q3', 'Q4'],\n                values=[10, 20, 15, 25])\nprs.save('output.pptx')\n```\n\n## Additional Resources\n\n### Documentation\n- python-pptx: https:\u002F\u002Fpython-pptx.readthedocs.io\u002F\n- API Reference: https:\u002F\u002Fpython-pptx.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002F\n- GitHub: https:\u002F\u002Fgithub.com\u002Fscanny\u002Fpython-pptx\n\n### Detailed References\n- [Library Setup & Installation](.\u002Freferences\u002Flibrary-setup.md)\n- [Design Best Practices](.\u002Freferences\u002Fdesign-best-practices.md)\n- [Templates & Themes](.\u002Freferences\u002Ftemplates-and-themes.md)\n- [Advanced Techniques](.\u002Freferences\u002Fadvanced-techniques.md)\n- [Common Pitfalls](.\u002Freferences\u002Ftroubleshooting.md)\n\n### Examples\n- [Complete Business Presentation](.\u002Fexamples\u002Fbusiness-presentation.md)\n- [Chart Examples (Bar, Line, Pie)](.\u002Fexamples\u002Fchart-examples.md)\n- [Image Handling](.\u002Fexamples\u002Fimage-handling.md)\n- [Table Examples](.\u002Fexamples\u002Ftable-examples.md)\n- [Editing Existing Presentations](.\u002Fexamples\u002Fediting-presentations.md)\n- [Bulk Generation from Data](.\u002Fexamples\u002Fbulk-generation.md)\n\n### Design Resources\n- Microsoft Design Templates: https:\u002F\u002Ftemplates.office.com\u002Fpowerpoint\n- Color Palette Tools: Coolors.co, Adobe Color\n- Free Stock Images: Unsplash, Pexels\n\n## Best Practices Summary\n\n1. Always use templates for consistent branding\n2. Optimize images before adding to presentation\n3. Limit text on each slide (5-7 bullet points max)\n4. Use high contrast for readability\n5. Test on target device before presenting\n6. Keep file size manageable (\u003C20MB for email)\n7. Use speaker notes for detailed talking points\n8. Follow 6x6 rule: Max 6 bullets, max 6 words per bullet\n9. Validate data before creating charts\n10. Use consistent spacing and alignment\n\n---\n\n**When to Use This Skill:**\n- Creating business presentations from data\n- Automating report generation\n- Bulk slide creation from databases\n- Template-based presentations\n- Educational content with charts\u002Fimages\n- Converting documents to slides\n","# PowerPoint (PPTX) Skill\n\n## Overview\n\nThis skill provides comprehensive PowerPoint presentation creation, editing, and automation capabilities using Python's `python-pptx` library. Create professional presentations programmatically with full control over layouts, themes, content, charts, and visualizations.\n\n## Core Capabilities\n\n- **Presentation Creation**: New presentations, templates, metadata, page configuration\n- **Slide Management**: Add, duplicate, delete, reorder slides with predefined layouts\n- **Content Types**: Text, shapes, images, tables, charts, SmartArt, hyperlinks\n- **Design & Formatting**: Themes, color schemes, fonts, fills, borders, effects\n- **Advanced Features**: Transitions, animations, embedded objects, video\u002Faudio, comments\n\n## Installation\n\nInstall the required library:\n\n```bash\npip install python-pptx\n# or with uv\nuv pip install python-pptx\n```\n\nBasic imports:\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt, Cm\nfrom pptx.dml.color import RGBColor\nfrom pptx.enum.text import PP_ALIGN, MSO_ANCHOR\nfrom pptx.chart.data import CategoryChartData\nfrom pptx.enum.chart import XL_CHART_TYPE\n```\n\nFor complete library setup and supporting packages (Pillow, pandas, matplotlib), see `references\u002Flibrary-setup.md`.\n\n## Core Workflows\n\n### Workflow 1: Creating a Business Presentation\n\n**Goal:** Create a professional presentation with title slide, content slides, and conclusion.\n\n**Steps:**\n\n1. **Initialize Presentation**\n   - Create new presentation object\n   - Set slide dimensions (standard 16:9 or 4:3)\n   - Configure metadata (title, author, subject, keywords)\n\n2. **Add Title Slide**\n   - Use title slide layout (typically `prs.slide_layouts[0]`)\n   - Set title and subtitle text\n   - Apply formatting (font size, color, bold)\n\n3. **Add Content Slides**\n   - Use appropriate layouts (bullet, two-column, title-only, blank)\n   - Populate placeholders or add text boxes\n   - Format text with proper hierarchy\n\n4. **Add Visual Elements**\n   - Insert images with proper sizing and positioning\n   - Add charts with formatted data\n   - Create tables with cell styling\n\n5. **Save Presentation**\n   - Save to .pptx format\n   - Verify file creation\n\n**Quick Example:**\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt\n\nprs = Presentation()\nprs.slide_width = Inches(10)\nprs.slide_height = Inches(7.5)\n\n# Title slide\nslide = prs.slides.add_slide(prs.slide_layouts[0])\nslide.shapes.title.text = \"Q4 Business Review\"\nslide.placeholders[1].text = \"Prepared by: Jane Doe\\nDate: October 25, 2025\"\n\nprs.save('presentation.pptx')\n```\n\nSee `examples\u002Fbusiness-presentation.md` for complete implementation.\n\n### Workflow 2: Adding Charts\n\n**Goal:** Create data visualizations with bar, line, and pie charts.\n\n**Steps:**\n\n1. Prepare chart data using `CategoryChartData`\n2. Define categories and series\n3. Add chart to slide with positioning\n4. Format chart (legend, gridlines, labels)\n\n**Quick Example:**\n\n```python\nfrom pptx.chart.data import CategoryChartData\nfrom pptx.enum.chart import XL_CHART_TYPE\n\nchart_data = CategoryChartData()\nchart_data.categories = ['Q1', 'Q2', 'Q3', 'Q4']\nchart_data.add_series('2025', (9.5, 10.8, 11.2, 13.1))\n\nchart = slide.shapes.add_chart(\n    XL_CHART_TYPE.COLUMN_CLUSTERED,\n    Inches(1), Inches(2), Inches(8), Inches(4.5),\n    chart_data\n).chart\n```\n\nSee `examples\u002Fchart-examples.md` for all chart types.\n\n### Workflow 3: Working with Images\n\n**Goal:** Add, position, and format images in presentations.\n\n**Steps:**\n\n1. Add image with `slide.shapes.add_picture()`\n2. Specify position (left, top) and size (width, height)\n3. Calculate centered positioning if needed\n4. Optimize images before adding (use Pillow for preprocessing)\n\n**Quick Example:**\n\n```python\n# Add image with auto-scaled aspect ratio\npic = slide.shapes.add_picture('logo.png', Inches(1), Inches(1), height=Inches(2))\n\n# Center image on slide\npic.left = int((prs.slide_width - pic.width) \u002F 2)\npic.top = int((prs.slide_height - pic.height) \u002F 2)\n```\n\nSee `examples\u002Fimage-handling.md` for advanced techniques.\n\n### Workflow 4: Creating Tables\n\n**Goal:** Add structured data tables with formatting.\n\n**Steps:**\n\n1. Define table dimensions (rows, cols)\n2. Add table with positioning\n3. Set column widths\n4. Populate headers with bold formatting and background color\n5. Fill data cells with proper alignment\n\n**Quick Example:**\n\n```python\ntable = slide.shapes.add_table(4, 3, Inches(1.5), Inches(2), Inches(7), Inches(3)).table\n\n# Header formatting\ncell = table.cell(0, 0)\ncell.text = \"Product\"\ncell.text_frame.paragraphs[0].font.bold = True\ncell.fill.solid()\ncell.fill.fore_color.rgb = RGBColor(0, 51, 102)\n```\n\nSee `examples\u002Ftable-examples.md` for advanced formatting.\n\n### Workflow 5: Editing Existing Presentations\n\n**Goal:** Modify existing PowerPoint files.\n\n**Steps:**\n\n1. Open presentation with `Presentation('file.pptx')`\n2. Iterate through slides to find content\n3. Modify text, shapes, or add new elements\n4. Save with same or different filename\n\n**Quick Example:**\n\n```python\nprs = Presentation('existing.pptx')\n\n# Find and update text\nfor slide in prs.slides:\n    for shape in slide.shapes:\n        if hasattr(shape, \"text\") and \"Old Name\" in shape.text:\n            shape.text = shape.text.replace(\"Old Name\", \"New Name\")\n\nprs.save('updated.pptx')\n```\n\nSee `examples\u002Fediting-presentations.md` for slide copying and advanced editing.\n\n### Workflow 6: Using Templates\n\n**Goal:** Apply consistent branding with master slides and templates.\n\n**Steps:**\n\n1. Start with template file: `Presentation('template.pptx')`\n2. Examine available layouts\n3. Add slides using template layouts\n4. Apply brand colors consistently\n\n**Quick Example:**\n\n```python\nprs = Presentation('corporate_template.pptx')\n\n# Use template layouts\ntitle_slide = prs.slides.add_slide(prs.slide_layouts[0])\ncontent_slide = prs.slides.add_slide(prs.slide_layouts[1])\n\n# Layouts inherit master formatting\nprs.save('branded_presentation.pptx')\n```\n\nSee `references\u002Ftemplates-and-themes.md` for master slide customization.\n\n### Workflow 7: Bulk Slide Generation\n\n**Goal:** Generate multiple slides automatically from data.\n\n**Steps:**\n\n1. Load data from CSV, JSON, or database\n2. Create presentation object\n3. Iterate through data records\n4. Generate one slide per record\n5. Populate slide with record data\n\n**Quick Example:**\n\n```python\nimport pandas as pd\n\ndf = pd.read_csv('employee_data.csv')\nprs = Presentation()\n\nfor _, row in df.iterrows():\n    slide = prs.slides.add_slide(prs.slide_layouts[1])\n    slide.shapes.title.text = row['Name']\n    # Add employee details to slide body\n\nprs.save('employee_directory.pptx')\n```\n\nSee `examples\u002Fbulk-generation.md` for complete implementations.\n\n## Design Principles\n\n### Color & Typography\n- Use 60-30-10 color rule (60% primary, 30% secondary, 10% accent)\n- Ensure WCAG AA contrast ratios (4.5:1 minimum)\n- Limit to 2 font families maximum\n- Minimum body text: 18pt for readability\n\n### Layout & Composition\n- Follow rule of thirds for element placement\n- Maintain minimum 0.5\" margins on all sides\n- Limit to 5-7 elements per slide\n- Use consistent alignment (snap to grid)\n\n### Visual Hierarchy\n- Size indicates importance (larger = more important)\n- Use color contrast for emphasis\n- Follow Z-pattern for content flow\n\n### Chart Best Practices\n- Choose appropriate chart type (bar for comparison, line for trends, pie for parts-of-whole)\n- Limit to 3-5 colors maximum\n- Always label axes and include data labels\n- Use gridlines sparingly\n\nFor complete design guidelines, see `references\u002Fdesign-best-practices.md`.\n\n## Common Patterns\n\n### Brand Color Application\n\n```python\nBRAND_COLORS = {\n    'primary': RGBColor(0, 51, 102),\n    'secondary': RGBColor(0, 153, 204),\n    'accent': RGBColor(255, 102, 0)\n}\n\n# Apply to text\nshape.text_frame.paragraphs[0].font.color.rgb = BRAND_COLORS['primary']\n\n# Apply to fill\nshape.fill.solid()\nshape.fill.fore_color.rgb = BRAND_COLORS['secondary']\n```\n\n### Centered Element\n\n```python\ndef center_shape(shape, prs):\n    \"\"\"Center shape on slide.\"\"\"\n    shape.left = int((prs.slide_width - shape.width) \u002F 2)\n    shape.top = int((prs.slide_height - shape.height) \u002F 2)\n```\n\n### Text Auto-Fit\n\n```python\nfrom pptx.enum.text import MSO_AUTO_SIZE\n\ntext_frame = shape.text_frame\ntext_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE  # Shrink text\n# or\ntext_frame.auto_size = MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT  # Expand shape\n```\n\n## Troubleshooting Quick Reference\n\n**\"ModuleNotFoundError: No module named 'pptx'\"**\n```bash\npip install python-pptx\n```\n\n**\"AttributeError: 'NoneType' object has no attribute...\"**\n- Check placeholder indices: `[p.placeholder_format.idx for p in slide.placeholders]`\n- Verify layout has expected placeholders\n\n**Images not found**\n- Use absolute paths: `os.path.abspath('image.png')`\n- Verify file exists: `os.path.exists(img_path)`\n\n**Text doesn't fit**\n- Enable auto-fit: `text_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE`\n- Truncate long text with ellipsis\n\n**File size too large**\n- Compress images before adding (use Pillow)\n- Resize images to presentation dimensions (1920x1080 max)\n\nFor complete troubleshooting, see `references\u002Ftroubleshooting.md`.\n\n## Helper Scripts\n\nThe `scripts\u002Fpptx_helper.py` module provides utility functions:\n\n- `create_presentation()`: Initialize with defaults\n- `add_title_slide()`: Add formatted title slide\n- `add_bullet_slide()`: Add slide with bullet points\n- `add_image_slide()`: Add slide with centered image\n- `add_chart_slide()`: Add slide with chart\n- `add_table_slide()`: Add formatted table\n- `apply_brand_colors()`: Apply consistent color scheme\n- `optimize_images()`: Batch optimize images\n\n**Usage:**\n\n```python\nfrom scripts.pptx_helper import create_presentation, add_title_slide, add_chart_slide\n\nprs = create_presentation(title=\"My Presentation\")\nadd_title_slide(prs, \"Main Title\", \"Subtitle\")\nadd_chart_slide(prs, \"Sales Data\", chart_type='bar',\n                categories=['Q1', 'Q2', 'Q3', 'Q4'],\n                values=[10, 20, 15, 25])\nprs.save('output.pptx')\n```\n\n## Additional Resources\n\n### Documentation\n- python-pptx: https:\u002F\u002Fpython-pptx.readthedocs.io\u002F\n- API Reference: https:\u002F\u002Fpython-pptx.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002F\n- GitHub: https:\u002F\u002Fgithub.com\u002Fscanny\u002Fpython-pptx\n\n### Detailed References\n- [Library Setup & Installation](.\u002Freferences\u002Flibrary-setup.md)\n- [Design Best Practices](.\u002Freferences\u002Fdesign-best-practices.md)\n- [Templates & Themes](.\u002Freferences\u002Ftemplates-and-themes.md)\n- [Advanced Techniques](.\u002Freferences\u002Fadvanced-techniques.md)\n- [Common Pitfalls](.\u002Freferences\u002Ftroubleshooting.md)\n\n### Examples\n- [Complete Business Presentation](.\u002Fexamples\u002Fbusiness-presentation.md)\n- [Chart Examples (Bar, Line, Pie)](.\u002Fexamples\u002Fchart-examples.md)\n- [Image Handling](.\u002Fexamples\u002Fimage-handling.md)\n- [Table Examples](.\u002Fexamples\u002Ftable-examples.md)\n- [Editing Existing Presentations](.\u002Fexamples\u002Fediting-presentations.md)\n- [Bulk Generation from Data](.\u002Fexamples\u002Fbulk-generation.md)\n\n### Design Resources\n- Microsoft Design Templates: https:\u002F\u002Ftemplates.office.com\u002Fpowerpoint\n- Color Palette Tools: Coolors.co, Adobe Color\n- Free Stock Images: Unsplash, Pexels\n\n## Best Practices Summary\n\n1. Always use templates for consistent branding\n2. Optimize images before adding to presentation\n3. Limit text on each slide (5-7 bullet points max)\n4. Use high contrast for readability\n5. Test on target device before presenting\n6. Keep file size manageable (\u003C20MB for email)\n7. Use speaker notes for detailed talking points\n8. Follow 6x6 rule: Max 6 bullets, max 6 words per bullet\n9. Validate data before creating charts\n10. Use consistent spacing and alignment\n\n---\n\n**When to Use This Skill:**\n- Creating business presentations from data\n- Automating report generation\n- Bulk slide creation from databases\n- Template-based presentations\n- Educational content with charts\u002Fimages\n- Converting documents to slides\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill pptx",{"tool":58,"command":59},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill pptx",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill pptx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112,116,122],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Fbulk-generation.md","REFERENCE","参考文档",12358,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Fbulk-generation.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"examples\u002Fbusiness-presentation.md",5104,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Fbusiness-presentation.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"examples\u002Fchart-examples.md",7166,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Fchart-examples.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"examples\u002Fediting-presentations.md",8327,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Fediting-presentations.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"examples\u002Fimage-handling.md",9192,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Fimage-handling.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"examples\u002Ftable-examples.md",9857,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fexamples\u002Ftable-examples.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"README.md",8121,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002FREADME.md",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fadvanced-techniques.md",5409,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Freferences\u002Fadvanced-techniques.md",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fdesign-best-practices.md",5039,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Freferences\u002Fdesign-best-practices.md",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Flibrary-setup.md",2835,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Freferences\u002Flibrary-setup.md",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Ftemplates-and-themes.md",3479,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Freferences\u002Ftemplates-and-themes.md",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Ftroubleshooting.md",8579,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Freferences\u002Ftroubleshooting.md",{"path":117,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fpptx_helper.py","SCRIPT","脚本",28460,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fscripts\u002Fpptx_helper.py",{"path":123,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":124,"sourceHtmlUrl":125},"skill-report.json",11898,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fautumnsgrove\u002Fpptx\u002Fskill-report.json",[127,136,145,154,160,166],{"skillNo":128,"name":129,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[133,134,135],"model","model hierarchy","model hierarchy skill",{"skillNo":137,"name":138,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[142,143,144],"MCP","zoom","zoom mcp",{"skillNo":146,"name":147,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[151,152,153,143],"sdk","zoom apps sdk","apps",{"skillNo":155,"name":156,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[156],{"skillNo":161,"name":162,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[162],{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[168]]