技能 libreoffice-impress
📊

libreoffice-impress

低風險 ⚙️ 外部命令⚡ 包含腳本📁 檔案系統存取

建立和編輯 LibreOffice Impress 簡報(程式化操作)

透過自動化的投影片操作來生成、修改和匯出專業簡報。此技能提供對 LibreOffice Impress 的程式化控制,適用於大量簡報工作流程。

支援: Claude Codex Code(CC)
🥉 75 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

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

3

開啟並開始使用

測試它

正在使用「libreoffice-impress」。 Create a presentation with title 'Sales Report'

預期結果:

Successfully created presentation with 1 slide using BLANK layout. The title placeholder is ready for content.

正在使用「libreoffice-impress」。 Apply patch with two operations

預期結果:

Patch applied successfully (atomic mode). Operations: replace_text [ok], insert_text_box [ok]. Document persisted.

安全審計

低風險
v2 • 3/19/2026

This skill provides LibreOffice Impress presentation automation via UNO API. Static analysis flagged 210 potential issues, but manual review confirms all are false positives or legitimate office automation patterns. Subprocess calls invoke hardcoded LibreOffice commands for document processing. No network exfiltration, credential access, or persistence mechanisms detected. Risk level is LOW - appropriate for publication.

13
已掃描檔案
3,912
分析行數
5
發現項
2
審計總數
低風險問題 (2)
Legitimate Subprocess Usage for LibreOffice
The skill uses subprocess to invoke LibreOffice soffice commands. These are hardcoded commands with no user input injection. This is standard office automation behavior required for UNO API integration.
Safe Temporary File Handling
Uses Python tempfile module for temporary files during presentation processing. This is standard practice for office automation with proper cleanup.
審計者: claude 查看審計歷史 →

品質評分

64
架構
100
可維護性
87
內容
22
社群
86
安全
100
規範符合性

你能建構什麼

自動化報告生成

透過將資料合併到投影片範本中,作為簡報生成每週或每月報告。以程式化方式新增圖表、表格和格式化文字。

大量簡報更新

在多個簡報中套用一致的變更。更新公司品牌、修正所有簡報中的文字,或在所有投影片上新增標準頁尾。

投影片內容擷取

從現有簡報中擷取文字內容、演講者備註或投影片清單,以用於文件編製或分析目的。

試試這些提示

建立新簡報
Create a new Impress presentation at /path/to/output.odp with a title slide and two content slides.
編輯現有簡報
Open /path/to/report.odp and replace all instances of 'Q3 2024' with 'Q4 2024' in the body text.
套用修補程式操作
Apply this patch to /path/to/deck.odp:
[operation]
type = insert_text_box
target.kind = slide
target.slide_index = 2
...
匯出和擷取投影片
Export /path/to/presentation.odp to PDF at /path/to/output.pdf, then capture a PNG snapshot of slide 3.

最佳實務

  • 使用絕對檔案路徑處理所有簡報檔案,以避免路徑解析問題
  • 優先使用形狀名稱而非形狀索引,以獲得更穩定的目標參照
  • 在正式工作流程中使用原子修補程式模式,以防止文件部分損壞

避免

  • 呼叫 Impress API 時請勿使用相對路徑
  • 避免在 LibreOffice 原生投影片複製後依賴精確的形狀名稱
  • 在變更簡報順序的變異操作後,請勿跳過投影片清單

常見問題

此技能是否需要安裝 LibreOffice?
是的。此技能使用 LibreOffice UNO API 執行所有簡報操作。LibreOffice 必須已安裝並可透過 soffice 命令存取。
我可以編輯密碼保護的簡報嗎?
不行。UNO API 不支援編輯加密或密碼保護的簡報。您必須先移除保護。
Impress 使用什麼投影片索引系統?
Impress 使用零起始索引。第一張投影片索引為 0,第二張為 1,以此類推。
如何定位特定的文字元素?
使用 ImpressTarget 並指定 kind=text、slide_index,以及可選的 placeholder(title、body、subtitle)或 text 來縮小比對範圍。
原子模式和盡力模式之間有什麼區別?
原子模式會在首次失敗時停止並恢復原始檔案。盡力模式會套用成功的操作並記錄失敗。
我可以將簡報匯出為 PDF 以外的格式嗎?
可以。支援的匯出格式為 PDF 和 PPTX。PPTX 匯出使用 LibreOffice 的 PowerPoint 2007 XML 篩選器。