data-analysis
यह क्या करती है
यह स्किल आपकी अपलोड की गई Excel और CSV फ़ाइलों का विश्लेषण करती है। यह उन लोगों के लिए है जिन्हें अपने डेटा से कुल, सारांश, फ़िल्टर या pivot जैसे दृश्य चाहिए।
कब इस्तेमाल करें
- ✓जब कोई Excel या CSV फ़ाइल अपलोड करता है और उसका विश्लेषण चाहता है।
- ✓जब कोई स्प्रेडशीट से सारांश, pivot तालिका या आँकड़े माँगता है।
- ✓जब कोई नतीजे CSV, JSON या Markdown में एक्सपोर्ट करवाना चाहता है।
Skill का लिंक
https://github.com/bytedance/deer-flow/blob/main/skills/public/data-analysis/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह मेरी बिक्री स्प्रेडशीट है। क्या आप इसे क्षेत्र और महीने के हिसाब से सारांशित कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल DuckDB इस्तेमाल करती है, एक डेटाबेस इंजन जो स्क्रिप्ट के अंदर चलता है, और हर शीट को एक टेबल की तरह लोड करती है। फिर क्वेरी या सारांश आँकड़े चलाती है और नतीजे आपके चुने फ़ॉर्मेट में सहेजती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Data Analysis Skill
Overview
This skill analyzes user-uploaded Excel/CSV files using DuckDB — an in-process analytical SQL engine. It supports schema inspection, SQL-based querying, statistical summaries, and result export, all through a single Python script.
Environment setup
Prepare the Python environment before running analyses. Install the required packages explicitly using the same interpreter that will run the script:
python -m pip install duckdb openpyxl
If either package is missing, the script exits with a setup instruction; it does not invoke an installer or modify the environment. DuckDB's existing spatial-extension setup for loading files is unchanged.
Core Capabilities
- Inspect Excel/CSV file structure (sheets, columns, types, row counts)
- Execute arbitrary SQL queries against uploaded data
- Generate statistical summaries (mean, median, stddev, percentiles, nulls)
- Support multi-sheet Excel workbooks (each sheet becomes a table)
- Export query results to CSV, JSON, or Markdown
- Handle large files efficiently with DuckDB's columnar engine
Workflow
Step 1: Understand Requirements
When a user uploads data files and requests analysis, identify:
- File location: Path(s) to uploaded Excel/CSV files under
/mnt/user-data/uploads/ - Analysis goal: What insights the user wants (summary, filtering, aggregation, comparison, etc.)
- Output format: How results should be presented (table, CSV export, JSON, etc.)
- You don't need to check the folder under
/mnt/user-data
Step 2: Inspect File Structure
First, inspect the uploaded file to understand its schema:
python /mnt/skills/public/data-analysis/scripts/analyze.py \
--files /mnt/user-data/uploads/data.xlsx \
--action inspect
This returns:
- Sheet names (for Excel) or filename (for CSV)
- Column names, data types, and non-null counts
- Row count per sheet/file
- Sample data (first 5 rows)
Step 3: Perform Analysis
Based on the schema, construct SQL queries to answer the user's questions.
Run SQL Query
python /mnt/skills/public/data-analysis/scripts/analyze.py \
--files /mnt/user-data/uploads/data.xlsx \
--action query \
--sql "SELECT category, COUNT(*) as count, AVG(amount) as avg_amount FROM Sheet1 GROUP BY category ORDER BY count DESC"
Generate Statistical Summary
python /mnt/skills/public/data-analysis/scripts/analyze.py \
--files /mnt/user-data/uploads/data.xlsx \
--action summary \
--table Sheet1
This returns for each numeric column: count, mean, std, min, 25%, 50%, 75%, max, null_count. For string columns: count, unique, top value, frequency, null_count.
Export Results
python /mnt/skills/public/data-analysis/scripts/analyze.py \
--files /mnt/user-data/uploads/data.xlsx \
--action query \
--sql "SELECT * FROM Sheet1 WHERE amount > 1000" \
--output-file /mnt/user-data/outputs/filtered-results.csv
Supported output formats (auto-detected from extension):
.csv— Comma-separated values.json— JSON array of records.md— Markdown table
Relative output paths are resolved from the current working directory. A bare
filename such as report.csv writes there directly; missing parent directories
in paths such as reports/report.csv are created automatically.
An existing file at the target path is overwritten without warning.
JSON result column names must be unique. Use explicit SQL aliases for repeated
names, for example SELECT a.id AS left_id, b.id AS right_id FROM ....
Duplicate names cause an error and leave any existing output file untouched.
The error lists the repeated names so you can alias them directly. The CLI prints
a short Error: ... message to stderr and exits nonzero for this rejection.
JSON exports also reject non-finite numbers (NaN, Infinity, and -Infinity),
including values inside lists or structs, before opening the output file. Filter
or replace them in SQL, for example CASE WHEN isfinite(ratio) THEN ratio ELSE NULL END AS ratio. Finite numbers, nulls, and text such as 'NaN' remain valid.
Parameters
| Parameter | Required | Description |
|---|---|---|
--files |
Yes | Space-separated paths to Excel/CSV files |
--action |
Yes | One of: inspect, query, summary |
--sql |
For query |
SQL query to execute |
--table |
For summary |
Table/sheet name to summarize |
--output-file |
No | Path to export result |
अक्सर पूछे जाने वाले सवाल
कौन सी फ़ाइलें स्वीकार होती हैं?
कई शीट वाली Excel वर्कबुक और CSV फ़ाइलें।
क्या इसके लिए अतिरिक्त सॉफ़्टवेयर चाहिए?
हाँ। इसे duckdb और openpyxl Python पैकेज चाहिए, और न होने पर यह सेटअप नोट के साथ रुक जाती है।
क्या बड़ी फ़ाइलें संभल सकती हैं?
स्किल कहती है कि DuckDB का columnar इंजन बड़ी फ़ाइलें कुशलता से संभालता है।
जानकारी
लेखक का मूल विवरण
Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to CSV/JSON/Markdown.
repo: bytedance/deer-flow
लोकप्रियता
- GitHub स्टार
- 85k
- रैंकिंग में स्थान
- #1380
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
engineer-system-change
85kआपके एजेंट को सॉफ़्टवेयर बदलाव बनाने से पहले जाँचने देती है कि वह सच में ज़रूरी है या नहीं, समस्या, उपयोगकर्ताओं और जोखिमों की जाँच करते हुए।
academic-paper-review
85kआपके एजेंट को शोध पत्र की समीक्षा एक peer reviewer की तरह करने देती है, तरीकों, मज़बूत पक्षों, कमज़ोरियों और अगले कदमों के साथ।
bootstrap
85kएक दोस्ताना ऑनबोर्डिंग बातचीत का मार्गदर्शन करती है, जो एक निजी SOUL.md फ़ाइल बनाती है और तय करती है कि आपका AI साथी कौन है और कैसे व्यवहार करता है।
chart-visualization
85kआपके नंबरों को चार्ट इमेज में बदलती है, 26 चार्ट प्रकारों में से चुनकर, जैसे लाइन, बार, पाई, मानचित्र और फ़नल।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।