turning-engineering-analytics-into-insights
Qué hace
Esta skill crea gráficos, paneles y suscripciones guardados a partir de datos de ingeniería, como pull requests y ejecuciones de CI. Está pensada para responsables de ingeniería que quieren seguir la salud de la entrega a lo largo del tiempo.
Cuándo usarla
- ✓Cuando quieres un panel guardado que siga las pull requests o la salud del CI.
- ✓Cuando quieres suscribir a un equipo a una vista recurrente de datos de ingeniería.
- ✓Cuando quieres consultar directamente datos de pull requests o de flujos de GitHub con SQL.
Link de la skill
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea un panel en PostHog que siga cuánto tardan nuestras pull requests en fusionarse cada semana.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Busca las tablas de datos de GitHub de tu equipo y reconstruye la misma lógica que usan las vistas de ingeniería integradas. Después guarda el resultado como insight o panel.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 /
Preguntas frecuentes
¿Puedo guardar como insights las herramientas de ingeniería integradas?
No. Las herramientas integradas se ejecutan de forma privada y no pueden guardarse directamente, así que la skill reconstruye la lógica con SQL.
¿Por qué no escribir mi propio SQL para el cálculo del coste?
Las vistas compartidas contienen las reglas de coste y de commits del producto, así que las cifras siguen siendo correctas cuando esa lógica cambia.
¿Qué datos usa?
Usa las tablas de GitHub de pull requests, revisiones, ejecuciones de flujos y trabajos, además de tres vistas curadas de coste de trabajos, historial de trabajos y fallos.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6866
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
depot-ci
41 milAyuda a tu agente a configurar y ejecutar flujos de Depot CI, una alternativa a GitHub Actions, y a leer los registros de ejecución.
depot-container-builds
41 milAyuda a tu agente a crear imágenes de Docker en los constructores remotos de Depot, incluidas las multiplataforma, y a corregir fallos.
depot-github-runners
41 milAyuda a tu agente a pasar los trabajos de GitHub Actions a runners gestionados por Depot, elegir su tamaño y etiquetas y resolver problemas de configuración.
editing-agents-md
41 milAyuda a tu agente a decidir si una regla debe ir en un archivo AGENTS.md o CLAUDE.md, y a escribirla para que se cumpla sin sobrecargar el archivo.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.