$npx -y skills add axoviq-ai/synthadoc --skill xlsxExtract data from Excel and CSV files
| 1 | # XLSX Skill |
| 2 | |
| 3 | Reads `.xlsx` files using `openpyxl` and `.csv` files using the stdlib `csv` |
| 4 | module, returning all rows as comma-separated text. |
| 5 | |
| 6 | ## Setup |
| 7 | |
| 8 | ```bash |
| 9 | pip install openpyxl |
| 10 | ``` |
| 11 | |
| 12 | `.csv` files use only the Python standard library — no additional install required. |
| 13 | |
| 14 | ## Standalone usage |
| 15 | |
| 16 | ```python |
| 17 | import asyncio |
| 18 | from synthadoc.skills.xlsx.scripts.main import XlsxSkill |
| 19 | |
| 20 | skill = XlsxSkill() |
| 21 | |
| 22 | async def main(): |
| 23 | result = await skill.extract("/path/to/data.xlsx") |
| 24 | print(result.text) # all rows as comma-separated text |
| 25 | print(result.metadata) # {"rows": N, "sheets": N} (xlsx only) |
| 26 | |
| 27 | asyncio.run(main()) |
| 28 | ``` |
| 29 | |
| 30 | ## When this skill is used |
| 31 | |
| 32 | - Source path ends with `.xlsx` or `.csv` |
| 33 | - User intent contains: `spreadsheet`, `excel`, `csv` |