DOCX (Word documents)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- DOCX (Word documents)
- perks
- [ "extract", "unpack", "validate", "comment", "pack", "accept-changes" ]
- skill
- docx
02 资源文件 155
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json19.7 KB
- 参考文档ledger.json281 B
- 许可证LICENSE.txt1.0 KB
- 参考文档perks.json1.3 KB
- 参考文档perks/accept-changes/manifesto.json352 B
- 参考文档perks/accept-changes/metadata.json815 B
- 脚本perks/accept-changes/src/accept_changes.py4.0 KB
- 参考文档perks/accept-changes/src/contracts.json359 B
- 脚本perks/accept-changes/src/docx_accept_changes.sh1.2 KB
- 脚本perks/accept-changes/src/office/__init__.py—
- 脚本perks/accept-changes/src/office/soffice.py5.2 KB
- 参考文档perks/accept-changes/test/case.json232 B
- 资产文件perks/accept-changes/test/fixture/sample.docx1.2 KB
- 参考文档perks/comment/manifesto.json575 B
- 参考文档perks/comment/metadata.json1.1 KB
- 脚本perks/comment/src/comment.py10.4 KB
- 参考文档perks/comment/src/contracts.json637 B
- 脚本perks/comment/src/docx_comment.sh1.1 KB
- 其他perks/comment/src/templates/comments.xml2.5 KB
- 其他perks/comment/src/templates/commentsExtended.xml2.5 KB
- 其他perks/comment/src/templates/commentsExtensible.xml2.6 KB
- 其他perks/comment/src/templates/commentsIds.xml2.6 KB
- 其他perks/comment/src/templates/people.xml115 B
- 参考文档perks/comment/test/case.json291 B
- 其他perks/comment/test/fixture/unpacked/_rels/.rels302 B
- 其他perks/comment/test/fixture/unpacked/[Content_Types].xml440 B
- 其他perks/comment/test/fixture/unpacked/word/_rels/document.xml.rels141 B
- 其他perks/comment/test/fixture/unpacked/word/document.xml336 B
- 参考文档perks/extract/manifesto.json330 B
- 参考文档perks/extract/metadata.json639 B
- 参考文档perks/extract/src/contracts.json333 B
- 脚本perks/extract/src/docx_extract.sh928 B
- 参考文档perks/extract/test/case.json280 B
- 资产文件perks/extract/test/fixture/sample.docx1.2 KB
- 参考文档perks/pack/manifesto.json375 B
- 参考文档perks/pack/metadata.json923 B
- 参考文档perks/pack/src/contracts.json400 B
- 脚本perks/pack/src/docx_pack.sh1.0 KB
- 脚本perks/pack/src/office/__init__.py—
- 脚本perks/pack/src/office/pack.py4.9 KB
- 参考文档perks/pack/src/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd1.9 KB
- 参考文档perks/pack/src/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd2.5 KB
- 参考文档perks/pack/src/office/schemas/ecma/fouth-edition/opc-digSig.xsd2.8 KB
- 参考文档perks/pack/src/office/schemas/ecma/fouth-edition/opc-relationships.xsd1.3 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd6.8 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50.1 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148.5 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd8.7 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14.4 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/pml.xsd81.7 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1.2 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd2.5 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3.4 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7.3 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd22.8 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1.3 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/sml.xsd236.6 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd25.5 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd24.7 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd535 B
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd5.6 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd3.9 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/wml.xsd167.4 KB
- 参考文档perks/pack/src/office/schemas/ISO-IEC29500-4_2016/xml.xsd4.5 KB
- 参考文档perks/pack/src/office/schemas/mce/mc.xsd3.1 KB
- 参考文档perks/pack/src/office/schemas/microsoft/wml-2010.xsd25.9 KB
- 参考文档perks/pack/src/office/schemas/microsoft/wml-2012.xsd3.7 KB
- 参考文档perks/pack/src/office/schemas/microsoft/wml-2018.xsd901 B
- 参考文档perks/pack/src/office/schemas/microsoft/wml-cex-2018.xsd1.7 KB
- 参考文档perks/pack/src/office/schemas/microsoft/wml-cid-2016.xsd1002 B
- 参考文档perks/pack/src/office/schemas/microsoft/wml-sdtdatahash-2020.xsd600 B
- 参考文档perks/pack/src/office/schemas/microsoft/wml-symex-2015.xsd745 B
- 脚本perks/pack/src/office/validators/__init__.py336 B
- 脚本perks/pack/src/office/validators/base.py31.9 KB
- 脚本perks/pack/src/office/validators/docx.py16.0 KB
- 脚本perks/pack/src/office/validators/pptx.py9.6 KB
- 脚本perks/pack/src/office/validators/redlining.py8.7 KB
- 参考文档perks/pack/test/case.json202 B
- 其他perks/pack/test/fixture/unpacked/_rels/.rels302 B
- 其他perks/pack/test/fixture/unpacked/[Content_Types].xml440 B
- 其他perks/pack/test/fixture/unpacked/word/_rels/document.xml.rels141 B
- 其他perks/pack/test/fixture/unpacked/word/document.xml336 B
- 参考文档perks/unpack/manifesto.json328 B
- 参考文档perks/unpack/metadata.json861 B
- 参考文档perks/unpack/src/contracts.json327 B
- 脚本perks/unpack/src/docx_unpack.sh907 B
- 脚本perks/unpack/src/office/__init__.py—
- 脚本perks/unpack/src/office/helpers/__init__.py—
- 脚本perks/unpack/src/office/helpers/merge_runs.py5.4 KB
- 脚本perks/unpack/src/office/helpers/simplify_redlines.py5.6 KB
- 脚本perks/unpack/src/office/unpack.py4.0 KB
- 参考文档perks/unpack/test/case.json208 B
- 资产文件perks/unpack/test/fixture/sample.docx1.2 KB
- 参考文档perks/validate/manifesto.json375 B
- 参考文档perks/validate/metadata.json962 B
- 参考文档perks/validate/src/contracts.json416 B
- 脚本perks/validate/src/docx_validate.sh1009 B
- 脚本perks/validate/src/office/__init__.py—
- 参考文档perks/validate/src/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd1.9 KB
- 参考文档perks/validate/src/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd2.5 KB
- 参考文档perks/validate/src/office/schemas/ecma/fouth-edition/opc-digSig.xsd2.8 KB
- 参考文档perks/validate/src/office/schemas/ecma/fouth-edition/opc-relationships.xsd1.3 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd6.8 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50.1 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148.5 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd8.7 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14.4 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/pml.xsd81.7 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1.2 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd2.5 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3.4 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7.3 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd22.8 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1.3 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/sml.xsd236.6 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd25.5 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd24.7 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd535 B
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd5.6 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd3.9 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/wml.xsd167.4 KB
- 参考文档perks/validate/src/office/schemas/ISO-IEC29500-4_2016/xml.xsd4.5 KB
- 参考文档perks/validate/src/office/schemas/mce/mc.xsd3.1 KB
- 参考文档perks/validate/src/office/schemas/microsoft/wml-2010.xsd25.9 KB
- 参考文档perks/validate/src/office/schemas/microsoft/wml-2012.xsd3.7 KB
- 参考文档perks/validate/src/office/schemas/microsoft/wml-2018.xsd901 B
- 参考文档perks/validate/src/office/schemas/microsoft/wml-cex-2018.xsd1.7 KB
- 参考文档perks/validate/src/office/schemas/microsoft/wml-cid-2016.xsd1002 B
- 参考文档perks/validate/src/office/schemas/microsoft/wml-sdtdatahash-2020.xsd600 B
- 参考文档perks/validate/src/office/schemas/microsoft/wml-symex-2015.xsd745 B
- 脚本perks/validate/src/office/validate.py3.6 KB
- 脚本perks/validate/src/office/validators/__init__.py336 B
- 脚本perks/validate/src/office/validators/base.py31.9 KB
- 脚本perks/validate/src/office/validators/docx.py16.0 KB
- 脚本perks/validate/src/office/validators/pptx.py9.6 KB
- 脚本perks/validate/src/office/validators/redlining.py8.7 KB
- 参考文档perks/validate/test/case.json214 B
- 资产文件perks/validate/test/fixture/sample.docx1.2 KB
03 SKILL.md 正文
docx — DOCX (Word documents)
Read, unpack, validate, comment on, repack, and accept tracked changes in Word .docx files. A .docx is a ZIP of XML parts; these perks wrap pandoc and the K-Dense Office tooling so each operation has a clear inputs->outputs contract.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its artifacts under record_store. LOGS TO CHECK: that line + the named report + the executor run-ledger. The unpack/validate/comment/pack tools import defusedxml; when it is absent they degrade gracefully (the porter still writes a non-empty report and exits 0). accept-changes requires LibreOffice (soffice) on PATH.
Perks
| perk | tool | nature |
|---|---|---|
extract |
docx_extract |
read-only — pandoc --track-changes=all to text/markdown |
unpack |
docx_unpack |
read-only — ZIP extract + pretty-print XML into a dir (no source mutation) |
validate |
docx_validate |
read-only — XSD + redlining validation, auto-repair on a temp copy |
comment |
docx_comment |
local — appends comment parts inside an already-unpacked dir |
pack |
docx_pack |
local — writes a new .docx from an unpacked dir (validate + condense) |
accept-changes |
docx_accept_changes |
local — LibreOffice accepts all tracked changes into a clean copy |
All perks are destructive: false: each either reads input or produces a new file/dir under record_store (or, for comment, edits a working copy the caller already unpacked) — none mutates a remote or live service.
How to use it
Pick a perk, copy ledger.json -> task-ledger.json, fill its vars + record_store,
then validate -> compose -> compile -> oversight -> executor.
Localized from K-Dense-AI/scientific-agent-skills
docx— MIT (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.