/faucet:faucet-pipelinesfrom faucet
Guides writing, editing, and debugging faucet pipeline configs (YAML/JSON) for moving data between databases, APIs, files, object storage, queues, and warehouses. Covers incremental sync, CDC, write modes, transforms, PII masking, data quality, schema drift, dead-letter queues, scheduling, and credential wiring.
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.
faucet runs data pipelines declared in a YAML (or JSON) file: a source,
optional transforms and governance passes, a sink, plus optional state, DLQ,
schedule and runtime blocks. This skill is the procedure for writing those
files so they are right the first time and stay right when they run
unattended.
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.
faucet list
faucet schema --help
faucet list names the sources, sinks, transforms and state stores compiled
in; faucet schema --help names every documented config block. A connector
or block missing from either is not in this build: use a build that has it
rather than rewriting the config around the gap.faucet schema source postgres
faucet schema sink bigquery
faucet schema transform cast
The JSON Schema's required list, each property's default and
description, and the oneOf / const entries are the only authority for
keys, types and enum values. If the schema does not have a key, the
connector does not support it.faucet init --source postgres --sink bigquery -o pipeline.yaml
faucet discover conn.yaml --include 'public.*' -o pipeline.yaml
init writes a commented config with every field of both connectors.
discover turns a connection-only config into one matrix row per table,
collection or prefix when the source supports discovery. Or start from the
closest file in cli/examples/ (see "Examples").faucet schema <block> for
each top-level block you add. Every credential is a reference (Hard rules).faucet validate --no-secrets pipeline.yaml
--no-secrets skips secrets-manager lookups but still resolves environment
and file references, so export placeholders for those (or keep a
non-secret .env). Read every row line: it ends with the delivery
guarantee that row actually gets.faucet explain pipeline.yaml --rows
faucet plan pipeline.yaml --sample fixtures.jsonl
explain narrates the config offline; plan shows the resolved chain, the
output schema and the sink delta for sample records, writing nothing.faucet doctor pipeline.yaml
It checks auth, network and permissions per connector; --offline gives
the credential-free lints.faucet schema test; samples in
cli/examples/tests/pipeline_tests.yaml) and run faucet test tests/*.yaml.faucet run pipeline.yaml --limit 100 (or
--dry-run) first, then the real run, faucet schedule for a cron
process, faucet mirror for snapshot-then-CDC, faucet backfill for a
historical range. Each command's flags: faucet <command> --help.faucet schema secrets prints the secrets-manager grammar this build
resolves. If validate says a reference's backend is not built in, use an
environment reference filled by the scheduler instead. Never run with debug
logging on a config that holds secrets, and never put a secret in a field
that becomes a name, label or path.faucet schema or
faucet <command> --help. Unknown keys fail at validate, often with a
"did you mean" hint; take the hint, don't guess again.state: store (read
faucet list for the stores; the in-memory one forgets at exit).name and row ids stable once a pipeline has run: they form the
state key, so renaming one restarts that row from scratch.faucet validate prints an
effectively-once guarantee on that row.dlq: block;
never point the DLQ at a data sink's path, and never replay a DLQ before the
cause is fixed.faucet serve) unless the
user asks for wider exposure and puts auth in front of it.faucet validate passes (and faucet doctor,
once credentials exist).Make each choice from the schema of the connector in front of you, not from memory. The engine behaviour behind each is on the linked page.
Incremental reads. In faucet schema source <name>, look for a bookmark
mode (a replication block or key, an incremental-files setting, consumer
offsets, a CDC log position). If the source has one, use it and push the
bookmark to the server where the schema offers a binding or placeholder, so
the server does not scan everything each run. If it has none, scope the query
with the run clock (${now.*} tokens) and pair it with a keyed write mode, so
faucet run --clock and faucet backfill can replay windows; tell the user a
skipped run leaves a gap until backfilled. When deletes or every change
matter, use the source system's CDC connector, and faucet mirror (read
faucet schema mirror) when existing rows need a snapshot first.
See Incremental replication & state,
Mirror,
Backfill.
Write mode. Read the modes the sink's schema lists.
faucet list shows the
transform) and upsert with a delete marker.Delivery guarantee. Leave the default unless the user needs effectively-once; then require it in the config and let validate say whether the source, sink, state and DLQ combination qualifies. A keyed upsert sink qualifies with any source; the alternative (atomic watermark) has stricter requirements, listed on Effectively-once delivery.
Shaping and governance. Transforms run in the order listed: unwrap and reshape first, rename next, trim and filter, fix values, stamp constants last. Masking, quality, contract and drift run after the whole chain, so write their rules against final field names. Use masking for PII, quality checks for bad rows, a contract for the promised output shape, schema drift for destination changes, and a policy for which labelled columns may reach which sinks.
Many datasets. Declare each connection once as a named template and add a
matrix row per dataset, each with its own destination; use depends_on for
ordering and parent rows for per-record fan-out. Run a subset with the
selection flags in faucet run --help.
See Multi-pipeline DAGs
and Source discovery.
required list names it.--no-secrets) or add it to .env.| Task | Page |
|---|---|
Top-level grammar, interpolation, params | Configuration file format |
extends, profiles, !include | Config composition |
| Choosing a connector, capabilities | Choosing a connector, Connector catalog |
Auth blocks, shared auth: providers | Authentication |
| REST pagination | Pagination styles |
| Transforms and their order | Record transforms |
State stores, faucet state / faucet status | Pipeline state & status |
| Dead-letter queues | Dead-letter queues |
| Retries, circuit breaker | Resilience |
| Secret references | Secrets-manager interpolation |
| Cron | Scheduling |
| Freshness and volume checks | SLA monitoring |
| Offline tests | Testing pipelines |
| Every command and flag | CLI commands |
Validated example 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).
Start from the closest one and re-read every key against faucet schema:
cli/examples/postgres_incremental_to_jsonl.yaml, cli/examples/mssql_to_jsonl.yamlcli/examples/rest_to_postgres.yaml; windowed: cli/examples/rest_windowed_incremental.yamlcli/examples/rest_to_postgres_with_quality.yamlcli/examples/postgres_cdc_to_postgres_upsert.yaml; snapshot then CDC: cli/examples/postgres_replicate_snapshot_cdc.yamlcli/examples/kafka_to_postgres_exactly_once.yamlcli/examples/file_to_jsonl.yamlcli/examples/csv_to_jsonl_with_masking.yaml, cli/examples/csv_to_jsonl_with_contract.yaml, cli/examples/csv_to_jsonl_with_policy.yamlcli/examples/matrix_depends_on.yaml, cli/examples/backfill_sqlite_to_jsonl.yamlcli/examples/csv_to_sqlite_overwrite.yaml; cron: cli/examples/scheduled_nightly.yamlcli/examples/tests/pipeline_tests.yamlWhat SKILL.md sets; muted values are Claude Code's defaults
11 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.npx claudepluginhub faucet-hq/faucet-stream --plugin faucetOther plugins' skills for the same job