技能 效率工具 原样读取文本文件到标准输出

原样读取文本文件到标准输出

v20260803
text-file-read
本工具用于读取UTF-8文本文件的原始内容,并将其原样输出到标准输出。它专为需要将工件通过磁盘来回传输的元技能设计,允许用户在评审暂停时手动编辑结构化文件(如脚本或YAML)。与内置工具添加行号不同,本工具保留原始字节,非常适合后续的解析器处理。
获取技能
488 次下载
概览

text-file-read

Reads a UTF-8 text file and prints its contents verbatim to stdout (no line numbers, no decoration). Use this when a meta-skill needs to round-trip an artefact through disk between steps so the user can hand-edit the file during a clarify pause.

This skill exists alongside OpenSquilla's builtin read_file tool on purpose: read_file is designed for LLM display and prepends a lineno\t prefix to every line, which corrupts structured files (scripts, SRT, YAML) when piped back into downstream parsers. This skill returns the bytes unmodified.

Inputs (with:)

key required default notes
input yes Absolute path of the file to read.
max_bytes no 200000 Refuse to read files larger than this. Guards against accidental binary reads.

Output

The file's UTF-8 content on stdout. No trailing newline added or stripped.

Failure modes

  • Path missing → exit 1, stderr explains.
  • File exceeds max_bytes → exit 1, stderr carries the actual size.
  • Decode error → exit 1 (file isn't valid UTF-8).
信息
Category 效率工具
Name text-file-read
版本 v20260803
大小 2.56KB
更新时间 2026-08-04
语言