deck-refreshlisted
Install: claude install-skill Borjani1577/claude-office-skills
# Deck Refresh
Update numbers across the deck. The deck is the source of truth for formatting; you're only changing values.
## Preflight: Dependency Check
Before starting (chat environment only), verify the required Python library is installed and install it if missing.
```bash
python3 -c "import pptx" 2>/dev/null || python3 -m pip install python-pptx
```
| Library / Tool | Purpose | Required |
|---|---|---|
| `python-pptx` | Read the uploaded `.pptx`, edit text runs / table cells / chart data, and write the refreshed deck back out | Yes (chat path) |
**Important**: Do not skip this step — the chat-mode edit workflow will fail without `python-pptx`. Office JS environment (PowerPoint Add-in) has no Python dependency.
## Environment check
This skill works in both the PowerPoint add-in and chat. Identify which you're in before starting — the edit mechanism differs, the intent doesn't:
- **Add-in** — the deck is open live; edit text runs, table cells, and chart data directly.
- **Chat** — the deck is an uploaded file; edit it by regenerating the affected slides with the new values and writing the result back.
Either way: smallest possible change, existing formatting stays intact.
This is a four-phase process and the third phase is an approval gate. Don't edit until the user has seen the plan.
## Phase 1 — Get the data
Use `ask_user_question` to find out how the new numbers are arriving:
- **Pasted mapping** — user types or pastes "revenue $485M → $512M, EBITDA $120M