Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Docx Creation Skill

ASecurity

Create, read, edit Word (.docx) — TOCs, headings, letterheads, tracked changes, comments, images; report/memo/letter/template deliverables. Not PDFs, spreadsheets, or Google Docs.

6 stars
0 votes
0 copies
0 views
Added 9/20/2026
designpythongobash

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add darellchua2/opencode-config-template --skill docx-creation-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docx Creation Skill?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Docx Creation Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/darellchua2-docx-creation-skill/badge)](https://www.skillsdirectory.com/skills/darellchua2-docx-creation-skill)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: docx-creation-skill
description: >-
  Create, read, edit Word (.docx) — TOCs, headings, letterheads, tracked
  changes, comments, images; report/memo/letter/template deliverables. Not PDFs,
  spreadsheets, or Google Docs.
license: Apache-2.0
compatibility: opencode
category: Framework
---

## What I do

- Create new .docx via docx-js; read via pandoc or raw XML; edit by unpack → modify XML → repack
- Tracked changes (insertions/deletions), comments, images, tables, TOCs, letterheads
- Convert .doc→.docx, .docx→PDF, .docx→images

**Use for:** "Word doc" / .docx mentions; reports, memos, letters, templates; tracked-changes review.
**NOT for:** PDFs, spreadsheets, Google Docs, unrelated coding.

## Prerequisites

pandoc (extraction) · `npm install -g docx` (creation) · LibreOffice via `scripts/soffice.py` (PDF) · Poppler `pdftoppm` (images)

## House scripts

```bash
python scripts/soffice.py --headless --convert-to docx document.doc   # legacy .doc → .docx
pandoc --track-changes=all document.docx -o output.md                 # read incl. tracked changes
python scripts/unpack.py document.docx unpacked/                      # raw XML access
python scripts/accept_changes.py input.docx output.docx               # accept all tracked changes
python scripts/soffice.py --headless --convert-to pdf document.docx && pdftoppm -jpeg -r 150 document.pdf page
```

## Creating new documents (docx-js) — critical rules

Full code patterns: [`reference.md`](reference.md) (setup, styles, numbering, tables, images, hyperlinks, TOC, headers/footers).

- **Set page size explicitly** — docx-js defaults to A4; US Letter = 12240 × 15840 DXA (1440 DXA = 1″)
- **Never `\n`** — separate `Paragraph` elements
- **Never unicode bullets** — `numbering.config` with `LevelFormat.BULLET`; same reference continues numbering, different reference restarts
- **`PageBreak` must sit inside a `Paragraph`** — standalone is invalid XML
- **`ImageRun` requires `type`** (png/jpg/…) and `altText` with title+description+name
- **Tables: dual widths** — `columnWidths` array AND per-cell `width`, both DXA, summing to table width; `WidthType.DXA` only (percentages break in Google Docs)
- **`ShadingType.CLEAR`**, never SOLID (black backgrounds)
- **TOC requires `HeadingLevel` only** — override built-in styles by exact ID (`"Heading1"`) and include `outlineLevel` (0 for H1), else TOC won't generate

Validate after creation: `python scripts/validate.py doc.docx` — on failure, unpack, fix XML, repack.

## Editing existing documents — 3 steps, in order

1. `python scripts/unpack.py document.docx unpacked/` (pretty-prints, merges runs)
2. Edit `unpacked/word/*.xml` — patterns in [`reference.md`](reference.md) (tracked changes, comments, images, element order)
3. `python scripts/pack.py unpacked/ output.docx --original document.docx` (validates + auto-repairs)

House rules: tracked-change/comment author = **"Claude"** unless the user names another; smart quotes via XML entities (`’` `“` `”`) for new content.

## Design aesthetics — no generic AI slop

Documents must look designed, not generated. Avoid: Word-gallery defaults (blue headings, Calibri-everything), identical cookie-cutter sections, one font size throughout, equal-width thin-bordered tables, default blue/gray, unbroken walls of text, uneven spacing.

Every document gets ≥1 signature element: 3+ levels of typographic hierarchy (title 28–36pt bold / H1 20–24 / H2 16–18 / body 11–12), 1–2 consistent accent colors, styled table headers (fill + white text, horizontal borders only), pull quotes/callout boxes, generous whitespace (1–1.5″ margins), non-blank header/footer.

Before formatting ask: what is this document's visual identity, what should the reader feel, would a designer approve? (Per-type styling table in [`reference.md`](reference.md).)

## Verification

`validate.py` passes · opens in Word/LibreOffice clean · page size correct · tables/images/TOC/headers render · tracked changes visible in review pane.

Attribution

darellchua2darellchua2
View sourceMore from darellchua2 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Responsive Design

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

393432 votes

Mermaid Diagrams

Creating and refining Mermaid diagrams with live reload. Use when users want flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, or any other Mermaid visualization. Provides best practices for syntax, styling, and the iterative workflow using mermaid_preview and mermaid_save tools.

2032 votes

sleek-design-mobile-apps

Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests ("design an app that does X") and specific ones ("list my projects", "create a new project", "screenshot that screen").

5711 votes

swiftui-design-skill

SwiftUI frontend visual design skill. Creates beautiful, distinctive iOS/macOS interfaces that avoid generic AI slop patterns. Covers design direction, layout systems, typography, color, spacing, brand integration, and design review. Use when designing new SwiftUI views, reviewing UI quality, creating iOS prototypes, choosing visual styles, improving app aesthetics, or when the UI looks generic or AI-generated.

1801 votes

Ios Hig

Use when designing iOS interfaces, implementing accessibility (VoiceOver, Dynamic Type), handling dark mode, ensuring adequate touch targets, providing animation/haptic feedback, or requesting user permissions. Apple Human Interface Guidelines for iOS compliance.

761 votes
View all in design →