turning-engineering-analytics-into-insights
यह क्या करती है
यह स्किल इंजीनियरिंग डेटा, जैसे pull requests और CI रन, से सहेजे गए चार्ट, डैशबोर्ड और सब्सक्रिप्शन बनाती है। यह इंजीनियरिंग मैनेजर के लिए है जो समय के साथ डिलीवरी की सेहत ट्रैक करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपको pull requests या CI की सेहत ट्रैक करने वाला सहेजा हुआ डैशबोर्ड चाहिए।
- ✓जब आप किसी टीम को इंजीनियरिंग डेटा के आवर्ती व्यू का सब्सक्रिप्शन देना चाहें।
- ✓जब आप GitHub pull request या वर्कफ़्लो डेटा को सीधे SQL से क्वेरी करना चाहें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“PostHog में एक डैशबोर्ड बनाइए जो हर हफ़्ते दिखाए कि हमारे pull requests को मर्ज होने में कितना समय लगता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह आपकी टीम के GitHub डेटा टेबल ढूँढती है और वही लॉजिक दोबारा बनाती है जो बिल्ट-इन इंजीनियरिंग व्यू इस्तेमाल करते हैं। फिर नतीजा इनसाइट या डैशबोर्ड के रूप में सहेजती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Turning engineering analytics into insights and subscriptions
The engineering analytics dashboard and MCP tools (pull-requests, workflow-health, pr-lifecycle, engineering-analytics-broken-tests, …)
run curated HogQL privately: nothing in the UI or the tool output names the underlying tables,
and the endpoints cannot themselves be saved as insights or subscribed to.
The data, however, is queryable directly, through two substrates:
- Raw warehouse tables —
<prefix>github_pull_requests,<prefix>github_workflow_runs,<prefix>github_workflow_jobs,<prefix>github_reviews, and<prefix>github_teams/<prefix>github_team_members(org team membership — the author→team map) — ordinary team-scoped tables you query with HogQL. - Three curated warehouse views with fixed names —
engineering_analytics_job_costs,engineering_analytics_ci_job_history,engineering_analytics_ci_failures— provisioned per team from the connected GitHub source(s). Non-materialized: computed at query time, always current, and they back insights and subscriptions like any table.
The views exist for exactly one reason: they render product code into SQL — the runner-tier cost model, the failure-fingerprint recipe, the jobs↔runs commit-attribution rules — logic that would silently drift if hand-rolled, re-rendered into the team's view whenever the code changes. Everything else is just table data, and pure HogQL over the raw tables is always enough: never create additional warehouse views for engineering analytics data, and never re-derive in SQL what the three views already encode.
| What the product shows | Where the data actually lives | Can it back an insight? |
|---|---|---|
| PR list, merge times, CI status, workflow health | Data warehouse tables <prefix>github_pull_requests, <prefix>github_workflow_runs |
Yes (SQL insight over the tables) |
| Reviews and approvals | <prefix>github_reviews |
Yes |
| Team-level PR metrics (author→team attribution) | <prefix>github_team_members semi-joined against the PR authors |
Yes (team aggregates only) |
| Job durations, queue times, runner tiers | <prefix>github_workflow_jobs |
Yes |
| CI cost (runner-tier price ladder) | engineering_analytics_job_costs view |
Yes (query the view, never recompute cost) |
| Per-job CI history with commit attribution | engineering_analytics_ci_job_history view |
Yes |
| Grouped (fingerprinted) CI failure lines | engineering_analytics_ci_failures view (reads the Logs product, short retention) |
Yes, for short recent windows |
| Thinned CI failure logs for a PR or run | Logs product (service_name = 'github-ci-logs') + thinning logic |
No (use the MCP tools ad hoc) |
| Flaky-test leaderboard, broken-tests triage, team CI health | CI trace spans + ranking/classification logic in product code | No (use the MCP tools ad hoc) |
So the job splits cleanly: warehouse-backed metrics (raw tables or the three views) become SQL insights (then dashboards, then subscriptions); everything computed by product logic at request time stays on the MCP tools, delivered recurringly via an AI subscription if needed.
Step 1: discover the team's tables
Warehouse table names carry a user-chosen prefix, so never hardcode them.
Call the engineering-analytics-sources MCP tool: each connected GitHub source returns its id, repo, and prefix.
The tables are <prefix>github_pull_requests, <prefix>github_workflow_runs, <prefix>github_workflow_jobs, <prefix>github_reviews, and <prefix>github_teams /
अक्सर पूछे जाने वाले सवाल
क्या मैं बिल्ट-इन इंजीनियरिंग टूल को इनसाइट के रूप में सहेज सकता हूँ?
नहीं। बिल्ट-इन टूल निजी तौर पर चलते हैं और सीधे सहेजे नहीं जा सकते, इसलिए स्किल लॉजिक को SQL से दोबारा बनाती है।
लागत की गणना के लिए अपना SQL क्यों न लिखूँ?
साझा व्यू में उत्पाद के लागत और कमिट के नियम होते हैं, इसलिए जब वह लॉजिक बदले तब भी आँकड़े सही रहते हैं।
यह कौन सा डेटा इस्तेमाल करती है?
यह pull requests, समीक्षाओं, वर्कफ़्लो रनों और जॉब की GitHub टेबल इस्तेमाल करती है, साथ ही जॉब लागत, जॉब इतिहास और विफलताओं के लिए तीन चुने हुए व्यू।
जानकारी
लेखक का मूल विवरण
Converts engineering analytics (PR / CI) data into saved PostHog insights, dashboards, and subscriptions, and explains how to query the product data directly with SQL. Covers discovering per-team GitHub warehouse tables via engineering-analytics-sources, replicating curated column semantics in HogQL, reading exposed engineering_analytics_* warehouse views where product logic is involved (CI cost, fingerprinted failure lines, commit attribution), saving queries with insight-create, and scheduling delivery with subscriptions-create. Use when asked to "save this as an insight", "put CI health / m
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6866
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।