Token导航 LogoToken导航

Agent Skill · 研究检索

pptx(PPTX 演示文稿处理)

pptx 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pptx 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 9下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pptx(PPTX 演示文稿处理)
来源仓库:https://github.com/autumnsgrove/claudeskills
仓库路径:skills/pptx
安装命令:
npx skills add https://github.com/autumnsgrove/claudeskills --skill pptx
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/autumnsgrove/claudeskills --skill pptx

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

pptx 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于 PowerPoint 演示文稿的创建、编辑和自动化处理,支持文本、形状、图片、表格、图表等多种内容类型。

通过 Python 的 python-pptx 库实现,提供完整的布局控制、主题应用和视觉格式化能力。安装命令为 npx skills add https://github.com/autumnsgrove/claudeskills --skill pptx,需确认权限范围和文件读写操作。

建议结合原始 README 核验具体用法,注意维护状态及是否会触发联网或命令执行。

来源仓库内路径:skills/pptx

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/autumnsgrove/claudeskills --skill pptx;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

pptx 怎么安装?

在终端执行 npx skills add https://github.com/autumnsgrove/claudeskills --skill pptx。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pptx 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pptx 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

pptx 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pptx 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pptx 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
pptx

PPTX 演示文稿处理 · 本页

3069只读MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

PowerPoint (PPTX) Skill

Overview

This 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.

Core Capabilities

  • Presentation Creation: New presentations, templates, metadata, page configuration
  • Slide Management: Add, duplicate, delete, reorder slides with predefined layouts
  • Content Types: Text, shapes, images, tables, charts, SmartArt, hyperlinks
  • Design & Formatting: Themes, color schemes, fonts, fills, borders, effects
  • Advanced Features: Transitions, animations, embedded objects, video/audio, comments

Installation

Install the required library:

pip install python-pptx
# or with uv
uv pip install python-pptx

Basic imports:

from pptx import Presentation
from pptx.util import Inches, Pt, Cm
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.chart.data import CategoryChartData
from pptx.enum.chart import XL_CHART_TYPE

For complete library setup and supporting packages (Pillow, pandas, matplotlib), see references/library-setup.md.

Core Workflows

Workflow 1: Creating a Business Presentation

Goal: Create a professional presentation with title slide, content slides, and conclusion.

Steps:

  1. Initialize Presentation

- Create new presentation object - Set slide dimensions (standard 16:9 or 4:3) - Configure metadata (title, author, subject, keywords)

  1. Add Title Slide

- Use title slide layout (typically prs.slide_layouts[0]) - Set title and subtitle text - Apply formatting (font size, color, bold)

  1. Add Content Slides

- Use appropriate layouts (bullet, two-column, title-only, blank) - Populate placeholders or add text boxes - Format text with proper hierarchy

  1. Add Visual Elements

- Insert images with proper sizing and positioning - Add charts with formatted data - Create tables with cell styling

  1. Save Presentation

- Save to.pptx format - Verify file creation

Quick Example:

from pptx import Presentation
from pptx.util import Inches, Pt

prs = Presentation()
prs.slide_width = Inches(10)
prs.slide_height = Inches(7.5)

# Title slide
slide = prs.slides.add_slide(prs.slide_layouts[0])
slide.shapes.title.text = "Q4 Business Review"
slide.placeholders[1].text = "Prepared by: Jane Doe\nDate: October 25, 2025"

prs.save('presentation.pptx')

See examples/business-presentation.md for complete implementation.

Workflow 2: Adding Charts

Goal: Create data visualizations with bar, line, and pie charts.

Steps:

  1. Prepare chart data using CategoryChartData
  2. Define categories and series
  3. Add chart to slide with positioning
  4. Format chart (legend, gridlines, labels)

Quick Example:

from pptx.chart.data import CategoryChartData
from pptx.enum.chart import XL_CHART_TYPE

chart_data = CategoryChartData()
chart_data.categories = ['Q1', 'Q2', 'Q3', 'Q4']
chart_data.add_series('2025', (9.5, 10.8, 11.2, 13.1))

