Chuyển đến nội dung
Skillpedia
PDF, Word và slide12k · #11564

docx

Skill này làm gì

Skill này giúp agent làm việc với file Microsoft Word. Nó có thể đọc chúng, tạo file mới và chỉnh sửa cẩn thận. Dành cho bất kỳ ai cần một tài liệu Word được tạo hoặc cập nhật.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một tài liệu Word mới từ nội dung của mình.
  • ✓Khi bạn muốn thay đổi file Word trong khi định dạng của nó vẫn được giữ nguyên.
  • ✓Khi bạn cần điền một mẫu Word hoặc xem lại các thay đổi được theo dõi và bình luận.

Liên kết skill

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/docx/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/docx/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Điền các chỗ giữ chỗ trong mẫu Word này bằng thông tin khách hàng từ danh sách của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra file trước, rồi dùng các script trợ giúp nhỏ để đọc, sửa, thêm bình luận, điền mẫu hoặc kiểm tra kết quả. Mặc định nó lưu thành một bản sao mới thay vì ghi đè bản gốc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Word documents

Use this Skill for .docx work. Preserve the user's content and formatting intent, and make the smallest change that satisfies the request.

Start here

Call skill_view for this Skill before using its resources. It returns baseDirectory; every bundled helper below lives under <baseDirectory>/scripts.

Default to a new output file. Replace the input only when the user explicitly asks for an in-place edit. Before changing a document, inspect it with docx_read.py and keep a recoverable original.

Core dependency:

python3 -m pip install python-docx lxml

Do not install dependencies silently. Check availability first and explain any missing dependency that blocks the task.

Helpers

  • docx_read.py: extract paragraphs, headings, tables, links, comments, headers, footers, and document metadata.
  • docx_create.py: create a document from structured JSON.
  • docx_edit.py: perform targeted text, paragraph, table, image, header, and footer edits.
  • docx_template.py: inspect placeholders and populate a template.
  • docx_comments.py: add, list, or remove comments.
  • docx_revisions.py: inspect, accept, or reject tracked revisions.
  • docx_validate.py: validate the resulting package and report structural problems.

Run helpers with terminal_exec, passing python3 as the command and arguments as an array. Use --help when a helper's exact arguments are unclear.

python3 <baseDirectory>/scripts/docx_read.py input.docx --json
python3 <baseDirectory>/scripts/docx_create.py spec.json -o output.docx
python3 <baseDirectory>/scripts/docx_edit.py input.docx edits.json -o output.docx
python3 <baseDirectory>/scripts/docx_validate.py output.docx

For tracked changes and comments, read references/revisions-and-comments.md through skill_view before editing them.

Workflow

  1. Inspect the source document and identify the exact sections to preserve or change.
  2. Build a structured specification or edit plan. Do not approximate names, numbers, dates, citations, or legal wording.
  3. Generate or edit a new .docx.
  4. Run docx_validate.py.
  5. When layout matters, convert the result to PDF with LibreOffice if available, render the relevant PDF pages with the bundled pdf Skill, and inspect the images with view_image. Check clipping, page breaks, tables, headers, footers, and image placement.
  6. Return the final absolute path and summarize material changes.

If LibreOffice is unavailable, still perform structural validation and clearly state that visual rendering was not available.

Safety

  • Never discard comments or tracked revisions unless the user requested that operation.
  • Treat accept-all/reject-all revisions and remove-all comments as destructive transformations; confirm the intended scope when it is ambiguous.
  • Do not execute macros or embedded objects.
  • Avoid copying sensitive document text into external services unless the user requested a workflow that requires it.
Câu hỏi thường gặp

Nó có ghi đè file gốc của tôi không?

Không. Mặc định nó làm việc trên file đầu ra mới và chỉ sửa bản gốc khi bạn yêu cầu rõ ràng.

Nó có xử lý thay đổi được theo dõi không?

Có. Skill có các công cụ trợ giúp để kiểm tra, chấp nhận hoặc từ chối các chỉnh sửa được theo dõi.

Nó có cần phần mềm bổ sung không?

Nó cần các gói Python python-docx và lxml, và agent kiểm tra chúng trước khi bắt đầu.

Chi tiết

Mô tả gốc của tác giả

Create, inspect, edit, validate, and visually verify Microsoft Word .docx documents, including templates, comments, tracked revisions, tables, images, headers, and footers.

repo: EKKOLearnAI/ekko-studio

Độ phổ biến

Sao GitHub
12k
Vị trí xếp hạng
#11564
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự