turning-engineering-analytics-into-insights
Skill này làm gì
Skill này xây dựng biểu đồ, dashboard và đăng ký đã lưu từ dữ liệu kỹ thuật như pull request và lần chạy CI. Nó dành cho quản lý kỹ thuật muốn theo dõi sức khỏe giao sản phẩm theo thời gian.
Khi nào nên dùng
- ✓Khi bạn muốn một dashboard đã lưu để theo dõi sức khỏe pull request hoặc CI.
- ✓Khi bạn muốn đăng ký cả đội vào một góc nhìn định kỳ về dữ liệu kỹ thuật.
- ✓Khi bạn muốn truy vấn trực tiếp dữ liệu pull request hoặc workflow của GitHub bằng SQL.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một dashboard trong PostHog theo dõi thời gian pull request của chúng tôi cần để được gộp mỗi tuần.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill tìm các bảng dữ liệu GitHub của đội bạn, rồi tái tạo cùng logic mà các view kỹ thuật có sẵn đang dùng. Sau đó, skill lưu kết quả thành insight hoặc dashboard.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 /
Câu hỏi thường gặp
Tôi có thể lưu các công cụ kỹ thuật có sẵn thành insight không?
Không. Các công cụ có sẵn chạy riêng tư và không thể lưu trực tiếp, nên skill tái tạo logic bằng SQL.
Vì sao không tự viết SQL cho phép tính chi phí?
Các view dùng chung chứa quy tắc chi phí và commit của sản phẩm, nên các con số vẫn đúng khi logic đó thay đổi.
Skill dùng dữ liệu nào?
Nó dùng các bảng GitHub cho pull request, đánh giá, lần chạy workflow và job, cùng ba view đã được chọn lọc cho chi phí job, lịch sử job và lỗi.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6866
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.