office-design-toolkitlisted
Install: claude install-skill 0xAstroAlpha/office-design-toolkit
# 📂 OFFICE FILE SKILLS & DESIGN DOCUMENT TOOLKIT
## Tổng hợp toàn bộ Skills xử lý file Office + Design chuyên nghiệp
---
# PHẦN 1: DOCX — Word Document Skill
**Path:** `/mnt/skills/public/docx/SKILL.md`
## Overview
File .docx là ZIP archive chứa XML files.
## Quick Reference
| Task | Approach |
|------|----------|
| Read/analyze content | `pandoc` hoặc unpack raw XML |
| Create new document | Dùng `docx-js` |
| Edit existing document | Unpack → edit XML → repack |
### Converting .doc to .docx
```bash
python scripts/office/soffice.py --headless --convert-to docx document.doc
```
### Reading Content
```bash
pandoc --track-changes=all document.docx -o output.md
python scripts/office/unpack.py document.docx unpacked/
```
### Converting to Images
```bash
python scripts/office/soffice.py --headless --convert-to pdf document.docx
pdftoppm -jpeg -r 150 document.pdf page
```
### Accepting Tracked Changes
```bash
python scripts/accept_changes.py input.docx output.docx
```
## Creating New Documents (docx-js)
### Setup
```javascript
const { Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell, ImageRun,
Header, Footer, AlignmentType, PageOrientation, LevelFormat, ExternalHyperlink,
InternalHyperlink, Bookmark, FootnoteReferenceRun, PositionalTab,
PositionalTabAlignment, PositionalTabRelativeTo, PositionalTabLeader,
TabStopType, TabStopPosition, Column, SectionType,
TableOfContents, HeadingLevel, BorderStyle, WidthType, Shadi