/faucet:faucet-migratefrom faucet
Migrates Meltano projects, Singer taps/targets, or Airbyte connections to faucet. Converts meltano.yml configs, selects native/hub/bridge connectors, migrates bookmarks and state, runs pipelines side-by-side, verifies with faucet verify, and provides rollback path.
Ships in faucet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A migration is four jobs: translate the configs, carry the bookmarks over,
prove the new pipeline produces the same data, and switch without losing the
way back. This skill is the procedure for the parts specific to arriving from
Meltano, Singer or Airbyte. Writing each faucet config follows the
faucet-pipelines skill; operating and debugging them follows faucet-debug;
hub templates follow faucet-templates. What the old tools' files mean, and
how faucet treats bookmarks during a migration, is on
Migrating from Meltano, Singer or Airbyte.
The project decides which faucet to use, not whatever is on the PATH: a
config written for a newer faucet can fail or be misread on an older one.
Find the pin: the "github:faucet-hq/faucet-stream" entry under [tools]
in the project's mise.toml (faucet init writes it). A config may also
carry requires_faucet: ">=X.Y". The pin is used in commands, URLs and
image tags below, so accept only a release version: it must match
^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.]+)?$. Stop and ask the user about
anything else.
Run faucet --version. Use that binary if it equals the pin (with no pin:
if it satisfies every requires_faucet in the project).
Otherwise, if mise is installed, run mise install
in the project and prefix every command with mise exec --.
Otherwise use the pinned container image; its entrypoint is faucet:
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/work" -w /work ghcr.io/faucet-hq/faucet-stream:<version> --version.
Otherwise download that version's archive for this platform, check it, and only then unpack it. Never pipe a download into a shell.
v=<version> # the checked pin
t=aarch64-apple-darwin # or x86_64-apple-darwin, x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu
printf '%s\n' "$v" | grep -Eqx '[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.]+)?' || exit 1
base="https://github.com/faucet-hq/faucet-stream/releases/download/faucet-cli-v$v"
curl --proto '=https' --tlsv1.2 -fLsS -O "$base/faucet-cli-$t.tar.xz" -O "$base/faucet-cli-$t.tar.xz.sha256"
shasum -a 256 -c "faucet-cli-$t.tar.xz.sha256"
gh attestation verify "faucet-cli-$t.tar.xz" --repo faucet-hq/faucet-stream # when gh is installed
tar -xJf "faucet-cli-$t.tar.xz" # the binary is faucet-cli-$t/faucet
If the checksum or the attestation does not verify, stop and tell the user.
With no pin at all, install the latest release the same way (the archive
and its .sha256 from releases/latest/download/) and pin it as described in
Pinning the faucet version.
Every version-specific fact (which connectors and blocks exist, config keys,
types, defaults, commands and flags) comes from that binary: faucet list,
faucet schema --help, faucet schema source|sink|transform <name>,
faucet <command> --help. Never from memory or from this skill. When a config
passes faucet validate, set its requires_faucet: to ">=<major>.<minor>"
of that binary; if validate rejects requires_faucet as an unknown field, the
binary predates it, so leave it out.
.env, meltano.yml, a Singer
config or Airbyte into a faucet config, a commit or the chat. Reference the
environment variable that already holds it, or ask the user to export a new
one.faucet verify passes and the
user signs off. The old schedule is disabled at cutover, not before.--dry-run first:
faucet state export pipeline.yaml -o state-before-migration.json
faucet run or --repair a comparison-only config (one whose
source reads the old tables).Inventory the old setup. Produce one line per stream: source, stream or
table, replication method and key, primary key, selected columns, mapper
steps, destination table, schedule, where its bookmark lives, and what reads
the table downstream. For Meltano, follow every include_paths file and the
production environment's overrides, and use Meltano's own commands to
resolve what the YAML patterns mean (meltano select <extractor> --list --all,
meltano config <plugin> list, meltano state list). Record each credential
by the name of the variable that holds it. Export every old bookmark to a
file now (meltano state get <state_id>, the Singer state.json, or the
Airbyte connection state). examples/meltano.yml is a sample
input to practise on.
Choose a replacement for each tap, by what it reads, never by its name:
faucet list for that database's query source and
read faucet schema source <name> for a bookmark mode; for LOG_BASED
streams, or when deletes matter, the database's CDC source started with
faucet mirror;faucet hub list, then compare its streams with the tap's selected
streams using faucet hub rows <template>); otherwise the rest or
graphql source, translating the tap's base URL, paths, record path,
pagination and replication key against faucet schema source rest;faucet list;singer source, which runs the tap unchanged
(start with faucet init --source singer --discover --executable <tap> --stream <stream>).Then each target: the native sink for its destination (check
faucet schema sink <name> for the write modes the old target relied on,
such as a merge on key properties), else the singer sink to keep the
target. Search the registry with faucet search <keyword> and
faucet list --available before concluding a connector does not exist.
Tell the user which streams change shape (templates name and shape streams
their own way) and which features have no equivalent.
faucet list
faucet hub list
faucet schema source rest
Write the faucet configs with the faucet-pipelines skill: one matrix
row per stream, a durable state store, a keyed write mode where the old
target merged on keys. Translate select into the query's column list (SQL)
or select / drop transforms (APIs), mappers into transforms or masking, and
schedules into a schedule: block or the existing orchestrator calling
faucet run. For the parallel run, point every sink at a separate schema or
dataset.
Carry bookmarks over, only for streams that will continue into tables
the old pipeline already filled. Stop the old schedule for that stream, take
its last bookmark, and bring it in the way the migration page describes for
that source type: an initial-value setting in the config when faucet has no
state yet, otherwise faucet state set; a backfill from the old bookmark
for sources without one; nothing for CDC (faucet takes its own position).
Prefer a bookmark slightly behind the old one over one ahead of it.
faucet state export pipeline.yaml -o state-before-migration.json
faucet state set pipeline.yaml --row orders --bookmark '"2026-10-06T00:00:00Z"' --dry-run
faucet state show pipeline.yaml --row orders
When unsure what shape a row's bookmark has, point a copy of the config at a
scratch state directory, run it once, and read the shape with
faucet state show before setting the real row.
Validate, probe and test before any real run:
faucet validate --no-secrets pipeline.yaml
faucet explain pipeline.yaml --rows
faucet doctor pipeline.yaml
faucet preview pipeline.yaml --limit 10
faucet run pipeline.yaml --limit 100
A --limit run stores no bookmark. Add faucet test specs when transforms
or masking replace a mapper.
Run side by side and compare. Load the full history into faucet's own
dataset, run on schedule next to the old pipeline for several cycles, then
compare by content: faucet against the source with the real config, and
faucet against the old tables with a comparison-only config (start from
cli/examples/verify_previous_pipeline_tables.yaml). Exclude both tools'
metadata columns and anything computed differently on purpose, compare in a
quiet window, and explain every difference to the user before moving on.
faucet verify pipeline.yaml --row orders
faucet verify verify.yaml --row orders --json
Cut over and keep the way back. With the user, pick one: repoint readers
at faucet's dataset, or stop the old schedule, carry the final bookmark over
(step 4) and point faucet at the original tables. Export faucet state after
the first production run, watch faucet status, and keep the old pipeline
runnable (schedule disabled, nothing deleted) until the user signs off. Only
then remove old schedules, replication slots, plugins and tables, in that
order, each with the user's go-ahead.
Check each against the inventory and the binary, and say plainly which apply:
faucet backfill, and a skipped run leaves a gap until backfilled.faucet list cannot reproduce (a changed hash breaks joins on it)._sdc_*, _airbyte_*) readers depend on that faucet's
metadata columns do not reproduce.Validated configs live in the faucet-stream repository under cli/examples/,
at the tag matching the binary (faucet-cli-v<version>; the latest is at
https://github.com/faucet-hq/faucet-stream/tree/main/cli/examples):
cli/examples/postgres_incremental_to_jsonl.yamlcli/examples/rest_to_postgres.yamlcli/examples/postgres_replicate_snapshot_cdc.yamlcli/examples/singer_to_jsonl.yaml; keeping a target: cli/examples/csv_to_singer_target.yamlcli/examples/metadata_columns.yamlcli/examples/verify_previous_pipeline_tables.yamlWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub faucet-hq/faucet-stream --plugin faucet11 skills in this plugin
/faucet-apiUse when integrating an application or service with `faucet serve` over HTTP: discovering the server's API and auth model, choosing which role's token a caller needs, registering, testing and launching templates over HTTP, rolling out a source and sink template change together, triggering template runs or raw config runs programmatically with idempotency keys, labels and an execution pool, polling a run until it is terminal and mapping its status and per-row results, finding runs by label, and decoding a 401, 403, 409, 422, 429 or 503 response from the API./faucet-connectorUse when writing a new faucet source or sink connector in Rust: scaffolding a faucet-source-* or faucet-sink-* crate (or a faucet-common-* crate shared by a pair), implementing the Source or Sink trait from faucet-core, adding a config struct with a JSON Schema, streaming pages with bounded memory and resumable bookmarks, making a sink idempotent or effectively-once (keyed upsert or atomic watermark), mapping failures to typed FaucetError variants so retries behave, passing the faucet-conformance battery, publishing the crate to crates.io, running it from a custom faucet binary, or listing it in the connector registry index./faucet-debugUse when a faucet pipeline misbehaves: a `faucet run` failed or exited non-zero, a run is slow, stuck or behind its source (CDC / stream lag), the source is rate-limited or throttled, rows are missing or duplicated, rows landed in the dead-letter queue, wrong values landed in the destination, a bookmark needs moving or resetting, stored state will not read after an upgrade, a scheduled run was skipped, a run refuses to start because another holds the row, a connector fails with an auth or permission error, or a network failure: "error sending request", connection refused or reset, timeouts, DNS or TLS handshake errors, an IP allowlist, a proxy, or a connection that works locally but not in the cluster (or the reverse). Covers `faucet doctor`, `status`, `dlq`, `state`, `verify`, `rollback`, `profiling`, `explain`, `plan`, logs and Prometheus metrics./faucet-deployUse when deploying faucet to production or running it unattended: running pipelines on cron, systemd, Airflow, Dagster or Kubernetes (Job, CronJob, Deployment), using `faucet schedule`, standing up `faucet serve` with auth, RBAC, audit and run history, installing the Helm chart or choosing and building a container image, choosing a durable state backend, wiring Prometheus, OpenTelemetry, Grafana dashboards and alerts, setting up event triggers, checking that a build has the features a deployment needs, and hardening a deployment (TLS, secrets, log levels, network binds, least privilege)./faucet-operateUse when operating a running `faucet serve` (single node or `--cluster`): `/readyz` returning 503 or a member reported unhealthy, the run-history database degraded or unreachable, runs stuck in pending or running, queued runs piling up or a full queue, runs waiting on an execution pool no member serves, a cluster member gone or crashed, a run reclaimed or executed twice after a failover, cancelling, retrying or deleting runs, finding which member owns a run, draining a member, a rolling upgrade of a cluster, and querying or pruning run history./faucet-pipelinesUse when writing, editing, reviewing or debugging a faucet pipeline config (YAML/JSON run by the `faucet` CLI): moving data from one system to another (database, API, files, object storage, queue, warehouse), setting up an incremental sync, a CDC stream or a snapshot-then-CDC mirror, choosing write modes (append, upsert, delete, overwrite) and keys, adding transforms, PII masking, data-quality checks, data contracts, schema-drift handling or a data-flow policy, configuring state, dead-letter queues or exactly-once delivery, scheduling or backfilling a pipeline, generating per-table configs with discovery, and wiring credentials through secret references.Other plugins' skills for the same job