data-preview

Yikai-Liao's avatarfrom Yikai-Liao

当需要查看/预览各种数据尤其是非纯文本数据时使用此技能。例如:txt,xlsx,docx,pptx,pdf,mat,zip,rar。

0stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

The Data Preview skill empowers Claude to seamlessly inspect and visualize a wide array of file formats, including standard office documents (Word, Excel, PowerPoint, PDF), scientific data (MAT files), and compressed archives. By utilizing advanced conversion tools like MarkItDown, it transforms non-plain text data into readable Markdown, allowing for efficient information retrieval and data analysis without leaving the chat interface.

Use Cases

  • Instant Document Inspection: Quickly preview the contents of Word, Excel, and PDF reports to extract key insights without the need for external software.
  • Scientific Data Verification: Inspect .mat files and other specialized data formats to verify structures and values for research and reproducibility.
  • Efficient Archive Handling: Extract and preview specific files within ZIP or RAR archives to identify relevant data before full processing.
  • Optimized Large File Reading: Preview large text-based datasets by sampling specific line ranges, ensuring critical information is captured while preserving context window space.
namedata-preview
description当需要查看/预览各种数据尤其是非纯文本数据时使用此技能。例如:txt,xlsx,docx,pptx,pdf,mat,zip,rar。

纯文本数据查看

请直接调用内置工具读取文本文件,注意请不要一次性全部读取占用上下文,请限制行数,例如先只读前20行。

非纯文本数据查看

xlsx,docx,pptx,pdf

系统已经安装了markitdown命令行工具,用于预览xlsx,docx,pptx,pdf等数据,请务必将结果添加md后缀保存,方便以后再次阅读。 例如:

markitdown data.xlsx -o data.xlsx.md

转换后,使用文件读取工具查看data.xlsx.md

压缩包

禁止使用markitdown直接处理zip等压缩文件,这回导致缓慢的处理速度。任何压缩包请解压缩后处理。

mat

系统已经安装了mat_preview命令行工具,用于预览mat文件(该工具及其生成结果仅用于可复现性检验阶段),生成的结果是有截断的。 例如:

mat_preview ./data.mat --max-entries 10 --sample-k 20 -o ./data.mat.preview.json
``
data-preview – AI Agent Skills | Claude Skills