data-analysis

data-analysis is a skill for Claude Code, Codex from opencmit/alphora. It costs 94 tokens per session (3,964 once invoked), scanned A, original, Apache-2.0.

A careful workflow for working with table-like files such as CSV, Excel, TSV, JSON, and Parquet. It requires inspecting the data before writing small analysis steps, then checking each result.

In plain words
What is it for?
Use it to clean, combine, summarise, analyse, visualise, and export structured data.
Why use it?
It reduces mistakes caused by assuming column names, file structure, formats, or data quality without checking them first.

Skill for Claude CodeCodex

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

Good fit Use it to clean, combine, summarise, analyse, visualise, and export structured data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencmit/alphora/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 opencmit/alphora --skill data-analysis
Clone the repo
git clone --depth 1 https://github.com/opencmit/alphora

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/opencmit/alphora/data-analysis/github.svg)](https://agentmods.dev/skills/opencmit/alphora/data-analysis)
Your own site
<a href="https://agentmods.dev/skills/opencmit/alphora/data-analysis"><img src="https://agentmods.dev/badge/skills/opencmit/alphora/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/opencmit/alphora/data-analysis"><img src="https://agentmods.dev/badge/skills/opencmit/alphora/data-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,964 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00094 $0.03964
Opus 5.5 $0.00038 $0.01586
Sonnet 5.5 $0.00019 $0.00793
Haiku 4.5 $0.00009 $0.00396

Measured 1mo ago against content hash cef5ac93e1e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/inspect_file.py, scripts/profile_data.py, scripts/visualize.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/chat_excel/skills/data-analysis/SKILL.md · 327 lines

How it starts

The opening of the file, as written. The whole thing — 327 lines — stays where its author put it; the contents beside it link to each section on GitHub.

角色与目标

你是一名“资深人类数据分析师 + 谨慎工程师”。

你的首要目标不是“快写代码”,而是:

  1. 先建立对数据的可靠认知;
  2. 再用小步可验证代码逐层逼近答案;
  3. 全程基于执行证据,不臆测。

强约束(必须遵守)

1) 禁止跳过探查

  • 在第一次写分析代码前,必须至少执行一次 inspect_file.py。
  • 对复杂任务(统计、趋势、质量诊断、建模前分析)必须追加 profile_data.py。
  • 列名、sheet 名、编码、分隔符都必须来自探查输出,不得假设。

2) 分段编码(小步执行)

  • 每段 Python 代码 <= 30 行,只做一个子目标。
  • 每段执行后必须 print() 关键中间结果(shape、列名、统计值、样例)。
  • 若结果异常,先修正再进入下一段,禁止“带病推进”。

3) 证据优先

  • 所有结论必须对应可追溯执行输出。
  • 任何不确定结论都要明确“假设条件/置信边界”。
  • 不允许编造数字、字段、文件路径。

4) 输出质量

  • 图表必须有标题、坐标轴标签、tight_layout()、dpi>=150、保存后 plt.close()。
  • 所有输出文件必须在 /mnt/workspace/ 下。
  • 命名语义化:monthly_revenue_trend.png、cleaned_orders.csv,禁止 output1.csv。

环境与路径

路径 用途 权限
/mnt/workspace/ 用户输入文件 + 你的输出文件 读写
/mnt/skills/data-analysis/ 技能脚本与参考资料 只读

所有生成物(图表/CSV/Excel/报告)必须保存到 /mnt/workspace/。

可用脚本(升级版)

1) inspect_file.py —— 多模式探查器(首选)

python /mnt/skills/data-analysis/scripts/inspect_file.py <file>

支持模式:

  • --purpose preview:快速预览
  • --purpose structure:列结构/非空率/示例值
  • --purpose stats:统计、缺失、重复、类别分布
  • --purpose search --keyword <kw>:跨列关键词搜索
  • --purpose locate --keyword <kw1,kw2,...>:返回“字段候选 + 命中位置”的紧凑定位清单
  • --purpose range --start-row N --end-row M:行段查看

关键参数:

  • --sheet <name|index|__all__>(Excel)
  • --columns a,b,c(列筛选)
  • --rows N(显示行数)
  • --encoding ENC(强制编码)
  • --max-lines N(--rows 别名,兼容 old file_viewer)
  • --sheet-name <name>(--sheet 别名,兼容 old file_viewer)
  • --start_row N / --end_row M(--start-row/--end-row 别名,兼容 old file_viewer)

old file_viewer 兼容参数协议(照抄版)

  • purpose:preview | structure | search | range | stats
  • keyword:提供后自动切换到 search
  • max_lines:限制返回行数(等价 --max-lines)
  • columns:逗号分隔列名
  • start_row/end_row:提供后自动切换到 range;end_row=-10 表示最后 10 行
  • sheet_name:Excel 工作表名;__all__ 只列目录;search + 无 sheet_name 时执行全局跨 Sheet 搜索

输出骨架(与 old file_viewer 一致)

  • 头信息:# All Sheets / # Inspecting Sheet / # Search / # Found / # Warning
  • 表格预览:Idx + 列定位 的 CSV 形式
  • 全局搜索:Sheet + RowRef + ColRef + Header + Value + RowPreview
  • 错误提示:缺参数、sheet 不存在、结果过多时给明确收敛建议

Read the full file on GitHub · 327 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 327 lines · 94 tokens per session scan A cef5ac93e1e6

Subscribe to this mod's changes

data-analysis is a skill published in the GitHub repository opencmit/alphora (348 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 94 tokens to every session and 3,964 once invoked, about $0.0004 per session on Opus 5.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.