docx by skillcreatorai/ai-agent-skills
npx skills add https://github.com/skillcreatorai/ai-agent-skills --skill docx# 将带修订标记的文档转换为 markdown
pandoc --track-changes=all file.docx -o output.md
# 解压文档
unzip document.docx -d unpacked/
# 关键文件:
# word/document.xml - 主要内容
# word/comments.xml - 评论
# word/media/ - 图片
import { Document, Paragraph, TextRun, Packer } from 'docx';
import fs from 'fs';
const doc = new Document({
sections: [{
children: [
new Paragraph({
children: [
new TextRun({ text: "Hello ", bold: true }),
new TextRun({ text: "World", italics: true })
]
})
]
}]
});
const buffer = await Packer.toBuffer(doc);
fs.writeFileSync('document.docx', buffer);
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
unzip doc.docx -d unpacked/word/document.xmlcd unpacked && zip -r ../edited.docx .对于专业文档,请使用修订标记:
<!-- 删除 -->
<w:del w:author="Author" w:date="2025-01-01T00:00:00Z">
<w:r><w:delText>old text</w:delText></w:r>
</w:del>
<!-- 插入 -->
<w:ins w:author="Author" w:date="2025-01-01T00:00:00Z">
<w:r><w:t>new text</w:t></w:r>
</w:ins>
# DOCX 转 PDF
soffice --headless --convert-to pdf document.docx
# PDF 转图片
pdftoppm -jpeg -r 150 document.pdf page
每周安装量
155
代码仓库
GitHub 星标数
957
首次出现
2026年1月20日
安全审计
安装于
opencode132
gemini-cli125
codex120
cursor116
github-copilot110
claude-code98
# Convert to markdown with tracked changes
pandoc --track-changes=all file.docx -o output.md
# Unpack document
unzip document.docx -d unpacked/
# Key files:
# word/document.xml - Main content
# word/comments.xml - Comments
# word/media/ - Images
import { Document, Paragraph, TextRun, Packer } from 'docx';
import fs from 'fs';
const doc = new Document({
sections: [{
children: [
new Paragraph({
children: [
new TextRun({ text: "Hello ", bold: true }),
new TextRun({ text: "World", italics: true })
]
})
]
}]
});
const buffer = await Packer.toBuffer(doc);
fs.writeFileSync('document.docx', buffer);
unzip doc.docx -d unpacked/word/document.xmlcd unpacked && zip -r ../edited.docx .For professional documents, use tracked changes:
<!-- Deletion -->
<w:del w:author="Author" w:date="2025-01-01T00:00:00Z">
<w:r><w:delText>old text</w:delText></w:r>
</w:del>
<!-- Insertion -->
<w:ins w:author="Author" w:date="2025-01-01T00:00:00Z">
<w:r><w:t>new text</w:t></w:r>
</w:ins>
# DOCX to PDF
soffice --headless --convert-to pdf document.docx
# PDF to images
pdftoppm -jpeg -r 150 document.pdf page
Weekly Installs
155
Repository
GitHub Stars
957
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode132
gemini-cli125
codex120
cursor116
github-copilot110
claude-code98
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
43,100 周安装