Перейти к содержанию
Skillpedia
Базы данных41k · #6857

auditing-endpoints

Что он делает

Этот скилл проверяет все эндпоинты в проекте PostHog и выдаёт приоритизированный отчёт о том, что стоит убрать. Он предназначен для тех, кто управляет многими эндпоинтами и хочет сократить хлам и расходы.

Когда использовать

  • ✓Когда вы хотите знать, какие эндпоинты можно удалить или очистить.
  • ✓Когда вы принимаете проект PostHog и хотите увидеть, какие эндпоинты в нём уже есть.
  • ✓Когда эндпоинты работают давно и вы хотите периодически их проверять.

Ссылка на скилл

https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/auditing-endpoints/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/auditing-endpoints/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Проверь мои эндпоинты PostHog и скажи, какие из них можно убрать.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл использует инструменты эндпоинтов, чтобы найти кандидатов, например падающие материализации и неиспользуемые материализованные версии, и затем группирует их в отчёт. Он ничего не меняет.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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
Частые вопросы

Удаляет ли этот скилл какие-нибудь эндпоинты?

Нет. Он только сообщает, что нашёл, а решение об удалении принимаете вы.

Что такое материализованная версия эндпоинта?

Это сохранённая копия результатов эндпоинта, которая может тратить хранилище и вычисления, даже если её никто не вызывает.

Как узнать, как часто вызывается эндпоинт?

Скилл предлагает запросить журнал запросов для частоты и давности вызовов, так как каждая версия показывает время последнего запуска.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
41k
Место в рейтинге
#6857
Лицензия
—
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы