data-analysis

data-analysis is a skill for Claude Code, Codex from fuzhengwei/xfg-skills-template. It costs 58 tokens per session (541 once invoked), scanned A, original, Apache-2.0.

A workflow for examining CSV, TSV, and Excel spreadsheets. It can summarize the data, find missing or unusual values, clean a copy, calculate statistics, and create charts.

In plain words
What is it for?
Use it to inspect columns and data types, calculate averages or grouped results, detect duplicates and outliers, handle missing values, convert types, and save PNG charts.
Why use it?
It turns raw tables into information that is easier to understand and check. It also helps avoid damaging the original file by saving cleaned data separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect columns and data types, calculate averages or grouped results, detect duplicates and outliers, handle missing values, convert types, and save PNG charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fuzhengwei/xfg-skills-template/data-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fuzhengwei/xfg-skills-template --skill data-analysis
Clone the repo
git clone --depth 1 https://github.com/fuzhengwei/xfg-skills-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/data-analysis/github.svg)](https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/data-analysis)
Your own site
<a href="https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/data-analysis"><img src="https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/data-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/data-analysis"><img src="https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/data-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00541
Opus 5 $0.00029 $0.00270
Sonnet 5 $0.00012 $0.00108
Haiku 4.5 $0.00006 $0.00054

Measured 10d ago against content hash b9020f0a4557, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

data-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/data-analysis/SKILL.md · 71 lines

What it actually says

数据分析技能

对表格数据文件进行探索、分析和可视化。

支持的文件格式

  • CSV / TSV
  • Excel (.xlsx, .xls)

核心功能

1. 探索性分析

import pandas as pd

df = pd.read_csv("data.csv")
print(df.shape)           # 行数和列数
print(df.dtypes)          # 列类型
print(df.describe())      # 统计摘要
print(df.isnull().sum())  # 缺失值统计

2. 数据清洗

  • 处理缺失值:填充或删除
  • 去除重复行
  • 类型转换
  • 异常值检测

3. 数据可视化

使用 matplotlib 生成图表:

  • 柱状图:分类数据对比
  • 折线图:趋势分析
  • 散点图:相关性分析
  • 直方图:分布分析

4. 统计分析

  • 描述统计(均值、中位数、标准差)
  • 分组聚合
  • 相关性分析

工作流

  1. 读取数据文件,检查格式和编码
  2. 输出基本统计摘要
  3. 根据用户需求进行特定分析
  4. 生成图表时保存到文件并报告路径

输出规范

  • 统计结果使用 Markdown 表格
  • 图表保存为 PNG 文件
  • 清洗后的数据保存为新文件,不覆盖原始数据

Gotchas

  • 读取文件时始终指定 encoding='utf-8',中文数据可能需要 encoding='gbk'
  • Excel 文件使用 openpyxl 引擎:pd.read_excel(file, engine='openpyxl')
  • 生成图表后必须调用 plt.tight_layout() 避免标签截断
  • 中文字体设置:plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 71 lines · 58 tokens per session scan A b9020f0a4557

Subscribe to this mod's changes

data-analysis is a skill published in the GitHub repository fuzhengwei/xfg-skills-template (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 58 tokens to every session and 541 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.