file_reader

Read and summarize text-based files from disk.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/hueidou/CoCo --skill file-reader-hueidou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file_reader
Source: https://github.com/hueidou/CoCo/tree/main/src/coco/agents/skills/file_reader
Command: npx skills add https://github.com/hueidou/CoCo --skill file-reader-hueidou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Read and summarize the contents of text-based files stored on disk, saving time and enabling quick insights without exposing you to binary or non-text data.

Core Features & Use Cases

  • Read and summarize text-based files such as .txt, .md, .json, .yaml, .csv, and logs.
  • Determine file type safely using a type probe before reading to avoid misclassification.
  • Summarize content by extracting key sections, top-level keys (for JSON/YAML), and first few rows (for CSV/TSV).
  • Large logs: for very large files, provide a concise tail window and summarize notable errors and patterns.

Quick Start

Simply ask me to read and summarize a local text file, and I will fetch its content and provide a concise summary.

Frequently Asked Questions about file_reader

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

FAQPage Schema
How do I read and summarize local text files quickly?

To read and summarize local text files, you can use a tool that fetches content via a read_file helper and automatically extracts key sections, top-level keys, or initial rows for quick insights. It safely probes file types before reading to prevent misclassification.

What is the best way to summarize large log files without loading everything?

Summarizing large log files is handled by providing a concise tail window of the content and extracting notable errors and patterns, preventing the need to load the entire file into memory while still highlighting critical information.

Can I read JSON and YAML files and extract their top-level keys?

Yes, you can read JSON and YAML files to extract their top-level keys for a quick structural overview. The tool safely probes the file type first and summarizes the content by identifying these primary structural elements.

Does this approach work with CSV files to preview data rows?

Reading CSV files works by fetching the content and summarizing the first few rows to give you a quick preview of the data. A type probe ensures the CSV is handled correctly without risking execution of untrusted binary data.

How does type detection prevent reading untrusted binaries?

Type detection prevents reading untrusted binaries by applying a safe type probe before fetching any content. This mechanism ensures that only text-based formats like .txt, .md, .json, .yaml, .csv, and logs are processed, avoiding misclassification and binary execution.

What text-based file formats are supported for quick content insights?

Supported text-based file formats include .txt, .md, .json, .yaml, .csv, and log files. The tool reads these formats from disk and provides quick insights by summarizing key sections, structural keys, or initial data rows.