360 Secure SkillHub
360 安全技能中心

Leo CSV Stats Analyzer

该 Skill 接收一个 CSV 文件路径,统计总行数与列数、列出全部列名,并对每个数值列计算最小值、最大值和平均值,以带表情符号的可读文本返回结果。它由辅助脚本 analyzer.py 实现,运行环境需要 uv 与 pandas 包,并明确不修改原始 CSV 文件。

leotrieu
leotrieu
热度 51.25
最近更新 2026-05-11 17:34:12
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add leo-csv-stats-analyzer
Metadata
name
csv-stats-analyzer
description
Analyzes any CSV file and returns row count, column names, and basic statistics for numeric columns.
user-invocable
true
metadata
{"emoji":"📊","requires":{"bins":["uv"]}}

Usage

Invoke with: /csv-stats-analyzer <path-to-csv-file>

Example: /csv-stats-analyzer ./sales.csv

Features

  • Shows total rows and columns
  • Lists all column names
  • Calculates min, max, and average for every numeric column

Rules

  • The CSV must exist and be readable.
  • Use the helper script at {baseDir}/analyzer.py
  • Run it with: uv run --with pandas {baseDir}/analyzer.py [csv-path]
  • Return the output in a clean, readable format with emojis.
  • Never modify the original CSV file.