Skip to content

Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-pptx

wecomcli-pptx

Verified

何时用:仅当用户明确指向企业微信 PPT/演示文稿(生成在线 PPT、编辑在线 PPT、导入本地 .ppt/.pptx)时使用;泛指做文档/表格默认走本地工具。「做个PPT」「写份汇报PPT」「把文档转成PPT」「改第3页标题」或需要能讲的分页材料(周会/汇报/路演/课件)时触发;一律作用于企微在线 slide 文档,交付在线链接;不支持编辑本地文件、无导出能力;仅读取本地 PPT 改用 wecomcli-media。

references/component-animation.md

View on GitHub
---
name: component-animation
description: Animation 组件规范 — 入场/退出/强调动画,包裹单个子元素,导出 OOXML timing
---

# Animation 组件规范

`<Animation>` 包裹**单个子元素**为其添加动画,本身不占布局。导出时写入 OOXML `<p:timing>`,在 PowerPoint 放映模式下按顺序播放。

## 基础用法

```jsx
<Animation animType="fadeIn" duration={800}>
    <Text>标题</Text>
</Animation>

<Animation animType="fadeIn" startType="afterPrevious">
    <Text>第一句</Text>
</Animation>
<Animation animType="fadeIn" startType="afterPrevious">
    <Text>第二句</Text>
</Animation>
```

一个 `<Animation>` 只能包**一个**子元素。若需要一组元素同步入场,用 Box 包起来再套 Animation。

## 属性速查

| 属性 | 说明 |
| :--- | :--- |
| `animType` | **必填**。动画类型字符串,见下方白名单 |
| `startType` | `'click'`(默认,点击触发)/ `'withPrevious'`(与前一个同时)/ `'afterPrevious'`(前一个播完自动播) |
| `duration` | 时长毫秒,默认 500 |
| `delay` | 延迟毫秒,默认 0 |
| `direction` | 方向类动画(flyIn / peekIn 等)用,取值 `'top' / 'bottom' / 'left' / 'right' / 'topLeft' / 'topRight' / 'bottomLeft' / 'bottomRight' / 'center' / 'toCenter' / 'horizontal' / 'vertical' / 'clockwise' / 'counterClockwise'` 等 |

## 常用 animType 白名单

**入场(entrance)**:`appear` / `fadeIn` / `flyIn` / `wipe` / `zoom` / `floatIn` / `floatDown` / `bounce` / `blinds` / `box` / `checkerboard` / `circle` / `diamond` / `dissolve` / `peekIn` / `plus` / `randomBars` / `stretch` / `barnDoor` / `peekFrom` / `strips` / `wedge` / `wheel` / `flip` / `credits` / `easeIn` / `lightSpeed` / `growShrink` / `curveUp` / `riseUp` / `spiralIn` / `compress` / `ascend` / `swivel` / `spinner` / `sling` / `centerRevolve` / `pinwheel` / `swish` / `split`

**退出(exit)**:`disappear` / `fadeOut` / `flyOut` / `floatOut` / `floatDownOut` / `exitWipe` / `exitBlinds` / `exitBox` / `exitZoom` / `exitCircle` / `exitDiamond` / `exitFlip` / …(`exit*` 变体一一对应上方入场)

**强调(emphasis)**:`pulse` / `spin` / `transparency` / `fillColor` / `fontColor` / `lineColor` / `boldFlash` / `wave`

## 嵌套(一个元素叠多个动画)

```jsx
<Animation animType="fadeIn" duration={600}>
    <Animation animType="pulse" delay={800}>
        <Text style={{ fontSize: 48 }}>核心数据</Text>
    </Animation>
</Animation>
```

## 硬性限制

- 每个 `<Animation>` **只能有一个直接子元素**(多个会报错)
- `animType` 必填,且必须在上方白名单中
- 一期不支持:路径动画(`animMotion`)、trigger 触发器(点 A 触发 B)
- `startType` 默认 `'click'`。**不显式声明** = 需要观众手动点击才播;连续自动播必须显式写 `'afterPrevious'`

## 使用建议

- **不是每页都要动画**。优先用于封面 / 章节过渡 / 关键数字揭示;正文页密集列表禁止逐条 fadeIn(放映节奏拖沓)
- 单页动画数量 ≤ 4,全篇风格统一(要么都 `fadeIn`,要么都 `flyIn`,避免混用)
- `duration` 建议 300–800 ms,`delay` ≤ 500 ms,超过会显得卡顿
- 装饰元素、页脚、页码**不加**动画
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