/fivetran-connector-sdk:migrate-airbyte-connector runs instead · from fivetran-connector-sdk
Migrates an Airbyte source connector (Python CDK, low-code YAML, or protocol artifacts) to a Fivetran Connector SDK project. Walks through locating source, scaffolding target, and porting logic.
This skill never runs in Claude Code
It ships in fivetran-connector-sdk at skills/, but /fivetran-connector-sdk:migrate-airbyte-connector (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Context: This plugin is for the Fivetran Connector SDK (CSDK). "CSDK" is shorthand for "Connector SDK".
FIRST: Read sdk-reference.md from the plugin directory to load SDK rules, operation names, schema constraints, configuration rules, and testing requirements.
Use this workflow to convert Airbyte source connector logic into a Connector SDK project. Airbyte migration references:
When validating the migration workflow itself, use representative public connectors such as Airbyte's source-github, which exercises:
source.py, stream classes, schema files, utilities, and tests.oneOf auth modes and airbyte_secret fields.repositories and branches, plus deprecated string aliases such as repository and branch.If the user did not provide a source path, ask for one of:
source-<name>/.source.py, stream classes, schemas, and tests.spec.json, config.json, catalog.json, configured_catalog.json, state.json, and sample Airbyte protocol output.Find or create the target CSDK project:
connector.py, configuration.json, and requirements.txt, migrate in place.fivetran init before editing files.Scope the migration:
connector.py.fivetran-cli instead of embedding that behavior in connector code.Read source files and identify:
spec, check, discover, and read command implementations.spec.json, connectionSpecification, manifest spec, or CDK spec().airbyte_secret, OAuth/authenticator config, environment variables, or docs.configured_catalog.json, connection catalog, low-code manifest, or user request.json_schema, manifest schemas, schema files, CDK stream classes, or sample CATALOG/RECORD messages.source_defined_primary_key, configured stream primary keys, stream class fields, or docs.incremental or full_refresh.append, append_dedup, or overwrite.cursor_field, default cursor field, manifest cursor, or CDK stream cursor.state.json, Airbyte STATE messages, stream state, global state, or CDK state methods.fivetran-cli follow-up work.Do not ask the user to paste credentials in chat. Do not print config.json, .env, or OAuth credentials. Replace real values with placeholders if they appear in source files.
Use this mapping:
| Airbyte concept | Connector SDK concept |
|---|---|
| Airbyte source connector | One CSDK connector, or one scoped connector per source if the repo contains multiple unrelated sources |
spec.json / connectionSpecification / manifest spec | Flat string fields in configuration.json |
airbyte_secret: true | Sensitive configuration field; collect through SDK form or have the user enter it in configuration.json using their local editor/terminal, never in chat |
| Airbyte array/object config fields | Prefer separate connector deployments for multi-entity sync; use JSON-encoded string fields parsed with json.loads() only when unavoidable for source-connector parity |
| Airbyte config migrations / deprecated aliases | Backward-compatible parsing or documented renamed fields |
check command | validate_configuration(configuration) or a lightweight authenticated probe |
discover output / Airbyte catalog stream | CSDK schema(configuration) table entry |
| Airbyte JSON Schema properties | Optional CSDK columns with SDK data types |
| Configured/selected streams | Tables and fields implemented by schema() and update() |
| Parent streams used only for context | Internal helper/API calls; do not emit the parent table unless selected |
Airbyte RECORD message data | op.upsert(table=stream, data=record) |
Airbyte STATE message | op.checkpoint(state=new_state) |
Airbyte LOG and TRACE messages | SDK logging and exceptions; do not emit as rows |
| Airbyte per-stream tolerated errors | Catch/log documented nonfatal stream errors and continue only when the source connector did so |
incremental sync mode | Cursor logic inside update(configuration, state) |
full_refresh sync mode | Snapshot logic with explicit truncate/upsert decision |
Destination sync mode overwrite | op.truncate(table=..., deferred=True) when full snapshot replacement is intended, so a failed sync keeps the old rows; a regular op.truncate(table=...) only when the rows should be deleted at the next checkpoint regardless |
Destination sync mode append_dedup | op.upsert(...) with declared primary key |
Destination sync mode append | Requires explicit primary-key strategy before CSDK migration |
Map JSON Schema types conservatively:
| JSON Schema | CSDK column type |
|---|---|
boolean | BOOLEAN |
integer | LONG |
number | DOUBLE |
string with format: date-time | UTC_DATETIME |
string with format: date | NAIVE_DATE |
string | STRING |
object or array | JSON |
multiple types including null | Use the non-null type |
| unknown or mixed type | Omit the column type or use JSON when the field is structured |
Airbyte append-only streams need explicit review. CSDK tables should have stable primary keys. If an Airbyte stream has no primary key because the old destination used append mode, ask the user for a stable key strategy or document a generated deterministic key based on immutable source fields. Do not invent a lossy key silently.
Deletion behavior needs explicit review. If the Airbyte source emits deletion markers or CDC fields, map confirmed row deletes to op.delete(table=..., keys={...}) using primary-key fields only. Do not infer deletes from missing records unless the stream is explicitly full-refresh overwrite and the migration intentionally uses op.truncate.
Edit the CSDK project files:
connector.py# Built using Connector SDK AI Plugin
# Plugin: fivetran-connector-sdk (claude-code) | Version: 2026.11.10.1
validate_configuration(), schema(), update(), global connector = Connector(...), and if __name__ == "__main__": connector.debug().configuration.state dict. Preserve the original state shape when it makes parity easier.yield operations and do not print Airbyte JSON messages.op.checkpoint(state=state) after each safe page, slice, batch, or stream boundary.dict and list; do not import Dict, Any, or use op.Operation.configuration.jsonsdk-reference.md). Only when the Airbyte source truly requires multi-item selection, convert Airbyte arrays or objects to JSON-encoded string placeholders, such as "streams": "[\"users\"]" or "credentials": "{\"auth_type\":\"token\"}", then parse and validate them with json.loads() in connector.py.config.json, .env, or Airbyte UI exports.requirements.txtfivetran_connector_sdk.README.mdfivetran-cli, such as destination/connection setup, scheduling, or transformation resources.sdk-reference.md; use the SDK form or ordinary JSON values.fivetran-cli follow-up notesfivetran-cli commands unless the user explicitly asks for deployment/setup and provides the required non-secret identifiers. Never ask the user to paste API keys in chat.Check behavior before testing:
RECORD stream maps to op.upsert.STATE shape is preserved or deliberately mapped and documented.op.truncate (regular or deferred) plus reload.op.delete using primary-key fields or explicitly documented as not present in the source connector.fivetran-cli follow-up work instead of being embedded in connector code.Then follow the secure test flow from test-connector:
fivetran debug directly.sdk-reference.md; preserve supplied and existing values.Summarize:
fivetran-cli follow-up plan for platform resources, if applicable.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fivetran/connector_sdk_tools --plugin fivetran-connector-sdk8 skills in this plugin
/build-connectorBuild a new Fivetran connector from a description. Use when the user wants to create, generate, or scaffold a new connector for an API or data source./connector-sdk-submitPrepare a Community Connector or Fivetran Connector SDK example for a first pull request by applying the target repository's GitHub review instructions, sanitizing configuration.json, and running Black and Flake8./deploy-connectorPackage and deploy a Fivetran connector to Fivetran. Use when the user wants to deploy or ship their connector./evaluate-connectorEvaluate a Fivetran connector for correctness, SDK compliance, security, and reliability. Use when the user wants a code review or quality report before deploying./migrate-functions-connectorMigrate an existing Fivetran Functions connector to a Fivetran Connector SDK connector. Use when the user has an AWS Lambda, Azure Function, Google Cloud Function, or other Fivetran Functions connector they want to port to CSDK./migrate-meltano-connectorMigrate an existing Meltano extractor or Singer tap workflow to a Fivetran Connector SDK connector. Use when the user has a Meltano project, meltano.yml extractor, custom Singer tap, catalog/state/config files, or tap source code they want to port to CSDK.Other plugins' skills for the same job