SkillsLib.ai

File Reading

Detect file types and read uploads without binary garbage or context overflow

4.4(50 reviews)
1,000+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

When a user uploads a file to Claude, you can intelligently detect its type and read it using the appropriate method. Instead of blindly running cat on binary files or loading massive CSVs into context, this skill routes each file type to the right tool, reading only what's needed to answer the user's question. You'll extract text from PDFs, parse structured data from CSVs and JSON, process images, and decompress archives—all without wasting context or producing garbage output.

Features

Automatic file type detection

inspect extension and MIME type to route correctly

Smart size checking

use stat before reading to avoid context overflow on large files

PDF extraction

read text content without binary garbage or formatting bloat

CSV/tabular sampling

load only rows needed, not entire 100MB datasets

Image inspection

extract metadata and visual content when applicable

Archive handling

list contents and decompress selectively without unpacking everything

JSON/structured data parsing

read and validate without line-wrapping display issues

Format-aware reading

DOCX, XLSX, ebooks, and plaintext use optimized extraction

Example Output

Example 1: CSV file uploaded

code
user: I uploaded a sales report. How many rows are there?

clyde: I'll check the file size and row count without loading the whole thing.

$ stat -c '%s bytes' /mnt/user-data/uploads/sales_2024.csv
47283945 bytes

$ wc -l /mnt/user-data/uploads/sales_2024.csv
125847 lines

→ Your CSV has approximately 125,847 rows of data (47 MB).

Example 2: PDF uploaded

code
user: Can you summarize the key findings in the research paper I uploaded?

clyde: I'll extract the text from the PDF.

$ file /mnt/user-data/uploads/research.pdf
PDF document, version 1.4

[PDF text extraction → first 2000 tokens of readable content]

→ The paper demonstrates that X correlates with Y under conditions Z...

Example 3: ZIP archive uploaded

code
user: What's in this backup file?

clyde: I'll list the archive contents.

$ unzip -l /mnt/user-data/uploads/backup.zip | head -20

→ Archive contains 342 files: configs/, data/, logs/, reports/...

What's Included

  • SKILL.md: core routing logic and protocol for each file type
  • File type dispatch table: extension-to-tool mapping for PDFs, CSVs, DOCX, XLSX, JSON, images, archives, ebooks
  • Stat & sampling checklist: when to check file size before reading
  • Context-safe extraction templates: snippets for each format to avoid overflow
  • Fallback protocol: how to handle unknown or corrupted file types

Who It's For

  • Data analysts — quickly sample large CSVs and tabular exports without context waste
  • Researchers — extract and summarize text from academic PDFs and documents
  • Engineers — inspect config files, logs, and structured data in archives
  • Product managers — read uploaded reports, spreadsheets, and presentation exports
  • Content reviewers — process batches of images, ebooks, and document formats

Best For

  • Reading uploaded files without seeing binary garbage or raw ZIP bytes
  • Sampling large datasets (CSVs, JSON logs) to answer specific questions quickly
  • Extracting text from multi-page PDFs for summarization or analysis
  • Inspecting archive contents before deciding what to decompress
  • Processing mixed file types in a single upload batch

You might also like

Notebooklm
$35
Backend4.3(51)
Notebooklm

You can automate the entire NotebookLM workflow programmatically—create notebooks, add diverse sources (URLs, PDFs, YouTube, audio, video, images), generate all artifact types including audio podcasts and interactive study guides, and download results in multiple formats. This skill unlocks capabilities not available in the web UI, making it ideal for batch processing, content pipelines, and research automation at scale.

Backend Code Review Assistant
$40
Backend Code Review Assistant

This skill systematically reviews backend code to uncover bugs, performance bottlenecks, security vulnerabilities, and architectural debt before deployment. You provide code (functions, diffs, or full files), and it delivers prioritized findings with detailed explanations and actionable fixes. Every review includes severity assessment, code examples, and concrete recommendations to improve quality and safety.

Music Licensing Rights Clearance Advisor
$25
Licensing4.2(11)
Music Licensing Rights Clearance Advisor

You can systematically identify all licensing requirements for a musical work across multiple territories, coordinate approvals from rights holders and collection societies, and generate legally compliant clearance letters and license terms. This skill maps composition rights (mechanical, performance, synchronization) and sound recording rights (master use, digital performance) while accounting for territory-specific regulations like EU directives, UK post-Brexit rules, and jurisdiction-specific collection society requirements.

Xlsx
$45
Xlsx

This skill lets you handle spreadsheet files as primary inputs and outputs. You can open and read existing Excel or CSV files, edit them by adding columns, computing formulas, and applying formatting, clean up messy or malformed data into proper spreadsheets, create new spreadsheets from scratch or from other data sources, and convert between tabular file formats. Every output file is delivered error-free and production-ready.

Lnget
$30
Backend4.2(44)
Lnget

Use lnget to fetch files and data from HTTP endpoints that require L402 Lightning micropayments. The tool automatically detects payment requirements (HTTP 402 responses), processes Lightning payments through your connected LND node, and retries requests—all without manual intervention. You can preview costs before paying, manage authentication tokens, and output results in machine-readable JSON or raw format.

Prove
$25
Backend4.4(46)
Prove

You can formally verify mathematical proofs by translating theorems into Lean 4 code, leveraging Mathlib's extensive library of formalized mathematics. The skill guides you through researching existing lemmas, designing proof strategies, testing approaches, implementing formal proofs, and verifying correctness—turning informal mathematical claims into machine-checked theorems without requiring deep Lean syntax expertise.

Product Self Knowledge
$25
Tier 24.0(28)
Product Self Knowledge

This skill prevents you from providing incorrect information about Anthropic's products by routing you to official documentation. You'll verify details about Claude API (models, rate limits, function calling, batch processing), Claude Code (installation, Node.js requirements, MCP integration), and Claude.ai (subscription tiers, feature limits) before answering user questions. Use it whenever you're uncertain about product specs, pricing, or capabilities.

Screenpipe Api
$25
Backend4.4(49)
Screenpipe Api

Query your local Screenpipe instance to retrieve screen recordings, audio transcriptions, UI element accessibility trees, keyboard/mouse input logs, and productivity analytics. You can search by keywords, filter by content type (audio, OCR, accessibility, input), set time ranges, and extract structured data about your applications, meetings, and work sessions without sending data to external servers.

$45.00