/fluid:deploying-fluid-contracts-safelyfrom fluid
Runs the FLUID delivery pipeline (validate, bundle, generate artifacts, plan, apply, verify) in safe order, requires human plan review, and blocks dangerous flags like --allow-data-loss.
Ships in fluid. 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.
None: SKILL.md is the whole skill.
fluid apply changes real tables and files. It must only run a plan a person has read.
Run these from the contract's directory and stop at the first failure:
fluid validate contract.fluid.yaml --offline
fluid bundle contract.fluid.yaml --format tgz --out runtime/bundle.tgz
fluid validate runtime/bundle.tgz
fluid generate artifacts runtime/bundle.tgz --out dist/artifacts
fluid validate-artifacts dist/artifacts
fluid plan runtime/bundle.tgz --env dev --mode amend --out runtime/plan.json --html
Then stop. Summarise the plan (runtime/plan.json, or plan.html for a person) and ask
the user to approve this plan, in this environment and mode, before you apply it.
fluid apply runtime/plan.json --bundle runtime/bundle.tgz --env dev --mode amend
fluid verify contract.fluid.yaml --strict --env dev
runtime/plan.json,
with the same --bundle, --env and --mode. A changed contract needs a new bundle
and a new plan.--mode dry-run and apply with --mode dry-run.dev. Apply to another environment only when the user names it.| Mode | Existing data |
|---|---|
dry-run | untouched; renders only |
create-only | untouched; fails if the object exists |
amend (default) | kept; new columns are added |
amend-and-build | kept; transforms run again |
replace, replace-and-build | dropped and rebuilt |
reconcile | untouched; restarts Spark streams that died, deploys nothing |
Ask, in the chat, before any of these, and say what each one risks:
--allow-data-loss, or a replace or replace-and-build mode: they drop data.--no-verify-plan-binding or --no-verify-federation: they skip the checks that
the plan, its bundle and its upstreams are the ones that were reviewed.--adopt-shared-container: it takes ownership of a shared container.--adopt-tables: it takes over existing tables another process made (each only
if it matches the contract); plan it first with fluid plan --tofu --adopt-tables.--allow-iceberg-update: it updates a live Iceberg table in place, which can revert a
commit its writers make meanwhile; the user pauses the writers first, and plans it with
fluid plan --tofu --allow-iceberg-update.--yes on apply, or an environment other than dev.| Event | What it means | Do |
|---|---|---|
apply_plan_mode_mismatch | the plan was made for another mode | plan again with the mode you will apply |
apply_plan_digest_bundle_mismatch | the bundle changed after the plan | bundle and plan again; never bypass |
apply_plan_digest_packet_mismatch | the bundle holds the planned contract in other bytes (rebuilt) | apply the bundle the plan was made from, or plan again |
apply_plan_digest_packet_missing | the plan records no packet digest (an older fluid made it) | plan again on the bundle |
apply_plan_digest_plan_tamper | the plan file was edited | plan again; never edit plan.json |
apply_plan_digest_tofu_plan_target_mismatch | the credentials or region reach another account, project or region than the plan's | use the plan's credentials and region, or plan again for this target |
apply_plan_digest_tofu_plan_toolchain | another OpenTofu or provider version than the plan's | apply with the plan's versions, or plan again here |
apply_plan_digest_tofu_plan_target_unverified | this run cannot read a target field the plan bound (no credentials or SDK) | give this run the plan's credentials and SDK; ask the user before --no-verify-plan-binding |
apply_plan_digest_tofu_plan_target_missing / …_lock_missing / …_lock_mismatch | the plan has no target record, or its lock file was not handed over or was changed | plan again, or hand over every file fluid plan --tofu wrote, unchanged |
apply_plan_digest_tofu_plan_target | another state backend than the plan's | apply with the plan's --state-backend |
apply_plan_digest_tofu_plan_state_missing | the plan was made on state this runner does not have (local state) | apply where it was planned, or use a remote state backend |
| data-loss refusal | the change would drop data | stop and ask the user |
iceberg_table_update_in_place | the plan would update a live Iceberg table in place | plan again with fluid plan --tofu, which leaves it as it is; ask the user before --allow-iceberg-update |
A …target_field_unbound or …target_provider_unbound warning is not a failure: the plan is
not bound to that account, project, region or host. Tell the user which one before you apply.
An iceberg_table_update_held warning is not a failure either: the apply left a live Iceberg
table as it is, and the contract's change to it waits. Tell the user what waits and the note's
remedy (a change through the table's Iceberg catalog, or the flag with the writers paused).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/adopting-existing-pipelinesProposes contracts from running PySpark jobs and Airflow DAGs with fluid import, and takes existing Glue tables over with --adopt-tables. Use when asked to adopt, migrate, onboard or import an existing Spark job, Airflow DAG or data platform, to write a conventions file or an importer plugin, or when a plan or apply fails with table_adoption_requires_flag, table_adoption_mismatch, table_adoption_unavailable or plan_adopt_tables_needs_tofu./authoring-fluid-contractsCreates or changes a FLUID data product contract (contract.fluid.yaml) with the fluid CLI, then runs fluid validate until it is clean. Use when asked to build, scaffold, define, edit, refine or fix a data product, its exposes, column schema, bindings (local files, DuckDB, Snowflake, BigQuery or GCP, AWS), schedule, data quality rules or owner, or its SDP, ADP or CDP (Bronze, Silver or Gold) classification./composing-fluid-data-productsWires FLUID data products together through consumes[] so an ADP or CDP reads the outputs of upstream SDP, ADP or CDP contracts, binds those reads in the build, and validates the chain. Use when a data product joins, aggregates or builds on other data products, for source-aligned to aggregate to consumer-aligned (SDP to ADP to CDP, Bronze to Silver to Gold) pipelines, or when fluid validate reports a composition rule error.npx claudepluginhub agenticstiger/forge-cli --plugin fluidOther plugins' skills for the same job