Skip to content
Projets

cabbage2000-lab/data-analysis-skills

Voir sur GitHub

À propos

A data analysis skill for Claude Code, Codex, and WorkBuddy. Turn CSV, Excel, JSON, and TSV files into single-file interactive HTML reports with key findings up front, industry-specific analysis, chart explanations, and documented data processing.

Outils de développement

Comment ces chiffres sont mesurés

What you can do

  • "Here's our Q2 order data — give me an analysis report" → a complete narrative report organized from a retail perspective: GMV, average order value, repeat purchases, returns — every chart comes with an interpretation, conclusions first
  • "Check whether variant B in my A/B test is actually better" → a rigorous statistical answer (p-value, confidence interval, assumption checks) without forcing you through the full report pipeline
  • "Analyze my account's posts from the past three months" → interpreted through a content-creator lens: engagement rate, completion rate, follower growth efficiency
  • "Do a business review of this budget execution sheet" → analyzed from an FP&A perspective: revenue, gross margin, expense ratios, budget attainment

Progression mesurée des étoiles

in 24h
0
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

data-analysis-skills: Turn data files into analysis reports that tell a story

License: MIT status host

English | 简体中文

This is an Agent Skill for data analysis — one package installs into Claude Code, the Codex CLI, WorkBuddy and other coding agents, instead of being tied to any single one. Hand it a data file (CSV / Excel / JSON / TSV), say "analyze this", and it works like a data analyst who knows your industry: it first confirms the business context with you, then cleans and analyzes the data, and finally delivers a single-file interactive HTML report — not isolated charts and numbers, but a data story with insights and conclusions you can take straight into a meeting.

