rodydavis/open_xml/open-xml-docx

Claude Code and agent skill by rodydavis/open_xml

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Guide and examples for using OpenXML Docx features in the open_xml package.

Install

npx vskill@latest install rodydavis/open_xml/open-xml-docx

SKILL.md

OpenXML Word Documents (.docx)

The open_xml package allows for generating, editing, and parsing .docx documents.

Creating a Document

To create a new Word Document:

dart
import 'package:open_xml/open_xml.dart';
import 'package:file/local.dart';
Future<void> main() async {
const fs = LocalFileSystem();
final doc = await WordDocument.create(fs);
// Save the document
await doc.save(fs.file('example.docx'));
}

Adding Paragraphs and Text Runs

A WordDocument contains a sequence of elements, most commonly Paragraphs. A Paragraph contains a sequence of Runs.

dart
// Add a simple paragraph
doc.addParagraph(
Paragraph()
..addRun(Run(text: 'Hello, '))
..addRun(Run(
text: 'World!',
bold: true,
color: 'FF0000',
fontSize: 24,
)),
);
Run Formatting Options
  • bold: Boolean (true/false)
  • italic: Boolean (true/false)
  • underline: Boolean (true/false)
  • color: Hex color string (e.g. '00FF00')
  • fontSize: Integer representing half-points.
  • fontFamily: String representing font face.

Hyperlinks

Hyperlinks can be added to paragraphs easily:

dart
doc.addParagraph(
Paragraph()
..addHyperlink(
'Visit Google',
'https://google.com',
),
);

Comments

You can insert comments on a specific text range:

dart
doc.addParagraph(
Paragraph()
..addComment(
author: 'Author Name',
text: 'This is a comment on the text',
initials: 'AN',
run: Run(text: 'commented text'),
),
);

Markdown Conversion

You can generate a .docx document directly from Markdown, or extract Markdown from an existing .docx.

Markdown to Docx
dart
final markdown = '''
# Heading 1
This is a paragraph with **bold** and *italic* text.
''';
await doc.addMarkdown(markdown);
Docx to Markdown
dart
final existingDoc = await WordDocument.open(fs.file('my_doc.docx'));
final markdownText = existingDoc.toMarkdown();
print(markdownText);

Parsing Docx Files

You can extract text nodes or navigate through paragraphs in existing documents:

dart
final existingDoc = await WordDocument.open(fs.file('my_doc.docx'));
// Iterate over text runs
for (final text in existingDoc.parseText()) {
print(text);
}

Examples

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
56
Repository forks
11
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 May 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rodydavis/open_xml/open-xml-docx/badge)](https://verified-skill.com/skills/rodydavis/open_xml/open-xml-docx)

Something wrong with this skill or its page? Tell us.