chart = slide.shapes.add_chart(
    XL_CHART_TYPE.COLUMN_CLUSTERED,
    Inches(1), Inches(2), Inches(8), Inches(4.5),
    chart_data
).chart

See examples/chart-examples.md for all chart types.

Workflow 3: Working with Images

Goal: Add, position, and format images in presentations.

Steps:

  1. Add image with slide.shapes.add_picture()
  2. Specify position (left, top) and size (width, height)
  3. Calculate centered positioning if needed
  4. Optimize images before adding (use Pillow for preprocessing)

Quick Example:

# Add image with auto-scaled aspect ratio
pic = slide.shapes.add_picture('logo.png', Inches(1), Inches(1), height=Inches(2))

# Center image on slide
pic.left = int((prs.slide_width - pic.width) / 2)
pic.top = int((prs.slide_height - pic.height) / 2)

See examples/image-handling.md for advanced techniques.

Workflow 4: Creating Tables

Goal: Add structured data tables with formatting.

Steps:

  1. Define table dimensions (rows, cols)
  2. Add table with positioning
  3. Set column widths
  4. Populate headers with bold formatting and background color
  5. Fill data cells with proper alignment

Quick Example:

table = slide.shapes.add_table(4, 3, Inches(1.5), Inches(2), Inches(7), Inches(3)).table

# Header formatting
cell = table.cell(0, 0)
cell.text = "Product"
cell.text_frame.paragraphs[0].font.bold = True
cell.fill.solid()
cell.fill.fore_color.rgb = RGBColor(0, 51, 102)

See examples/table-examples.md for advanced formatting.

Workflow 5: Editing Existing Presentations

Goal: Modify existing PowerPoint files.

Steps:

  1. Open presentation with Presentation('file.pptx')
  2. Iterate through slides to find content
  3. Modify text, shapes, or add new elements
  4. Save with same or different filename

Quick Example:

prs = Presentation('existing.pptx')

# Find and update text
for slide in prs.slides:
    for shape in slide.shapes:
        if hasattr(shape, "text") and "Old Name" in shape.text:
            shape.text = shape.text.replace("Old Name", "New Name")

prs.save('updated.pptx')

See examples/editing-presentations.md for slide copying and advanced editing.

Workflow 6: Using Templates

Goal: Apply consistent branding with master slides and templates.

Steps:

  1. Start with template file: Presentation('template.pptx')
  2. Examine available layouts
  3. Add slides using template layouts
  4. Apply brand colors consistently

Quick Example:

prs = Presentation('corporate_template.pptx')

# Use template layouts
title_slide = prs.slides.add_slide(prs.slide_layouts[0])
content_slide = prs.slides.add_slide(prs.slide_layouts[1])

# Layouts inherit master formatting
prs.save('branded_presentation.pptx')

See references/templates-and-themes.md for master slide customization.

Workflow 7: Bulk Slide Generation

Goal: Generate multiple slides automatically from data.

Steps:

  1. Load data from CSV, JSON, or database
  2. Create presentation object
  3. Iterate through data records
  4. Generate one slide per record
  5. Populate slide with record data

Quick Example:

import pandas as pd

df = pd.read_csv('employee_data.csv')
prs = Presentation()

for _, row in df.iterrows():
    slide = prs.slides.add_slide(prs.slide_layouts[1])
    slide.shapes.title.text = row['Name']
    # Add employee details to slide body

prs.save('employee_directory.pptx')

See examples/bulk-generation.md for complete implementations.

Design Principles

Color & Typography

  • Use 60-30-10 color rule (60% primary, 30% secondary, 10% accent)
  • Ensure WCAG AA contrast ratios (4.5:1 minimum)
  • Limit to 2 font families maximum
  • Minimum body text: 18pt for readability

Layout & Composition

  • Follow rule of thirds for element placement
  • Maintain minimum 0.5" margins on all sides
  • Limit to 5-7 elements per slide
  • Use consistent alignment (snap to grid)

