Loading...
Loading...
Compare original and translation side by side
执行任何命令前,必须先读取并完成wecom-cli技能的公共前置检查。wecomcli-shared
.ppt.pptxBefore executing anycommand, you must first read and complete the common prerequisite checks of thewecom-cliskill.wecomcli-shared
.ppt.pptx.ppt.pptx.ppt.pptxwecomcli-media.ppt.pptxwecomcli-docwecomcli-sheetwecomcli-smartsheetwecomcli-smartpagewecomcli-media.ppt.pptxwecomcli-docwecomcli-sheetwecomcli-smartsheetwecomcli-smartpage<script><iframe><object><embed><SVG>onerror=onclick=onload=onmouseover=on*javascript:data:text/htmlvbscript:hrefsrchrefsrcnotes<script><iframe><object><embed><SVG>onerror=onclick=onload=onmouseover=on*javascript:data:text/htmlvbscript:hrefsrchrefsrcnotes_@%+=:,./-''"'"'测试''测试'"'"''''_@%+=:,./-''"'"'测试''测试'"'"''''| 概念 | 说明 |
|---|---|
| 在线 slide 文档的标识,一切内容操作的入口。与企微文档链接、 |
| 事前调研产物(判定结论 + 来源清单),先于叙事结构 |
| 叙事结构产物(讲什么、每页角色),先于视觉设计 |
| 视觉设计契约(画布、配色、字号、布局、密度)。必须先持久化到文档,否则所有写操作被服务端拒绝;有效期 24 小时,须在本地保留副本 |
| JSX 页面源码 | 单页内容的中间产物,提交后由服务端编译成幻灯片。须在本地保留副本——修改出错时用于整页重做 |
| 图片上传口 | 所有用于 PPT 的图(用户材料图、材料内嵌图)都必经 |
| Concept | Description |
|---|---|
| Identifier of an online slide document and the entry point for all content operations. It has the same meaning as a WeCom document link and |
| Pre-research artifact containing determination conclusions and a source list; it must be produced before the narrative structure |
| Narrative structure artifact describing what to present and the role of each page; it must be produced before visual design |
| Visual design contract covering the canvas, color palette, font sizes, layout, and density. It must be persisted to the document first; otherwise, the server will reject all write operations. It is valid for 24 hours, and a local copy must be retained |
| JSX page source | Intermediate artifact containing the content of a single page, compiled into a slide by the server after submission. A local copy must be retained so that the page can be rebuilt if an edit fails |
| Image upload endpoint | Every image used in a PPT, including user-provided material images and images embedded in materials, must pass through |
RESEARCH.mdSTORY.mdDESIGN.mddoc exportRESEARCH.mdSTORY.mdDESIGN.mddoc exportreferences/xxx.mdread| 用户意图 | 参考位置 |
|---|---|
| 任何实际调用(生成 / 编辑 / 配图) | references/pptx-api.md —— 命令与接口的唯一来源,动手前必读 |
| 从零生成 PPT(有主题 / 大纲,无材料) | references/create-from-scratch.md |
| 基于参考材料生成 PPT(docx / pdf / 旧 pptx / 在线文档) | references/create-from-material.md |
| 用户发来 PPT 模板要求照着做(「用这个模板 / 照这个风格 / 套公司模板」;模板与材料分不清时也先读它的 T0) | references/create-from-template.md——外壳只取模板的底图 / 页眉页脚家具 / 配色 / 字体,版式自己设计;不用范例池、不弹预览卡;模板里的文字一律不当内容 |
| 需求澄清与风格确认(生成前必做) | references/human-alignment.md |
| 构建叙事结构(写 STORY.md) | references/story-principle.md |
| 构建视觉设计(写 DESIGN.md) | references/design-principle.md |
| 选版式范例、预览卡、换色、外壳拼装、配图、机检(从零生成必走) | references/templates/README.md(范例池手册,先读 |
| 页面脚本 | |
| 页型、信息下限、内容硬闸门(所有 deck 通用) | references/content-contract.md |
| 命中政务闸门(党政机关 / 公文体 / 党课表彰等) | references/government-contract.md,叠加在内容契约之上;候选范例套同时收窄为政务两套 |
| 写某个页面元素的源码(文本 / 图片 / 表格 / 图表 / 图标等) | |
| 编辑已有在线 PPT | 见下方「编辑工作流」,命令取自 |
| 导入本地 PPT 文件为在线文档 | 见下方「导入 PPT 文件」 |
references/xxx.mdread| User Intent | Reference Location |
|---|---|
| Any actual invocation, including generation, editing, or imagery | references/pptx-api.md—the sole source of commands and APIs; it must be read before starting |
| Generate a PPT from scratch, with a topic or outline but no material | references/create-from-scratch.md |
| Generate a PPT from reference material such as a docx, PDF, old pptx, or online document | references/create-from-material.md |
| The user provides a PPT template and asks you to follow it, such as “use this template,” “follow this style,” or “apply the company template”; if it is unclear whether the file is a template or material, read its T0 first | references/create-from-template.md—take only the template’s background, header/footer furniture, colors, and fonts. Design the layouts yourself; do not use the example pool or display a preview card; never treat template text as content |
| Requirement clarification and style confirmation, both required before generation | references/human-alignment.md |
Build the narrative structure by writing | references/story-principle.md |
Build the visual design by writing | references/design-principle.md |
| Select layout examples, preview cards, recoloring, shell assembly, imagery, and machine checks; all are required for from-scratch generation | references/templates/README.md. This is the example-pool manual: first read |
| Page scripts | |
| Page types, minimum information requirements, and content hard gates for all decks | references/content-contract.md |
| The government-document gate applies, including party and government agencies, official documents, party lectures, and recognitions | references/government-contract.md, applied in addition to the content contract. At the same time, narrow the candidate example sets to the two government-document sets |
| Write the source code for a page element, such as text, images, tables, charts, icons, and other components | Read the corresponding |
| Edit an existing online PPT | See the “Editing Workflow” below; obtain commands from |
| Import a local PPT file as an online document | See “Importing PPT Files” below |
dociddocidwecomcli-doc-manageDESIGN.mdreferences/pptx-api.mdreferences/pptx-edit.mdslide pages deleteaddjsxreferences/pptx-edit.md--schemaurlsrcurlurl.ppt.pptxdociddocidwecomcli-doc-manageDESIGN.mdreferences/pptx-api.mdreferences/pptx-edit.mdslide pages deleteaddjsxDESIGN.md--schemareferences/pptx-edit.mdurlurlsrcurl.ppt.pptx.ppt.pptxwecom-cli doc import --json '<JSON 参数>'| 字段 | 类型 | 必填 | 默认值 | 语义 |
|---|---|---|---|---|
| string | 是 | | 固定为 |
| string | 是 | — | 二进制文件名(含后缀),用于业务判断源文件类型 |
| string | 与 | — | 源文件的本地绝对路径 |
| string | 与 | — | 已上传素材的 media_id,前缀通常为 |
| string | 否 | — | Office 文件加密密码(若有) |
docidurltask_statussucc.ppt.pptxwecom-cli doc import --json '<JSON 参数>'| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
| string | Yes | | Fixed to |
| string | Yes | — | Binary filename, including its extension, used to determine the source file type |
| string | Either | — | Absolute local path of the source file |
| string | Either | — | |
| string | No | — | Password for an encrypted Office file, if any |
docidurltask_statussucctemplatepython3{baseDir}lsos.path.existswhichfindglobpython3 "<脚本>" <子命令> …cdmkdir;can't open file … [Errno 2]Errno 2lspython3Errno 13no such set<FAIcon>DESIGN.mdRESEARCH.mdSTORY.mdDESIGN.md<SVG>references/pptx-api.mdreferences/templates/README.mdurltemplatepython3{baseDir}lsos.path.existswhichfindglobpython3 "<脚本>" <子命令> …cdmkdir;can't open file … [Errno 2]Errno 2lspython3mkdirErrno 13no such setSTORYDESIGN<FAIcon>RESEARCH.mdSTORY.mdDESIGN.md00_shell*_body.jsximages.jsonSTORY.mdDESIGN.mdRESEARCH.mdSTORY.mdDESIGN.md<SVG>references/pptx-api.mdreferences/templates/README.mdurl| 依赖技能 | 典型协作场景 | 数据流向 |
|---|---|---|
| 材料下载落地(pdf / pptx / 图片),落地后本地直读正文、审核图片质量、学习参考 PPT 风格 | 材料 → 本地文件 → 本 skill 的叙事与设计输入 |
| 材料是 docx / xlsx 或企微在线文档 | 对应 skill 取正文 → 本 skill 提炼成页面内容 |
| 用户只给了文档名而非链接 | 搜索得到 |
| 用户要求把结果发给某人 / 某群 | 本 skill 交付的链接 → |
| Dependent Skill | Typical Collaboration Scenario | Data Flow |
|---|---|---|
| Materialize downloaded materials such as PDFs, PPTX files, and images; read their contents locally, review image quality, and study the style of a reference PPT | Material → local file → narrative and design inputs for this skill |
| The material is a docx, xlsx, or WeCom online document | The corresponding skill retrieves the text → this skill distills it into page content |
| The user provides only a document name rather than a link | Search returns a |
| The user asks for the result to be sent to a person or group | This skill delivers the link → |