本文へスキップ
Skillpedia
その他37k · #7577

file_reader

できること

このスキルは、プレーンテキストのファイルを読み、その内容を要約します。データやログのファイルの要点を、1行ずつ読まずに知りたい人向けです。

使う場面

  • ✓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に貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル