Zum Inhalt springen
Skillpedia
Analyse & Tabellen41k · #6866

turning-engineering-analytics-into-insights

Was er macht

Dieser Skill baut gespeicherte Diagramme, Dashboards und Abonnements aus Engineering-Daten wie Pull Requests und CI-Läufen. Er richtet sich an Engineering-Manager, die die Liefergesundheit über die Zeit verfolgen wollen.

Wann du ihn nutzt

  • ✓Wenn du ein gespeichertes Dashboard willst, das die Gesundheit von Pull Requests oder der CI verfolgt.
  • ✓Wenn du ein Team für eine wiederkehrende Ansicht von Engineering-Daten abonnieren willst.
  • ✓Wenn du GitHub-Pull-Request- oder Workflow-Daten direkt mit SQL abfragen willst.

Link zum Skill

https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Erstelle ein Dashboard in PostHog, das verfolgt, wie lange unsere Pull Requests pro Woche bis zum Merge brauchen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill findet die GitHub-Datentabellen für dein Team und baut dieselbe Logik nach, die die eingebauten Engineering-Ansichten nutzen. Danach speichert er das Ergebnis als Insight oder Dashboard.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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 /

Häufige Fragen

Kann ich die eingebauten Engineering-Werkzeuge als Insights speichern?

Nein. Die eingebauten Werkzeuge laufen intern und können nicht direkt gespeichert werden, deshalb baut der Skill die Logik mit SQL nach.

Warum nicht eigene SQL für die Kostenberechnung schreiben?

Die gemeinsamen Ansichten enthalten die Kosten- und Commit-Regeln des Produkts, damit die Zahlen auch dann stimmen, wenn sich diese Logik ändert.

Welche Daten nutzt er?

Er nutzt die GitHub-Tabellen für Pull Requests, Reviews, Workflow-Läufe und Jobs sowie drei kuratierte Ansichten für Jobkosten, Jobverlauf und Fehler.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
41k
Platz im Ranking
#6866
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills