data-analysis

data-analysis is a skill for Claude Code from winstonkoh87/Athena-Public. It costs 30 tokens per session (1,193 once invoked), scanned A, original, MIT.

A data-analysis tool for examining large JSON, CSV, and Parquet files. It uses DuckDB, a database engine designed for querying data files, to ingest, profile, and query them.

In plain words
What is it for?
Use it to inspect data exports, run analytical queries, find patterns, and save extracted insights as case studies.
Why use it?
It avoids loading large files into memory or manually inspecting them. It also reports useful details such as columns, row counts, missing values, date ranges, and value distributions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .agent/scripts/data_engine.py ingest /path/to/data.json.

Good fit Use it to inspect data exports, run analytical queries, find patterns, and save extracted insights as case studies.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/winstonkoh87/Athena-Public
agentmods
npx agentmods add skills/winstonkoh87/athena-public/data-analysis

Made for: Claude Code.

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/winstonkoh87/athena-public/data-analysis/github.svg)](https://agentmods.dev/skills/winstonkoh87/athena-public/data-analysis)
Your own site
<a href="https://agentmods.dev/skills/winstonkoh87/athena-public/data-analysis"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/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/winstonkoh87/athena-public/data-analysis"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/data-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,193 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.00030 $0.01193
Opus 5 $0.00015 $0.00596
Sonnet 5 $0.00006 $0.00239
Haiku 4.5 $0.00003 $0.00119

Measured 9d ago against content hash f609575bd556, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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/skills/research/data-analysis/SKILL.md · 161 lines

How it starts

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

Data Analysis Skill (DuckDB Engine)

Wraps the Athena Data Engine (data_engine.py) for structured data analysis on large files.

Triggers

  • User provides a JSON, CSV, or Parquet file for analysis
  • "Analyze this data", "What's in this file", "Run some numbers on"
  • Any file > 10MB that needs analytical queries
  • /analyze workflow invocation

Dependencies

pip install duckdb

Core Scripts

Script Purpose
.agent/scripts/data_engine.py Core DuckDB wrapper — ingest, convert, query, profile
.agent/scripts/auto_file_insights.py Auto-file extracted insights as case studies

Pipeline

Phase 1: Ingest

python3 .agent/scripts/data_engine.py ingest /path/to/data.json

This will:

  1. Auto-detect format (JSON/CSV/Parquet)
  2. For Telegram exports: flatten nested text fields, extract metadata
  3. Convert to Parquet with ZSTD compression (cached alongside the original)
  4. Print schema, row count, nulls, date range, value distributions

Cache behavior: If a Parquet cache already exists and is newer than the source file, ingestion is skipped and the cache is used directly (instant).

Phase 2: Query

python3 .agent/scripts/data_engine.py query /path/to/.athena_cache/parquet/data.parquet \
    "SELECT COUNT(*) FROM data WHERE text LIKE '%math%'"

The Parquet file is registered as table data. Use standard SQL.

Common patterns:

-- Row count
SELECT COUNT(*) FROM data

-- Date range
SELECT MIN(date), MAX(date) FROM data

-- Value distribution
SELECT column_name, COUNT(*) as cnt
FROM data
GROUP BY column_name
ORDER BY cnt DESC
LIMIT 20

-- Text search
SELECT date, text FROM data
WHERE text ILIKE '%keyword%'
LIMIT 10

-- Time series aggregation
SELECT strftime(date::TIMESTAMP, '%Y-%m') as month, COUNT(*) as volume
FROM data
GROUP BY month
ORDER BY month

-- Rate extraction (regex)
SELECT regexp_extract(text, '\$(\d+)', 1)::INT as rate, COUNT(*) as cnt
FROM data
WHERE rate IS NOT NULL
GROUP BY rate
ORDER BY cnt DESC

Read the full file on GitHub · 161 lines

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. 9d ago First seen · 161 lines · 30 tokens per session scan A f609575bd556

Subscribe to this mod's changes

data-analysis is a skill published in the GitHub repository winstonkoh87/Athena-Public (585 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 1,193 once invoked, about $0.0002 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.