phuetz/code-buddy/docx
Claude Code and agent skill by phuetz/code-buddy
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Create and edit Word documents (.docx): headings, styled paragraphs, tables, images, headers/footers, and page formatting. Use whenever the user asks to write, format, or modify a Word/.docx document.
Install
npx vskill@latest install phuetz/code-buddy/docxSKILL.md
Create & edit Word documents with python-docx
Build real .docx files with the open-source python-docx library (python3 -c "import docx"). Work in visible steps; verify before reporting done.
Workflow
- Outline the document: title, sections (headings), body, tables, images.
- Write a Python script (heredoc via the
bashtool) that assembles the
document with python-docx and saves it.
- Verify: reopen with
Document(path)and assert key paragraphs/headings
exist; print(path).
- Report the saved path + a one-line summary.
Quality conventions
- Use real heading styles (
doc.add_heading('Title', level=0),level=1/2) so the
document has a proper outline — not just bold text.
- Tables:
doc.add_table(rows, cols, style='Light Grid Accent 1'); bold the header row. - Embed images with
doc.add_picture(path, width=Inches(5)); add a caption paragraph. - Set page size/margins via
doc.sections[0]when the user specifies them. - Keep styling consistent; when editing an existing file, match its conventions.
Example
Reading / editing existing files
- Read text: iterate
Document(path).paragraphs/.tables, orpython3 -m markitdown file.docxif available. - Edit in place: load, modify runs/paragraphs/tables,
save()back; preserve tracked
changes and comments where present.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcowork/.claude/skills/docx/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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
[](https://verified-skill.com/skills/phuetz/code-buddy/docx)