Agent Skillsopensquilla/opensquilla › text-file-read

text-file-read

GitHub

读取UTF-8文本文件并原样输出内容,避免内置工具添加行号导致结构化数据损坏。适用于需人工编辑中间文件的元技能场景,支持文件大小限制和错误处理。

src/opensquilla/skills/bundled/text-file-read/SKILL.md opensquilla/opensquilla

触发场景

需要原始文件内容供下游解析器使用 在流程中允许用户手动编辑文件

安装

npx skills add opensquilla/opensquilla --skill text-file-read -g -y
更多选项

非标准路径

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/text-file-read -g -y

不安装直接使用

npx skills use opensquilla/opensquilla@text-file-read

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill text-file-read -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "name": "text-file-read",
    "metadata": {
        "opensquilla": {
            "risk": "low",
            "requires": {
                "anyBins": [
                    "python",
                    "python3"
                ]
            },
            "capabilities": [
                "filesystem-read"
            ]
        }
    },
    "entrypoint": {
        "args": [
            "--input",
            "{{ with.input }}",
            "--max-bytes",
            "{{ with.max_bytes | default(200000) }}"
        ],
        "parse": "text",
        "command": "python {baseDir}\/scripts\/read.py",
        "timeout": 10
    },
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0"
    },
    "description": "Read a UTF-8 text file and emit its raw content on stdout. Tiny helper for meta-skills that need to round-trip an artefact through disk so the user can hand-edit it between steps (e.g. tweak script.txt during a review pause). Unlike the builtin read_file tool — which returns line-numbered output for model display — this returns bytes verbatim, suitable for downstream parsers.",
    "description_zh": "读取UTF-8文本文件并将其原始内容输出到stdout。为需要将产物往返磁盘以便用户在步骤间手动编辑的meta-skill提供的小工具(如评审暂停时修改script.txt)。与内置read_file工具(返回带行号的输出供模型显示)不同,本工具逐字节原样返回,适合下游解析器。"
}

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).

版本历史

  • f662be3 当前 2026-07-31 11:50
  • 7f72a32 2026-07-05 18:40

同 Skill 集合

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/http-fetch/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-js-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-python-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-rust-probe/SKILL.md
src/opensquilla/skills/bundled/subtitle-burner/SKILL.md
src/opensquilla/skills/bundled/swe-bench/SKILL.md
src/opensquilla/skills/bundled/title-card-image/SKILL.md
src/opensquilla/skills/bundled/video-merger/SKILL.md
src/opensquilla/skills/bundled/video-still-animator/SKILL.md
src/opensquilla/skills/bundled/voice-clone-lab/SKILL.md
src/opensquilla/skills/bundled/voice-conversion-studio/SKILL.md

元信息

文件数
0
版本
186b3c1
Hash
bf67aa8c
收录时间
2026-07-05 18:40

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 01:23
浙ICP备14020137号-1 $访客地图$