turning-engineering-analytics-into-insights
Skill by PostHog
Turns PR and CI data from engineering analytics into saved PostHog insights, dashboards, and scheduled subscriptions. Intended for teams that want recurring engineering reports in PostHog.
Install turning-engineering-analytics-into-insights
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/engineering_analytics/skills/turning-engineering-analytics-into-insights ~/.claude/skills/turning-engineering-analytics-into-insigRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install turning-engineering-analytics-into-insights in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/engineering_analytics/skills/turning-engineering-analytics-into-insights ~/.gemini/antigravity-cli/skills/turning-engineering-analytics-into-insigAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install turning-engineering-analytics-into-insights in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill turns pull request and CI data from engineering analytics into saved PostHog insights, dashboards, and scheduled subscriptions. It also explains how to query that data directly with HogQL and which tables and views hold it. It starts by finding the per-team GitHub warehouse tables with engineering-analytics-sources, then writes queries that follow the product's own rules for timestamps, JSON fields, bots, drafts, and team attribution.
The assistant tests each query with execute-sql, saves it with insight-create, and groups insights with dashboard-create. Delivery is scheduled with subscriptions-create. Metrics that depend on product logic, such as flaky tests and team CI health, stay on MCP tools and can run in AI subscriptions. The skill is aimed at teams that want recurring engineering reports in PostHog.
Written from the project's SKILL.md and checked against it.
What it can do
- engineering-analytics-sourcesLists each repository with its id, repo, table prefix, and sync status.
- execute-sqlTests a HogQL query before anything is saved as an insight.
- insight-createSaves a tested SQL query as a SQL insight.
- dashboard-createGroups several saved insights on one dashboard.
- subscriptions-createSchedules delivery of insights on a chosen frequency.
- creating-ai-subscriptionSets up recurring AI reports that call the flaky test, broken test, or team CI health tools.
- engineering_analytics_job_costs viewProvides CI cost per job attempt for charting.
- engineering_analytics_ci_job_history viewProvides job history with commit attribution.
- engineering_analytics_ci_failures viewProvides fingerprinted pytest failure lines for short recent windows.
What you need
- A PostHog project with a GitHub source that syncs workflow runs and workflow jobs
- Engineering analytics opened at least once in the project
- PostHog MCP tools available to the AI assistant
Try asking
- Save this as an insight: weekly PR open to merge time in hours
- Put CI health and merge times on a dashboard
- Email me PR throughput every week
Good to know
- Alerts support only trends insights, so a SQL insight cannot have one.
- The engineering_analytics views are not materialized, so each query computes them from current data.
- The failure view holds pytest failures only and no passing runs, so its counts are absolute, not rates.
- Dashboard date filters do not change the relative time window written in the SQL.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/engineering_analytics/skills/turning-engineering-analytics-into-insights/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/hogql-recipes.md10 KB
Alternatives to turning-engineering-analytics-into-insights
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
turning-engineering-analytics-into-insights: common questions
Can I save engineering analytics results as a PostHog insight?
The MCP tool output cannot be saved directly. The same data can be queried with HogQL, and that SQL can be saved as an insight and placed on a dashboard or subscription.
Which tables does engineering analytics read?
The skill lists GitHub tables such as github_pull_requests, github_workflow_runs, github_workflow_jobs, github_reviews, and github_team_members, plus the engineering_analytics views for CI cost, job history, and failures.
Why does a null estimated cost not mean zero?
According to the skill, a null estimated_cost_usd means the job was not billable or has not finished. It does not mean the cost was zero.
How do I install turning-engineering-analytics-into-insights?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is turning-engineering-analytics-into-insights free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is turning-engineering-analytics-into-insights safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to turning-engineering-analytics-into-insights?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
