MateClaw is a pluggable agent runtime that coordinates AI agents, tools, conversations, memory, and workflows. It is designed for personal and multi-user AI assistants, including agents used through chat platforms. Catalogue add-ons provide skills for extending its agent workflows.
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 skills add mateaix/mateclaw --skill file_readergit clone --depth 1 https://github.com/mateaix/mateclawWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mateaix/mateclaw/file_reader)<a href="https://agentmods.dev/skills/mateaix/mateclaw/file_reader"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/file_reader/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mateaix/mateclaw/file_reader"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/file_reader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What 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.1 | $0.00036 | $0.00697 |
| Opus 5.5 | $0.00014 | $0.00279 |
| Sonnet 5.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 3mo 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.
- 3mo 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,218 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 697 once invoked, about $0.0001 per session on Opus 5.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.
file_reader compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| file_readermateaix/mateclaw | Skill | 1.2k | today | Apache-2.0 | A | 36 | Claude Code, Codex |
| appjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| openclaw-security-checkerjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| pentest-whitebox-code-reviewjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| pentest-api-deepjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| pentest-business-logicjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| seclens-enterprise-webjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |