docx by 404kidwiz/claude-supercode-skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill docx提供程序化创建和操作 Word 文档的专业知识。使用 python-docx 和 JavaScript 库处理文档生成、模板填充、样式管理和批量文档处理。
在以下情况调用此技能:
在以下情况不要调用:
Library Selection:
├── Python backend → python-docx
├── Node.js backend → docx (npm)
├── Browser-based → docx.js
├── Complex templates → docxtemplater
└── Simple text extraction → mammoth
Task Type:
├── Generate from scratch → Build document programmatically
├── Fill template → Use placeholder replacement
├── Modify existing → Load, edit, save
└── Batch processing → Loop with template
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 反面模式 | 问题 | 正确方法 |
|---|---|---|
| 直接格式化 | 难以维护 | 使用样式 |
| 修改模板 | 破坏原始文件 | 另存为新文件 |
| 无错误处理 | 输入错误时失败 | 首先验证数据 |
| 硬编码路径 | 不可移植 | 使用相对路径 |
| 忽略编码 | 字符问题 | 使用 UTF-8 字符串 |
每周安装数
60
代码仓库
GitHub 星标数
42
首次出现
Jan 24, 2026
安全审计
安装于
opencode49
claude-code46
codex43
gemini-cli43
cursor42
github-copilot37
Provides expertise in programmatic Word document creation and manipulation. Handles document generation, template filling, style management, and batch document processing using python-docx and JavaScript libraries.
Invoke this skill when:
Do NOT invoke when:
Library Selection:
├── Python backend → python-docx
├── Node.js backend → docx (npm)
├── Browser-based → docx.js
├── Complex templates → docxtemplater
└── Simple text extraction → mammoth
Task Type:
├── Generate from scratch → Build document programmatically
├── Fill template → Use placeholder replacement
├── Modify existing → Load, edit, save
└── Batch processing → Loop with template
| Anti-Pattern | Problem | Correct Approach |
|---|---|---|
| Direct formatting | Hard to maintain | Use styles |
| Modifying template | Corrupts original | Save to new file |
| No error handling | Fails on bad input | Validate data first |
| Hardcoded paths | Not portable | Use relative paths |
| Ignoring encoding | Character issues | Use UTF-8 strings |
Weekly Installs
60
Repository
GitHub Stars
42
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode49
claude-code46
codex43
gemini-cli43
cursor42
github-copilot37
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
46,600 周安装