Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/skill-marketplace/tencent-docs-skill
tencent-docs
Unverified腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理**在线**文档的首选 skill。仅当用户明确指向腾讯文档/在线文档/docs.qq.com,或任务需要在线协作文档时使用;泛指"做个文档/保存成文件/PPT"且未点名在线平台时,默认走本地工具(本地 pptx 技能等),不要误用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/html/文档上云。
sidebar-pptx-generator/references/component-slide.md
View on GitHub---
name: component-slide
description: Slide container component - canvas size, padding safe zone, height constraints, speaker notes
---
# Slide 组件规范
Slide 是用于创建演示文稿幻灯片的容器组件,继承自 Box 组件,提供灵活的布局和样式定制,支持构建各种风格的页面布局。
## 核心属性
Slide 继承 Box 组件的所有属性,具体属性说明请参考 Box 组件规范。
## 布局与样式
- **默认布局**: `width: '1280px', height: '720px'`
- **样式支持**: 支持所有 CSS 属性,通过 style 对象设置
## 画布规格与排版规划
- **画布尺寸**:1280 x 720 像素(16:9 宽屏比例)
- **文件组织**:每页 = 一个 `.jsx` 文件,文件名格式为 `XX_{slug}.jsx`(例如 `01_cover.jsx`, `03_market_analysis.jsx`)。其中 `{slug}` 是页面内容的简单英文描述(snake_case)。
- **演讲者备注(Speaker Notes / notes)**:
- **默认不写**。每页的 `<Slide>` 省略 `notes` 属性即可。
- **仅当**用户在初始澄清阶段明确要求(如"每页带演讲稿 / 附讲者备注 / notes")时,才按下列规范写入:
- 通过 `<Slide notes={`...`}>` 传入,推荐使用模板字符串(反引号)以支持多段落。
- `notes` 必须是**自然的现场逐字演讲稿**(≤300字),**严禁**出现"这一页展示了/本页聚焦于/下图描述了/接下来进入/建议先…/讲的时候可以…"等对 PPT 的元描述、过渡语或指导性语言。
- 必须用**第一人称**直接讲观点(我/我们),并自然补充页面未完全展开的背景、原理、数据或例子。
- 若出现"第一/第二/1./2./首先/其次"等分点逻辑,**必须换行分段**,避免堆在同一段。
- **文件语法限制**:不允许出现 `import` / `export` / `module` 等模块相关语句(即整页按"纯组件标签内容"输出)
- **导出规范**:文件中最后一个表达式必须是 `<Slide>` 组件(不要在其后再追加其他组件标签 / 变量声明 / 导出等表达式)
- **内容占比**:建议内容占比 30%-85%。
## 高度约束(强制)
- Slide 高度**固定为 720px**,内容**绝对不允许溢出**
- 在编写代码前,**必须计算**总高度:`上padding + 标题区高度 + 内容区高度 + 各间距(gap/margin) + 下padding ≤ 720px`
- 如果使用 `height` 属性明确指定子元素高度,必须确保所有高度累加后不超过 720px
- **禁止**在主内容区域使用 `flex: 1` 且不计算实际高度的做法
- 优先使用相对单位(百分比)或精确计算的固定值
## 安全区域(强制)
- Slide 的 `padding` 值定义了页面安全区,**必须保留**,不能用绝对定位绕过
- 内容区域可用高度 = `720px - 上padding - 下padding`
- 所有内容必须在安全区域内,确保视觉完整性
## 布局验证清单(生成前必须检查)
1. ✅ 已计算总高度:`上padding + 标题区高度 + 内容区高度 + 各间距(gap/margin) + 下padding ≤ 720px`
2. ✅ Slide `padding` 已保留为页面安全区(不得被绝对定位绕过)
3. ✅ 内容区域高度已验证:`内容区高度 ≤ 720px - 上padding - 下padding`
4. ✅ 如使用固定高度,已验证不会溢出可用内容高度
5. ✅ 背景装饰元素可用绝对定位,但不影响内容布局、不占用安全区
6. ✅ 依照板式规划器(layout planning)的 `blocks` 生成页面时:每个区块应有对应的"容器 Box",并且建议为容器设置背景(纯色或半透明)以增强分区感、可读性与层次
## 最佳实践
- 优先使用 style 属性进行样式定制,而非内联样式
- 结合 Box 和 Text 等子组件构建复杂的布局结构
- 考虑幻灯片的整体视觉一致性,确保颜色和字体搭配协调
- 使用 flex 布局实现响应式设计,避免绝对定位导致的布局问题
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 |