sql-reporting
यह क्या करती है
यह आपके एजेंट को data warehouse से metrics या रिपोर्ट निकालने वाली SQL लिखने की एक checklist देती है। यह analysts और उन सबके लिए है जिन्हें database टेबल से भरोसेमंद संख्याएँ चाहिए।
कब इस्तेमाल करें
- ✓जब आप warehouse टेबल से कोई metric, रिपोर्ट या dashboard का आँकड़ा चाहते हैं।
- ✓जब किसी query को counts, sums या rolling windows जोड़ने हैं।
- ✓जब किसी रिपोर्ट को दो या अधिक टेबल का डेटा मिलाना है।
Skill का लिंक
https://github.com/apache/airflow/blob/main/providers/common/ai/src/airflow/providers/common/ai/example_dags/skills/sql-reporting/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप ऐसी query लिख सकते हैं जो हमारी warehouse टेबल से इस महीने के ऑर्डर क्षेत्र के हिसाब से गिने?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट तय नियमों का पालन करता है, जैसे पहले तारीख से filter करना और हर total का नाम रखना। वह अपनी query को एक छोटी समीक्षा सूची से जाँचता है और एक वाक्य के सारांश के साथ SQL लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
SQL Reporting Skill
Apply this skill before writing or running any analytics SQL so reports stay consistent and safe.
When to Use This Skill
Use this skill when the task involves:
- Querying warehouse tables for a metric, report, or dashboard figure
- Aggregating rows (counts, sums, rolling windows)
- Cross-referencing two or more tables
Conventions
- Always
SELECTexplicit column names, neverSELECT *. - Filter on a partition/date column first to bound the scan.
- Alias aggregates with snake_case names (
order_count, notcount(*)). - Cap exploratory queries with
LIMITunless an aggregate already collapses the result set. - Prefer
COUNT(DISTINCT ...)over a sub-query when de-duplicating.
Review Checklist (run before returning an answer)
- No
SELECT *. - A date or partition predicate is present.
- Every aggregate has an explicit alias.
- The query reads only from tables the task actually needs.
Output Format
Return the final SQL in a fenced ```sql block, then one sentence describing what the query returns.
अक्सर पूछे जाने वाले सवाल
SELECT star से क्यों बचें?
स्किल कहती है कि स्पष्ट column नाम लिखें, इससे queries साफ़ रहती हैं और जाँचना आसान होता है।
क्या यह query कितना डेटा पढ़ेगी, यह सीमित करती है?
हाँ। स्किल कहती है कि पहले तारीख या partition column से filter करें, और खोजी queries में limit जोड़ें।
जवाब कैसा दिखता है?
अंतिम SQL एक code block में आता है, उसके बाद एक वाक्य जो बताता है कि query क्या लौटाती है।
जानकारी
लेखक का मूल विवरण
Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.
repo: apache/airflow
लोकप्रियता
- GitHub स्टार
- 47k
- रैंकिंग में स्थान
- #6317
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।