file-reading

Route uploaded files to parsing workflows based on file type and size.

112|26|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/Wide-Moat/open-computer-use --skill file-reading-wide-moat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-reading
Source: https://github.com/Wide-Moat/open-computer-use/tree/main/skills/public/file-reading
Command: npx skills add https://github.com/Wide-Moat/open-computer-use --skill file-reading-wide-moat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents large or binary uploaded files from being incorrectly read (for example, avoiding binary garbage from PDFs and context flooding from big CSVs) by choosing the correct reading approach based on file type.

Core Features & Use Cases

  • Smart dispatch by extension: Selects an appropriate first move for PDFs, spreadsheets, documents, archives, JSON, text, and more.
  • Size-aware reading: Encourages sampling and lightweight inspection (stat/file/wc) before loading full contents.
  • Hand-off to specialized skills: Routes to dedicated skills for deeper PDF/docx/xlsx/pptx processing instead of overloading one workflow.
  • Archive safety: Recommends listing archive contents and avoiding auto-extraction unless explicitly requested.

Quick Start

Use the file-reading skill to decide how to read the uploaded file at /mnt/user-data/uploads/report.pdf without cat-ing it blindly.

Frequently Asked Questions about file-reading

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read uploaded PDFs without getting binary garbage in the output?

Routing uploaded PDFs to a dedicated parsing workflow prevents binary garbage by using pre-read inspection tools like pdfinfo, ensuring the model reads the correct format instead of raw binary data.

What's the best way to parse large CSV files without flooding the model's context?

The best way to parse large CSV files without context flooding is size-aware reading, which uses lightweight inspection tools like stat and wc to sample contents before loading the full spreadsheet into the model's context.

How does file routing work for uploaded documents in the /mnt/user-data/uploads directory?

File routing for uploaded documents works through extension-based dispatch, inspecting the file path under /mnt/user-data/uploads to select the appropriate parsing workflow based on the specific file type and format.

Can I safely extract archived files uploaded for document parsing?

You can safely process uploaded archives by listing their contents first without auto-extraction. This archive safety precaution prevents unexpected file overflows unless explicit extraction is requested by the user.

Does this file routing approach handle Office formats like docx, xlsx, and pptx?

Yes, this file routing approach handles Office formats by applying dedicated hand-offs to specialized skills for deeper docx, xlsx, and pptx processing, preventing the model from overloading a single workflow.