Agent Skills › win4r/MuseAI-Skills › artifact_document

artifact_document

GitHub

用于创建、读取、编辑和操纵Word文档(.docx/.dotx)的技能。涵盖使用python-docx生成文档、处理样式结构、插入图片、查找替换及修订跟踪,并通过LibreOffice渲染验证文档质量。

opt/hatch/skills/artifacts/document/SKILL.md win4r/MuseAI-Skills

触发场景

需要生成或编辑Word文档(.docx/.dotx) 任务涉及Word文档内容提取、格式调整或修订跟踪

安装

npx skills add win4r/MuseAI-Skills --skill artifact_document -g -y
更多选项

非标准路径

npx skills add https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/artifacts/document -g -y

不安装直接使用

npx skills use win4r/MuseAI-Skills@artifact_document

指定 Agent (Claude Code)

npx skills add win4r/MuseAI-Skills --skill artifact_document -a claude-code -g -y

安装 repo 全部 skill

npx skills add win4r/MuseAI-Skills --all -g -y

预览 repo 内 skill

npx skills add win4r/MuseAI-Skills --list

SKILL.md

Frontmatter
{
    "name": "artifact_document",
    "metadata": {
        "includeInPrompt": false
    },
    "description": "Create, read, edit, or manipulate Word documents (.docx) and Word templates (.dotx). Use whenever a build task's artifact kind is document with the default docx output, or the task mentions a Word doc, .docx, or .dotx, extracts or reorganizes content from one, inserts or replaces images, does find-and-replace in one, or works with tracked changes (redlines) or comments. Covers python-docx generation, raw OOXML editing of existing files, document structure and formatting, and render verification. Not for PDFs, spreadsheets, or Google Docs."
}

Word-document artifacts

A docx is generated with the preinstalled python-docx library from a generator script. Keep the generator under .src/: it is the editable source for future revisions, and the binary is always regenerated from it.

Task Read first
Design and structure /opt/hatch/skills/artifacts/document/references/visual.md
What the words say: outline, headings, tone, the prose read-back /opt/hatch/skills/artifacts/references/prose.md (shared)
Content formatting (tables, lists, emphasis) /opt/hatch/skills/artifacts/references/markdown.md (shared)
Edit an existing or uploaded .docx/.dotx, tracked changes, comments, extract/read content, legacy .doc /opt/hatch/skills/artifacts/document/references/editing.md

Set a non-empty document.core_properties.title, use a human-readable filename and visible title, and never fake structure: real numbering for lists (never a literal bullet character), real heading styles for anything a table of contents must see, a paragraph bottom border for a rule (never a one-row table), and separate paragraphs instead of newlines inside a run.

Verification

Follow /opt/hatch/skills/artifacts/testing/SKILL.md: render the document to PDF with headless LibreOffice, rasterize with pdftoppm, and read every page image before returning a link.

版本历史

  • 38bbb45 当前 2026-10-18 15:46

同 Skill 集合

opt/hatch/skills/apple-healthkit/SKILL.md
opt/hatch/skills/artifacts/markdown/SKILL.md
opt/hatch/skills/artifacts/pdf/SKILL.md
opt/hatch/skills/artifacts/presentation/SKILL.md
opt/hatch/skills/artifacts/spreadsheet/SKILL.md
opt/hatch/skills/artifacts/testing/SKILL.md
opt/hatch/skills/booking/SKILL.md
opt/hatch/skills/calendly/SKILL.md
opt/hatch/skills/device-data/SKILL.md
opt/hatch/skills/duffel/SKILL.md
opt/hatch/skills/facebook-cli/SKILL.md
opt/hatch/skills/facebook/SKILL.md
opt/hatch/skills/flightaware/SKILL.md
opt/hatch/skills/forget/SKILL.md
opt/hatch/skills/function-health/SKILL.md
opt/hatch/skills/generate_podcast/SKILL.md
opt/hatch/skills/gmail/SKILL.md
opt/hatch/skills/goals/SKILL.md
opt/hatch/skills/google-calendar/SKILL.md
opt/hatch/skills/google-contacts/SKILL.md
opt/hatch/skills/google-drive/SKILL.md
opt/hatch/skills/google-forms/SKILL.md
opt/hatch/skills/google-health-connect/SKILL.md
opt/hatch/skills/google-slides/SKILL.md
opt/hatch/skills/google-tasks/SKILL.md
opt/hatch/skills/granola/SKILL.md
opt/hatch/skills/healthex/SKILL.md
opt/hatch/skills/image-search/SKILL.md
opt/hatch/skills/instagram-messages/SKILL.md
opt/hatch/skills/instagram/SKILL.md
opt/hatch/skills/media-library/SKILL.md
opt/hatch/skills/messenger/SKILL.md
opt/hatch/skills/meta-threads/SKILL.md
opt/hatch/skills/muse_db/SKILL.md
opt/hatch/skills/muse-early-access/SKILL.md
opt/hatch/skills/muse-feedback/SKILL.md
opt/hatch/skills/muse-mail/SKILL.md
opt/hatch/skills/notion/SKILL.md
opt/hatch/skills/opentable/SKILL.md
opt/hatch/skills/outlook-calendar/SKILL.md
opt/hatch/skills/outlook-contacts/SKILL.md
opt/hatch/skills/outlook-mail/SKILL.md
opt/hatch/skills/peloton/SKILL.md
opt/hatch/skills/philips-hue/SKILL.md
opt/hatch/skills/places-search/SKILL.md
opt/hatch/skills/plaid/SKILL.md
opt/hatch/skills/podcast/SKILL.md
opt/hatch/skills/printify/SKILL.md
opt/hatch/skills/self-awareness/SKILL.md
opt/hatch/skills/share-ideas/SKILL.md

元信息

文件数
0
版本
38bbb45
Hash
d9ce4fbb
收录时间
2026-10-18 15:46

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-10 04:09
浙ICP备14020137号-1