Skip to content
Back to skills

Modify Existing Document

ASecurity

Sub-skill of docx: Modify Existing Document (+1).

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill modify-existing-document --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modify Existing Document?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Modify Existing Document
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-modify-existing-document/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-modify-existing-document)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docx-modify-existing-document
description: 'Sub-skill of docx: Modify Existing Document (+1).'
version: 1.1.0
category: data
type: reference
scripts_exempt: true
---

# Modify Existing Document (+1)

## Modify Existing Document


```python
from docx import Document

doc = Document("existing.docx")

# Replace text in paragraphs
for para in doc.paragraphs:
    if "old text" in para.text:
        for run in para.runs:
            run.text = run.text.replace("old text", "new text")

doc.save("modified.docx")
```

## Add Content to Existing Document


```python
from docx import Document

doc = Document("existing.docx")

# Add new paragraph at end
doc.add_paragraph("New paragraph added.")

# Add new section
doc.add_page_break()
doc.add_heading("New Section", level=1)
doc.add_paragraph("Content for new section.")

doc.save("modified.docx")
```

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.