技能 impress
📊

impress

安全 ⚙️ 外部命令🌐 網路存取📁 檔案系統存取

创建和转换演示文稿

使用命令行和Python UNO API自动化LibreOffice Impress演示文稿创建、ODP、PPTX和PDF之间的格式转换,以及使用模板生成幻灯片。

支援: Claude Codex Code(CC)
📊 70 充足
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「impress」。 将my_presentation.odp转换为PDF

預期結果:

成功将my_presentation.odp转换为my_presentation.pdf,使用:soffice --headless --convert-to pdf my_presentation.odp

正在使用「impress」。 使用数据从模板创建演示文稿

預期結果:

从模板生成Q4_Sales_Report.odp。解压ODP,将${title}替换为Q4 Sales Report,将${date}替换为2024-01-15,然后重新打包为最终ODP文件。

正在使用「impress」。 列出支持的转换格式

預期結果:

输入格式:ODP、PPTX、PPT、PDF。输出格式:ODP、PPTX、PDF、HTML、SWF。

安全審計

安全
v1 • 2/25/2026

All 28 static findings are false positives. The skill uses standard LibreOffice Impress command-line operations (soffice) for presentation creation and conversion. External commands use hardcoded arguments with no user input injection risk. Network access is limited to official LibreOffice documentation links. Filesystem operations are standard tempfile usage for ODP file manipulation. No malicious patterns detected.

1
已掃描檔案
175
分析行數
7
發現項
1
審計總數

高風險問題 (1)

subprocess.run with hardcoded arguments
Lines 111 and 117 use subprocess.run with hardcoded 'unzip' and 'zip' commands for ODP file manipulation. ODP files are ZIP archives. Arguments are hardcoded arrays with no user input - no command injection risk.
中風險問題 (1)
LibreOffice soffice command usage
Multiple lines show soffice command-line usage for presentation operations. These are legitimate LibreOffice automation commands, not shell execution risks.
低風險問題 (2)
Documentation URLs
Lines 164-165 contain links to official LibreOffice documentation. These are legitimate reference URLs, not suspicious network activity.
Standard tempfile usage
Lines 106 and 110 use Python tempfile module for temporary directory handling during ODP template processing.
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
86
安全
83
規範符合性

你能建構什麼

商业报告自动化

从数据导出自动生成季度业务评审演示文稿,应用公司模板以保持一致的品牌标识。

培训材料转换

将传统的PowerPoint培训材料转换为ODP格式以用于开源办公工作流,或批量转换为PDF以便网络分发。

动态幻灯片生成

创建参数化的演示文稿模板,使用Python脚本为每个客户或受众群体生成自定义幻灯片。

試試這些提示

转换演示文稿格式
使用impress技能将presentation.odp转换为PDF格式,使用soffice无头模式。
从模板创建演示文稿
使用impress技能使用template.odp创建新演示文稿,将占位符如${title}和${date}替换为quarterly_report和2024-01-15。
批量转换多个文件
使用impress技能将/presentations目录中的所有.odp文件批量转换为PDF格式。
自动化幻灯片创建
使用impress技能的Python UNO API创建一个10页的演示文稿,包含标题页、议程和8页带项目符号的内容幻灯片。

最佳實務

  • 在模板中使用幻灯片母版以确保演示文稿风格一致
  • 在批量处理前使用示例文件测试所有格式转换
  • 使用无头模式(--headless)进行服务器端自动化

避免

  • 不要假设所有PowerPoint动画都会转换到LibreOffice
  • 不要跳过转换测试 - 在分发前验证输出
  • 不要使用在不同系统上会失效的绝对文件路径

常見問題

此技能是否需要安装LibreOffice?
是的,系统上必须安装LibreOffice。该技能使用soffice命令行工具和Python UNO API进行LibreOffice操作。
我可以将PowerPoint文件转换为ODP吗?
是的,使用soffice --headless --convert-to odp presentation.pptx将PowerPoint文件转换为ODP格式。
如何使用Python自动化幻灯片创建?
使用UNO API连接到正在运行的LibreOffice实例。使用--accept="socket,host=localhost,port=8100;urp;"启动LibreOffice,然后使用Python uno模块创建和操作演示文稿。
哪些格式可以转换为PDF?
ODP、PPTX和PPT文件都可以使用soffice --headless --convert-to pdf <文件名>转换为PDF。
我可以批量转换多个文件吗?
是的,您可以使用shell循环或提供的Python脚本批量处理多个演示文稿文件。
ODP文件真的是ZIP归档吗?
是的,ODP文件是包含XML文件的ZIP归档,用于内容、样式和元数据。这允许通过解压、修改content.xml并重新打包来进行模板操作。

開發者詳情

檔案結構

📄 SKILL.md