docx
Ce qu’il fait
Cette compétence aide l'IA à rédiger et modifier des fichiers Microsoft Word. Elle s'adresse aux personnes qui ont besoin de rapports, de lettres, de contrats ou de propositions dans un format Word soigné.
Quand l’utiliser
- ✓Quand vous demandez un document Word, comme un rapport, une proposition, une lettre ou un contrat.
- ✓Quand vous voulez modifier ou annoter un fichier .docx existant.
- ✓Quand vous avez besoin d'une fonctionnalité Word plus avancée, comme une table des matières, des notes de bas de page ou des commentaires.
Lien du skill
https://github.com/spinabot/brigade/blob/main/skills/docx/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Rédige une proposition de projet de deux pages dans Word, avec une table des matières, un tableau de budget stylisé et des en-têtes de page.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Pour un brouillon rapide, l'IA utilise un générateur simple. Pour plus de détails, elle écrit un script avec la bibliothèque docx, puis ouvre le fichier pour le vérifier. Les fichiers de marque existants peuvent être complétés sans modifier leur style.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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
Questions fréquentes
Peut-elle modifier un fichier Word existant ?
Oui. Elle peut compléter ou annoter un fichier de marque existant tout en conservant sa mise en forme.
Vérifie-t-elle le fichier après l'avoir créé ?
Oui. La compétence ouvre et valide le document avant de considérer le travail comme terminé.
Gère-t-elle les modifications suivies ?
Oui. La compétence peut ajouter des modifications suivies et des commentaires dans un document Word.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 11k
- Position au classement
- #11717
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
1password
11kApprend à votre agent à installer l'outil en ligne de commande 1Password, à se connecter en toute sécurité, puis à lire ou injecter les secrets enregistrés lorsqu'ils sont nécessaires.
apple-reminders
11kPermet à votre agent de consulter, ajouter, modifier, terminer et supprimer les Rappels Apple depuis le terminal, y compris les listes et les filtres de date.
bluebubbles
11kPermet à votre agent d'envoyer et de gérer des iMessage via BlueBubbles, y compris les textos, pièces jointes, réactions tapback, modifications et paramètres de groupe.
camsnap
11kPermet à votre agent de prendre des instantanés, de courts clips ou de surveiller les mouvements depuis des caméras de sécurité réseau que vous avez déjà configurées.
Skills similaires
feishu-doc
394kAide votre agent à lire, créer et modifier des documents cloud Feishu, y compris du texte, des images et des tableaux, grâce à l'outil de document.
feishu-drive
394kPermet à votre agent de parcourir, organiser et commenter des fichiers d'un dossier cloud Feishu partagé avec le bot.
feishu-perm
394kAide votre agent à vérifier et modifier qui peut accéder à un fichier Feishu, en choisissant la plus petite autorisation qui répond à votre demande.