本文へスキップ
Skillpedia
分析とスプレッドシート41k · #6866

turning-engineering-analytics-into-insights

できること

このスキルは、プルリクエストやCIの実行などのエンジニアリングのデータから、保存されたチャートやダッシュボード、サブスクリプションを作ります。配信の健全性を時間とともに追跡したいエンジニアリングマネジャー向けです。

使う場面

  • ✓プルリクエストやCIの健全性を追跡する、保存されたダッシュボードがほしいとき。
  • ✓チームを、エンジニアリングデータの定期的なビューに登録したいとき。
  • ✓GitHubのプルリクエストやワークフローのデータを、SQLで直接クエリしたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“プルリクエストが週ごとにマージされるまでにかかる時間を追跡する、PostHogのダッシュボードを作ってください。”

毎週5つの新しいスキル。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を書かないのはなぜですか?

共有のビューにはプロダクトのコストとコミットのルールが入っているため、そのロジックが変わっても数字が正しく保たれます。

どのデータを使いますか?

GitHubのプルリクエスト、レビュー、ワークフローの実行、ジョブのテーブルと、ジョブのコスト、ジョブの履歴、失敗のための3つのキュレーションされたビューを使います。

詳細

作者による元の説明

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
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル