file-reading

Route uploaded files to extension-based inspection methods with size checks and safe archive listing.

2|1|Updated May 17, 2026
One-click install
npx skills add https://github.com/rakibulism/agent-skills-os --skill file-reading-rakibulism
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-reading
Source: https://github.com/rakibulism/agent-skills-os/tree/main/skills/file-reading
Command: npx skills add https://github.com/rakibulism/agent-skills-os --skill file-reading-rakibulism

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you inspect uploaded files correctly when only the file path is available, avoiding the common mistake of reading every file as plain text and wasting context on binary or oversized content.

Core Features & Use Cases

  • Smart file dispatch: Chooses the right first-reading method based on file type, from PDFs and Office documents to spreadsheets, archives, images, JSON, and logs.
  • Size-aware reading: Encourages statting, sampling, and previewing files before loading them fully, which is essential for large CSVs, notebooks, and logs.
  • Safe archive handling: Lists archive contents first and avoids accidental extraction unless explicitly requested.
  • Use case: A user uploads a PDF, spreadsheet, or ZIP file and asks what is inside; this Skill tells the agent exactly how to read it efficiently and safely.

Quick Start

Use the file-reading skill to inspect the uploaded file at /mnt/user-data/uploads/ by choosing the correct reading method for its extension and reading only as much as needed to answer the user’s question.

Frequently Asked Questions about file-reading

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

FAQPage Schema
How do I inspect uploaded files without wasting context on binary or oversized content?

Inspect uploaded files by routing them to the correct reading method based on their extension. This approach statst and previews files first, avoiding the mistake of reading binary or oversized content fully and wasting context.

What is the best way to read large CSV files from a filesystem path?

The best way to read large CSV files is using size-aware reading methods that sample and preview the spreadsheet content first. This minimal-context preview preserves accuracy and prevents loading oversized logs or notebooks fully.

How do I safely list the contents of an archive file without extracting it?

Safely list archive contents by applying safe archive handling techniques that inspect the file first. This method lists what is inside the archive and avoids accidental extraction unless explicitly requested by the user.

Can I use extension-based dispatch to read PDFs, Office documents, and JSON from a directory?

Yes, you can use extension-based dispatch to route PDFs, Office documents, JSON, and images to the correct inspection method. This smart file dispatch chooses the right first-reading method when only a filesystem path is available.

Why does reading every uploaded file as plain text cause problems?

Reading every uploaded file as plain text causes problems because it blindly processes binary or oversized content. This wastes context and reduces accuracy, making size-aware reading and extension-based dispatch necessary.

Does file inspection work for logs and notebooks when only the file path is available?

Yes, file inspection works for logs and notebooks when only the file path is available. The skill applies size-aware reading by statting and sampling these files to provide minimal-context previews before loading them fully.