File Preview

    by 糟糕西瓜

    1

    Structured file parser that extracts and renders Excel, PPT, Word, and PDF data into clean Markdown.

    Free

    Security scanned

    Works with the AI Agents you already use

    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)

    MonthRegionRevenueExpensesNet Profit
    OctoberNorth$45,200$30,000$15,200
    OctoberSouth$38,900$28,500$10,400
    NovemberNorth$51,000$32,000$19,000
    NovemberSouth$42,150$29,000$13,150
    DecemberNorth$68,400$40,000$28,400
    DecemberSouth$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

    1. Would you like me to calculate the average margin across all regions?
    2. Should I extract the data from the 'Regional_Data' sheet for a deeper breakdown?
    3. I can generate a summary of the 'Projections' sheet if needed.
    Q4_Report.xlsx

    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

    1. Locate the file provided by the user via local path or attachment.
    2. Execute the preview script using python scripts/preview.py with optional flags for row or line limits.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the "hallucination" problem by pre-parsing binary files into Markdown. Instead of the AI guessing the contents of a spreadsheet or slide deck, it receives a structured text representation of the actual data, ensuring much higher accuracy.

    The skill supports modern Office formats (.docx, .xlsx, .pptx), PDF, CSV, and text files. It also features a specialized OLE2 parser for legacy .xls (Excel 97-2003) files, though it does not support legacy binary .doc or .ppt files.

    Yes, the skill includes a `preview.py` script that allows you to set optional flags for row or line limits. This is particularly useful for managing context window usage when dealing with massive spreadsheets or long documents.

    You receive the core Python parsing logic, the `preview.py` execution script, and documentation on how to map the JSON output into Markdown. It is a self-contained toolset ready for integration into your agent's workflow.

    The skill features an auto-detection system that toggles between UTF-8 and GBK encodings. This ensures that text-based files and logs are read correctly without the "mojibake" or broken characters often seen in generic parsers.

    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.

    Free