技能 docx
📄

docx

安全

使用 Microsoft Word 文件

也可從以下取得: 7Spade,davila7,7Spade,DYAI2025,ArtemisAI,Azeem-2,anthropics,ComposioHQ,Cam10001110101,K-Dense-AI

此技能使 Claude 能夠建立、編輯和分析 Microsoft Word 文件,完整支援追蹤修訂、註解和複雜格式。它提供使用 Python 和 JavaScript 函式庫進行文件操作的工作流程。

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

下載技能 ZIP

2

在 Claude 中上傳

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

3

開啟並開始使用

測試它

正在使用「docx」。 建立簡單的歡迎信函文件

預期結果:

一個 Word 文件,具有標題「Welcome Letter」、格式化內文和適當的商務信函樣式

正在使用「docx」。 編輯 contract.docx 將付款條款從 Net 30 更新為 Net 60,啟用追蹤修訂

預期結果:

文件現在在追蹤修訂中顯示「Net 60」(刪除「Net 30」,插入「Net 60」),準備好供客戶審閱

安全審計

安全
v1 • 2/24/2026

This is a legitimate document manipulation skill for creating and editing Microsoft Word (.docx) files. Static scanner flagged external commands (pandoc, Python scripts), network URLs (XML namespace references in schema files), and filesystem operations (document read/write) - all are expected functionality for this skill. The cryptographic algorithm references in XSD schemas are standard XML schema definitions, not actual implementations. No malicious intent detected.

58
已掃描檔案
24,694
分析行數
0
發現項
1
審計總數
未發現安全問題
審計者: claude

品質評分

45
架構
90
可維護性
87
內容
50
社群
100
安全
78
規範符合性

你能建構什麼

產生專業商務文件

建立合約、報告和商務信函,具有適當的格式、頁首、頁尾和樣式

使用追蹤修訂審閱和編輯文件

審閱來函文件、新增註解並進行編輯,具有完整的追蹤修訂以供法律或編輯審閱

批次處理文件轉換

將多個文件轉換為 markdown、擷取內容或在文件集中套用一致的格式

試試這些提示

建立新的 Word 文件
Create using the docx skill. a new Word document Include a title heading, 3 paragraphs of body text with bold and italic formatting, and a simple table with 3 rows.
使用追蹤修訂編輯現有文件
Use the redlining workflow to edit document.docx. Replace all instances of 'company' with 'Acme Corp' and add a comment explaining the change. Use tracked changes so the client can review.
擷取文字內容
Extract all text content from report.docx and convert it to markdown format using pandoc with --track-changes=all to preserve any edits.
分析文件結構
Unpack the document to access raw XML. Identify all comments, track changes (insertions and deletions), and embedded images. Provide a summary of the document structure.

最佳實務

  • 在開始複雜的文件工作之前,務必閱讀完整的說明文件(docx-js.md 和 ooxml.md)
  • 對於不屬於您擁有的文件使用修訂工作流程進行編輯,以維護稽核軌跡
  • 進行多次編輯時批次測試變更,確保每個變更都能正確運作

避免

  • 對於複雜的文件操作,避免跳過閱讀說明文件的步驟
  • 編輯第三方文件時,對於法律或商務文件不要不使用追蹤修訂
  • 避免一次進行所有變更 - 以批次方式增量測試

常見問題

此技能需要哪些工具?
此技能需要 pandoc 進行文字擷取和轉換,以及帶有 python-docx 函式庫的 Python 進行文件操作。建立新文件時,使用 docx-js 函式庫也需要 Node.js。
我可以編輯密碼保護的文件嗎?
不,此技能無法編輯加密或密碼保護的 Word 文件。您需要先移除密碼保護。
什麼是修訂工作流程?
修訂工作流程可讓您對文件進行追蹤修訂。這是編輯您未建立文件的建議方法,尤其是對於稽核軌跡很重要的法律、學術或商務文件。
如何新增註解到文件?
使用 ooxml.md 中的 Document 函式庫存取註解功能。您需要解壓縮文件、建立 Python 腳本來新增註解,然後重新壓縮。
此技能可以處理影像和表格嗎?
是的,此技能可以處理嵌入式影像和表格。對於複雜佈局,您可能需要透過解壓縮文件直接使用原始 OOXML 進行操作。
支援哪些檔案格式?
此技能主要使用 .docx 檔案(Office Open XML 格式)。Pandoc 也可以轉換與其他格式之間的轉換,例如 .doc、.rtf、.odt 和 markdown。

開發者詳情

檔案結構