# File Reading

> Route a file to the right reader by extension (pptx, docx, xlsx, pdf, and plain text). Use as the entry point when asked to read or summarize an uploaded file of unknown type.

- Skill: `decocms/file-reading` (Agent Skill)
- Install (CLI): `npx skillmds@latest add decocms/file-reading`
- Raw SKILL.md: https://api.skillmd.com/api/skills/decocms/file-reading/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: decocms (https://skillmd.com/u/decocms)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/decocms/file-reading

---


# file-reading — router by file type

When asked to read or summarize a file, dispatch by extension to the
appropriate skill under `org/public/core/`:

| Extension     | Skill   | Script                                        |
| ------------- | ------- | --------------------------------------------- |
| `.pptx`       | `pptx`  | `python org/public/core/pptx/extract.py`   |
| `.docx`       | `docx`  | `python org/public/core/docx/extract.py`   |
| `.xlsx`       | `xlsx`  | `python org/public/core/xlsx/extract.py`   |
| `.pdf`        | `pdf`   | `python org/public/core/pdf/extract.py`    |
| `.txt`, `.md` | —       | `cat`                                         |
| `.csv`        | —       | `cat` (or `column -t -s,` for alignment)      |
| `.json`       | —       | `cat` (or `jq .` if structure matters)        |

For extensions not listed, read the corresponding `SKILL.md` under
`org/public/core/` if one exists, otherwise fall back to `file <path>` to
identify the format and proceed manually.

