Skip to content
Skillpedia
Misc37k · #7577

file_reader

What it does

This skill reads plain text files and summarizes what is in them. It is for anyone who wants the key points of a data or log file without reading every line.

When to use it

  • ✓When you want a summary of a CSV, JSON, or YAML file.
  • ✓When you need the latest errors from a large log file.
  • ✓When you want the key content of a source code or configuration file explained.

Skill link

https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Summarize the main columns and first rows of this sales CSV file.”

5 new skills a week. 1 minute to read.

How it works

It checks the file type first, then reads only the part that is needed. For structured files it shows top-level fields or columns, and for large logs it looks at the most recent lines.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

File Reader Toolbox

Use this skill when the user asks to read or summarize local text-based files. PDFs, Office documents, images, audio, and video are out of scope for this skill and should be handled by their dedicated skills/tools.

Quick Type Check

Use a type probe before reading:

file -b --mime-type "/path/to/file"

If the file is large, avoid dumping the whole content; extract a small, relevant portion and summarize.

Text-Based Files (use read_file)

Preferred for: .txt, .md, .json, .yaml/.yml, .csv/.tsv, .log, .sql, ini, toml, py, js, html, xml source code.

Steps:

  1. Use read_file to fetch content.
  2. Summarize key sections or show the relevant slice requested by the user.
  3. For JSON/YAML, list top-level keys and important fields.
  4. For CSV/TSV, show header + first few rows, then summarize columns.

Large Logs

If the file is huge, use a tail window:

tail -n 200 "/path/to/file.log"

Summarize the last errors/warnings and notable patterns.

Out of Scope

Do not handle the following in this skill (they are covered by other skills):

  • PDF
  • Office (docx/xlsx/pptx)
  • Images
  • Audio/Video

Safety and Behavior

  • Never execute untrusted files.
  • Prefer reading the smallest portion necessary.
  • If a tool is missing, explain the limitation and ask the user for an alternate format.
FAQ

Can it read PDFs or Word files?

No. Those formats are handled by other skills.

Will it run the file I give it?

No. The skill never executes untrusted files and only reads them.

What about very large files?

It reads the smallest useful portion, such as the last 200 lines of a log.

Details

Original description by the author

Read and summarize text-based file types only. Prefer read_file for text formats; use execute_shell_command for type detection when needed. PDF/Office/images/archives are handled by other skills.

repo: agentscope-ai/QwenPaw

Popularity

GitHub stars
37k
Ranking position
#7577
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills