managing-endpoint-versions
Skill by PostHog
Guides safe handling of PostHog endpoint versions, including previewing drafts, rolling back, and deactivating single versions. Written for people who manage endpoint version history in PostHog.
Install managing-endpoint-versions
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/managing-endpoint-versions ~/.claude/skills/managing-endpoint-versionsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install managing-endpoint-versions in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/endpoints/skills/managing-endpoint-versions ~/.gemini/antigravity-cli/skills/managing-endpoint-versionsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install managing-endpoint-versions in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a practical guide to versioning for PostHog endpoints. It covers testing a new query with execute-sql or the SQL editor before publishing, rolling back to an older version, updating settings on one version without cutting a new version, and deactivating a single version. It explains that saving a query edit always creates a new version, and that the current version is always the highest number.
The skill is explicit about limits. There is no pointer flip, so rollback forks an older query into a new top version. It describes the endpoint-versions, endpoint-get, endpoint-update and endpoint-run tools and walks through each workflow. It is aimed at people who manage endpoint version history and want to avoid surprising callers that do not pin a version.
Written from the project's SKILL.md and checked against it.
What it can do
- endpoint-versionsLists all versions for an endpoint, latest first.
- endpoint-getReturns the full endpoint config, or a specific version with ?version=N.
- endpoint-updateChanges settings on one version using the version body parameter, without cutting a new version.
- endpoint-runExecutes a specific version with ?version=N without changing what other callers hit.
- Preview a draftTests a new query with execute-sql or the SQL editor before updating the endpoint.
- Roll back an endpointCreates a new top version that reuses an older version's query.
- Deactivate one versionSets is_active to false on a single version, leaving other versions callable.
- Prune unused versionsUses last_executed_at to find likely dead versions, after confirming with the user.
What you need
- PostHog endpoints with the endpoint tools available
- Personal API key, since last_executed_at counts only personal-API-key calls
- posthog-cli, optionally, for keeping endpoint definitions as YAML
Try asking
- How do I roll back my endpoint to version 3?
- Preview my endpoint query changes before publishing them
- Deactivate version 4 of my endpoint without touching version 5
Good to know
- There is no pointer flip, so rollback creates a new top version.
- Saving any query edit creates a new version immediately, with no draft state.
- There is no in-product staging path. A sibling endpoint is the stated workaround.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/endpoints/skills/managing-endpoint-versions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to managing-endpoint-versions
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
managing-endpoint-versions: common questions
How do I roll back a PostHog endpoint?
The skill forks the older version's query into a new top version, since there is no way to move the current version pointer backwards. Old versions stay callable with ?version=N until deactivated.
Does changing a description create a new endpoint version?
No. The skill says settings changes such as description, data_freshness_seconds and materialisation update the targeted version in place. Query changes always cut a new version.
Can I disable one endpoint version without affecting the others?
Yes. Calling endpoint-update with version and is_active set to false retires only that version. Omitting version disables every version at once.
How do I install managing-endpoint-versions?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is managing-endpoint-versions free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is managing-endpoint-versions 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 managing-endpoint-versions?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
