[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QQ8Y2FWTDV2CYB1E2P0WBN":3,"skill-same:01M6QQ8Y2FWTDV2CYB1E2P0WBN":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6QQ8Y2FWTDV2CYB1E2P0WBN","document-generation",null,"Produce Word, PowerPoint, Excel, and PDF deliverables — reports, decks, spreadsheets, invoices, exports — with the libraries already installed in this container (docx, pptxgenjs, pdf-lib, openpyxl, reportlab, pypdf, pandoc, Chromium). Use whenever the user asks for a document, report, deck, presentation, slides, spreadsheet, workbook, or PDF, and when reading or revising one you already delivered.","SimaDevelopment\u002Fopsiforce","SimaDevelopment","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153810655?v=4","01M6QQ054MKBDSS43AND3FNHDK","Opsima","01M6QQ058VFT6EY7HCBVN49G8Z",43,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Fagent-config\u002Fskills\u002Fdocument-generation\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"document generation","generation","document","reports","for","invoices","reading","you","presentation","lib","docx","deck","Word","slides","spreadsheet","libraries","powerpoint","spreadsheets","xlsx","PDF","2026-11-10 10:12:30",false,"---\nname: document-generation\ndescription: Produce Word, PowerPoint, Excel, and PDF deliverables — reports, decks, spreadsheets, invoices, exports — with the libraries already installed in this container (docx, pptxgenjs, pdf-lib, openpyxl, reportlab, pypdf, pandoc, Chromium). Use whenever the user asks for a document, report, deck, presentation, slides, spreadsheet, workbook, or PDF, and when reading or revising one you already delivered.\n---\n\n# Document Generation — docx, pptx, xlsx, pdf\n\nEverything below is **already installed in this container** — never reinstall any of it with `npm install`, `yarn add`, `pip install` or `apt-get install`.\n\n| Need | Use | Version |\n|---|---|---|\n| Word (`.docx`) | `docx` (npm, JS) | 9.7.1 |\n| PowerPoint (`.pptx`) | `pptxgenjs` (npm, JS) | 4.0.1 |\n| Excel (`.xlsx`) | `openpyxl` (Python) | 3.1.5 |\n| PDF, programmatic | `reportlab` (Python) | 5.0.1 |\n| PDF, visually rich | Chromium `--headless --print-to-pdf` over your own HTML | system |\n| PDF manipulation | `pypdf` (Python) or `pdf-lib` (npm) | 6.16.1 \u002F 1.17.1 |\n| Read an existing document | `pandoc`, `pdftotext`, `pdftoppm`, `openpyxl` | system |\n\nThe three npm packages resolve from **anywhere** in the filesystem — `require(\"docx\")` works in a script at `\u002Fworkspace\u002Fgenerators\u002Finvoice\u002Fgen.js` with no `package.json` and no install step. Keep generator scripts, layouts and the source material a revision would need under `\u002Fworkspace\u002Fgenerators\u002F\u003Cdeliverable>\u002F`, never loose at the workspace root (the root shows in the user's Files tab) and never in `\u002Ftmp`, which goes with the pod: a user who asks for the same report next month with two more columns needs the generator that made the first one. Intermediates nobody revises — a rendered HTML page on its way to PDF, a chart PNG — can stay in `\u002Ftmp`.\n\n## Where the file goes\n\nEvery deliverable goes in `\u002Fworkspace\u002Fgenerated_files\u002F` and is shared as a link, as the `platform` skill says (§Files the user gives you, and files you give back). A turn that produced a document and does not end in its link is unfinished.\n\n## Revising a document you already delivered\n\n**Default to a versioned filename** — `report.docx` → `report_v2.docx` → `report_v3.docx` — so the link you posted earlier keeps opening the document it announced. **Overwrite the same file only when the user explicitly asks you to fix that file** (for example \"fix the typo in that report\", \"update the same file\"). When you write a new version, link the new file and say which version it is.\n\n## Word — `docx`\n\n```js\nconst { Document, Packer, Paragraph, TextRun, HeadingLevel, AlignmentType, convertInchesToTwip } = require(\"docx\")\nconst fs = require(\"node:fs\")\n\nconst doc = new Document({\n  styles: {\n    default: {\n      document: { run: { font: \"Liberation Sans\", size: 22 } },\n    },\n  },\n  sections: [{\n    properties: {\n      page: { margin: { top: convertInchesToTwip(1), right: convertInchesToTwip(1), bottom: convertInchesToTwip(1), left: convertInchesToTwip(1) } },\n    },\n    children: [\n      new Paragraph({ text: \"Q3 Revenue Review\", heading: HeadingLevel.TITLE, alignment: AlignmentType.CENTER }),\n      new Paragraph({ text: \"Summary\", heading: HeadingLevel.HEADING_1 }),\n      new Paragraph({ children: [new TextRun(\"Revenue grew \"), new TextRun({ text: \"18%\", bold: true }), new TextRun(\" quarter over quarter.\")] }),\n    ],\n  }],\n})\n\nPacker.toBuffer(doc).then((buffer) => fs.writeFileSync(\"\u002Fworkspace\u002Fgenerated_files\u002FQ3-report.docx\", buffer))\n```\n\n`size` is half-points (`22` = 11pt). Build tables with `Table`\u002F`TableRow`\u002F`TableCell` and `WidthType.PERCENTAGE`, images with `ImageRun`.\n\n**`docx` cannot open an existing .docx.** To change a document you generated, re-run the generator with the new content. To change a document the *user* uploaded, read it with `pandoc -f docx -t markdown file.docx`, then either regenerate it or unzip → patch `word\u002Fdocument.xml` → rezip.\n\n## PowerPoint — `pptxgenjs`\n\n```js\nconst PptxGenJS = require(\"pptxgenjs\")\nconst pptx = new PptxGenJS()\npptx.layout = \"LAYOUT_16x9\"\n\nconst title = pptx.addSlide()\ntitle.addText(\"Q3 Revenue Review\", { x: 0.6, y: 2.3, w: 8.8, h: 1, fontSize: 40, bold: true, fontFace: \"Liberation Sans\" })\ntitle.addText(\"Prepared for the leadership team · October 2026\", { x: 0.6, y: 3.3, w: 8.8, h: 0.5, fontSize: 16, color: \"666666\" })\n\nconst slide = pptx.addSlide()\nslide.addText(\"Revenue by region\", { x: 0.6, y: 0.4, w: 8.8, h: 0.6, fontSize: 28, bold: true })\nslide.addText([\"EMEA up 22%\", \"AMER up 14%\", \"APAC flat\"].map((t) => ({ text: t, options: { bullet: true } })), { x: 0.8, y: 1.4, w: 8.4, h: 3, fontSize: 18 })\n\npptx.writeFile({ fileName: \"\u002Fworkspace\u002Fgenerated_files\u002FQ3-review.pptx\" })\n```\n\n**Every deck opens with a title slide**: deck title, one supporting line (audience, date, or one-sentence takeaway), nothing else. After that, one idea per slide, at most six bullets, no paragraph dumped into a text box. Charts come from `slide.addChart(pptx.ChartType.bar, …)`, not screenshots.\n\n## Excel — `openpyxl`\n\n```python\nfrom openpyxl import Workbook\nfrom openpyxl.styles import Font\nfrom openpyxl.utils import get_column_letter\n\nwb = Workbook()\nws = wb.active\nws.title = \"Revenue\"\nws.append([\"Region\", \"Q2\", \"Q3\", \"Growth\"])\nfor cell in ws[1]:\n    cell.font = Font(bold=True)\nfor row in [(\"EMEA\", 120, 146), (\"AMER\", 210, 239), (\"APAC\", 88, 88)]:\n    ws.append([*row, (row[2] - row[1]) \u002F row[1]])\nws.freeze_panes = \"A2\"\nfor column in range(1, ws.max_column + 1):\n    ws.column_dimensions[get_column_letter(column)].width = 14\nwb.save(\"\u002Fworkspace\u002Fgenerated_files\u002Frevenue.xlsx\")\n```\n\nFor several sheets, `wb.create_sheet(\"Name\")`. **There is no pandas in this container** — write rows with `ws.append()` and stream large sets with `Workbook(write_only=True)` rather than reaching for a DataFrame.\n\n**There is no LibreOffice in this container, so nothing recalculates formulas after you write them.** A formula string is stored uncalculated and shows a value only once the user opens the file in Excel — and shows nothing at all in the platform's in-app preview. Write **computed values** for anything the user needs to read, and add formulas only when the user asked for a working model.\n\n## PDF — two paths\n\n**Visually rich (reports, invoices, anything with a layout):** write HTML + CSS, print it with the system Chromium. You are better at CSS than at PDF coordinates.\n\n```bash\nchromium --headless --no-sandbox --disable-gpu --hide-scrollbars \\\n  --user-data-dir=\u002Ftmp\u002Fchrome-print --no-pdf-header-footer \\\n  --virtual-time-budget=10000 \\\n  --print-to-pdf=\u002Fworkspace\u002Fgenerated_files\u002Finvoice.pdf file:\u002F\u002F\u002Ftmp\u002Finvoice.html\n```\n\nSet page geometry in the HTML (`@page { size: A4; margin: 20mm; }`), keep tables together with `break-inside: avoid`, and embed images as `data:` URIs or absolute `file:\u002F\u002F\u002F` paths — the page is loaded from disk with no network.\n\n**If you deliver an `.html` file instead of a PDF, inline everything.** The platform serves previewed HTML with `default-src 'none'`, so remote scripts, stylesheets, images, and any `fetch` are blocked. A report that pulls a chart library off a CDN renders broken in the preview panel and gives the user no clue why. Inline `\u003Cscript>` and `\u003Cstyle>` still execute and `data:` images still draw, so build charts from data embedded in the page — or deliver a PDF, which is the better format for anything the user will keep.\n\n**Programmatic (tabular, generated per record, thousands of pages):** `reportlab` Platypus.\n\n```python\nfrom reportlab.lib import colors\nfrom reportlab.lib.pagesizes import A4\nfrom reportlab.lib.units import inch\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle\n\nstyles = getSampleStyleSheet()\ndoc = SimpleDocTemplate(\"\u002Fworkspace\u002Fgenerated_files\u002Fsummary.pdf\", pagesize=A4,\n                        topMargin=inch, bottomMargin=inch, leftMargin=inch, rightMargin=inch)\ndoc.build([\n    Paragraph(\"Q3 Revenue Review\", styles[\"Title\"]),\n    Spacer(1, 12),\n    Table([[\"Region\", \"Q3\"], [\"EMEA\", \"146\"], [\"AMER\", \"239\"]],\n          style=TableStyle([(\"GRID\", (0, 0), (-1, -1), 0.5, colors.grey), (\"FONTNAME\", (0, 0), (-1, 0), \"Helvetica-Bold\")])),\n])\n```\n\nTo place an image, pass reportlab a plain filesystem path — `Image(\"\u002Ftmp\u002Fchart.png\", width=180, height=120)`. It rejects `data:` and `file:` URIs unless `rl_config.trustedHosts` names the host, which is deliberate here and not worth working around.\n\n**Manipulating an existing PDF** — merge, split, rotate, stamp, fill a form, extract text — is `pypdf` (Python) or `pdf-lib` (JS), never a regeneration. `pdftotext` reads one; `pdftoppm -png -r 80` renders a page to an image when you need to *look* at the result you produced.\n\n## Fonts\n\nThe only font family installed is **Liberation** (Sans\u002FSerif\u002FMono, at `\u002Fusr\u002Fshare\u002Ffonts\u002Ftruetype\u002Fliberation\u002F`) — metric-compatible with Arial\u002FTimes\u002FCourier, so it is the safe default for any document.\n\n- docx and pptx: name the font (`\"Liberation Sans\"`); the reader substitutes its own metric-compatible face.\n- Chromium: `font-family: \"Liberation Sans\", sans-serif`.\n- reportlab: the built-in Helvetica\u002FTimes\u002FCourier faces need no registration.\n\n**This container has no CJK and no emoji fonts.** Chinese, Japanese, Korean, and emoji characters render as blank boxes in any PDF you produce — and, worse, silently: the generator reports success. So when the content needs them, say so instead of shipping a broken PDF. Deliver a docx or pptx instead (the reader supplies its own fonts) or ask the user whether they want the fonts added to the image. Latin, including accented Western European text, is fully covered.\n\n## Common mistakes\n\n1. **Overwriting a delivered file on a revision.** Default to `_v2`; the earlier chat link must keep resolving to what it announced.\n2. **Shipping uncalculated spreadsheet formulas** as the answer — nothing recalculates them here. Write the computed values.\n3. **Fighting reportlab for a pretty layout.** If it needs design, write HTML and print it with Chromium.\n4. **Writing the generator anywhere but `\u002Fworkspace\u002Fgenerators\u002F\u003Cdeliverable>\u002F`.** A revision reuses the generator that made the original — same method, same conventions — and re-verifies the result the way the first run did.\n5. **Reopening a generated .docx with `docx`.** It only writes. Regenerate, or patch the XML.\n6. **Putting CJK or emoji in a PDF.** There are no fonts for them here and the failure is silent — blank boxes in a file that generated without error. Deliver docx\u002Fpptx instead, or tell the user.\n","# Document Generation — docx, pptx, xlsx, pdf\n\nEverything below is **already installed in this container** — never reinstall any of it with `npm install`, `yarn add`, `pip install` or `apt-get install`.\n\n| Need | Use | Version |\n|---|---|---|\n| Word (`.docx`) | `docx` (npm, JS) | 9.7.1 |\n| PowerPoint (`.pptx`) | `pptxgenjs` (npm, JS) | 4.0.1 |\n| Excel (`.xlsx`) | `openpyxl` (Python) | 3.1.5 |\n| PDF, programmatic | `reportlab` (Python) | 5.0.1 |\n| PDF, visually rich | Chromium `--headless --print-to-pdf` over your own HTML | system |\n| PDF manipulation | `pypdf` (Python) or `pdf-lib` (npm) | 6.16.1 \u002F 1.17.1 |\n| Read an existing document | `pandoc`, `pdftotext`, `pdftoppm`, `openpyxl` | system |\n\nThe three npm packages resolve from **anywhere** in the filesystem — `require(\"docx\")` works in a script at `\u002Fworkspace\u002Fgenerators\u002Finvoice\u002Fgen.js` with no `package.json` and no install step. Keep generator scripts, layouts and the source material a revision would need under `\u002Fworkspace\u002Fgenerators\u002F\u003Cdeliverable>\u002F`, never loose at the workspace root (the root shows in the user's Files tab) and never in `\u002Ftmp`, which goes with the pod: a user who asks for the same report next month with two more columns needs the generator that made the first one. Intermediates nobody revises — a rendered HTML page on its way to PDF, a chart PNG — can stay in `\u002Ftmp`.\n\n## Where the file goes\n\nEvery deliverable goes in `\u002Fworkspace\u002Fgenerated_files\u002F` and is shared as a link, as the `platform` skill says (§Files the user gives you, and files you give back). A turn that produced a document and does not end in its link is unfinished.\n\n## Revising a document you already delivered\n\n**Default to a versioned filename** — `report.docx` → `report_v2.docx` → `report_v3.docx` — so the link you posted earlier keeps opening the document it announced. **Overwrite the same file only when the user explicitly asks you to fix that file** (for example \"fix the typo in that report\", \"update the same file\"). When you write a new version, link the new file and say which version it is.\n\n## Word — `docx`\n\n```js\nconst { Document, Packer, Paragraph, TextRun, HeadingLevel, AlignmentType, convertInchesToTwip } = require(\"docx\")\nconst fs = require(\"node:fs\")\n\nconst doc = new Document({\n  styles: {\n    default: {\n      document: { run: { font: \"Liberation Sans\", size: 22 } },\n    },\n  },\n  sections: [{\n    properties: {\n      page: { margin: { top: convertInchesToTwip(1), right: convertInchesToTwip(1), bottom: convertInchesToTwip(1), left: convertInchesToTwip(1) } },\n    },\n    children: [\n      new Paragraph({ text: \"Q3 Revenue Review\", heading: HeadingLevel.TITLE, alignment: AlignmentType.CENTER }),\n      new Paragraph({ text: \"Summary\", heading: HeadingLevel.HEADING_1 }),\n      new Paragraph({ children: [new TextRun(\"Revenue grew \"), new TextRun({ text: \"18%\", bold: true }), new TextRun(\" quarter over quarter.\")] }),\n    ],\n  }],\n})\n\nPacker.toBuffer(doc).then((buffer) => fs.writeFileSync(\"\u002Fworkspace\u002Fgenerated_files\u002FQ3-report.docx\", buffer))\n```\n\n`size` is half-points (`22` = 11pt). Build tables with `Table`\u002F`TableRow`\u002F`TableCell` and `WidthType.PERCENTAGE`, images with `ImageRun`.\n\n**`docx` cannot open an existing .docx.** To change a document you generated, re-run the generator with the new content. To change a document the *user* uploaded, read it with `pandoc -f docx -t markdown file.docx`, then either regenerate it or unzip → patch `word\u002Fdocument.xml` → rezip.\n\n## PowerPoint — `pptxgenjs`\n\n```js\nconst PptxGenJS = require(\"pptxgenjs\")\nconst pptx = new PptxGenJS()\npptx.layout = \"LAYOUT_16x9\"\n\nconst title = pptx.addSlide()\ntitle.addText(\"Q3 Revenue Review\", { x: 0.6, y: 2.3, w: 8.8, h: 1, fontSize: 40, bold: true, fontFace: \"Liberation Sans\" })\ntitle.addText(\"Prepared for the leadership team · October 2026\", { x: 0.6, y: 3.3, w: 8.8, h: 0.5, fontSize: 16, color: \"666666\" })\n\nconst slide = pptx.addSlide()\nslide.addText(\"Revenue by region\", { x: 0.6, y: 0.4, w: 8.8, h: 0.6, fontSize: 28, bold: true })\nslide.addText([\"EMEA up 22%\", \"AMER up 14%\", \"APAC flat\"].map((t) => ({ text: t, options: { bullet: true } })), { x: 0.8, y: 1.4, w: 8.4, h: 3, fontSize: 18 })\n\npptx.writeFile({ fileName: \"\u002Fworkspace\u002Fgenerated_files\u002FQ3-review.pptx\" })\n```\n\n**Every deck opens with a title slide**: deck title, one supporting line (audience, date, or one-sentence takeaway), nothing else. After that, one idea per slide, at most six bullets, no paragraph dumped into a text box. Charts come from `slide.addChart(pptx.ChartType.bar, …)`, not screenshots.\n\n## Excel — `openpyxl`\n\n```python\nfrom openpyxl import Workbook\nfrom openpyxl.styles import Font\nfrom openpyxl.utils import get_column_letter\n\nwb = Workbook()\nws = wb.active\nws.title = \"Revenue\"\nws.append([\"Region\", \"Q2\", \"Q3\", \"Growth\"])\nfor cell in ws[1]:\n    cell.font = Font(bold=True)\nfor row in [(\"EMEA\", 120, 146), (\"AMER\", 210, 239), (\"APAC\", 88, 88)]:\n    ws.append([*row, (row[2] - row[1]) \u002F row[1]])\nws.freeze_panes = \"A2\"\nfor column in range(1, ws.max_column + 1):\n    ws.column_dimensions[get_column_letter(column)].width = 14\nwb.save(\"\u002Fworkspace\u002Fgenerated_files\u002Frevenue.xlsx\")\n```\n\nFor several sheets, `wb.create_sheet(\"Name\")`. **There is no pandas in this container** — write rows with `ws.append()` and stream large sets with `Workbook(write_only=True)` rather than reaching for a DataFrame.\n\n**There is no LibreOffice in this container, so nothing recalculates formulas after you write them.** A formula string is stored uncalculated and shows a value only once the user opens the file in Excel — and shows nothing at all in the platform's in-app preview. Write **computed values** for anything the user needs to read, and add formulas only when the user asked for a working model.\n\n## PDF — two paths\n\n**Visually rich (reports, invoices, anything with a layout):** write HTML + CSS, print it with the system Chromium. You are better at CSS than at PDF coordinates.\n\n```bash\nchromium --headless --no-sandbox --disable-gpu --hide-scrollbars \\\n  --user-data-dir=\u002Ftmp\u002Fchrome-print --no-pdf-header-footer \\\n  --virtual-time-budget=10000 \\\n  --print-to-pdf=\u002Fworkspace\u002Fgenerated_files\u002Finvoice.pdf file:\u002F\u002F\u002Ftmp\u002Finvoice.html\n```\n\nSet page geometry in the HTML (`@page { size: A4; margin: 20mm; }`), keep tables together with `break-inside: avoid`, and embed images as `data:` URIs or absolute `file:\u002F\u002F\u002F` paths — the page is loaded from disk with no network.\n\n**If you deliver an `.html` file instead of a PDF, inline everything.** The platform serves previewed HTML with `default-src 'none'`, so remote scripts, stylesheets, images, and any `fetch` are blocked. A report that pulls a chart library off a CDN renders broken in the preview panel and gives the user no clue why. Inline `\u003Cscript>` and `\u003Cstyle>` still execute and `data:` images still draw, so build charts from data embedded in the page — or deliver a PDF, which is the better format for anything the user will keep.\n\n**Programmatic (tabular, generated per record, thousands of pages):** `reportlab` Platypus.\n\n```python\nfrom reportlab.lib import colors\nfrom reportlab.lib.pagesizes import A4\nfrom reportlab.lib.units import inch\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle\n\nstyles = getSampleStyleSheet()\ndoc = SimpleDocTemplate(\"\u002Fworkspace\u002Fgenerated_files\u002Fsummary.pdf\", pagesize=A4,\n                        topMargin=inch, bottomMargin=inch, leftMargin=inch, rightMargin=inch)\ndoc.build([\n    Paragraph(\"Q3 Revenue Review\", styles[\"Title\"]),\n    Spacer(1, 12),\n    Table([[\"Region\", \"Q3\"], [\"EMEA\", \"146\"], [\"AMER\", \"239\"]],\n          style=TableStyle([(\"GRID\", (0, 0), (-1, -1), 0.5, colors.grey), (\"FONTNAME\", (0, 0), (-1, 0), \"Helvetica-Bold\")])),\n])\n```\n\nTo place an image, pass reportlab a plain filesystem path — `Image(\"\u002Ftmp\u002Fchart.png\", width=180, height=120)`. It rejects `data:` and `file:` URIs unless `rl_config.trustedHosts` names the host, which is deliberate here and not worth working around.\n\n**Manipulating an existing PDF** — merge, split, rotate, stamp, fill a form, extract text — is `pypdf` (Python) or `pdf-lib` (JS), never a regeneration. `pdftotext` reads one; `pdftoppm -png -r 80` renders a page to an image when you need to *look* at the result you produced.\n\n## Fonts\n\nThe only font family installed is **Liberation** (Sans\u002FSerif\u002FMono, at `\u002Fusr\u002Fshare\u002Ffonts\u002Ftruetype\u002Fliberation\u002F`) — metric-compatible with Arial\u002FTimes\u002FCourier, so it is the safe default for any document.\n\n- docx and pptx: name the font (`\"Liberation Sans\"`); the reader substitutes its own metric-compatible face.\n- Chromium: `font-family: \"Liberation Sans\", sans-serif`.\n- reportlab: the built-in Helvetica\u002FTimes\u002FCourier faces need no registration.\n\n**This container has no CJK and no emoji fonts.** Chinese, Japanese, Korean, and emoji characters render as blank boxes in any PDF you produce — and, worse, silently: the generator reports success. So when the content needs them, say so instead of shipping a broken PDF. Deliver a docx or pptx instead (the reader supplies its own fonts) or ask the user whether they want the fonts added to the image. Latin, including accented Western European text, is fully covered.\n\n## Common mistakes\n\n1. **Overwriting a delivered file on a revision.** Default to `_v2`; the earlier chat link must keep resolving to what it announced.\n2. **Shipping uncalculated spreadsheet formulas** as the answer — nothing recalculates them here. Write the computed values.\n3. **Fighting reportlab for a pretty layout.** If it needs design, write HTML and print it with Chromium.\n4. **Writing the generator anywhere but `\u002Fworkspace\u002Fgenerators\u002F\u003Cdeliverable>\u002F`.** A revision reuses the generator that made the original — same method, same conventions — and re-verifies the result the way the first run did.\n5. **Reopening a generated .docx with `docx`.** It only writes. Regenerate, or patch the XML.\n6. **Putting CJK or emoji in a PDF.** There are no fonts for them here and the failure is silent — blank boxes in a file that generated without error. Deliver docx\u002Fpptx instead, or tell the user.\n",{"name":5,"description":7},"main","c54d8e35f50ac35b3b2c7ba8d4fca2205a740cb9","agent-config\u002Fskills\u002Fdocument-generation",9,"https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce","https:\u002F\u002Fgithub.com\u002FSimaDevelopment","2026-11-05 06:13:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SimaDevelopment\u002Fopsiforce --skill document-generation",{"tool":57,"command":58},"bunx","bunx skills add SimaDevelopment\u002Fopsiforce --skill document-generation",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SimaDevelopment\u002Fopsiforce --skill document-generation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Fagent-config\u002Fskills\u002Fdocument-generation\u002FSKILL.md",true,[],[66,92,105,124,132,157],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":39},"01M6QQKHZFGFB6A111RW2A9WC0","figma-use","**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Skipping it causes common, hard-to-debug failures. Trigger whenever the user wants to perform a write action or a unique read action that requires JavaScript execution in the Figma file context — e.g. create\u002Fedit\u002Fdelete nodes, set up variables or tokens, build components and variants, modify auto-layout or fills, bind variables to properties, or inspect file structure programmatically.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-use\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,26,89,90,91],"figma use","figma","use","components","create","delete","tool","read","write","edit","context","auto","structure","tokens","bind","Variables","inspect","variants","invoke",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6QQK1AMA90K6DFAVANYQ9X3","figma-use-slides","This skill helps agents use Figma's use_figma MCP tool in the Slides context. Can be used alongside figma-use which has foundational context for using the use_figma tool.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-use-slides\u002FSKILL.md",[],[73,74,99,32,75,100,79,83,101,102,103,23,104],"figma use slides","MCP","false","which","can","figma mcp",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":39},"01M6QQJTR9QYK297WQ1X792D63","figma-use-motion","Motion \u002F animation context for the `use_figma` MCP tool — animating Figma nodes via manual keyframes, animation styles, easing, and timeline duration. Load alongside figma-use whenever a task involves adding, editing, or inspecting animation on a node.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-use-motion\u002FSKILL.md",[],[73,74,112,75,113,100,114,79,115,116,83,117,118,119,101,120,121,122,123,23],"figma use motion","motion","Animation","node","editing","Nodes","task","keyframes","via","styles","manual","load",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M6QQJNZ067ZRXZ6A0QB9M6SB","figma-use-figjam","This skill helps agents use Figma's use_figma MCP tool in the FigJam context. Can be used alongside figma-use which has foundational context for using the use_figma tool.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-use-figjam\u002FSKILL.md",[],[73,74,131,75,100,79,83,101,102,103,23,104],"figma use figjam",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":39},"01M6QQJ7NEHXPE33VRVHYYM7YE","figma-swiftui","SwiftUI ↔ Figma translation. Use whenever the user mentions Swift, SwiftUI, iOS, iPhone, or iPad — in EITHER direction — translating a Figma design into SwiftUI (design → code), or pushing SwiftUI views \u002F screens \u002F tokens back into a Figma file (code → design). Triggers on phrases like 'implement this Figma design in SwiftUI', 'build this screen in Swift', 'push this SwiftUI view to Figma', 'mirror my Swift code in a Figma file', or whenever a Figma URL appears alongside `.swift` files \u002F an `.xcodeproj`. Routes to a direction-specific reference doc; loads alongside `figma-use` for the code → design path.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-swiftui\u002FSKILL.md",[],[74,139,140,141,142,143,144,145,146,147,148,149,150,151,101,152,153,154,155,156],"figma swiftui","swiftui","design","swift","code","push","doc","files","translation","back","either","iphone","ipad","screen","direction","URL","my","path",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":39},"01M6QQJ3WZ3M90BZQ5TD305PKN","figma-shaders","**MANDATORY prerequisite** — load this skill before calling `create_shader` or `update_shader`. Use when the user asks to create, author, change, fix, or iterate on a shader effect, shader fill, custom effect, custom fill, or procedural shader in Figma.","https:\u002F\u002Fgithub.com\u002FSimaDevelopment\u002Fopsiforce\u002Fblob\u002Fmain\u002Ffrontend\u002Fopencode\u002Fpackages\u002Fplugins\u002Ffigma\u002Fskills\u002Ffigma-shaders\u002FSKILL.md",[],[164,74,165,166,77,167,168,169,170,75,171,172,101,173,123,174,175,176,177],"shaders","figma shaders","change","update","effect","user","fix","shader","calling","procedural","fill","iterate","custom","author"]