/fluid:adopting-existing-pipelinesfrom fluid
Proposes data contracts from existing PySpark jobs and Airflow DAGs using fluid import, and adopts Glue tables with --adopt-tables. Handles migration, onboarding, and import of existing data pipelines.
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.
Read when SKILL.md points to them.
fluid import proposes contracts from code that already runs. It parses the files and never
imports or runs them: no job starts and Airflow is never loaded. A person completes and
reviews each contract before anything is applied.
fluid describe --commands prints every command and flag as JSON, the importers installed
here included. Check a command or flag there before you use one this skill does not show.
Run the dry run first. It prints each proposed product (its writer, outputs and upstreams), the report, and what would happen to each file: new, unchanged, replaced or refused.
fluid import pyspark jobs/ --dags dags/ --dry-run
fluid import airflow dags/ --dry-run
pyspark reads the jobs; --dags joins each DAG task to the script it submits, which adds
the schedule, the owner and the dependencies. airflow reads a DAGs directory and finds
the scripts through the conventions file's script_roots.PythonOperator that submits through a function of the DAG files (an EMR step list, a
spark-submit it runs) is read as it is. One that calls the project's own library is read
once the conventions name the function under submit_helpers: the report lists the functions
tasks run that it could not read, with how many tasks run each.--split-by also
takes job, dag, folder and project.fluid import pyspark jobs/ --dags dags/ --conventions conventions.yaml --out contracts/
--out is a directory when the import writes several products. A file that exists and
differs from what the import would write is refused. --force replaces it, so ask first:
a person may have completed it by hand.
The report has four parts: Mapped 1:1, Used defaults, Unsupported and Notes. Each line under Used defaults or Unsupported is something to complete. Never guess it:
binding.location.catalog only when the catalog's kind is
known. When the report says to set it, ask which catalog it is.execution.orchestration with mode: manual, and
the trigger is manual (continuous for a stream). Keep it while the DAG still runs: a
schedule trigger makes fluid generate schedule render a second DAG for the same job.Then validate each contract and fix what it reports (see the troubleshooting-fluid-errors skill):
fluid validate contracts/<file>.fluid.yaml --offline
The organisation's layout is data in one YAML file: where scripts and data live, the helper functions that wrap Spark reads and writes, the operator classes and functions that submit Spark work, the values of environment variables, layers, owners and what to ignore. Start from references/conventions.example.yaml and keep only the keys that describe the project.
--dags).environments value may be empty (TABLE_PREFIX: ""); a variable the file does not
name stays unresolved and is reported.submit_helpers entry says where the function's script is among its arguments: a keyword,
a position, or a key inside a dict argument (settings.script_path). Ask the user which
argument it is, or read the function's code with them; never guess it.config_modules.A Python package adds a tool to fluid import through the fluid_build.importers
entry-point group:
[project.entry-points."fluid_build.importers"]
my-tool = "my_package.forge_importer:MyImporter"
The object needs no forge import. It has import_to_contract(source, *, options), which
returns (contract, report), or import_to_contracts(source, *, options) for several
products. The report has four lists: mapped_one_to_one, required_defaults,
unsupported and notes. Set guards_overwrite = True when a person completes what it
writes. A plugin cannot take a built-in tool's name, two packages that ship one name are both
refused, and FLUID_PLUGINS_ALLOWLIST and FLUID_PLUGINS_BLOCKLIST apply before it loads.
An existing Glue table the contract names, which the OpenTofu state does not hold, is refused
(table_adoption_requires_flag) unless fluid made it for this product. Take it over only
when the user says yes, through a reviewed plan, in the order the
deploying-fluid-contracts-safely skill gives, with --tofu --adopt-tables on the plan:
fluid plan runtime/bundle.tgz --env dev --mode amend --tofu --adopt-tables --out runtime/plan.json
fluid apply runtime/plan.json --bundle runtime/bundle.tgz --env dev --mode amend
import
block: a table that matches is taken over unreplaced, with its Lake Formation permissions.
The saved plan applies what it planned; the apply needs no flag.fluid ship --adopt-tables passes the flag to its apply stage.| Event | What it means | Do |
|---|---|---|
table_adoption_requires_flag | an existing table fluid did not make for this product | ask the user, then plan the take-over as above |
table_adoption_mismatch | a table differs from its contract; nothing was imported or applied | ask whether the contract or the table is right, align exposes[].contract.schema and binding.location, plan again |
table_adoption_unavailable | the run cannot look the tables up (no AWS account id) | set AWS_ACCOUNT_ID, or use credentials sts:GetCallerIdentity accepts |
plan_adopt_tables_needs_tofu | --adopt-tables on a plan without --tofu | add --tofu |
opentofu_adoption_failed | a look-up failed (credentials, network) | fix the access and run again; never create over an object that may exist |
table_adoption_accepted, logged at WARNING, is the audit record of a take-over, not a
failure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
data-pipeline-migration, pyspark, airflow, glue, data-contracts, fluid-cli
Other plugins' skills for the same job
npx claudepluginhub agenticstiger/forge-cli --plugin fluid7 skills in this plugin
/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./deploying-fluid-contracts-safelyRuns the fluid delivery pipeline (validate, bundle, generate artifacts, plan, apply, verify) in the safe order, stops for a human to review the plan, and refuses the flags that skip its safety gates. Use when asked to plan, deploy, apply, ship, release, roll out or publish a FLUID contract, or when apply asks for --allow-data-loss or fails a plan-binding, plan-mode or digest check./publishing-to-data-mesh-managerPublishes FLUID products to Data Mesh Manager (Entropy Data) as draft batches, promotes verified drafts and reports a migration's status. Use when asked to publish, register or catalogue data products in Data Mesh Manager or Entropy Data, to move drafts to active, to check how far a migration has got, or when fluid datamesh-manager fails with a dmm_batch_ or dmm_promote_ error./releasing-streaming-productsReleases a change to a running Spark stream so it stops between batches, and traces each Iceberg commit to the release that wrote it. Use when asked to deploy, release or roll out a change to a streaming product or a kept-alive stream, to read a commit's stamps, to seal releases with fluid ship --release-dir, to find which release or run wrote a table's snapshot or was in force on a day (fluid runs status --release-dir), or when apply fails with apply_spark_artifact_mismatch./troubleshooting-fluid-errorsDiagnoses and fixes a failing fluid command from its output, its stable ERR_ error code and the path-level messages of fluid validate. Use when a fluid command exits non-zero or prints an ERR_ code, when validation reports an error such as is not one of, is a required property, Additional properties are not allowed or does not match, or for composition, layer and productType, or plan-binding failures.