See it first: open examples/sample_report.html in your browser — a real generated SaaS business review (36 months of subscription data; test data, not a real customer's). Internet access required, since chart libraries load from CDN.


Supported hosts

Host User-level install path How far it's verified
Claude Code ~/.claude/skills/data-analysis-skills T1–T14 ran against the earlier English instructions. The v0.18.3 Chinese instructions still need a full run
Codex CLI ~/.codex/skills/data-analysis-skills Interactive and codex exec smoke tests ran on v0.9. See the cross-host acceptance checklist for current coverage
WorkBuddy ~/.workbuddy/skills/data-analysis-skills Adapted: install path verified on a real machine, and the author has confirmed it loads and runs in WorkBuddy; the per-scenario S1–S5 rows of the cross-host acceptance checklist are not filled in yet
Other structurally identical tools that tool's own skills directory Anything that reads SKILL.md + frontmatter + subdirectory resources can load it; not individually tested

Full reports follow the same five phases, statistical rules, and six-section structure across hosts. An interactive host asks about missing information and waits for your reply. Hosts without a structured question tool use numbered text. Complete instructions proceed straight to analysis. If a non-interactive host needs clarification, it produces standard exploratory data analysis (EDA) and states its assumptions.

What it can do for you

  • "Here's our Q2 order data — give me an analysis report" → a complete narrative report organized from a retail perspective: GMV, average order value, repeat purchases, returns — every chart comes with an interpretation, conclusions first
  • "Check whether variant B in my A/B test is actually better" → a rigorous statistical answer (p-value, confidence interval, assumption checks) without forcing you through the full report pipeline
  • "Analyze my account's posts from the past three months" → interpreted through a content-creator lens: engagement rate, completion rate, follower growth efficiency
  • "Do a business review of this budget execution sheet" → analyzed from an FP&A perspective: revenue, gross margin, expense ratios, budget attainment

Installation

Pick any one of the four routes below. Open a new session afterwards — sessions already running won't see the new skill.

Route A: paste the block below to your agent (no commands to type)

Install into Claude Code 👇

Please install the data-analysis-skills for me:

1. Clone https://github.com/cabbage2000-lab/data-analysis-skills into a temp directory
2. Make sure ~/.claude/skills/ exists (create it if not), then copy the repo's
   skills/data-analysis-skills directory into it
   - Copy that one directory itself; do not nest the whole skills/ dir inside
   - Overwrite a same-named directory — that's how updating works
   - Do not touch any other skill in that directory, and never wipe the directory
   - assets/ industries/ references/ evals/ must come along; missing any of them breaks links
3. Delete the temp directory
4. Tell me where it landed

Install into Codex 👇

Please install the data-analysis-skills for me:

1. Clone https://github.com/cabbage2000-lab/data-analysis-skills into a temp directory
2. Make sure ~/.codex/skills/ exists (create it if not), then copy the repo's
   skills/data-analysis-skills directory into it
   - Copy that one directory itself; do not nest the whole skills/ dir inside
   - Overwrite a same-named directory — that's how updating works
   - Do not touch any other skill in that directory, and never wipe the directory
   - assets/ industries/ references/ evals/ must come along; missing any of them breaks links
3. Delete the temp directory
4. Tell me where it landed

Install into WorkBuddy 👇

Please install the data-analysis-skills for me:

1. Clone https://github.com/cabbage2000-lab/data-analysis-skills into a temp directory
2. Make sure ~/.workbuddy/skills/ exists (create it if not), then copy the repo's
   skills/data-analysis-skills directory into it
   - Copy that one directory itself, don't nest the whole skills/ dir inside —
     WorkBuddy names skills after the directory hierarchy, so an extra level turns
     the skill name into skills:data-analysis-skills
   - Overwrite a same-named directory — that's how updating works
   - Do not touch any other skill in that directory, and never wipe the directory
   - assets/ industries/ references/ evals/ must come along; missing any of them breaks links
3. Delete the temp directory
4. Tell me where it landed

In WorkBuddy you can also check the "Skills" panel to confirm it showed up.

Route B: one-command plugin install (Claude Code / Codex)

This repository is itself a plugin marketplace; the upside is one-command updates.

Claude Code — run these in a session:

/plugin marketplace add cabbage2000-lab/data-analysis-skills
/plugin install data-analysis-skills@data-analysis-marketplace

Update with /plugin update data-analysis-skills.

Codex — run these in a terminal:

codex plugin marketplace add cabbage2000-lab/data-analysis-skills
codex plugin add data-analysis-skills@data-analysis-marketplace

WorkBuddy uses the Route A prompt (this repo does not yet ship a field-tested WorkBuddy plugin manifest).

Routes A and B install the same skill — don't do both, or you end up with two copies. The plugin form only changes how the host displays it; the analysis behavior is identical.

Route C: clone the repo + run the sync script (for anyone modifying the skill)

git clone https://github.com/cabbage2000-lab/data-analysis-skills.git
cd data-analysis-skills

# One command installs into every host detected on this machine:
#   Claude Code always; Codex only when ~/.codex/ exists; WorkBuddy only when ~/.workbuddy/ exists
bash sync-to-user.sh

An environment variable overrides one host path. The other hosts still follow the default rules. The script mirrors the destination with rsync --delete, so point each override to this skill’s own directory:

DATA_ANALYSIS_CLAUDE_SKILL=/your/path/data-analysis-skills bash sync-to-user.sh
DATA_ANALYSIS_CODEX_SKILL=/your/path/data-analysis-skills bash sync-to-user.sh
DATA_ANALYSIS_WORKBUDDY_SKILL=/your/path/data-analysis-skills bash sync-to-user.sh

To upgrade later, git pull and run the same command again.

The three hosts do not read each other's skill directories — neither Codex nor WorkBuddy reads ~/.claude/skills/, and Claude Code does not read ~/.codex/skills/. Using several hosts means installing into each. The symptom of installing in the wrong place is "the skill simply never appears, with no error at all".

Only want it in one project? Replace the user-level path with the project-level directory in that project's root: .claude/skills/ for Claude Code, .agents/skills/ for Codex, and .codebuddy/skills/ for WorkBuddy — note it is not .workbuddy/: the user-level directory is ~/.workbuddy/, but the project-level one keeps the underlying CodeBuddy-kernel name .codebuddy/. Get that asymmetry wrong and the skill never shows up.

Route D: install or upgrade from SkillHub

The package on SkillHub is @user_6733bad6/data-analysis-skills. Keep --namespace user_6733bad6 to select this package. The example targets Claude Code and requires skillhub and rsync. Set skills_dir to the appropriate installation path above for another host.

(
  set -eu
  skills_dir="$HOME/.claude/skills"
  dest="$skills_dir/data-analysis-skills"
  stage="$(mktemp -d)"
  trap 'rm -rf "$stage"' EXIT

  skillhub install data-analysis-skills --namespace user_6733bad6 --dir "$stage"
  package="$stage/@user_6733bad6/data-analysis-skills"
  if [ ! -f "$package/SKILL.md" ] || [ ! -f "$package/assets/report_template.html" ] || [ -L "$dest" ]; then
    printf '%s\n' "Incomplete SkillHub package or symlink destination: $dest" >&2
    exit 1
  fi

  mkdir -p "$dest"
  rsync -a --checksum --delete "$package/" "$dest/"
)

Run the same block to upgrade. It downloads to a temporary directory, then syncs the package to the location the host scans. Sync removes files that the new version dropped from this skill’s directory. Update symlink installations through their source checkout.

All four routes install the same skill. Pick one to avoid loading duplicate copies.

How to use it

  1. Provide data, state your need. In your agent, point to your data file and say what you want:

    Analyze this sales data for me: retail_orders.csv — I need a report
    

    You don't need to remember the skill's name — plain language matches it; naming data-analysis-skills explicitly works just as well.

  2. Confirm any missing details. Analysis starts directly when the industry, goal, audience, data definitions, and any applicable relationship between datasets are clear. In an interactive session, it asks about missing details and waits for a reply. It lists every dataset and confirms the strategy and required keys before joining them.

  3. Get the report. It walks through data understanding → cleaning → metric computation → analysis → report generation, and delivers an HTML file you open in a browser.

Just have a quick question? Things like "compute the correlation between these two columns" or "is group B's conversion significantly higher" won't be dragged through the full pipeline — it computes and answers directly, with the same statistical rigor.

What the report looks like

  • A single HTML file: double-click to open, interactive charts (zoom, tooltips), ready to share with colleagues (they need internet access to open it too)
  • A fixed six-section structure, conclusions first: Key findings (3–5) → Background & goals → Data overview → Deep-dive analysis (sectioned by industry themes) → Conclusions & recommendations → Appendix: data processing notes
  • Every chart comes with an interpretation: what the chart shows and what it implies — it doesn't just dump charts on you
  • Traceable processing: how missing values were handled, whether outliers were dropped — every decision is recorded in the appendix
  • Chinese and English reports: a Chinese prompt gets a Chinese report. An English prompt with English data gets English content and controls

Supported industries and methods

Industry Typical scenarios What the report focuses on
Retail / e-commerce Marketplaces, online stores, offline/omnichannel retail GMV, average order value, repeat purchase rate, return rate, category mix
Internet / SaaS Subscription software, internet products, membership services MRR/ARR, retention, churn, net revenue retention
Content creators Account operations on Xiaohongshu (RED), Douyin, Bilibili, WeChat official accounts, etc. Engagement rate, completion rate, net follower growth, follower conversion efficiency
Corporate finance / FP&A P&L, expenses, budget, cash flow analysis Revenue growth, gross margin, expense ratios, budget attainment
Funds Fund product performance and operations data NAV returns, max drawdown, subscriptions/redemptions, holder structure
Real estate Property developer sales and market data Sales & absorption, cash collection, market volume-price trends
Construction Construction/contracting company operations Project output & progress, labor/material/machinery costs, contract intake & collections
Education & training Training institutions, online education platforms Enrollment & renewals, attendance & completion, channel acquisition & CAC
Everything else When none of the above fits, it falls back to a general lens Scale, trends, composition, distributions — without force-fitting another industry's KPIs

When the task calls for specialized methods — A/B testing, time-series forecasting, causal inference, machine learning — it loads the corresponding method module on demand; you don't have to ask. Multi-dataset inputs (multi-sheet Excel, several files at once, multi-structure JSON) get every source enumerated and the relation strategy confirmed with you first — it never silently reads only the first sheet.

Why you can trust the conclusions

The skill works under professional discipline — it would rather say less than make things up:

  • No fabricated industry benchmarks. Unless you provide benchmark data or explicitly authorize a web search, it only compares within your own data — it never quotes an industry average "from memory."
  • Correlation ≠ causation. Without causal-method validation it won't claim "A drove B," and it proactively calls out potential confounders.
  • No forced conclusions from small samples. When the sample is too small, it tells you plainly that confidence is limited — even if "the boss needs an answer today."
  • Bad data gets a diagnosis first. If data quality is too poor, it tells you what's missing and how to fix it, instead of fabricating a polished-looking analysis.

What it doesn't do

  • No live dashboards / dashboard apps (the deliverable is a static single-file report)
  • No web scraping — it won't fetch data for you
  • No direct database connections — export your data to CSV / Excel files first

FAQ

Installed it, but nothing happens? Check three things: (1) it went into the skills directory of the host you're actually using (the three don't read each other's); (2) you copied the data-analysis-skills directory itself, not a skills/ wrapper around it; (3) you opened a new session afterwards. In WorkBuddy, the "Skills" panel shows whether it's there.

The report opens blank / charts don't render? Charts load from a CDN. If both sources fail, each chart shows a message, and the report text and tables remain readable. Check your connection and reopen the file.

Want a PDF or static images instead? Just say so ("give me static charts" / "export to PDF") and it switches to a static-chart approach; the report itself also has an "Export PDF" button in its top-right corner.

Do I need to set up Python or install packages myself? Analysis runs locally inside your agent using Python. If dependencies like pandas are missing, it tries to install them automatically, with fallbacks if installation fails — generally nothing for you to worry about.

It asks about my industry and goals — can I skip that? A full report proceeds when you have specified the industry, goal, audience, data definitions, and any applicable relationship between datasets. A focused statistical question goes directly to the calculation.

Repository layout

See the architecture diagram for the installation, analysis, and browser rendering flow.

skills/data-analysis-skills/      # the deliverable itself (this is what gets installed)
  SKILL.md                       #   core layer: five-phase workflow, gate, statistical discipline
  assets/report_template.html    #   single-file HTML report template (header comment = data contract)
  scripts/render_report.py       #   render JSON with the template
  industries/                    #   9 industry templates (loaded on demand)
  references/                    #   6 method modules (loaded on demand)
  evals/evals.json               #   eval scenario definitions (T1–T14)
examples/sample_report.html      # sample output: what a report looks like
.claude-plugin/ .codex-plugin/ .agents/   # plugin marketplace manifests (Route B)
sync-to-user.sh                  # three-host sync script (Route C)
scripts/                         # public smoke test and eval input preparation
docs/                            # architecture, versioning, and cross-host acceptance
CHANGELOG.md                     # release notes

From the repository root, run python3 -B scripts/smoke_test.py to check the renderer and shipped example. The cross-host acceptance checklist links to synthetic inputs, manual scenarios, and eval path configuration. The full eval datasets and run records live in the maintainer workspace.

License

Released under the MIT License © 2026 cabbage2000-lab.

Explorer des projets similaires

Chargement…