sql-data-analysis
Skill20k starsChanged 3 years agoMITView on GitHub
Comprehensive SQL data analysis skill for executing queries, analyzing results, and generating visualizations. Use when Claude needs to: (1) Execute SQL queries against databases, (2) Analyze query results and generate insights, (3) Create data visualizations (charts, graphs) from query results, (4) Perform data aggregation and reporting, (5) Work with database connections and query optimization. Supports MySQL, PostgreSQL, SQLite, and other SQL databases.
Trending
Less talk lately.about the whole repository
Who's talking about eosphoros-ai/DB-GPT
- WorldofAI“DB-GPT: Multi-Agent Framework - All-In-One Opensource Model!”YouTube · Jun 6, 2024 · 15k views
- AIGCLINK“DB-GPT:基于大模型实现用自然语言与各种数据库db交互,提供了agent管理、知识库管理、提示词管理、数据库对话管理、多模型管理等,解决各种BI数据分析场景、公司业绩分析、知识库管理等”YouTube · Oct 25, 2023 · 2.6k views
- Fahd Mirza“Install DB-GPT Locally on Linux and Windows”YouTube · Sep 3, 2023 · 2.6k views
- Fahd Mirza“DB-GPT Local Installation on Windows”YouTube · Dec 10, 2023 · 1.4k views
- Jonathan Coates“How to Get Started with DB GPT: A Beginner's Guide”YouTube · Sep 15, 2024 · 1.3k views
The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 63
Talked about on GitHub, YouTube, Bluesky and the web (63 times).
On GitHub · 35
- Dec 1, 2023💡 [Qwen+DB-GPT] - DB-GPT已经支持了千问72B,赶紧用起来吧 — QwenLM/Qwen2 reactions
- Sep 11, 2025GPU/System Memory, Context, KVCache, DB — pacoxu/AI-Infra1 reaction
- Jan 8, 2024【Question】Why not implement DAG in LCEL? — langchain-ai/langgraph1 reaction · 5 comments
- Sep 7, 2023Add DB-GPT: The All-In-One Model, Chat Privately With Files Locally, Plugins, Auto Ai Agents, & More! — e2b-dev/awesome-ai-agents1 reaction · 1 comment
- Aug 31, 2023【开源自荐】ChatExcel-通过自然语言对话实现数据分析 — ruanyf/weekly1 reaction
30 more on GitHub
- Nov 17, 2026agent-skills.github.eosphoros-ai.db-gpt: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 28, 2026[GHSA-7gj6-22m4-qfhx] DB-GPT Arbitrary File Write vulnerability — github/advisory-database0 reactions
- Oct 15, 2026Add DB-GPT HTTP fingerprint rule — hexbay/finger-rules0 reactions
- Sep 27, 2026agent-skills.github.eosphoros-ai.db-gpt: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Sep 13, 2026GEN-01 (EPIC-GEN-01 #178): ontology-grounded generative ask + execute-validate (abstain if unsure) — Netie-AI/dms0 reactions · 6 comments
- Aug 25, 2026[Argus] CVE-2026-80104: DB-GPT 0.8.0 스킬 업로드 파일명을 통한 Path Traversal 및 임의 파일 쓰기 — LEEKIYOON-SEC/Argus-DEV0 reactions
- Aug 18, 2026Add CVE-2026-73034 - DB-GPT Path Traversal Arbitrary File Write — projectdiscovery/nuclei-templates0 reactions · 1 comment
- Aug 14, 2026feat: add CVE-2026-73034 DB-GPT <= 0.8.1 path traversal arbitrary file write — projectdiscovery/nuclei-templates0 reactions
- Aug 11, 2026[Argus] CVE-2026-73034: DB-GPT v0.8.1 user_id 헤더를 통한 경로 탐색 및 임의 파일 쓰기 취약점 — LEEKIYOON-SEC/Argus-DEV0 reactions
- Jul 17, 2026Update PURL mappings for conda-forge packages related to `dbgpt` — prefix-dev/purl-associator0 reactions · 1 comment
- Jun 28, 2026DB-GPT: 차세대 AI + 데이터 제품을 위한 오픈소스 에이전트형 데이터 어시스턴트 — roomedia/ax-trend0 reactions
- Jun 5, 2026[Add] DB-GPT (eosphoros-ai/DB-GPT) — PyTorchKR/landscape0 reactions · 3 comments
- May 28, 2026Add DeerFlow 2.0 `data-analysis-agent-skill` package with read-only ChatBI, file analytics, and packaging workflow — yssAI/agent-skills0 reactions
- Mar 26, 2026Update repo table — arran4/arran40 reactions
- Feb 27, 2026优化「提效技巧」卡片:增加真实教程链接与推荐教程列表 — jinjin-cxy/jinjin-cxy.github.io0 reactions
- Oct 29, 2025Add agent memory and context management documentation — pacoxu/AI-Infra0 reactions · 1 comment
- May 30, 2025Updated single-repositories/github/eosphoros-ai/DB-GPT.yml — oss-compass/compass-projects-information0 reactions · 2 comments
- Apr 4, 2025chore(deps): bump the pip group across 2 directories with 1 update — ai-in-pm/dbgpts0 reactions
- Mar 3, 2025Add DB-GPT — deepseek-ai/awesome-deepseek-integration0 reactions
- Oct 15, 2024docker.io/eosphorosai/dbgpt:latest — DaoCloud/public-image-mirror0 reactions · 1 comment
- May 16, 2024feat: Upgrade search workflow — eosphoros-ai/dbgpts0 reactions
- May 6, 2024chore: Update with latest agent — eosphoros-ai/dbgpts0 reactions
- Apr 25, 2024[Feature request] make cubejs as datasouce of DB-GPT — cube-js/cube0 reactions · 2 comments
- Apr 18, 2024【CS-part4】New submissions for Wed, 17 Apr 24 — Yukeaaa/arxiv-daily0 reactions
- Apr 17, 2024New submissions for Wed, 17 Apr 24 — qiaoyuet/arxiv_daily0 reactions
- Mar 27, 2024feat: Add rag url knowledge examples — eosphoros-ai/dbgpts0 reactions · 1 comment
- Nov 16, 2023Add typos for knownledge->knowledge, analyzis->analysis and compialtion->compilation — codespell-project/codespell0 reactions · 1 comment
- Sep 27, 2023【开源自荐】DB-GPT用私有化大模型定义数据库下一代交互方式 — Wechat-ggGitHub/Awesome-GitHub-Repo0 reactions
- Sep 18, 2023【开源自荐】DB-GPT用私有化大模型定义数据库下一代交互方式 — GitHubDaily/GitHubDaily0 reactions
- Sep 3, 2023【开源自荐】DB-GPT用私有化大模型定义数据库下一代交互方式 — 521xueweihan/HelloGitHub0 reactions
On YouTube · 25
- Jun 6, 2024DB-GPT: Multi-Agent Framework - All-In-One Opensource Model! — WorldofAI15k views · 14 comments
- Oct 25, 2023DB-GPT:基于大模型实现用自然语言与各种数据库db交互,提供了agent管理、知识库管理、提示词管理、数据库对话管理、多模型管理等,解决各种BI数据分析场景、公司业绩分析、知识库管理等 — AIGCLINK2.6k views · 4 comments
- Sep 3, 2023Install DB-GPT Locally on Linux and Windows — Fahd Mirza2.6k views · 11 comments
- Dec 10, 2023DB-GPT Local Installation on Windows — Fahd Mirza1.4k views · 5 comments
- Sep 15, 2024How to Get Started with DB GPT: A Beginner's Guide — Jonathan Coates1.3k views · 1 comment
20 more on YouTube
- Apr 30, 2025How to use DB-GPT‘s Chat Data — DB-GPT607 views
- May 29, 2025How to use DB-GPT's Chat Dashboard — DB-GPT541 views
- Aug 28, 2026DB-GPT: Ask Your Database Questions Instead of Writing SQL — GithubTrends530 views
- Apr 29, 2025How to use DB-GPT's App Chat — DB-GPT363 views
- Sep 5, 2023eosphoros-ai/DB-GPT - Gource visualisation — Gourcer348 views · 1 comment
- Apr 17, 2025How to deploy DB-GPT with Docker | DB-GPT Tutorial 1 — DB-GPT336 views · 1 comment
- Apr 9, 2025DB-GPT Introduction: Build Your Own AI Data Copilot — DB-GPT324 views
- May 9, 2025How to use DB-GPT’s Chat DB — DB-GPT285 views · 1 comment
- Dec 10, 2023Install DB GPT on AWS — Fahd Mirza267 views
- Jan 30, 2026How to Use DBGPT’s Text2SQL Benchmarking Tool — DB-GPTsays it tested it252 views · 1 comment
- Jun 10, 2025How to use DB-GPT's Chat With Financial Report — DB-GPT249 views
- May 11, 2026DB-GPT V0.8.0 — Paradigm Shift: AI + Data Driven Analytics Experience — DB-GPT230 views
- May 15, 2025How to use DB-GPT's Chat Knowledge Base — DB-GPT223 views
- Apr 19, 2025Docker+GPU deployment of local big models | DB-GPT Tutorial 2 — DB-GPT183 views
- Mar 14, 2025GitHub - eosphoros-ai/DB-GPT: AI Native Data App Development framework with AWEL(Agentic Workflow... — GitHub Daily Trend AI Podcast141 views
- May 7, 2025How to use DB-GPT's Chat Excel — DB-GPT130 views · 1 comment
- Nov 12, 2026Repo AI #70 · DB-GPT hỏi dữ liệu bằng câu thường — CPPAI41 views
- Sep 5, 2023What's Happening in the AI World Today (Sept. 4th)? - Database LocalGPT, AIGC Tutorials, FL — AI 1Minute12 views
- May 11, 2026⭐ DB-GPT — 18,709 GitHub Stars — Observe AI9 views
- Aug 11, 2026DB-GPT e PapersGPT: falhas críticas expõem ferramentas de IA — Daily tech hack5 views
On Bluesky · 2
- Sep 20, 2026🚀 GitHub Intelligence Drop DB-GPT (Python • 🟢) ⭐ 20K → https://github.com/eosphoros-ai/DB-GPT gun (JavaScript • 🟢) ⭐ 19.1K →… — @githubfeed.bsky.social1 likes and repost
- Dec 22, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 eosphoros-ai / DB-GPT ⭐ 8,798 (+102) 🗒 Python Revolutionizing Database Interactions with Private LLM… — @github-trending.bsky.social1 likes and repost · 1 reply
On the web · 1
- Nov 22, 2026eosphoros-ai/DB-GPT · Repo Library - Anh Kỹ Sư AI — anhkysuai.com
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- business-reportSkill
- csv-data-analysisSkill
- csv-data-analyzerSkill
- dashboard-builderSkill
- excel-analyzerSkill
- excel-data-analyzerSkill
- financial-report-analyzerSkill
- skill-creatorSkill
- walmart-sales-analyzerSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use the execute_query.py script to run SQL queries:
- Very specific: line 27
Use the visualize_data.py script to create charts from query results:
- Distinctive: line 199
Connection failed: Verify host, port, and credentials
- Distinctive: line 200
Table not found: Check database name and table existence
- Distinctive: line 201
Permission denied: Ensure user has required privileges
- Very specific: line 206
Add --debug flag to scripts for detailed error messages:
- Distinctive: line 214
Never hardcode passwords in scripts
- Distinctive: line 215
Use environment variables for sensitive data
- Distinctive: line 216
Use read-only database users for analysis queries
- Distinctive: line 218
Use parameterized queries to prevent SQL injection
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SQL Data Analysis
Quick Start
Execute a Query
Use the execute_query.py script to run SQL queries:
python scripts/execute_query.py --db-type postgresql --host localhost --port 5432 \
--database mydb --user myuser --password mypass --query "SELECT * FROM users LIMIT 10"Generate Visualization
Use the visualize_data.py script to create charts from query results:
python scripts/visualize_data.py \
--data "[{"name": "A", "value": 10}, {"name": "B", "value": 20}]" \
--chart-type {bar|line|pie|scatter} \
--x-column name --y-column value \
--title "My Chart" --output chart.pngDatabase Connection
Connection Parameters
Required parameters for database connections:
--db-type: Database type (postgresql, mysql, sqlite)--host: Database host (not required for SQLite)--port: Database port (default: 5432 for PostgreSQL, 3306 for MySQL)--database: Database name--user: Username (not required for SQLite)--password: Password (not required for SQLite)
SQLite Example
python scripts/execute_query.py --db-type sqlite --database /path/to/db.sqlite \
--query "SELECT * FROM table_name"Query Execution
Basic Query
python scripts/execute_query.py --db-type postgresql --host localhost \
--database mydb --user myuser --password mypass \
--query "SELECT id, name FROM users WHERE active = true"Query with Output File
python scripts/execute_query.py --db-type postgresql --host localhost \
--database mydb --user myuser --password mypass \
--query "SELECT * FROM orders" --output results.jsonParameterized Query
python scripts/execute_query.py --db-type postgresql --host localhost \
--database mydb --user myuser --password mypass \
--query "SELECT * FROM users WHERE id = %s" --params "[1]"Data Visualization
Supported Chart Types
- bar: Bar chart for categorical data comparison
- line: Line chart for trends over time
- pie: Pie chart for proportional data
- scatter: Scatter plot for correlation analysis
Bar Chart Example
python scripts/visualize_data.py \
--data "[{"category": "A", "count": 100}, {"category": "B", "count": 150}]" \
--chart-type bar --x-column category --y-column count \
--title "Category Distribution" --output bar_chart.pngLine Chart Example
python scripts/visualize_data.py \
--data "[{"month": "Jan", "sales": 1000}, {"month": "Feb", "sales": 1200}]" \
--chart-type line --x-column month --y-column sales \
--title "Monthly Sales Trend" --output trend.pngPie Chart Example
python scripts/visualize_data.py \
--data "[{"product": "A", "share": 30}, {"product": "B", "share": 70}]" \
--chart-type pie --x-column product --y-column share \
--title "Market Share" --output pie.pngCommon Analysis Patterns
Time Series Analysis
SELECT
DATE(created_at) as date,
COUNT(*) as count,
SUM(amount) as total
FROM orders
WHERE created_at >= '2024-01-01'
GROUP BY DATE(created_at)
ORDER BY date;Top N Analysis
SELECT
product_id,
COUNT(*) as order_count,
SUM(amount) as revenue
FROM orders
GROUP BY product_id
ORDER BY revenue DESC
LIMIT 10;Cohort Analysis
SELECT
DATE(first_order) as cohort,
COUNT(DISTINCT user_id) as users,
COUNT(*) as total_orders
FROM (
SELECT
user_id,
MIN(created_at) as first_order,
created_at
FROM orders
GROUP BY user_id, created_at
) user_orders
GROUP BY cohort
ORDER BY cohort;Funnel Analysis
WITH funnel AS (
SELECT
user_id,
COUNT(CASE WHEN step = 'view' THEN 1 END) as views,
COUNT(CASE WHEN step = 'cart' THEN 1 END) as carts,
COUNT(CASE WHEN step = 'purchase' THEN 1 END) as purchases
FROM events
WHERE event_date >= '2024-01-01'
GROUP BY user_id
)
SELECT
COUNT(*) as total_users,
SUM(CASE WHEN views > 0 THEN 1 ELSE 0 END) as viewed,
SUM(CASE WHEN carts > 0 THEN 1 ELSE 0 END) as added_to_cart,
SUM(CASE WHEN purchases > 0 THEN 1 ELSE 0 END) as purchased
FROM funnel;Reference Materials
For detailed guidance, consult these references:
- API Reference: Complete API documentation for all scripts
- SQL Patterns: Common SQL query patterns and examples
- Best Practices: Query optimization and security guidelines
Error Handling
Common Issues
- Connection failed: Verify host, port, and credentials
- Table not found: Check database name and table existence
- Permission denied: Ensure user has required privileges
- Syntax error: Validate SQL syntax for specific database type
Debug Mode
Add --debug flag to scripts for detailed error messages:
python scripts/execute_query.py --debug --query "SELECT * FROM users"Security Notes
- Never hardcode passwords in scripts
- Use environment variables for sensitive data
- Use read-only database users for analysis queries
- Validate all user inputs before query execution
- Use parameterized queries to prevent SQL injection
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

