技能 working-with-documents
📄

working-with-documents

安全 ⚡ 包含腳本

建立與編輯 Word、PDF 與 PowerPoint 文件

處理 Office 文件需要熟悉多種工具與格式。此技能提供完整指引,涵蓋讀取、建立、編輯與轉換 Word、PDF、PowerPoint 檔案。

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

下載技能 ZIP

2

在 Claude 中上傳

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

3

開啟並開始使用

測試它

正在使用「working-with-documents」。 Extract text from my quarterly report PDF

預期結果:

  • 使用 pdfplumber 開啟 PDF
  • 處理 24 頁內容
  • 從財務區段擷取 3 個表格
  • 文字已儲存至 quarterly_report.txt

正在使用「working-with-documents」。 Create a Word document with my meeting notes

預期結果:

  • 使用 docx-js 建立文件結構
  • 新增標題:Team Meeting Notes
  • 加入 5 個含項目符號的段落
  • 文件已儲存為 meeting_notes.docx

正在使用「working-with-documents」。 Convert my presentation to PDF

預期結果:

  • 以無介面模式執行 LibreOffice
  • 將 presentation.pptx 轉換為 PDF 格式
  • 輸出儲存為 presentation.pdf
  • 轉換成功完成

安全審計

安全
v5 • 1/16/2026

This skill is a documentation-only resource providing guidance on working with Office documents. The SKILL.md file contains instructional code examples that are not executed. The only executable script (verify.py) is a simple validator that reads the local SKILL.md file to check for required sections. All 64 static findings are false positives triggered by pattern matching on documentation content and metadata hashes.

3
已掃描檔案
509
分析行數
1
發現項
5
審計總數

風險因素

⚡ 包含腳本 (1)
審計者: claude 查看審計歷史 →

品質評分

45
架構
100
可維護性
85
內容
30
社群
100
安全
91
規範符合性

你能建構什麼

轉換文件格式

將 Word 文件轉為 Markdown 以供靜態網站產生器使用,或轉為 PDF 以供發佈。

從 PDF 報告擷取資料

使用 pdfplumber 從 PDF 財務報告中擷取文字與表格以進行分析。

以程式產生報告

使用 Python 程式庫依應用資料建立 Word 文件、PDF 或簡報。

試試這些提示

擷取 PDF 文字
Show me how to extract all text from my PDF file using pdfplumber
建立 Word 文件
Help me create a Word document with a title, paragraphs, and bold text using docx-js
合併多個 PDF
Write Python code to merge these three PDF files into a single document using pypdf
編輯 PowerPoint 簡報
Guide me through unpacking a PowerPoint file, editing slide content, and repacking it

最佳實務

  • 使用 pandoc 進行格式轉換以保留文件結構與樣式
  • 開始前先安裝所有系統相依項目,包括 LibreOffice 與 poppler-utils
  • 在手動編輯 XML 後驗證 OOXML 文件,以確保檔案完整性

避免

  • 未驗證即編輯 OOXML 檔案可能導致文件結構損毀
  • 略過系統工具安裝會導致功能不完整
  • 未經驗證就依賴 OCR 可能造成文字擷取不準確

常見問題

這個技能支援哪些文件格式?
DOCX(Word)、PDF 與 PPTX(PowerPoint)皆提供完整支援,包含讀取、建立與編輯指引。
我需要安裝哪些軟體?
Python 程式庫(pdfplumber、reportlab、pypdf)以及系統工具(pandoc、LibreOffice、poppler-utils)。
這個技能能處理 Word 文件中的追蹤修訂嗎?
可以,此技能說明如何使用 OOXML 操作技巧檢視與編輯追蹤修訂。
我的文件資料會被傳送到任何地方嗎?
不會,此技能僅提供指引。所有文件處理都在你的本機上進行。
如何處理受密碼保護的 PDF?
有密碼的 PDF 必須先解密。使用 pypdf 並提供 password 參數即可解鎖。
我可以把掃描文件轉成可編輯的文字嗎?
可以,請使用 pytesseract 進行 OCR。先將 PDF 頁面轉成影像,再執行文字辨識。

開發者詳情

檔案結構

📁 scripts/

📄 verify.py

📄 SKILL.md