Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mateaix/mateclaw/file_readernpx skills add mateaix/mateclaw --skill file_readergit clone --depth 1 https://github.com/mateaix/mateclawWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00036 | $0.00697 |
| Opus 5 | $0.00018 | $0.00349 |
| Sonnet 5 | $0.00007 | $0.00139 |
| Haiku 4.5 | $0.00004 | $0.00070 |
Grade A, and why
file_reader scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
文件读取
当用户要求读取或摘要本地文本文件时使用本技能。
不在范围内:PDF、Word (.docx)、Excel (.xlsx)、PPT (.pptx)、图片、音视频 — 这些由专用技能处理。
工作流程
第一步:类型探测(可选)
不确定文件类型时,先探测:
macOS / Linux:
execute_shell_command(command="file -b --mime-type \"/path/to/file\"")
Windows:
execute_shell_command(command="cmd /c \"echo %~x1\" & exit", timeoutSeconds=10)
或直接根据扩展名判断。
第二步:读取文件
read_file(filePath="/absolute/or/relative/path/to/file.txt")
读取特定行范围(大文件时):
read_file(filePath="/path/to/large.log", startLine=1, endLine=200)
第三步:处理内容
根据文件类型采用对应策略:
| 类型 | 处理方式 |
|---|---|
.txt / .md |
直接摘要或按用户需求处理 |
.json / .yaml |
先列出顶层键,再展开用户关注的字段 |
.csv / .tsv |
展示表头 + 前 5 行,再描述各列含义和数据规模 |
.log |
读取最后 200 行,聚焦错误/警告模式 |
| 源代码 | 说明文件作用,摘要核心逻辑,不逐行复述 |
大文件策略
文件超过 500 行时分段读取:
# 先读前 100 行了解结构
read_file(filePath="/path/to/big.log", startLine=1, endLine=100)
# 再读末尾 200 行看最新内容
read_file(filePath="/path/to/big.log", startLine=-200)
日志文件也可用系统命令读取末尾:
macOS / Linux:
execute_shell_command(command="tail -n 200 \"/path/to/file.log\"")
Windows:
execute_shell_command(command="powershell Get-Content -Tail 200 \"/path/to/file.log\"")
跨平台路径注意事项
- Windows:路径使用反斜杠
\或正斜杠/均可,但含空格时须加引号 - macOS / Linux:使用正斜杠
/,含空格时须加引号或转义
安全规范
- 只读取文件,不执行其内容
- 优先读取所需的最小部分,避免加载超大文件到上下文
- 如文件包含敏感信息(密码、密钥),提醒用户注意但不拒绝读取
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 91 lines · 36 tokens per session scan A e876c30cdfa2
file_reader is a skill published in the GitHub repository mateaix/mateclaw (1,061 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 697 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
make-skill
Use this skill when sedimenting a session into a reusable workspace skill. Triggers when the user wants to turn the current conversation, workflow, or troubleshooting path into a SKILL.md. Phrases like 'turn this into a skill', 'remember how I did X', 'save this workflow', 'make a skill from this', and any /make-skill…
make-skill
用于把当前会话沉淀为可复用的 workspace skill。当用户希望把当前对话、工作流或排错路径写成 SKILL.md 时触发。触发表达包括「把这个变成 skill」「记住我是怎么做 X 的」「保存这个工作流」「make a skill from this」以及任何 /make-skill 调用。.
terraform-skill
Use when working with Terraform or OpenTofu - creating modules, writing tests (native test framework, Terratest), setting up CI/CD pipelines, reviewing configurations, choosing between testing approaches, debugging state issues, implementing security scanning (trivy, checkov), or making infrastructure-as-code…
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…
docx
当用户需要创建、读取、编辑或处理 Word 文档(.docx)时,使用此技能。触发场景包括提到“Word 文档”、“.docx”,或要求生成带目录、标题、页码、信头等格式的专业文档;也包括提取或重组 .docx 内容、插入或替换图片、在 Word 文件中查找替换、处理修订或批注,以及将内容整理为正式 Word 文档。如果用户要求生成“报告”“备忘录”“信函”“模板”等 Word / .docx 交付物,也应使用此技能。不要用于 PDF、电子表格、Google Docs,或与文档生成无关的一般编程任务。.
multi_agent_collaboration
Use this skill when another agent's expertise or context is needed, or when the user explicitly asks to involve another agent. First list agents, then use qwenpaw agents chat for two-way communication with replies.