/fluid:authoring-fluid-contractsfrom fluid
Creates or edits FLUID data product contracts (contract.fluid.yaml) using the fluid CLI. Guides through scaffolding, editing, and validating contracts for data products with bindings to DuckDB, Snowflake, BigQuery, or AWS.
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 validate decides what is valid. Do not guess a field or a value: look it up in
references/contract-schema.md, edit, validate, repeat.
Copy this checklist and tick it off as you go:
Valid FLUID contract with no warnings (--strict fails on any). Many are a
placeholder or a starter value left in the contract; --format json lists each
finding in issues with its pointer and its fix.fluid forge --template starter --non-interactive --yes --target-dir . --no-memory
fluid validate contract.fluid.yaml --offline
Never run a bare fluid forge: it opens an interactive menu you cannot answer. Do not ask
fluid forge to write the contract for you with an LLM: you are the author.
| Field | Starter writes | Write instead |
|---|---|---|
id | starter-product.starter | <domain>.<name>, for example sales.orders_raw |
name, description, domain | starter text | what the request says |
metadata.owner.team | data-team | the team the request names |
metadata.owner.email | [email protected] | the email the request gives, otherwise delete the key |
builds[0] | SELECT 1 AS id, ... | the real build, or delete builds |
exposes[0] | starter_table | the real output: exposeId, binding, columns |
exposes[0].semantics | starter metrics | delete it unless a semantic model is asked for |
Never invent an owner, team, email, column, source or business rule. When the request leaves something open, pick the smallest valid option and list it as an assumption.
Set both metadata.productType and metadata.layer; they must agree:
SDP with Bronze: raw data from one source, no joins or business logic.ADP with Silver: joined, cleaned or conformed data built on other products.CDP with Gold: shaped for a consumer: marts, metrics, dashboards, features.A product that reads other data products declares them in consumes[]; see the
composing-fluid-data-products skill.
exposes[].binding says where the output lives. Use the block for the target platform:
# exposes[].binding
platform: local
format: parquet
location:
path: runtime/out/orders_raw.parquet
# exposes[].binding
platform: snowflake
format: snowflake_table
location:
database: SALES_RAW
schema: PUBLIC
table: ORDERS
# exposes[].binding
platform: gcp
format: bigquery_table
location:
project: acme-analytics
dataset: sales_raw
table: orders
There is no DuckDB format. A local DuckDB build writes a file, so bind it as parquet
(or csv). Use format: other only when no listed format fits.
Columns live in exposes[].contract.schema[]. Mark personal data with sensitivity.
# exposes[].contract.schema[]
- name: order_id
type: string
required: true
description: Order identifier from the source system.
- name: customer_email
type: string
required: false
sensitivity: pii
- name: amount
type: decimal(12,2)
required: true
Checks that fluid runs go in exposes[].contract.dq.rules[]. This is "order_id is
unique and customer_id is never null":
# exposes[].contract.dq
rules:
- id: order_id_unique
type: uniqueness
selector: order_id
threshold: 1.0
operator: '>='
severity: error
- id: customer_id_not_null
type: completeness
selector: customer_id
threshold: 1.0
operator: '>='
severity: error
A local build is SQL that DuckDB runs from the contract's directory. A schedule is a five-field cron on the build's trigger:
# builds[]
- id: ingest_orders
pattern: embedded-logic
engine: sql
properties:
sql: SELECT * FROM read_csv_auto('data/orders.csv', header=true)
execution:
trigger:
type: schedule
cron: 0 2 * * *
runtime:
platform: local
references/example.contract.fluid.yaml is a valid source-aligned product with all of the parts above.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
data-contracts, data-product, fluid-cli, contract-validation
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./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.npx claudepluginhub agenticstiger/forge-cli --plugin fluidOther plugins' skills for the same job