# Reading Documents (READ)

When the user wants to read, review, or analyze an existing document.

## Step 1: Extract text content

```bash
# Preferred: pandoc preserves tracked changes and outputs formatted text
pandoc --track-changes=all <document.docx> -t markdown -o /tmp/_docx_content.md
cat /tmp/_docx_content.md
```

If pandoc is not available, fall back to unpacking and reading raw XML:

```bash
cd "$SKILL_DIR" && uv run --project . python scripts/office/unpack.py <document.docx> /tmp/_tmp_docx_unpacked/
cat /tmp/_tmp_docx_unpacked/word/document.xml
```

## Step 2: Analyze and respond

Read the extracted content, then provide your analysis/review directly in your response. **No file is created. No JS is involved. No upload happens.**

## Step 3: Cleanup

```bash
rm -rf /tmp/_tmp_docx_unpacked/ /tmp/_docx_content.md
```
