read-file

Read workspace files with optional line-range slicing and base64 binary output.

6|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Acosmi/CrabClaw --skill read-file-acosmi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: read-file
Source: https://github.com/Acosmi/CrabClaw/tree/main/docs/skills/tools/fs/read-file
Command: npx skills add https://github.com/Acosmi/CrabClaw --skill read-file-acosmi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reading files across a workspace can be slow or risky when dealing with large files, binary content, or the need to target specific lines. This skill provides fast, deterministic access to file contents with optional line ranges, while respecting access policies.

Core Features & Use Cases

  • Global read access to any file in the workspace, including external paths, with optional line-range reads.
  • Line-based reads to fetch exact sections without loading entire files, enabling efficient code review, log inspection, and config analysis.
  • Safe handling of large files through from/lines slicing and encoding awareness; binary content returns base64 when applicable.

Quick Start

Read the file at path '/path/to/file.txt' from line 1 for 200 lines.

Frequently Asked Questions about read-file

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

FAQPage Schema
How do I read specific lines of a log file without loading the entire file?

Line-range slicing allows you to read specific lines of a log file by specifying from and lines parameters to fetch exact sections. This prevents loading entire files into memory during log inspection.

Can I read binary files and get base64 encoded content back?

Yes, reading binary files returns base64 encoded content when applicable. This encoding awareness ensures safe handling of binary assets alongside standard plain text file reads.

What is the best way to inspect code or configuration files across a workspace?

Global read access is the best way to inspect code or configuration files across a workspace, supporting both absolute and relative paths. It provides fast deterministic access to file contents for code review and config analysis.

Does this file reader work with absolute paths outside the current project directory?

Yes, the file reader works with absolute paths outside the current project directory by providing global read access to any file in the workspace, including external paths. It handles access restrictions robustly.

How do I handle missing files or access restrictions when reading configurations?

The reader provides robust handling for missing files and access restrictions when reading configurations, returning safe errors instead of crashing. This ensures deterministic access to file contents across the workspace.