Agent Skillsagentscope-ai/QwenPaw › file_reader

file_reader

GitHub

用于读取和总结本地文本类文件(如代码、日志、配置文件)。支持类型检测、大文件截断及结构化摘要,排除二进制格式。

src/qwenpaw/agents/skills/file_reader-en/SKILL.md agentscope-ai/QwenPaw

触发场景

用户请求读取或总结文本文件 需要查看代码或配置内容 分析大型日志文件

安装

npx skills add agentscope-ai/QwenPaw --skill file_reader -g -y
更多选项

非标准路径

npx skills add https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/file_reader-en -g -y

不安装直接使用

npx skills use agentscope-ai/QwenPaw@file_reader

指定 Agent (Claude Code)

npx skills add agentscope-ai/QwenPaw --skill file_reader -a claude-code -g -y

安装 repo 全部 skill

npx skills add agentscope-ai/QwenPaw --all -g -y

预览 repo 内 skill

npx skills add agentscope-ai/QwenPaw --list

SKILL.md

Frontmatter
{
    "name": "file_reader",
    "metadata": {
        "qwenpaw": {
            "emoji": "📄",
            "requires": []
        },
        "builtin_skill_version": "1.2"
    },
    "description": "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."
}

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.

版本历史

  • d744922 当前 2026-08-20 07:41

同 Skill 集合

plugins/bundle/cloudpaw/skills/alicloud_cli/SKILL.md
plugins/bundle/cloudpaw/skills/terraform-cli-setup/SKILL.md
plugins/bundle/cloudpaw/skills/terraform-skill/SKILL.md
plugins/bundle/computer-use/skills/computer_use/SKILL.md
src/qwenpaw/agents/skills/browser-en/SKILL.md
src/qwenpaw/agents/skills/browser-zh/SKILL.md
src/qwenpaw/agents/skills/channel_message-en/SKILL.md
src/qwenpaw/agents/skills/channel_message-zh/SKILL.md
src/qwenpaw/agents/skills/chat_with_agent-en/SKILL.md
src/qwenpaw/agents/skills/chat_with_agent-zh/SKILL.md
src/qwenpaw/agents/skills/cron-en/SKILL.md
src/qwenpaw/agents/skills/cron-zh/SKILL.md
src/qwenpaw/agents/skills/dingtalk_channel-en/SKILL.md
src/qwenpaw/agents/skills/dingtalk_channel-zh/SKILL.md
src/qwenpaw/agents/skills/docx-zh/SKILL.md
src/qwenpaw/agents/skills/file_reader-zh/SKILL.md
src/qwenpaw/agents/skills/guidance-en/SKILL.md
src/qwenpaw/agents/skills/guidance-zh/SKILL.md
src/qwenpaw/agents/skills/mailbox-en/SKILL.md
src/qwenpaw/agents/skills/mailbox-zh/SKILL.md
src/qwenpaw/agents/skills/make_plan-en/SKILL.md
src/qwenpaw/agents/skills/make_plan-zh/SKILL.md
src/qwenpaw/agents/skills/make-skill-en/SKILL.md
src/qwenpaw/agents/skills/make-skill-zh/SKILL.md
src/qwenpaw/agents/skills/multi_agent_collaboration-en/SKILL.md
src/qwenpaw/agents/skills/multi_agent_collaboration-zh/SKILL.md
src/qwenpaw/agents/skills/pdf-en/SKILL.md
src/qwenpaw/agents/skills/pdf-zh/SKILL.md
src/qwenpaw/agents/skills/pptx-zh/SKILL.md
src/qwenpaw/agents/skills/QA_source_index-en/SKILL.md
src/qwenpaw/agents/skills/QA_source_index-zh/SKILL.md
src/qwenpaw/agents/skills/xlsx-zh/SKILL.md
src/qwenpaw/agents/skills/docx-en/SKILL.md
src/qwenpaw/agents/skills/pptx-en/SKILL.md
src/qwenpaw/agents/skills/xlsx-en/SKILL.md

元信息

文件数
0
版本
5072269
Hash
433e9ba3
收录时间
2026-08-20 07:41

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