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
  • Authors
  • 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.

ProTermsPrivacyRefunds
Back to skills

Create Edit Word Excel Powerpoint

ASecurity

Create or modify Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files. Use when the user mentions Office, Word, Excel, PowerPoint, docx, xlsx, pptx, spreadsheets, presentations, or document export. Check dependencies first, and if a core library is missing, report it direct…

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentspythongoapi

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill create-edit-word-excel-powerpoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Edit Word Excel Powerpoint?

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

Security grade badge for Create Edit Word Excel Powerpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-create-edit-word-excel-powerpoint/badge)](https://www.skillsdirectory.com/skills/rondoflow-create-edit-word-excel-powerpoint)

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

Download with Pro
Files
SKILL.md
---
name: create-edit-word-excel-powerpoint
description: "Create or modify Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files. Use when the user mentions Office, Word, Excel, PowerPoint, docx, xlsx, pptx, spreadsheets, presentations, or document export. Check dependencies first, and if a core library is missing, report it direct…"
category: "Integrations"
author: community
version: "1.0.1"
icon: plug
---

# Office Document Handling

Use this skill for `.docx`, `.xlsx`, and `.pptx` files. Identify the file type first, check the required dependencies next, and then decide whether to create a new file or modify an existing one.

## Follow These Rules First

1. Confirm the target format first: Word uses `python-docx`, Excel uses `openpyxl`, and PowerPoint uses `python-pptx`.
2. Check whether the required dependency can be imported. If something is missing, tell the user exactly which package is required. Do not run `pip`, `pip3`, `python -m pip`, `sudo`, or similar install commands automatically.
3. When editing an existing file, preserve the original by default and save the result as a new file. Only overwrite the original if the user explicitly asks for that.
4. Do structural edits before visual fine-tuning. Avoid writing a large amount of low-value formatting code upfront.
5. Only open the matching document in `references/` when an advanced API is needed. Do not load every reference file into context at once.

## Dependency Tiers

### Core Dependencies

- `python-docx`: for Word documents.
- `openpyxl`: for Excel workbooks.
- `python-pptx`: for PowerPoint presentations.

### Optional Dependencies

- `pandas`: only needed when converting between DataFrames and Excel.
- `pillow`: only needed when inserting images into Excel.

## Check Dependencies

Use a read-only import check like this. If the check fails, stop implementation and report the missing package(s) directly.

```python
import importlib

PACKAGE_MAP = {
    "docx": "python-docx",
    "openpyxl": "openpyxl",
    "pptx": "python-pptx",
    "pandas": "pandas",
    "PIL": "pillow",
}

missing = []
for module_name, package_name in PACKAGE_MAP.items():
    try:
        importlib.import_module(module_name)
    except ModuleNotFoundError:
        missing.append(package_name)

print(missing)
```

Choose what to check based on the task:

- `.docx` tasks: check `docx`
- `.xlsx` tasks: check `openpyxl`
- `.pptx` tasks: check `pptx`
- DataFrame-related Excel tasks: also check `pandas`
- Excel image tasks: also check `PIL`

## Handle Word Documents

Use `python-docx` for `.docx` files.

### Create a New File

```python
from docx import Document

document = Document()
document.add_heading("Document Title", level=1)
document.add_paragraph("This is a paragraph.")
document.save("new_doc.docx")
```

### Modify an Existing File

```python
from docx import Document

document = Document("existing_doc.docx")
document.add_paragraph("Appended content")
document.save("updated_doc.docx")
```

### Read These Resources First

- Core API summary: `{baseDir}/references/docx_api_summary.md`
- Create example: `{baseDir}/scripts/create_basic_doc.py`
- Edit example: `{baseDir}/scripts/edit_existing_doc.py`

## Handle Excel Workbooks

Use `openpyxl` for `.xlsx` files.

### Create a New File

```python
from openpyxl import Workbook

wb = Workbook()
ws = wb.active
ws.title = "Data"
ws["A1"] = "Hello"
ws.append(["Data 1", "Data 2", "Data 3"])
wb.save("new_workbook.xlsx")
```

### Modify an Existing File

```python
from openpyxl import load_workbook

wb = load_workbook("existing_workbook.xlsx")
ws = wb["Sheet1"]
ws["A1"] = "Updated value"
wb.save("updated_workbook.xlsx")
```

### Read These Resources First

- Create example: `{baseDir}/scripts/create_basic_workbook.py`
- Charts: `{baseDir}/references/xlsx_charts.md`
- Advanced features: `{baseDir}/references/xlsx_features.md`
- DataFrame integration: `{baseDir}/references/xlsx_pandas.md`

## Handle PowerPoint Presentations

Use `python-pptx` for `.pptx` files.

### Create a New File

```python
from pptx import Presentation

prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "Slide Title"
slide.placeholders[1].text = "This is the content placeholder."
prs.save("new_presentation.pptx")
```

### Modify an Existing File

```python
from pptx import Presentation

prs = Presentation("existing_presentation.pptx")
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "New Slide"
slide.placeholders[1].text = "Additional content"
prs.save("updated_presentation.pptx")
```

### Read These Resources First

- API quick reference: `{baseDir}/references/pptx_api_reference.md`
- Chart guide: `{baseDir}/references/pptx_chart_guide.md`
- Full example: `{baseDir}/scripts/create_presentation.py`

## Resource Selection Rules

- Basic Word file creation only: start with `{baseDir}/scripts/create_basic_doc.py`
- Modify an existing Word file: start with `{baseDir}/scripts/edit_existing_doc.py`
- Basic Excel creation only: start with `{baseDir}/scripts/create_basic_workbook.py`
- Excel charts or conditional formatting: read `{baseDir}/references/xlsx_charts.md` or `{baseDir}/references/xlsx_features.md` first
- DataFrame, CSV to Excel, or worksheet analysis: confirm `pandas` is available, then read `{baseDir}/references/xlsx_pandas.md`
- Basic PowerPoint generation only: start with `{baseDir}/scripts/create_presentation.py`
- PowerPoint charts: read `{baseDir}/references/pptx_chart_guide.md` first

## Output Rules

- Always save to a concrete target filename. Do not leave changes only in memory.
- If the user does not provide a filename, use a clear default such as `report.docx`, `budget.xlsx`, or `deck.pptx`.
- For edits to existing files, default to `updated_*.ext` to avoid accidental overwrites.

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →