warehouse-source-new-version
БесплатноБез исполняемых скриптовНе проверенAdd support for a new vendor API version to an existing Data warehouse import source, or deprecate an old one. Use when a vendor ships a new API version…
от PostHog★ 41 278 звёзд на 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.
First: does the version need to exist at all?
Spotting a new vendor label is not a reason to support it. Before touching any source file, diff the new version against the one it supersedes — the source's current default_version, not every entry in supported_versions — from the vendor's docs and changelog, area by area. Diff against the wire the client actually sends, not against the label: the UNVERSIONED_API_VERSION default (v1) does not mean the client targets the vendor's oldest API — a source built before it declared versions may already speak a modern wire, in which case adding that wire's real label is a declaration-only relabel-and-repin (below), not a new request path.
- authentication — credential fields, token/header scheme, scopes, permission probes
- base URL, version header, and the paths actually served per resource
- pagination — mechanism, params, cursor semantics, page limits
- the schema list — which endpoints/tables the source exposes
- schema formats — columns, types/formats, primary keys, incremental fields
- webhook payloads and subscription registration, for a
WebhookSource - rate limits, error signatures, and anything else the source's request layer touches
If none of that differs for what this source reads, don't add the version. Leave supported_versions and default_version untouched and close the task with the per-area, changelog-cited evidence that the new label is i
Установить warehouse-source-new-version в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл warehouse-source-new-version?
Add support for a new vendor API version to an existing Data warehouse import source, or deprecate an old one. Use when a vendor ships a new API version (Stripe date versions, Shopify quarterly versions, header-pinned revisions, /vN/ URL bumps), when implementing a version-update or deprecation task for a source under products/warehouse_sources/backend/temporal/data_imports/sources, or when repinning an ExternalDataSource to a different version. Covers deciding whether a newly announced version needs supporting at all, version declaration, dispatch, pinning semantics, deprecation metadata, and migration scripts.
Как установить скилл warehouse-source-new-version?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл warehouse-source-new-version запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic