docx
Skill này làm gì
Skill này giúp AI viết và chỉnh sửa tệp Microsoft Word. Skill dành cho người cần báo cáo, thư, hợp đồng hoặc đề xuất có định dạng Word chỉn chu.
Khi nào nên dùng
- ✓Khi bạn yêu cầu một tài liệu Word như báo cáo, đề xuất, thư hoặc hợp đồng.
- ✓Khi bạn muốn chỉnh sửa hoặc đánh dấu một tệp .docx đã có.
- ✓Khi bạn cần một tính năng Word nâng cao như mục lục, chú thích cuối trang hoặc bình luận.
Liên kết skill
https://github.com/spinabot/brigade/blob/main/skills/docx/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Soạn một đề xuất dự án hai trang bằng Word, có mục lục, bảng ngân sách có kiểu và tiêu đề trang.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Với bản nháp nhanh, AI dùng một trình tạo đơn giản. Với chi tiết hơn, AI viết một script bằng thư viện docx rồi mở tệp để kiểm tra. Các tệp thương hiệu có sẵn có thể được điền thêm mà không đổi kiểu dáng.
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.
docx — professional Word documents
Pick the lightest path that meets the need. Never declare a document done without opening/validating the result at least once (see Verify).
| Need | Path |
|---|---|
| Simple structured doc (headings, paragraphs, bullets, a basic table, an image) | Path 1 — make_document tool |
| Anything richer (custom styles, numbered/multi-level lists, merged/shaded table cells, headers/footers, TOC, hyperlinks, footnotes, inline bold/italic/color, tracked changes, comments) | Path 2 — script the docx library via brigade exec-node |
Fill / redline an EXISTING branded .docx without disturbing its styling |
Path 3 — OOXML round-trip |
| Markdown → branded Word inheriting a corporate template | Path 4 — pandoc (optional) |
Path 1 — quick structured doc (make_document tool)
make_document(format="docx", content={ title, sections:[{heading, level, paragraphs, bullets, table:{rows}, image:{path}}] })
Good for a fast first draft. It is deliberately limited (single-level bullets, string-only tables, no inline formatting). The moment you need more, go to Path 2 — don't fight the schema.
Path 2 — full power: script the docx library
Brigade bundles the docx library (dolanmiu/docx). Write a CommonJS script and run it with brigade exec-node, which makes Brigade's bundled libraries require()-able from anywhere (no install):
writea filegen.cjs.- Run:
brigade exec-node gen.cjs
// gen.cjs — illustrative; adapt to the content
const fs = require("node:fs");
const {
Document, Packer, Paragraph, TextRun, HeadingLevel, AlignmentType,
Table, TableRow, TableCell, WidthType, BorderStyle, ShadingType,
LevelFormat, Header, Footer, PageNumber, TableOfContents, ExternalHyperlink,
} = require("docx");
const doc = new Document({
styles: { default: { document: { run: { font: "Calibri", size: 22 } } }, // size is half-points (22 = 11pt)
paragraphStyles: [{ id: "Body", name: "Body", run: { size: 22 }, paragraph: { spacing: { after: 160 } } }] },
numbering: { config: [{ reference: "nums", levels: [{ level: 0, format: LevelFormat.DECIMAL, text: "%1.", alignment: AlignmentType.START }] }] },
sections: [{
properties: { page: { size: { width: 12240, height: 15840 } } }, // US Letter, in DXA (1440 = 1 inch)
headers: { default: new Header({ children: [new Paragraph("Acme Corp — Confidential")] }) },
footers: { default: new Footer({ children: [new Paragraph({ children: [new TextRun("Page "), new TextRun({ children: [PageNumber.CURRENT] })] })] }) },
children: [
new Paragraph({ text: "Q3 Business Review", heading: HeadingLevel.TITLE }),
new TableOfContents("Contents", { hyperlink: true, headingStyleRange: "1-3" }),
new Paragraph({ text: "Summary", heading: HeadingLevel.HEADING_1 }),
new Paragraph({ children: [ new TextRun("Revenue was "), new TextRun({ text: "$1.2M", bold: true }), new TextRun(" — up 18%.") ] }),
new Paragraph({ text: "First item", numbering: { reference: "nums", level: 0 } }),
new Paragraph({ children: [ new ExternalHyperlink({ children: [new TextRun({ text: "Full data", style: "Hyperlink" })], link: "https://example.com" }) ] }),
new Table({
columnWidths: [4680, 4680], // DXA, sum = content width
rows: [
new TableRow({ tableHeader: true, children: ["Metric","Value"].map((t) =>
new TableCell({ width: { size: 4680, type: WidthType.DXA }, shading: { type: ShadingType.CLEAR, fill: "D9E2F3" },
children: [new Paragraph({ children: [new TextRun({ text: t, bold: true })] })] })) }),
new TableRow({ children: ["Revenue","$1.2M"].map((t) =>
new TableCell({ width: { size: 4680, type: WidthType.DXA }, children: [new Paragraph(t)] })) }),
],
}),
],
}],
});
Packer.toBuffer(doc).then((buf) => { fs.writeFileSync(process.argv[2] || "out.docx", buf); console.log("wrote", process.argv[2] || "out.docx"); });
The docx library also supports: footnotes (FootnoteReferenceRun + footnotes), comments, tracked changes (InsertedTextRun/DeletedTextRun with author/date), multi-section layouts, page breaks, columns, internal bookmarks, and images inside table cells. Read its API as needed — anything Word can express, this can author.
Path 3 — fill / redline an EXISTING .docx (highest fidelity)
To f
Câu hỏi thường gặp
Skill có chỉnh sửa tệp Word có sẵn không?
Có. Skill có thể điền hoặc đánh dấu một tệp thương hiệu có sẵn mà vẫn giữ kiểu dáng.
Skill có kiểm tra tệp sau khi tạo không?
Có. Skill mở và xác thực tài liệu trước khi coi công việc là hoàn thành.
Skill có hỗ trợ thay đổi có theo dõi không?
Có. Skill có thể thêm thay đổi có theo dõi và bình luận vào tài liệu Word.
Chi tiết
Mô tả gốc của tác giả
Create and edit Microsoft Word (.docx) documents to a professional standard — reports, proposals, contracts, letters, memos — with custom styles, multi-level lists, styled/merged tables, headers/footers, table of contents, hyperlinks, footnotes, tracked changes and comments. Use when the user asks Brigade to make, write, draft, fill, redline, or edit a Word document or .docx file.
repo: spinabot/brigade
Độ phổ biến
- Sao GitHub
- 11k
- Vị trí xếp hạng
- #11717
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
1password
11kDạy agent của bạn cài đặt công cụ dòng lệnh 1Password và đăng nhập an toàn, sau đó đọc hoặc chèn các bí mật đã lưu khi cần.
apple-reminders
11kCho phép agent của bạn xem, thêm, sửa, hoàn thành và xóa Apple Reminders từ terminal, gồm danh sách và bộ lọc theo ngày.
bluebubbles
11kCho phép agent của bạn gửi và quản lý iMessage qua BlueBubbles, gồm tin nhắn, tệp đính kèm, biểu cảm tapback, chỉnh sửa và cài đặt nhóm.
camsnap
11kCho phép agent của bạn chụp ảnh, quay clip ngắn hoặc theo dõi chuyển động từ các camera an ninh mạng mà bạn đã thiết lập.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.