auditing-endpoints
O que ela faz
Esta skill verifica todos os endpoints de um projeto do PostHog e entrega um relatório priorizado do que limpar. É para quem gerencia muitos endpoints e quer reduzir a bagunça e o custo.
Quando usar
- ✓Quando você quer saber quais endpoints pode apagar ou limpar.
- ✓Quando você está assumindo um projeto do PostHog e quer ver quais endpoints ele já tem.
- ✓Quando endpoints rodam há muito tempo e você quer uma revisão periódica.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/auditing-endpoints/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
“Audite meus endpoints do PostHog e me diga quais posso limpar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela usa as ferramentas de endpoint para encontrar candidatos, como materializações com falha e versões materializadas não usadas, e os agrupa em um relatório. Ela não altera nada.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Auditing endpoints
This skill produces a project-wide audit of the Endpoints product. Use it when the user wants to find what to clean up — unused endpoints, failing materialisations, materialised versions that nobody calls any more. It does not modify anything; it reports.
The deeper investigation per endpoint is diagnosing-endpoint-performance. The audit's job is to
find candidates and hand off.
When to use this skill
- "Audit my endpoints" / "What endpoints can I clean up?"
- The user is taking over a project and wants to know what they've inherited
- A periodic review (monthly / quarterly) of endpoint sprawl
- The user is over a materialisation cost budget and wants to know what to disable
The dedicated tools give a fast endpoint-level view. For call frequency, recency, and cost over
time, query the query_log table with execute-sql (endpoint-level). Per-version recency comes
from endpoint-versions — each version carries its own last_executed_at.
Available tools
| Tool | What it's for |
|---|---|
execute-sql (HogQL) |
Primary read path. Query system.data_modeling_endpoints for metadata (name, is_active, current_version, derived_from_insight, last_executed_at) and query_log for endpoint-level usage (call counts, recency, duration, bytes) |
endpoint-materialization-status |
Per endpoint: is materialisation eligible, current status, last run, last error (not in the system tables — use this tool) |
endpoint-versions |
All versions for one endpoint, latest first, with each version's query, materialisation state, and last_executed_at |
endpoint-update |
Write path — disable (is_active: false) or unmaterialise (is_materialized: false) after the user confirms |
agent-feedback |
Tell the PostHog team what's missing or confusing in this flow so the product and skill improve |
Prefer reading from the system tables over the endpoints-get-all / endpoint-get tools — one
SQL query returns the whole inventory and lets you join metadata to usage in query_log.
What counts as an issue
| Category | Trigger | Typical action |
|---|---|---|
| Never called | No rows in query_log for the endpoint (personal-API-key calls only) |
Confirm with the user, then disable |
| Stale | query_log shows the last call more than 30 days ago |
Confirm with the user; often safe to disable |
| Inactive | is_active = 0 in system.data_modeling_endpoints |
Verify intent; if abandoned, delete |
| Failing materialisation | endpoint-materialization-status returns Failed with an error |
Hand off to diagnosing-endpoint-performance |
| Unused materialised version | A materialised version whose last_executed_at (from endpoint-versions) is null or long stale |
Unmaterialise that version, or roll to a newer one |
| Drifted versions | Many versions exist (query |
Perguntas frequentes
Esta skill apaga algum endpoint?
Não. Ela só relata o que encontra, então você decide o que remover.
O que é uma versão materializada de endpoint?
É uma cópia armazenada dos resultados de um endpoint, que pode custar armazenamento e computação mesmo quando ninguém o chama.
Como vejo com que frequência um endpoint é chamado?
A skill sugere consultar o log de consultas para ver a frequência e a recência das chamadas, já que cada versão mostra o horário da última execução.
Detalhes
Descrição original do autor
Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks "what endpoints can I clean up?", "are any of my endpoints broken?", "which materialised versions are still being called?", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.
repo: PostHog/posthog
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6857
- 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
discrawl
394 milPermite que seu agente pesquise e resuma um arquivo local salvo de mensagens do Discord, verifique quão atualizado ele está e leia mensagens diretas.
clickhouse-io
280 milAjuda seu agente a otimizar consultas e esquemas no ClickHouse com boas práticas de alta performance. Use quando consultas analíticas forem lentas.
scientific-db-pubmed-database
280 milAjuda seu agente a buscar artigos científicos na área biomédica. É útil para pesquisas que precisam de informações médicas específicas.