warehouse-source-new-version

warehouse-source-new-version is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 128 tokens per session (8,511 once invoked), scanned C, original, MIT.

A guide for adding support for a new version of a vendor's API to an existing data-import source. It explains how to keep older supported versions working while setting defaults and recording deprecations.

In plain words
What is it for?
Use it when a vendor changes its API and you need to update version lists, defaults, deprecation dates, or import-source behavior.
Why use it?
It prevents an API update from breaking existing imports or leaving the source without clear version behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when a vendor changes its API and you need to update version lists, defaults, deprecation dates, or import-source behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/warehouse-source-new-version
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 warehouse-source-new-version
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 warehouse-source-new-version

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/warehouse-source-new-version/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/warehouse-source-new-version)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/warehouse-source-new-version"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/warehouse-source-new-version/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 warehouse-source-new-version

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/warehouse-source-new-version"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/warehouse-source-new-version.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00128 $0.08511
Opus 5.5 $0.00051 $0.03404
Sonnet 5.5 $0.00026 $0.01702
Haiku 4.5 $0.00013 $0.00851

Measured 2d ago against content hash 837ec11ca9ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

warehouse-source-new-version scanned grade C with 1 finding 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 2d 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.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

- Version → header/path maps must cover every supported label — a `.get()` fallthrough silently sends no version header (tracking "latest", the drift this framework prevents). Assert coverage or raise.
.agents/skills/warehouse-source-new-version/SKILL.md · 138 lines

How it starts

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

Adding a new vendor API version to a warehouse source

Use this skill when a vendor has released a new API version and an existing source under products/warehouse_sources/sources/<dir>/ (or products/warehouse_sources/backend/temporal/data_imports/sources/<dir>/ for a vendor that stays in the product) must support it while keeping every previously supported version functional.

How versioning works

  • Every source class (subclass of _BaseSource in sources/common/base.py) declares:
    • supported_versions: tuple[str, ...] — opaque vendor labels, never parsed or ordered by the framework. Default ("v1",) (UNVERSIONED_API_VERSION) for vendors without meaningful versioning.
    • default_version: str — used when a source instance has no pin, and stamped onto newly created sources.
    • api_docs_url: str | None — the vendor's API docs/changelog page (where new versions are announced). Distinct from docsUrl (posthog.com).
    • deprecated_versions: tuple[VersionDeprecation, ...] — versions the vendor has deprecated (VersionDeprecation(version=..., sunset_at=date | None) from sources/common/base.py).
  • Each ExternalDataSource row pins one version in its api_version column (NULL resolves to default_version). A schema may additionally carry a user-managed override in ExternalDataSchema.api_version (set from the schema's configuration page; not available for webhook-sync schemas) which wins over the source pin for that schema only. The sync pipeline resolves override → pin → default in workflow_activities/import_data_sync.py and hands the result to the source as SourceInputs.api_version — already resolved, never None there.
  • A pinned source uses its version everywhere, not just at sync time. Every vendor-touching surface on the source classes takes an api_version: str | None = None parameter carrying the source instance's resolved pin (None → default_version): get_schemas, validate_credentials, get_endpoint_permissions, and the WebhookSource management methods (create_webhook, sync_webhook_events, webhook_inputs_updated, get_external_webhook_info, delete_webhook). Callers with a source row (creation, refresh_schemas, background sync_new_schemas, webhook endpoints, schema-scoped probes) pass the resolved pin; pre-creation flows (wizard database_schema, one-shot setup) omit it, which resolves to default_version — the version the new row is stamped with (get_endpoint_permissions currently has only the pre-creation caller, so its parameter is always None today). Base-path/URL/header construction from it happens inside each source. Deliberately NOT version-threaded (pure mappings or version-independent surfaces — thread them if a real vendor version ever diverges there): get_desired_webhook_events/webhook_resource_map (event-name mappings), get_connection_metadata, and GitHub's per-repo webhook helpers in github_warehouse_repos.py.
  • These declarations are exposed publicly via GET /api/public_source_configs/ (versions, defaultVersion, apiDocsUrl, deprecatedVersions) and per-instance via the source API (api_version, api_version_deprecation). The api_version pin is queryable in HogQL via the data_warehouse_sources system table.
  • Registry-wide invariants are enforced by sources/tests/test_source_versions.py: default in supported and always the last entry (declare supported_versions oldest→newest; flip the default in the same PR), deprecated ⊆ supported, default never deprecated, https api_docs_url.

Read the full file on GitHub · 138 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. 2d ago Changed 837ec11ca9ae
  2. 1mo ago Changed 219db5fbdcab
  3. 1mo ago Changed · +4 lines e2a22aa38717
  4. 1mo ago Changed · +5 lines b8946c0b3187
  5. 1mo ago Changed d2ae2ac7d4f3
  6. 1mo ago Changed · +13 lines f97dc4b6ced8
  7. 1mo ago Changed · +1 lines 696252f72068
  8. 2mo ago Changed dbc11f9c73f7
  9. 2mo ago Changed · +2 lines 8774ab5d92e6
  10. 2mo ago First seen · 113 lines · 128 tokens per session scan C 9b3340ccc2a2

Subscribe to this mod's changes

warehouse-source-new-version is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 8,511 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent to send conversation or user data out). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

warehouse-source-new-version compared with skills from other repositories

warehouse-source-new-version next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
warehouse-source-new-versionPostHog/posthog-fossSkill736todayMITC128Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k6d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3ktodayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill707yesterdayMITA105Claude Code, Codex