What problem does it solve?
When a vendor like Stripe or Shopify ships a new API version, engineers must decide whether the version needs support, wire version dispatch through the source, keep old pinned versions working, and handle deprecation and migration safely. This Skill encodes the full decision framework and step-by-step procedure for that work in PostHog's warehouse sources codebase.
Core Features & Use Cases
- Version gate analysis: Diff a new vendor version against the current default across auth, pagination, schemas, and webhooks to decide whether it needs supporting at all.
- Version declaration and dispatch: Add labels to supported_versions, flip default_version, and thread the resolved pin through get_schemas, validate_credentials, sync, and webhook surfaces.
- Deprecation and migration: Mark sunset versions in deprecated_versions and write idempotent, written-not-run repinning migrations for ExternalDataSource rows.
- Use Case: Stripe announces a new dated API version; use this Skill to diff the changelog, declare the version, dispatch on SourceInputs.api_version, parameterize tests over both versions, and ship one conventional PR.
Quick Start
Use this skill to add support for the newly announced Stripe API version to the Stripe warehouse source while keeping existing pinned versions working.