/fivetran-connector-sdk:migrate-functions-connector runs instead · from fivetran-connector-sdk
Migrates an existing Fivetran Functions connector (AWS Lambda, Azure Function, Google Cloud Function) to a Fivetran Connector SDK (CSDK) project. Walks through inventorying source code, scaffolding CSDK project, and porting configuration, state, and sync logic.
This skill never runs in Claude Code
It ships in fivetran-connector-sdk at skills/, but /fivetran-connector-sdk:migrate-functions-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 an existing Fivetran Functions connector into a Connector SDK project. Functions connector examples and migration references:
When validating the migration workflow itself, use representative examples from the public repository:
api/aws_lambda/index.js for JavaScript AWS Lambda with request.secrets, request.state, insert, delete, schema, and hasMore.softDelete/aws-lambda.py for Python AWS Lambda with top-level softDelete.Azure-Function/Pyhton/azure-function.py for Azure Function response wrapping.file/csv/aws_lambda/index.js for file parsing behavior.If the user did not provide a source path, ask for the directory or file containing the Functions connector. Accept AWS Lambda, Azure Functions, Google Cloud Functions, or standalone handler examples.
Find or create the target CSDK project:
connector.py, configuration.json, and requirements.txt, migrate in place.fivetran init before editing files.Read the source code and identify:
request.secrets, environment variables, or cloud secret services.request.state.insert, delete, softDelete, schema, state, hasMore, and error handling.Do not ask the user to paste credentials in chat. Replace real values with placeholders if they appear in source files.
Use this mapping:
| Functions connector concept | Connector SDK concept |
|---|---|
| Cloud provider handler | Remove; CSDK uses connector = Connector(update=update, schema=schema) |
request.secrets | configuration dict from configuration.json |
request.state | state dict passed to update(configuration, state) |
Returned schema object | schema(configuration) return list with table, primary_key, optional columns |
insert[table] records | op.upsert(table=table, data=record) |
delete[table] records | op.delete(table=table, keys={...primary key values...}) |
softDelete table list | op.truncate(table=table) for each listed table, checkpointed after the safe boundary |
Returned state | op.checkpoint(state=new_state) |
hasMore: true | Loop inside update() until the page/batch is complete, checkpointing safely |
| Callback/error response | Raise exceptions and use SDK logging |
Function connector delete records are full records in many examples. For CSDK op.delete, pass only the declared primary-key values.
Function connector softDelete marks all previously synced rows in a table as deleted. For CSDK, use a regular op.truncate(table=...) (applied at the next checkpoint, like softDelete) only when the Functions connector returned that table in softDelete; do not replace row-level deletes with 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().request.secrets with configuration.request.state with state.yield operations.op.checkpoint(state=state) after each safe batch.hasMore, implement an internal loop with clear stop conditions.op.delete() where the Function connector populated delete.op.truncate() where the Function connector populated top-level softDelete.dict and list; do not import Dict, Any, or use op.Operation.configuration.jsonrequirements.txtfivetran_connector_sdk.README.mdsdk-reference.md; use the SDK form or ordinary JSON values.Check behavior before testing:
insert table maps to op.upsert.delete table maps to op.delete using primary-key fields only.softDelete table maps to op.truncate only when the source connector used table-wide soft delete.hasMore behavior is represented by an internal pagination loop or by checkpointed progress.Then follow the secure test flow from test-connector:
fivetran debug directly.sdk-reference.md; preserve supplied and existing values.Summarize:
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-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