/fivetran-connector-sdk:migrate-meltano-connector runs instead · from fivetran-connector-sdk
Migrates Meltano extractors or Singer taps to Fivetran Connector SDK (CSDK) connectors. Handles meltano.yml, custom taps, catalog/state/config files, and Singer SDK source code.
This skill never runs in Claude Code
It ships in fivetran-connector-sdk at skills/, but /fivetran-connector-sdk:migrate-meltano-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 Meltano extractor logic into a Connector SDK project. Meltano migration references:
When validating the migration workflow itself, use representative public projects such as Matatika/example-github-analytics, which exercises:
tap-github, target-postgres, dbt transforms, a utility plugin, a job, and a schedule.*!.* followed by explicitly selected streams.repositories.If the user did not provide a source path, ask for one of:
meltano.yml.config.json, catalog.json or properties.json, state.json, and sample 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:
fivetran-cli instead of embedding that behavior in connector.py.Read source files and identify:
meltano.yml, lock files under plugins/, .env templates, catalog files, state files, and any local tap source.pip_url, capabilities, and settings.select, catalog metadata, or catalog selected flags.*!.* followed by issues.* means start with all streams deselected, then include the named streams.SCHEMA messages.key_properties, table-key-properties, SDK stream primary_keys, or source code.state.json, Singer STATE messages, or tap source code.fivetran-cli follow-up work.Do not ask the user to paste credentials in chat. Do not print .env, config.json, or Meltano config values. Replace real values with placeholders if they appear in source files.
Use this mapping:
| Meltano/Singer concept | Connector SDK concept |
|---|---|
| Meltano extractor / Singer tap | One CSDK connector, or one scoped connector per source if the project has multiple unrelated extractors |
meltano.yml extractor settings / tap config.json | Flat string fields in configuration.json |
| Meltano array/object settings | Prefer separate connector deployments for multi-entity sync; use JSON-encoded string fields parsed with json.loads() only when unavoidable for source-tap parity |
| Meltano environment variables and setting aliases | Documented configuration fields; do not embed environment loading into connector code |
| Singer catalog stream | CSDK schema(configuration) table entry |
Singer key_properties, table-key-properties, or stream primary_keys | CSDK primary_key |
| Singer JSON Schema properties | Optional CSDK columns with SDK data types |
| Selected streams/fields | 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 it was selected |
Singer RECORD message | op.upsert(table=stream, data=record) |
Singer STATE.value / bookmarks | op.checkpoint(state=new_state) |
| Singer incremental replication key | Cursor logic inside update(configuration, state) |
| Singer discovery mode | Static or configuration-aware schema(configuration) |
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 |
Full-table behavior needs explicit review. Singer taps commonly emit current rows without an explicit delete stream. If the old Meltano pipeline relied on a target to replace/truncate data for full-table streams, document that behavior and only use op.truncate(table=...) when the intended CSDK behavior is to mark missing prior rows as deleted before reloading a complete snapshot. Prefer op.truncate(table=..., deferred=True) for that reload, so a failed sync keeps the old rows; use a regular truncate only when the rows should be deleted at the next checkpoint regardless of how the sync ends.
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 bookmark shape when it makes parity easier.yield operations and do not print Singer JSON messages.op.checkpoint(state=state) after each safe page, batch, or stream boundary.dict and list; do not import Dict, Any, or use op.Operation.configuration.jsonsdk-reference.md). Only when the source tap truly requires multi-item selection, represent Meltano arrays or objects as JSON-encoded string placeholders, such as "repositories": "[\"owner/repo\"]" or "searches": "[{\"name\":\"example\",\"query\":\"repo:owner/repo\"}]", then parse and validate them with json.loads() in connector.py..env, config.json, or Meltano config.requirements.txtfivetran_connector_sdk.README.mdfivetran-cli, such as destination/connection setup, transformations, or transformation projects.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.op.truncate (regular or deferred) plus reload.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 pipeline 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-airbyte-connectorMigrate an existing Airbyte source connector to a Fivetran Connector SDK connector. Use when the user has an Airbyte Python CDK source, low-code YAML manifest, source connector directory, configured catalog, spec/config/state files, or Airbyte protocol output they want to port to CSDK./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.Other plugins' skills for the same job