Visual Hierarchy

  • Size indicates importance (larger = more important)
  • Use color contrast for emphasis
  • Follow Z-pattern for content flow

Chart Best Practices

  • Choose appropriate chart type (bar for comparison, line for trends, pie for parts-of-whole)
  • Limit to 3-5 colors maximum
  • Always label axes and include data labels
  • Use gridlines sparingly

For complete design guidelines, see references/design-best-practices.md.

Common Patterns

Brand Color Application

BRAND_COLORS = {
    'primary': RGBColor(0, 51, 102),
    'secondary': RGBColor(0, 153, 204),
    'accent': RGBColor(255, 102, 0)
}

# Apply to text
shape.text_frame.paragraphs[0].font.color.rgb = BRAND_COLORS['primary']

# Apply to fill
shape.fill.solid()
shape.fill.fore_color.rgb = BRAND_COLORS['secondary']

Centered Element

def center_shape(shape, prs):
    """Center shape on slide."""
    shape.left = int((prs.slide_width - shape.width) / 2)
    shape.top = int((prs.slide_height - shape.height) / 2)

Text Auto-Fit

from pptx.enum.text import MSO_AUTO_SIZE

text_frame = shape.text_frame
text_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE  # Shrink text
# or
text_frame.auto_size = MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT  # Expand shape

Troubleshooting Quick Reference

"ModuleNotFoundError: No module named 'pptx'"

pip install python-pptx

"AttributeError: 'NoneType' object has no attribute..."

  • Check placeholder indices: [p.placeholder_format.idx for p in slide.placeholders]
  • Verify layout has expected placeholders

Images not found

  • Use absolute paths: os.path.abspath('image.png')
  • Verify file exists: os.path.exists(img_path)

Text doesn't fit

  • Enable auto-fit: text_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE
  • Truncate long text with ellipsis

File size too large

  • Compress images before adding (use Pillow)
  • Resize images to presentation dimensions (1920x1080 max)

For complete troubleshooting, see references/troubleshooting.md.

Helper Scripts

The scripts/pptx_helper.py module provides utility functions:

  • create_presentation(): Initialize with defaults
  • add_title_slide(): Add formatted title slide
  • add_bullet_slide(): Add slide with bullet points
  • add_image_slide(): Add slide with centered image
  • add_chart_slide(): Add slide with chart
  • add_table_slide(): Add formatted table
  • apply_brand_colors(): Apply consistent color scheme
  • optimize_images(): Batch optimize images

Usage:

from scripts.pptx_helper import create_presentation, add_title_slide, add_chart_slide

prs = create_presentation(title="My Presentation")
add_title_slide(prs, "Main Title", "Subtitle")
add_chart_slide(prs, "Sales Data", chart_type='bar',
                categories=['Q1', 'Q2', 'Q3', 'Q4'],
                values=[10, 20, 15, 25])
prs.save('output.pptx')

Additional Resources

Documentation

Detailed References

Examples

Design Resources

Best Practices Summary

  1. Always use templates for consistent branding
  2. Optimize images before adding to presentation
  3. Limit text on each slide (5-7 bullet points max)
  4. Use high contrast for readability
  5. Test on target device before presenting
  6. Keep file size manageable (<20MB for email)
  7. Use speaker notes for detailed talking points
  8. Follow 6x6 rule: Max 6 bullets, max 6 words per bullet
  9. Validate data before creating charts
  10. Use consistent spacing and alignment

When to Use This Skill:

  • Creating business presentations from data
  • Automating report generation
  • Bulk slide creation from databases
  • Template-based presentations
  • Educational content with charts/images
  • Converting documents to slides

平台分布

windsurf

26.7%
按下载量换算29

OpenCode

23.89%
按下载量换算26

Codex

17.17%
按下载量换算18

Claude Code

12.93%
按下载量换算14

Antigravity

8.27%
按下载量换算9

Gemini CLI

3.92%
按下载量换算4

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills