Chuyển đến nội dung
Skillpedia
Khác37k · #7577

file_reader

Skill này làm gì

Skill này đọc các file văn bản thuần và tóm tắt những gì có trong đó. Skill dành cho bất kỳ ai muốn các ý chính của một file dữ liệu hoặc log mà không cần đọc từng dòng.

Khi nào nên dùng

  • ✓Khi bạn muốn tóm tắt một file CSV, JSON hoặc YAML.
  • ✓Khi bạn cần các lỗi mới nhất trong một file log lớn.
  • ✓Khi bạn muốn nội dung chính của một file mã nguồn hoặc cấu hình được giải thích.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/file_reader-en/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tóm tắt các cột chính và vài dòng đầu của file CSV bán hàng này.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill kiểm tra loại file trước, rồi chỉ đọc phần cần thiết. Với file có cấu trúc, nó hiển thị các trường hoặc cột cấp cao nhất, còn với log lớn nó xem các dòng gần đây nhất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Skill có đọc được PDF hoặc file Word không?

Không. Các định dạng đó do skill khác xử lý.

Skill có chạy file tôi đưa vào không?

Không. Skill không bao giờ thực thi file chưa rõ nguồn và chỉ đọc chúng.

Còn các file rất lớn thì sao?

Skill đọc phần nhỏ nhất có ích, ví dụ 200 dòng cuối của một file log.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
37k
Vị trí xếp hạng
#7577
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự