managing-endpoint-versions

managing-endpoint-versions is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 111 tokens per session (1,959 once invoked), scanned A, original, MIT.

A guide to managing different saved versions of a PostHog endpoint query. It explains how query edits create versions, how to preview drafts, and how to roll back or deactivate versions.

In plain words
What is it for?
Use it to preview changes, roll back to an older version, update version settings, or disable one version without disabling all versions.
Why use it?
It prevents callers from unexpectedly using changed queries and helps you control which endpoint versions are active.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to preview changes, roll back to an older version, update version settings, or disable one version without disabling all versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/managing-endpoint-versions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill managing-endpoint-versions
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for managing-endpoint-versions

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/managing-endpoint-versions/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/managing-endpoint-versions)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/managing-endpoint-versions"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/managing-endpoint-versions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for managing-endpoint-versions

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/managing-endpoint-versions"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/managing-endpoint-versions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 27
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 42
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.01959
Opus 5 $0.00056 $0.00979
Sonnet 5 $0.00022 $0.00392
Haiku 4.5 $0.00011 $0.00196

Measured 5d ago against content hash 9799af8d27a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

managing-endpoint-versions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/endpoints/skills/managing-endpoint-versions/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Managing endpoint versions

This skill is the practical guide to endpoint versioning. It covers the today-workflow, which has some sharp edges worth being explicit about.

When to use this skill

  • "How do I roll back to v3?"
  • "I want to test changes before they go live"
  • "How do I update the description / data_freshness_seconds on a specific version?"
  • "Can I disable v4 without affecting v5?"
  • The user is uncertain whether a query change will cut a new version

Versioning model — what to know

Behaviour Reality
Query change Auto-cuts a new version. Saving any edit to the query creates a new version and bumps the current version number
Settings change (description, data_freshness_seconds, materialisation) Does not cut a new version. Updates the targeted version in place
The "current" version Always the highest version number — it's not a pointer you can move backwards
Calling without ?version=N Runs the latest version. So unpinned callers always hit the newest
Disabling the whole endpoint endpoint-update with is_active: false (no version) takes every version offline at once
Disabling a single version endpoint-update with version + is_active: false retires one version without affecting the others

Read the full file on GitHub · 163 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 163 lines · 111 tokens per session scan A 9799af8d27a7

Subscribe to this mod's changes

managing-endpoint-versions is a skill published in the GitHub repository PostHog/posthog-foss (714 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,959 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.