File Preview
by 糟糕西瓜
Structured file parser that extracts and renders Excel, PPT, Word, and PDF data into clean Markdown.
Free
File Preview
Example session with this skill installed
Preview the contents of the attached 'Q4_Report.xlsx' and let me know the total revenue listed in the first sheet.
- Read your context and instructions
- Compiled the file preview
I have parsed the Excel file Q4_Report.xlsx. It contains 3 sheets: Summary, Regional_Data, and Projections. The primary sheet contains 152 rows of data.
File Preview: Q4_Report.xlsx (Summary)
| Month | Region | Revenue | Expenses | Net Profit |
|---|---|---|---|---|
| October | North | $45,200 | $30,000 | $15,200 |
| October | South | $38,900 | $28,500 | $10,400 |
| November | North | $51,000 | $32,000 | $19,000 |
| November | South | $42,150 | $29,000 | $13,150 |
| December | North | $68,400 | $40,000 | $28,400 |
| December | South | $55,300 | $35,500 | $19,800 |
Note: Showing first 6 rows of 152 total rows.
The total revenue for the Q4 period listed in the Summary sheet is $300,950.
Next steps
- Would you like me to calculate the average margin across all regions?
- Should I extract the data from the 'Regional_Data' sheet for a deeper breakdown?
- I can generate a summary of the 'Projections' sheet if needed.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop guessing what is inside binary Office files. Most LLMs struggle to read .xlsx or .pptx files directly, often leading to hallucinations or errors when users upload complex spreadsheets and slide decks. This skill provides a structured bridge, using a Python-based parser to extract raw data and present it as clean, readable Markdown.
What it does
- Extracts structured data from Excel, Word, PPT, PDF, CSV, and raw text files without external heavy dependencies.
- Handles legacy formats by including a custom OLE2 parser for
.xls(BIFF8) files to retrieve cell values and formula caches. - Generates document outlines from Word headers and PPT slide titles including speaker notes.
- Auto-detects encoding for text-based files, switching between UTF-8 and GBK to prevent character corruption.
- Metadata extraction for images including dimensions and format verification.
How it works
- Locate the file provided by the user via local path or attachment.
- Execute the preview script using
python scripts/preview.pywith optional flags for row or line limits. - Transform the JSON output into human-readable Markdown tables, outlines, or summaries based on the file type.
Frameworks & tools
Built with Python using standard libraries for binary parsing. It optionally supports pypdf or pdfplumber for enhanced PDF text extraction if available in the environment.
Why this beats prompting it yourself
Generic prompts often fail on binary file structures or produce "hallucinated" data when the context window is messy. This skill ensures every row, slide, and paragraph is grounded in actual file bytes before the AI even attempts to answer.
Use cases
- Auditing financial spreadsheets for specific line items.
- Summarizing multi-page PowerPoint decks without opening them.
- Extracting table data from Word documents into clean Markdown.
- Quick inspection of log files or source code with encoding detection.
Known limitations
Does not support legacy binary .doc or .ppt formats. Requires pypdf for PDF text extraction. Image content description requires an LLM with native vision capabilities.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 7 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.