Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sql-data-analysis

Skill by eosphoros-ai

Runs SQL queries against MySQL, PostgreSQL, and SQLite databases and turns results into charts. It is aimed at analysts and developers who want an AI assistant to query data and visualize the output.

  • Score 91
  • 20k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sql-data-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.claude/skills && cp -r /tmp/DB-GPT/skills/sql-data-analysis ~/.claude/skills/sql-data-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sql-data-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant SQL data analysis tools. It provides an execute_query.py script that runs queries against PostgreSQL, MySQL, or SQLite databases, with options for parameterized queries and saving results to a JSON file. A visualize_data.py script builds bar, line, pie, or scatter charts from query results and writes them to an image file.

The skill also includes SQL examples for time series, top N, cohort, and funnel analysis, plus reference documents on the API, SQL patterns, and best practices. It includes error handling tips and a debug flag for detailed messages. The source describes it for anyone who needs to query databases, analyze results, or report on data from an AI assistant.

Written from the project's SKILL.md and checked against it.

What it can do

  • Execute SQL queriesRuns SQL queries against PostgreSQL, MySQL, or SQLite databases using execute_query.py.
  • Save results to fileWrites query results to an output file such as results.json.
  • Parameterized queriesPasses parameters to queries to help prevent SQL injection.
  • Create chartsBuilds bar, line, pie, or scatter charts from query results with visualize_data.py.
  • Time series analysisProvides SQL examples for grouping and totaling data over dates.
  • Top N and cohort analysisProvides SQL examples for ranking top items and grouping users by first order.
  • Funnel analysisProvides a SQL example that counts users through view, cart, and purchase steps.
  • Debug modeAdds a --debug flag to scripts for more detailed error messages.

What you need

  • Python
  • Access to a MySQL, PostgreSQL, or SQLite database
  • Database host, username, and password for MySQL or PostgreSQL

Try asking

  • Run a query on my PostgreSQL database to list the 10 newest users
  • Show revenue by product as a bar chart with the top 10 products
  • Build a monthly sales trend line chart from my orders table

Good to know

  • Recommends using read-only database users for analysis queries.
  • Source advises against hardcoding passwords and recommends environment variables.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/sql-data-analysis/SKILL.md, skills/sql-data-analysis/scripts/db_connect.py, skills/sql-data-analysis/scripts/execute_query.py, skills/sql-data-analysis/scripts/visualize_data.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • references/api_reference.md968 B
  • references/best_practices.md3 KB
  • references/sql_patterns.md2 KB
  • scripts/db_connect.py3 KB
Show all 7 files
  • scripts/execute_query.py3 KB
  • scripts/visualize_data.py3 KB

Alternatives to sql-data-analysis

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

sql-data-analysis: common questions

Which databases does sql-data-analysis support?

The script parameters list PostgreSQL, MySQL, and SQLite. The description also mentions other SQL databases, but the source does not name them.

What chart types can it create?

The source lists bar, line, pie, and scatter charts. Charts are generated from query results and saved to an output file.

Does the skill protect against SQL injection?

The source recommends parameterized queries and validating user inputs before running a query. It does not state that the scripts enforce these rules themselves.

How do I install sql-data-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sql-data-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sql-data-analysis safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sql-data-analysis?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

sql-data-analysis Install

Add to stack

Loading.