Sample Product Launch Agenda PowerPoint

Credit Cards 4 Bad Credit

travel ideas for trips to see dramatic sea cliffs great value

:
chore: export latest skills (Apple Event Releases)
1 parent Credit Card Size Template commit 3d59511

Travel ideas for trips to see dramatic sea cliffs great value 20 files changed How To Make A Post On Facebook

Lines changed: 5214 additions & 635 deletions

skills/docx/SKILL.md

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: docx
3-
description: "Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of \"Word doc\", \"word document\", \".docx\", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a \"report\", \"memo\", \"letter\", \"template\", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation."
3+
description: "Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation."
44
license: Proprietary. LICENSE.txt has complete terms
55
---
66

@@ -61,6 +61,9 @@ Generate .docx files with JavaScript, then validate. Install: `npm install -g do
6161
```javascript
6262
const { Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell, ImageRun,
6363
Header, Footer, AlignmentType, PageOrientation, LevelFormat, ExternalHyperlink,
64+
InternalHyperlink, Bookmark, FootnoteReferenceRun, PositionalTab,
65+
PositionalTabAlignment, PositionalTabRelativeTo, PositionalTabLeader,
66+
TabStopType, TabStopPosition, Column, SectionType,
6467
TableOfContents, HeadingLevel, BorderStyle, WidthType, ShadingType,
6568
VerticalAlign, PageNumber, PageBreak } = require('docx');
6669

@@ -241,6 +244,111 @@ new Paragraph({ children: [new PageBreak()] })
241244
new Paragraph({ pageBreakBefore: true, children: [new TextRun("New page")] })
242245
```
243246

247+
### Hyperlinks
248+
249+
```javascript
250+
// External link
251+
new Paragraph({
252+
children: [new ExternalHyperlink({
253+
children: [new TextRun({ text: "Click here", style: "Hyperlink" })],
254+
link: "https://example.com",
255+
})]
256+
})
257+
258+
// Internal link (bookmark + reference)
259+
// 1. Create bookmark at destination
260+
new Paragraph({ heading: HeadingLevel.HEADING_1, children: [
261+
new Bookmark({ id: "chapter1", children: [new TextRun("Chapter 1")] }),
262+
]})
263+
// 2. Link to it
264+
new Paragraph({ children: [new InternalHyperlink({
265+
children: [new TextRun({ text: "See Chapter 1", style: "Hyperlink" })],
266+
anchor: "chapter1",
267+
})]})
268+
```
269+
270+
### Footnotes
271+
272+
```javascript
273+
const doc = new Document({
274+
footnotes: {
275+
1: { children: [new Paragraph("Source: Annual Report 2024")] },
276+
2: { children: [new Paragraph("See appendix for methodology")] },
277+
},
278+
sections: [{
279+
children: [new Paragraph({
280+
children: [
281+
new TextRun("Revenue grew 15%"),
282+
new FootnoteReferenceRun(1),
283+
new TextRun(" using adjusted metrics"),
284+
new FootnoteReferenceRun(2),
285+
],
286+
})]
287+
}]
288+
});
289+
```
290+
291+
### Tab Stops
292+
293+
```javascript
294+
// Right-align text on same line (e.g., date opposite a title)
295+
new Paragraph({
296+
children: [
297+
new TextRun("Company Name"),
298+
new TextRun("\tJanuary 2025"),
299+
],
300+
tabStops: [{ type: TabStopType.RIGHT, position: TabStopPosition.MAX }],
301+
})
302+
303+
// Dot leader (e.g., TOC-style)
304+
new Paragraph({
305+
children: [
306+
new TextRun("Introduction"),
307+
new TextRun({ children: [
308+
new PositionalTab({
309+
alignment: PositionalTabAlignment.RIGHT,
310+
relativeTo: PositionalTabRelativeTo.MARGIN,
311+
leader: PositionalTabLeader.DOT,
312+
}),
313+
"3",
314+
]}),
315+
],
316+
})
317+
```
318+
319+
### Multi-Column Layouts
320+
321+
```javascript
322+
// Equal-width columns
323+
sections: [{
324+
properties: {
325+
column: {
326+
count: 2, // number of columns
327+
space: 720, // gap between columns in DXA (720 = 0.5 inch)
328+
equalWidth: true,
329+
separate: true, // vertical line between columns
330+
},
331+
},
332+
children: [/* content flows naturally across columns */]
333+
}]
334+
335+
// Custom-width columns (equalWidth must be false)
336+
sections: [{
337+
properties: {
338+
column: {
339+
equalWidth: false,
340+
children: [
341+
new Column({ width: 5400, space: 720 }),
342+
new Column({ width: 3240 }),
343+
],
344+
},
345+
},
346+
children: [/* content */]
347+
}]
348+
```
349+
350+
Force a column break with a new section using `type: SectionType.NEXT_COLUMN`.
351+
244352
### Table of Contents
245353

246354
```javascript
@@ -280,6 +388,7 @@ sections: [{
280388
- **Table width = sum of columnWidths** - for DXA, ensure they add up exactly
281389
- **Always add cell margins** - use `margins: { top: 80, bottom: 80, left: 120, right: 120 }` for readable padding
282390
- **Use `ShadingType.CLEAR`** - never SOLID for table shading
391+
- **Never use tables as dividers/rules** - cells have minimum height and render as empty boxes (including in headers/footers); use `border: { bottom: { style: BorderStyle.SINGLE, size: 6, color: "2E75B6", space: 1 } }` on a Paragraph instead. For two-column footers, use tab stops (see Tab Stops section), not tables
283392
- **TOC requires HeadingLevel only** - no custom styles on heading paragraphs
284393
- **Override built-in styles** - use exact IDs: "Heading1", "Heading2", etc.
285394
- **Include `outlineLevel`** - required for TOC (0 for H1, 1 for H2, etc.)

Balloon Launch Gimmick Credit Cards 4 Bad

Comments
 (0)