dougtrajano/pydantic-ai-skills/data-analysis

Claude Code and agent skill by dougtrajano/pydantic-ai-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Profile and aggregate a bundled sales dataset - group revenue by region, category, channel or month, apply filters, and compute sums, means, medians and ranges. Use for questions about sales figures, trends, or which segments perform best.

Install

npx vskill@latest install dougtrajano/pydantic-ai-skills/data-analysis

SKILL.md

Data Analysis Skill

Answers questions about a bundled sales dataset (resources/sales.csv): 96 rows covering six months, four regions, four product categories and three sales channels.

This is the reference skill for exercising sandbox executors. Both scripts are standard library only and read their data from the skill folder, so they do real work with no network, no third-party packages and no host access — exactly the shape a sandbox is meant to run.

When to Use This Skill

  • "Which region had the highest revenue?" → aggregate
  • "What were average units sold per category?" → aggregate
  • "How many rows are in the dataset and what does revenue look like?" → profile_dataset
  • "Compare online versus retail sales in the north" → aggregate with filters

Skill Scripts

profile_dataset

Reports dataset shape, column names, summary statistics for every numeric column (count, sum, mean, median, stdev, min, max) and distinct-value counts for the categorical ones.

  • column (optional): Profile a single numeric column instead of all of them

Exits 2 for an unknown column.

aggregate

Groups rows and aggregates a numeric column, optionally filtered and truncated.

  • group-by (required): Column to group by — month, region, category, channel
  • metric (optional): Numeric column to aggregate, default revenue
  • agg (optional): sum (default), mean, median, min, max, count
  • where (optional, repeatable): Filter as column=value, e.g. region=north
  • top (optional): Keep only the highest N groups

Exits 2 for an unknown column or malformed filter, 1 when no rows match.

Usage Examples

Revenue by region, highest first:

  • group-by: region

Top 3 categories by units sold, online only:

  • group-by: category
  • metric: units
  • agg: sum
  • where: channel=online
  • top: 3

Average revenue per month in the west:

  • group-by: month
  • agg: mean
  • where: region=west

Data Source

resources/sales.csv is generated sample data, included so the skill is self-contained and deterministic. It is not real sales data.

Sandbox Behaviour

Both scripts produce byte-identical output on the host and under LocalSandboxScriptExecutor or OpenSandboxScriptExecutor, including the ../resources/sales.csv read through the skill root and non-zero exit codes for bad arguments. That equivalence is the point: swapping the executor changes where the script runs, not what the model sees.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
364
Repository forks
28
7-day trend score
29

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dougtrajano/pydantic-ai-skills/data-analysis/badge)](https://verified-skill.com/skills/dougtrajano/pydantic-ai-skills/data-analysis)

Something wrong with this skill or its page? Tell us.