building-a-dashboard
O que ela faz
Esta skill cria ou atualiza um dashboard escolhendo os insights certos, reutilizando os existentes e adicionando os gráficos que faltam. É para quem quer um dashboard limpo sobre um tema como retenção ou receita sem montar cada gráfico manualmente.
Quando usar
- ✓Quando você quer um novo dashboard sobre um tema como ativação, retenção ou receita.
- ✓Quando você quer adicionar, remover ou substituir insights em um dashboard que já existe.
- ✓Quando você quer várias métricas em uma só página para sua equipe.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/dashboards/skills/building-a-dashboard/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Crie um dashboard para nosso funil de ativação com as métricas principais e um gráfico de retenção.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA primeiro procura dashboards, templates e insights existentes que sirvam, depois cria os gráficos que faltam. Organiza tudo em um layout legível e verifica o que um dashboard existente contém antes de alterá-lo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela cria um dashboard sem perguntar?
Se o pedido não estiver claro, ela faz uma pergunta curta antes, como se deve criar um novo ou atualizar um existente.
Ela reutiliza meus gráficos existentes?
Sim. Ela procura insights existentes e só cria novos onde é necessário.
Onde ficam as definições oficiais de métricas?
Elas ficam no catálogo de dados do PostHog, e não em anotações no dashboard.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6846
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
slacrawl
394 milPermite que seu agente pesquise e conte mensagens em um arquivo local do Slack, verifique quão atualizado ele está e o atualize quando necessário.
goplaces
394 milAjuda seu agente a buscar lugares, obter detalhes e avaliações e identificar nomes de lugares usando o Google Places, com saída em JSON para scripts.