跳到正文
Skillpedia
PDF、Word 与幻灯片33k · #9135

officecli-pptx

它能做什么

这个技能指导智能体通过 officecli 工具处理 .pptx 演示文稿文件。适合任何制作、读取或修改幻灯片的人。

适用场景

  • ✓当你想根据你的内容创建一份新的幻灯片或演示文稿时。
  • ✓当你需要从现有 PowerPoint 文件中提取文字或演讲者备注时。
  • ✓当你想编辑模板、更改版式或合并幻灯片文件时。

技能链接

https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-pptx/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-pptx/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“能把这些要点做成一份干净的 8 张幻灯片演示文稿,并附上演讲者备注吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 officecli 读取幻灯片结构,修改幻灯片、文字、形状和备注,然后检查结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

OfficeCLI PPTX Skill

Setup

If officecli is missing:

  • macOS / Linux: curl -fsSL https://d.officecli.ai/install.sh | bash
  • Windows (PowerShell): irm https://d.officecli.ai/install.ps1 | iex

Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.

⚠️ Help-First Rule

This skill teaches what good slides look like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.

officecli help pptx                         # List all pptx elements
officecli help pptx <element>               # Full element schema (e.g. shape, chart, animation, connector, zoom, group)
officecli help pptx <verb> <element>        # Verb-scoped (e.g. add shape, set slide)
officecli help pptx <element> --json        # Machine-readable schema

Help reflects the installed CLI version. When skill and help disagree, help is authoritative. Triggers to run help immediately: UNSUPPORTED props: warning, unknown animation preset, connector.shape= enum drifts, prop-vs-alias (lineWidth vs line.width, color vs font.color).

Shell & Execution Discipline

Shell quoting (zsh / bash). ALWAYS quote element paths ("/slide[1]/...") — zsh globs unquoted [1] to no matches found. Escaping happens at three layers — keep them separate (the CLI handles the second for you):

  1. Shell. $ in a value still belongs to the shell — single-quote the whole value: --prop text='$15M'. Double-quoted "$15M" gets expanded to M. The CLI does NOT unescape \$ for you.
  2. CLI (text=). The two-char escapes \n and \t ARE interpreted, consistently across pptx / docx / xlsx — \n is a line / paragraph break, \t is a tab. To produce a literal backslash-n in text, double it (\\n); this is rarely what you want.
  3. JSON (batch heredoc). The recipes below pipe cat <<EOF | officecli batch unquoted so $SLIDE / $FILE expand inside the body. That same unquoted heredoc also expands a literal $ in a value: "$1.42" silently becomes .42 and "$2.4B" becomes .4B ($1 / $2 are empty shell params). Escape currency as \$ — "text":"\$1.42" — which still lets $SLIDE expand. \n / \t inside the JSON work either way. A fully-quoted <<'EOF' protects every $ but then $SLIDE won't expand, so only use it when the body has no shell variables. After writing money values, view text and confirm the $ survived.

If in doubt, view text after writing and compare character-for-character.

Incremental execution. One command → check exit code → continue. A 50-command script that fails at command 3 cascades silently. After any structural op (new slide, chart, animation, connector) run get before stacking more.

Requirements for Outputs

These are the deliverable standards every deck MUST meet. Violating any one = not done, regardless of content quality.

All decks

One idea per slide. If a slide needs a second title to explain what it covers, split it. Dense "everything about X" slides lose the audience inside 3 seconds. Use a section divider to group related one-idea slides, not a mega-slide.

Explicit type hierarchy — do NOT rely on theme defaults. Theme defaults drift between masters. Set sizes explicitly on every text shape.

Element Minimum Typical Min shape height
Slide title ≥ 36pt bold 36–44pt ≥ 2cm
Section / subtitle ≥ 20pt 20–24pt ≥ 1.2cm
Body text ≥ 18pt 18–22pt ≥ 1cm
Caption / axis label ≥ 10pt muted 10–12pt ≥ 0.6cm

Rule of thumb: min shape height ≈ font_pt × 0.05cm. An 18pt sublabel in a 0.8cm-tall box will overflow — view annotated catches this.

Title must be ≥ 2× body size (36pt over 20pt works; 28pt over 20pt looks timid). Four legit exceptions to body ≥ 18pt: chart axis labels, legends, footer / page number, and ≤ 5-word KPI sublabels (e.g. "Active users"). Descriptive sentences must be ≥ 18pt. Left-align body; center only titles and hero numbers. If "the cards won't fit", drop cards instead of shrinking font.

Two fonts max, one palette. One heading font + one body font (e.g. Georgia + Calibri) — a third display face is fine only for big numerals or the cover title, as long as that heading+body pair stays intact. One dominant brand color (60–70% weight) + one supporting + one accent. Ne

常见问题

需要安装 PowerPoint 吗?

不需要。技能说明 officecli 无需安装任何 Office 即可使用。

能读取演讲者备注吗?

可以。技能涵盖演讲者备注、批注和版式。

在哪里找到准确的属性名称?

技能说明应使用 officecli 的帮助命令,它是权威的来源。

详情

作者的原始描述

Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; 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', 'pitch', or references a .pptx filename.

repo: iOfficeAI/OfficeCLI

热度

GitHub 星标
33k
排名
#9135
许可证
Apache-2.0
更新时间
2026/10/30

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能