← ClaudeAtlas

office-design-toolkitlisted

Bộ kỹ năng Office (DOCX/PPTX/XLSX/PDF) và Design Toolkit tích hợp từ file người dùng cung cấp.
0xAstroAlpha/office-design-toolkit · ★ 43 · Data & Documents · score 68
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