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-hyperlink.md
View on GitHub---
name: component-hyperlink
description: 超链接 href prop 规范 — Text / Picture / Box 整段挂链接,写入 OOXML hlinkClick
---
# 超链接(href)规范
`href` 是**跨组件的 prop**,不是独立组件。挂在 Text / Picture / Box 上,在腾讯文档 / 企微在线打开该 PPT 时点击可跳转。
## 支持的 URI
| 形式 | 示例 |
| :--- | :--- |
| 外链 | `https://docs.qq.com` / `http://...` |
| 邮件 | `mailto:foo@bar.com` |
| 跳页 action | `ppaction://hlinkshowjump?jump=nextslide` |
| | `ppaction://hlinkshowjump?jump=previousslide` |
| | `ppaction://hlinkshowjump?jump=firstslide` |
| | `ppaction://hlinkshowjump?jump=lastslide` |
## 用法
### 整段 Text(写入 `rPr.hlinkClick`)
```jsx
<Text href="https://docs.qq.com" style={{ color: '#2563EB', textDecoration: 'underline' }}>
docs.qq.com
</Text>
<Text href="mailto:slide@docs.qq.com" style={{ color: '#2563EB', textDecoration: 'underline' }}>
slide@docs.qq.com
</Text>
```
`<Text href>` 给该 Text 内所有文字加链接。整段 Text 就是一个链接,无法只给其中一部分文字挂链接。
### Picture / Box 级(写入 `nvPr.hlinkClick`)
```jsx
<Picture src="hero_1" href="https://example.com" style={{ width: 400 }} />
<Box href="ppaction://hlinkshowjump?jump=nextslide" style={{ padding: 12, background: '#f1f5f9' }}>
<Text>下一页</Text>
</Box>
```
⚠️ **`src` 的取值规则与 `<Image>` 相同**:写上传口返回的 `url`(见 [component-image.md](component-image.md))。材料图可附加超链接。
## 硬性限制
- **段内文字链接不支持**。`<Text>` 内嵌 `<span href="...">` 目前不会写入 hlinkClick,编译时被忽略。需要链接就用整段 `<Text href>`;如果一句话里只有一部分是链接,把那一部分拆成独立的 `<Text href>`,与其他文字用 flex 排在一起
- `href` 值必须为字符串;空字符串等同未设置
- 一期不支持:`hrefTooltip`(悬浮提示)、`hrefSlide`(跳转到指定页)、hover link、SmartArt / Diagram 节点级 link
- 跨页跳转仅支持上表 4 个 `ppaction://hlinkshowjump?jump=...` 字面量,不支持指定第 N 页
## 使用建议
- 目录页 / 章节页 用 `ppaction://hlinkshowjump?jump=...` 做手动导航按钮
- 引用来源、参考资料用整段 `<Text href>`,方便观众追溯
- 装饰性元素**不加** `href`,避免误点
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |