MCPInstall

syncfusion-dotnet-word

Create, edit, format, and convert Word (.docx) documents using Syncfusion DocIO for .NET. Use this skill for Word processing and DOCX automation when the user asks to generate Word files, modify document content, insert tables or images, apply formatting, automate document workflows, or convert Word to PDF using C code or CSX execution.

Installs
355
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-dotnet-word
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-dotnet-word automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Word (DOCX) Document Processing

Overview

Create, edit, and convert Word (.docx, .doc) files using the Syncfusion Word Library. This skill supports two operational modes — generating C# code for the user's project or executing tasks directly through a CSX script.

Key Capabilities

  • Create & Edit: Documents (.docx, .doc, .rtf, .txt, .xml), paragraphs, headings, styles, lists, tables, charts, shapes, images, hyperlinks, bookmarks, watermarks, headers/footers, form fields, content controls, SmartArt, OLE objects, embed fonts while saving Word documents
  • Advanced Features: Mail merge (DataTable, JSON, XML, custom objects), track changes, comments, mathematical equations (LaTeX), compare/split/merge documents, table of contents
  • Conversion: Word to PDF (font embedding, custom font registration, PDF/A, accessibility), Word to Image (PNG, JPEG, BMP, TIFF, custom font registration), HTML ↔ DOCX, RTF ↔ DOCX, Text ↔ DOCX, XML ↔ DOCX
  • Security: Password encryption/decryption, document protection with editable ranges, macro management, and digital signatures

Prerequisites

Quick Start Examples

Example 1: Generate Code (Mode 1)

User: "Show me how to create a Word document with a table"

Result: C# code snippet displayed (no files created)

Example 2: Execute Task (Mode 2)

User: "Create a Word document with a table at output/report.docx"

Result: Physical file created at specified path

Two Modes — Choose Based on User Intent

Before choosing a mode, infer what the user wants to accomplish:

Mode 1: Generate C# Code for the User's Project (default)

Use this mode when the user wants to view, write, review, refactor, or modify C# code related to Word processing.

Trigger keywords: "show me how", "how to", "how can I", "how do I", "provide code", "provide an example", "give an example", "demonstrate", "code snippet", "sample code", "example", "sample", "give me", "show me", "Program.cs", "example code", "generate code for", "codesnippet"

Workflow:

Step 1 — Detect the Application Type and Suggest the Correct NuGet Package(s)

  • Inspect the workspace project files (.csproj, web.config, App.config, Startup.cs, Program.cs, etc.) and use the detection signals table in references/nuget-packages.md to identify the application type.
  • Look up the correct package(s) from references/nuget-packages.md based on the detected app type and tell the user to install them before generating any code.

Step 2 — Generate Code from Reference Files Only

Do NOT invent, guess, or suggest any API, method, property, class, or namespace not explicitly present in the reference files.

  • Read the relevant references/*.md file(s) for the requested feature
  • Build C# code strictly from the APIs and snippets found in those files
  • Select the correct snippet variant based on the app type detected in Step 1:
    • Windows-specific apps (WinForms, WPF, .NET Framework Console, ASP.NET MVC5) → use Windows-specific snippets
    • Cross-platform apps (ASP.NET Core, .NET Core/.NET 5+ Console, Blazor, MAUI) → use cross-platform / .Net.Core snippets
  • Do not create or run any .csx script

Mode 2: Execute via CSX Script (does not touch project files)

Use this mode only when the user explicitly requests execution, file generation, or a fully produced output (such as a completed Docx file).

Trigger keywords: "create a word document", "make a document", "generate a document", "open", "edit", "modify", "change" a .docx file, "without modifying my project", "run a csx script", or when the user provides a file path (e.g., output/report.docx).

Workflow:

Step 1 — Create Temp CSX Script

  • Start with references/template.csx as the base
  • Create at: {skill-root}/syncfusion-dotnet-word/scripts/temp-{uniqueId}.csx (e.g., skill-root = .codestudio/skills)
  • Use random GUID for unique filename (e.g., temp-a3f7b2c1.csx); never create in workspace root

Step 2 — Build Script from Reference Files

  • Do NOT invent APIs/methods not in reference files
  • Read relevant references/*.md file(s) and extract code snippets
  • Replace all placeholders: file paths, document properties, data values, field names, etc.

Step 3 — Execute Script

  • Run: dotnet script {skill-root}/syncfusion-dotnet-word/scripts/temp-{uniqueId}.csx
  • Verify successful execution and capture any errors

Step 4 — Clean Up and Report

  • Delete the temp .csx file after execution
  • Report SUCCESS/ERROR with output file path(s) and any error messages with fixes

Code References

All templates and snippets are in the references/ folder:

FileContents
template.csxBase CSX script structure (Mode 2 only)
document-structure.mdCreate/load document, add sections, page setup, save to file or stream, embed fonts while saving DOCX, supported formats
styles-and-formats.mdParagraphs, headings, bullet & numbered lists
paragraph-and-styles.mdAdd paragraphs, paragraph formatting, styles (built-in/custom), text formatting, tab stops, breaks, symbols, text boxes
tables.mdCreate tables, cell formatting, merge cells
bookmarks.mdCreate bookmarks, navigate, retrieve, insert, replace, delete content, Bookmark end positioning options
charts.mdCreate charts from scratch/Excel, modify data, refresh, customize elements, 3D formatting, convert to image
shapes.mdAdd shapes, format, rotate, group, ungroup shapes
mail-merge.mdSimple field merge, merge with regions (groups), nested merge, DataTable, dynamic objects, business objects, DataView, XML, JSON, image merge fields, merge events (MergeField, MergeImageField, BeforeClearField, BeforeClearGroupField), field mapping, retrieve merge field names, remove empty paragraphs, clear fields option
form-fields.mdAdd checkboxes, dropdowns, text input fields, modify properties
macros.mdLoad/save macro-enabled documents (DOTM, DOCM), check for macros, remove macros, preserve macros through conversion
mathematical-equation.mdCreate equations (fraction, radical, matrix, N-array, etc.), modify existing equations, LaTeX support, equation formatting
split-word-documents.mdSplit documents by sections, headings, bookmarks, placeholder text
merge-word-documents.mdMerge documents in new page, same page, maintain imported list styles
table-of-contents.mdAdd TOC, update, apply switches, custom styles, table of figures, remove TOC
compare-word-documents.mdCompare two Word documents, set author and date, comparison options, ignore format changes
html-conversions.mdConvert HTML to DOCX, convert DOCX to HTML, XHTML validation, customize images (import/export), CSS selectors, export options, headers/footers export
rtf-conversions.mdConvert RTF to DOCX, convert DOCX to RTF, preserve formatting and content
markdown-conversion.mdConvert Markdown to DOCX, convert DOCX to Markdown, customize images, CommonMark and GitHub-flavored syntax support
text-conversions.mdConvert Text to DOCX, convert DOCX to Text, extract plain text, preserve text content
xml-conversions.mdConvert Word to XML (WordML), convert XML to Word, Word Processing XML format (2007+)
word-to-pdf.mdConvert DOCX to PDF, embed fonts, custom font registration, PDF/A conformance, accessible PDF, preserve form fields, font substitution, fallback fonts by script type and Unicode ranges
word-to-image.mdConvert DOCX to Image, custom font registration, convert specific page or page range to image
word-to-odt.mdConvert Word to ODT, preserve formatting and content, supported document elements, text formatting
encryption.mdEncrypt with password, open encrypted doc, remove encryption, protect from editing, editable ranges
digital-signature.mdAdd invisible digital signatures, insert and sign one or multiple visible signature lines, specify the signature standard, validate, inspect, and remove signatures; snippets are common to cross-platform and Windows-specific apps
watermark.mdText and picture watermarks, watermark layout, scaling, washout effect, remove watermark
find-and-replace.mdFind/FindAll/FindNext, Replace (string/regex), ReplaceSingleLine, and FindItem* APIs
footnotes-and-endnotes.mdAdd footnotes and endnotes, set positions (bottom of page/end of section), numbering formats, separators, modify content, remove notes
track-changes.mdEnable/disable track changes, accept/reject changes, filter by reviewer, revision information
comments.mdAdd/modify/remove comments, insert on specific text, access parent comments, retrieve commented items
content-controls.mdBlock and inline content controls, types (rich text, plain text, checkbox, date, dropdown, picture), properties, protection, form filling, XML mapping
header-footer.mdAdd/remove headers and footers, page numbers with fields (date, time), odd/even pages, first page different, borders, images, link to previous
hyperlinks.mdWeb hyperlink, email hyperlink, file hyperlink, bookmark hyperlink, image hyperlink, modify hyperlink
ole-object.mdAdd embedded OLE objects, extract OLE objects to file, remove OLE objects, object types
smartarts.mdCreate SmartArt layouts, add/modify nodes, change appearance, assistant nodes, remove SmartArt

Rules

  • Output files go in ./output/ directory
  • Temp .csx scripts must be created inside {skill-root}/syncfusion-dotnet-word/scripts/ — never in the workspace root or customer scripts/ folder
  • Never use Python libraries (e.g., python-docx)
  • Never leave temp .csx files after execution

FAQ

What does the syncfusion-dotnet-word skill do?

Create, edit, format, and convert Word (.docx) documents using Syncfusion DocIO for .NET. Use this skill for Word processing and DOCX automation when the user asks to generate Word files, modify document content, insert tables or images, apply formatting, automate document workflows, or convert Word to PDF using C code or CSX execution.

How do I install syncfusion-dotnet-word?

Run npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-dotnet-word in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-dotnet-word/ (personal) or .claude/skills/syncfusion-dotnet-word/ (project).

Which AI agents can use syncfusion-dotnet-word?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-dotnet-word safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-dotnet-word?

It is published by syncfusion in syncfusion/document-sdk-skills. It has 355 recorded installs.

More from syncfusion/document-sdk-skills

View all →

syncfusion-dotnet-powerpoint

syncfusion/document-sdk-skills

Open the skill to read its SKILL.md instructions.

Backend & APIs148 installs

syncfusion-dotnet-pdf

syncfusion/document-sdk-skills

Create, read, edit, secure, sign, and convert PDF documents (.pdf) using Syncfusion PDF Library for .NET. Use this skill for PDF processing and document automation when the user asks to generate PDF files, modify PDF content, add security or signatures, extract text or images, merge or split PDFs, or perform PDF/A conversion using C code or CSX execution.

Docs & Writing142 installs

syncfusion-dotnet-excel

syncfusion/document-sdk-skills

Create, edit, and convert Excel workbooks (.xlsx/.xls) using Syncfusion XlsIO. Supports two modes — generate C code for the user's project, or execute a temporary CSX script. Use when the user mentions Excel, xlsx, workbook, template markers, Syncfusion XlsIO, PDF conversion, or custom fonts for Excel-to-PDF or Excel-to-Image conversion.

Data & Databases134 installs

syncfusion-java-word

syncfusion/document-sdk-skills

Create, edit, and convert Word documents (.docx) using Syncfusion DocIO. Supports to generate java code for the user's project. Use when the user mentions docx, Word processing, document generation, Syncfusion DocIO, or syncfusion java word.

Docs & Writing111 installs

syncfusion-javascript-pdf

syncfusion/document-sdk-skills

Provides comprehensive guidance for implementing the Syncfusion JavaScript PDF library (@syncfusion/ej2-pdf) to create and manipulate PDF documents programmatically across TypeScript, JavaScript, Angular, React, Vue, and ASP.NET platforms. Use this when working with PDF creation, tables, lists, form filling, annotations, encryption, document merging/splitting, text or image extraction, or digital signatures.

Docs & Writing100 installs

syncfusion-dotnet-pdf-to-image

syncfusion/document-sdk-skills

Open the skill to read its SKILL.md instructions.

Backend & APIs98 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs