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.
npx skills add PostHog/posthog-foss --skill warehouse-source-new-versiongit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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.
[](https://agentmods.dev/skills/posthog/posthog-foss/warehouse-source-new-version)<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.
<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>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.
| Model | Per session | Once 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 |
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. 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
_BaseSourceinsources/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 fromdocsUrl(posthog.com).deprecated_versions: tuple[VersionDeprecation, ...]— versions the vendor has deprecated (VersionDeprecation(version=..., sunset_at=date | None)fromsources/common/base.py).
- Each
ExternalDataSourcerow pins one version in itsapi_versioncolumn (NULL resolves todefault_version). A schema may additionally carry a user-managed override inExternalDataSchema.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 inworkflow_activities/import_data_sync.pyand hands the result to the source asSourceInputs.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 = Noneparameter carrying the source instance's resolved pin (None→default_version):get_schemas,validate_credentials,get_endpoint_permissions, and theWebhookSourcemanagement methods (create_webhook,sync_webhook_events,webhook_inputs_updated,get_external_webhook_info,delete_webhook). Callers with a source row (creation,refresh_schemas, backgroundsync_new_schemas, webhook endpoints, schema-scoped probes) pass the resolved pin; pre-creation flows (wizarddatabase_schema, one-shotsetup) omit it, which resolves todefault_version— the version the new row is stamped with (get_endpoint_permissionscurrently has only the pre-creation caller, so its parameter is alwaysNonetoday). 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 ingithub_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). Theapi_versionpin is queryable in HogQL via thedata_warehouse_sourcessystem table. - Registry-wide invariants are enforced by
sources/tests/test_source_versions.py: default in supported and always the last entry (declaresupported_versionsoldest→newest; flip the default in the same PR), deprecated ⊆ supported, default never deprecated, httpsapi_docs_url.
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.
- 2d ago Changed 837ec11ca9ae
- 1mo ago Changed 219db5fbdcab
- 1mo ago Changed · +4 lines e2a22aa38717
- 1mo ago Changed · +5 lines b8946c0b3187
- 1mo ago Changed d2ae2ac7d4f3
- 1mo ago Changed · +13 lines f97dc4b6ced8
- 1mo ago Changed · +1 lines 696252f72068
- 2mo ago Changed dbc11f9c73f7
- 2mo ago Changed · +2 lines 8774ab5d92e6
- 2mo ago First seen · 113 lines · 128 tokens per session scan C 9b3340ccc2a2
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.
warehouse-source-new-version compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| warehouse-source-new-versionPostHog/posthog-foss | Skill | 736 | today | MIT | C | 128 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 6d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 105 | Claude Code, Codex |