跳到正文
Skillpedia
其他37k · #7577

file_reader

它能做什么

这项技能读取纯文本文件并总结其中的内容。适合希望在不逐行阅读的情况下,了解数据文件或日志要点的人。

适用场景

  • ✓当你想总结某个 CSV、JSON 或 YAML 文件的时候。
  • ✓当你需要从一个大型日志文件中找出最近的错误的时候。
  • ✓当你想让人解释某个源代码或配置文件的关键内容的时候。

技能链接

https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请总结这份销售 CSV 文件的主要列和前几行数据。”

每周 5 个新技能,1 分钟读完。

工作原理

它会先检查文件类型,然后只读取所需的部分。对于结构化文件,它会显示顶层字段或列;对于大型日志,它会查看最近的几行。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

File Reader Toolbox

Use this skill when the user asks to read or summarize local text-based files. PDFs, Office documents, images, audio, and video are out of scope for this skill and should be handled by their dedicated skills/tools.

Quick Type Check

Use a type probe before reading:

file -b --mime-type "/path/to/file"

If the file is large, avoid dumping the whole content; extract a small, relevant portion and summarize.

Text-Based Files (use read_file)

Preferred for: .txt, .md, .json, .yaml/.yml, .csv/.tsv, .log, .sql, ini, toml, py, js, html, xml source code.

Steps:

  1. Use read_file to fetch content.
  2. Summarize key sections or show the relevant slice requested by the user.
  3. For JSON/YAML, list top-level keys and important fields.
  4. For CSV/TSV, show header + first few rows, then summarize columns.

Large Logs

If the file is huge, use a tail window:

tail -n 200 "/path/to/file.log"

Summarize the last errors/warnings and notable patterns.

Out of Scope

Do not handle the following in this skill (they are covered by other skills):

  • PDF
  • Office (docx/xlsx/pptx)
  • Images
  • Audio/Video

Safety and Behavior

  • Never execute untrusted files.
  • Prefer reading the smallest portion necessary.
  • If a tool is missing, explain the limitation and ask the user for an alternate format.
常见问题

它能读取 PDF 或 Word 文件吗?

不能。这些格式由其他技能处理。

它会运行我给它的文件吗?

不会。技能从不执行不可信的文件,只会读取它们。

非常大的文件怎么办?

它只读取最小但有用的部分,例如日志的最后 200 行。

详情

作者的原始描述

Read and summarize text-based file types only. Prefer read_file for text formats; use execute_shell_command for type detection when needed. PDF/Office/images/archives are handled by other skills.

repo: agentscope-ai/QwenPaw

热度

GitHub 星标
37k
排名
#7577
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能