auditing-endpoints
Skill by PostHog
Audits every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. It reports findings and recommended actions without changing anything until the user confirms.
Install auditing-endpoints
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/endpoints/skills/auditing-endpoints ~/.claude/skills/auditing-endpointsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/endpoints/skills/auditing-endpoints ~/.gemini/antigravity-cli/skills/auditing-endpointsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The auditing-endpoints skill produces a project-wide audit of the Endpoints product in PostHog. It looks for endpoints that have never been called, are stale, are inactive, have failing materialisations, or have unused materialised versions. Findings are grouped by issue type with recommended actions. The audit is read-only, and it only changes anything after the user explicitly confirms.
It reads endpoint metadata from the system.data_modeling_endpoints table and usage from query_log, both through execute-sql. It uses endpoint-materialization-status and endpoint-versions to check materialisation health and per-version recency. It is aimed at users who want to find what to clean up, take over a project they have inherited, or run a periodic review of endpoint sprawl. Deeper investigation of a single endpoint is handed off to the diagnosing-endpoint-performance skill.
Written from the project's SKILL.md and checked against it.
What it can do
- execute-sqlReads endpoint metadata from system.data_modeling_endpoints and usage from query_log using HogQL.
- endpoint-materialization-statusChecks whether each endpoint is eligible for materialisation, its status, last run, and last error.
- endpoint-versionsLists all versions of one endpoint with their materialisation state and last_executed_at.
- endpoint-updateDisables an endpoint or unmaterialises a version, only after the user confirms.
- agent-feedbackSends feedback to the PostHog team about what is missing or confusing in this flow.
What you need
- A PostHog project with the Endpoints product
- Access to the execute-sql, endpoint-materialization-status, endpoint-versions and endpoint-update tools
Try asking
- Audit my endpoints
- What endpoints can I clean up?
- Which materialised versions are still being called?
Good to know
- The audit is read-only and does not modify anything without explicit confirmation.
- Usage counts only personal-API-key calls, so endpoints used only from the Playground or app look unused.
- Per-version last_executed_at only covers runs since that tracking was added.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/endpoints/skills/auditing-endpoints/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to auditing-endpoints
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
auditing-endpoints: common questions
Does the endpoints audit delete or change my endpoints?
No. The audit only reports findings. Disabling an endpoint or unmaterialising a version requires explicit user confirmation.
Why might an endpoint look unused when it is still in use?
Usage only counts personal-API-key calls. An endpoint exercised solely from the Playground tab or the app will appear unused.
What counts as a stale endpoint in the audit?
An endpoint is stale when query_log shows its last call was more than 30 days ago.
How do I install auditing-endpoints?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is auditing-endpoints free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is auditing-endpoints safe to use?
It scores 85 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 auditing-endpoints?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
