building-a-dashboard
What it does
This skill creates or updates a dashboard by choosing the right insights, reusing existing ones and adding any missing charts. It is for anyone who wants a clean dashboard on a topic such as retention or revenue without building every chart by hand.
When to use it
- βWhen you want a new dashboard on a topic such as activation, retention or revenue.
- βWhen you want to add, remove or replace insights on a dashboard you already have.
- βWhen you want several metrics on one page for your team.
Skill link
https://github.com/PostHog/posthog/blob/master/products/dashboards/skills/building-a-dashboard/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBuild a dashboard for our activation funnel with the key metrics and a retention chart.β
5 new skills a week. 1 minute to read.
How it works
The AI first looks for existing dashboards, templates and insights that fit, then creates any charts that are missing. It arranges them in a readable layout and checks what an existing dashboard contains before changing it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Building a dashboard
A dashboard is a collection of insight tiles on one page. Your job is to figure out which insights belong on it, reuse what already exists, create what's missing, and lay them out sensibly β not to blindly generate charts.
When the dashboard needs explanatory text, keep user copy and agent context separate. Use the
writing-user-facing-copy skill for text that people read. Use agent_context for information that an agent needs to
maintain the dashboard.
PostHog's Data Catalog is the semantic layer. Store canonical metric definitions there. Never use agent_context as
a substitute for a Data Catalog metric.
Create vs update
First work out whether you're creating a new dashboard or changing an existing one.
- Search existing dashboards with
dashboards-get-all(itssearchparam does fuzzy name/description matching). If the user is clearly describing something that already exists, they probably want an update. - Read a candidate with
dashboard-getto see its current tiles before you change anything. - If the request is ambiguous β "get my financial metrics together" could mean build new or add to an existing one β ask a short clarifying question rather than guessing.
Use templates as reference
PostHog ships vetted dashboard templates for common topics, and orgs can share their own. Consult them before you build β they're a strong signal of which insights pair well on a topic.
dashboard-templates-listβ browse templates (usesearchfor a topic,scopeto narrow to global / team / organization). This returns names, descriptions, and tags only.dashboard-templates-retrieveβ open the closest template to see itstiles: which insights it groups together and how each is queried.
Treat templates as examples, not a spec. Take inspiration from the insights and their groupings, but tailor every insight to the user's own events, properties, and intent. Don't copy a template verbatim, and don't force a template onto a request it doesn't fit β a good bespoke dashboard beats a mismatched template every time.
Select the insights
Prefer reusing existing insights over recreating them.
- Search with
insights-listand read promising ones withinsight-getto check they match the user's intent and actually have data. Full-text search misses things named differently, so list broadly before concluding an insight doesn't exist. - For anything missing, read
querying-posthog-databefore choosing its query method. After Data Catalog routing, default to typed runners for each supported product-analytics tile: trends (including simple counts, unique users, sums, and breakdowns), funnels, retention, stickiness, paths, and lifecycle. Run the query to verify it, then save its native query node withinsight-create. Use SQL-backed insights for explicit SQL requests or calculations the typed schemas cannot express, such as custom joins. SQL used to discover events or existing insights does not determine the query type of new tiles. Keep valid existing insights rather than rebuilding them. - Follow
querying-posthog-datafor presenting verified query results: some harnesses show charts inline, while others need a separate top-levelrender-uicall with the same query tool and input. Rendering support does not determine the saved insight's query type. - Keep the set minimal β only the insights the request needs. A focused dashboard is more useful than an exhaustive one.
Use Data Catalog for reusable metrics
Use PostHog's Data Catalog as the source of truth for reusable business and telemetry metrics. Do this before you derive a metric from raw data or copy a definition from an existing dashboard:
- Call
posthog:metric-listand follow pagination until you have checked the complete catalog. - Call
posthog:metric-describefor each possible match. Use only anapproved, non-drifted exact match as a canonical definition. - Call
posthog:data-catalog-metric-runto verify an approved match. Use its definition when you build or update the related dashboard insight. - If the dashboard introduces a reusable metric with no governed match, follow the
setting-up-data-catalogskill and create a proposed metric withposthog:data-catalog-metric-create. Usesource_insight_short_idwhen the definition comes from an insight. A proposed metric is not canonical until a human approves it.
Do not copy the metric definition into dashboar
FAQ
Will it build a dashboard without asking?
If the request is unclear, it asks a short question first, such as whether to build new or update an existing one.
Does it reuse my existing charts?
Yes. It searches for existing insights and creates new ones only where needed.
Where do official metric definitions go?
They belong in PostHog's data catalog, not in notes on the dashboard.
Details
Original description by the author
Build a new dashboard, or update an existing one, from a set of insights β the same job the in-app assistant does with its upsert-dashboard tool, but over MCP. Use when a user asks to create a dashboard, put several metrics/charts together on one page, assemble a dashboard for a topic (product analytics, retention, revenue, activation, etc.), or add/remove/replace insights on a dashboard they already have. Covers deciding create vs update, reusing existing insights vs creating new ones, and using PostHog's vetted dashboard templates as reference for what a strong dashboard on a topic looks lik
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6846
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.