data-analyst · borghei — Claude Code skill: what it does, how to install
Turns your agent into a data analyst that validates SQL queries, runs statistical tests, and formats business findings.
npx skills add borghei/Claude-Skills --skill data-analyst -a claude-codeWhat data-analyst does
The skill guides an agent through end-to-end data tasks. It starts by clarifying the core question, metrics, and table grain before writing queries. The instructions enforce SQL best practices: filtering early, organizing queries with CTEs, and inspecting query plans with EXPLAIN ANALYZE.
Data exploration comes before drawing any conclusions. The agent looks for duplicates, null values, and outliers. For statistical comparisons, the skill bundles Python functions using scipy and numpy to run independent t-tests and chi-square evaluations. If your environment lacks these packages, Python tests will fail.
Visualization choices follow concrete rules. Bar charts must start the Y-axis at zero, palettes cannot exceed seven colors, and pie charts with more than five slices are blocked. Findings are packaged into an actionable format covering what happened, why it matters, and next steps.
What it helps with
- write cohort retention SQL queries using common table expressions
- run two-sample t-tests and chi-square independence checks in Python
- inspect dataset distributions and clean out duplicates before modeling
- prepare business findings in a What, So What, Now What structure
Example prompts for the agent
- Write an optimized SQL query to calculate month-over-month revenue growth using CTEs.
- Run a two-sample t-test on these test and control conversion rates.
- Structure this retention analysis using the What, So What, Now What template.
How to install data-analyst
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill data-analyst -a claude-code2Manually: put the files in place
~/.claude/skills/data-analyst/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/data-analyst/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill data-analyst -a codex2Manually: put the files in place
.agents/skills/data-analyst/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill data-analyst -a cursor2Manually: put the files in place
.cursor/skills/data-analyst/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install borghei/Claude-Skills data-analyst2Manually: put the files in place
.github/skills/data-analyst/SKILL.md1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill data-analyst -a gemini-cli2Platform CLI
gemini skills install https://github.com/borghei/Claude-Skills --path data-analytics/data-analystManually: put the files in place
.devin/skills/data-analyst/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill data-analyst -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about data-analyst
How do I install data-analyst in Claude Code?
Run npx skills add borghei/Claude-Skills --skill data-analyst -a claude-code in your terminal. This copies the configuration to ~/.claude/skills/data-analyst/SKILL.md.
What does the data-analyst skill do?
It instructs the agent to write production SQL, profile datasets, choose the right chart types, and deliver findings with concrete next steps.
Which Python libraries are required for statistical tests?
The built-in testing patterns require scipy and numpy to calculate t-statistics, p-values, Cohen's d, and chi-square metrics.
Similar skills
All skills for Data and databases →data-analyst by other authors comes first.