datacontract-cli
Skill4 starsChanged 49 days agoMITView on GitHub
Core. Install, upgrade, and configure the Data Contract CLI (`datacontract`), the open-source tool every other data contract skill builds on, and look up its documentation. Use when the user wants to install the CLI, pick the right extras for a data source, set up credentials for a server, check the CLI version, or when another skill's Step 0 says to verify the CLI.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dataGriff/skillstheir own version, first seen Sep 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dataGriff/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- breaking-change-checkSkill
- contract-ciSkill
- create-data-contractSkill
- datacontract-editorSkill
- export-data-contractSkill
- quality-rulesSkill
- test-data-contractSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If the command is missing or older than the version on PyPI, install or upgrade it.
- Very specific: line 33
Ask before installing anything.
- Very specific: line 61
Never print the content of .env or a config file with secrets.
- Very specific: line 62
Make sure .env is listed in .gitignore before the user writes secrets to it.
- Very specific: line 96
Files, not chat: Write contracts to *.odcs.yaml files in the user's repository (ask for the path if there is no obvious convention), and …
- Very specific: line 97
Lint after every edit: Run datacontract lint <file> after each change and fix every error before moving on.
- Very specific: line 100
No personal data in output: When test results or failed samples (--include-failed-samples) contain values that look personal (names, …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data Contract CLI
Persona: anyone working with data contracts
Output: a working datacontract installation with credentials for the data sources the user needs
The Data Contract CLI is an open-source command-line tool for data contracts in the Open Data Contract Standard (ODCS). It lints contracts, tests data against them on 20+ data sources, imports contracts from existing schemas, exports them to 25+ formats, compares versions, and opens the visual Data Contract Editor.
Step 1: Check the installation
datacontract --versionIf the command is missing or older than the version on PyPI, install or upgrade it. Prefer uv:
uv tool install --python python3.11 --upgrade 'datacontract-cli[all]'Alternatives:
pip install 'datacontract-cli[all]'in a virtual environment (Python 3.10 or newer)uvx --from 'datacontract-cli[all]' datacontract <command>for a one-off run without installing- Docker:
docker run --rm -v "${PWD}:/home/datacontract" datacontract/cli <command>
[all] pulls in every data source driver. When the user only needs one source, a smaller extra is faster to install: [snowflake], [bigquery], [databricks], [postgres], [s3], [kafka], [sqlserver], [trino], [api] (needed for datacontract edit and datacontract api), and more, see Installation.
Ask before installing anything. Never install with sudo.
Step 2: Credentials
Connection details (host, database, schema, location) live in the servers block of the data contract. Credentials never go into the contract. They are environment variables named DATACONTRACT_<SOURCE>_<OPTION>, for example:
DATACONTRACT_POSTGRES_USERNAME
DATACONTRACT_POSTGRES_PASSWORD
DATACONTRACT_SNOWFLAKE_USERNAME
DATACONTRACT_SNOWFLAKE_PASSWORD
DATACONTRACT_SNOWFLAKE_WAREHOUSE
DATACONTRACT_SNOWFLAKE_ROLE
DATACONTRACT_DATABRICKS_TOKEN
DATACONTRACT_BIGQUERY_ACCOUNT_INFO_JSON_PATH
DATACONTRACT_S3_ACCESS_KEY_ID
DATACONTRACT_S3_SECRET_ACCESS_KEYThe exact variables for each source are on its page under Test your Data. Where they can come from, in order of precedence:
- already set environment variables,
- a
.envfile in the working directory or the nearest parent, - a YAML config file (
--config-file, or./datacontract-config.yaml, or~/.datacontract/config.yaml), see Configuration.
Rules for the agent:
- Never ask the user to paste a password, token, or key into the chat. Tell them which variables to set and where (a
.envfile, their shell, a secret store), and let them set the values themselves. - Never print the content of
.envor a config file with secrets. To check that a variable is set, test for presence only:test -n "$DATACONTRACT_POSTGRES_PASSWORD" && echo set. - Make sure
.envis listed in.gitignorebefore the user writes secrets to it. - In contracts, server fields may reference variables as
${VAR}or${VAR:-default}, for example to switch the schema per environment.
Step 3: Look up what you are not sure about
The CLI evolves quickly. Before using an option you have not seen in --help, check it:
datacontract <command> --help
datacontract export <format> --help
datacontract import <format> --helpThe full documentation is at cli.datacontract.com, also as llms.txt (an index) and llms-full.txt (every page in one file). Fetch the specific page you need instead of guessing option names or YAML attributes.
Command overview
| Command | What it does | Skill with details |
init | Create a new contract from a template | create-data-contract |
import <format> | Create a contract from SQL DDL, dbt, Avro, JSON Schema, Excel, or a live source (Snowflake, Databricks, BigQuery, Postgres, ...) | create-data-contract |
lint | Validate the contract against the ODCS JSON Schema and the CLI's rules | create-data-contract |
edit | Open the contract in the Data Contract Editor (web UI) | datacontract-editor |
test | Run schema, quality, and service level checks against a server | test-data-contract |
ci | test for pipelines: several contracts, annotations, job summary, exit-code control | contract-ci |
changelog / breaking | Compare two contract versions, classify breaking changes | breaking-change-check |
export <format> | Generate SQL DDL, dbt, Avro, JSON Schema, Pydantic, HTML, ... | export-data-contract |
dbt sync / dbt test | Generate dbt model properties and tests from contracts | export-data-contract |
catalog | Build a static HTML catalog of many contracts | export-data-contract |
publish | Publish a contract to Entropy Data | |
api | Run the CLI as a REST API server |
Conventions for all data contract skills
- Files, not chat. Write contracts to
*.odcs.yamlfiles in the user's repository (ask for the path if there is no obvious convention), and show diffs instead of whole files. - Lint after every edit. Run
datacontract lint <file>after each change and fix every error before moving on. Use--all-errorsto see everything at once. - Ask before connecting to data.
test,importfrom a live source, andciread from the user's data platform. Say which server and which credentials will be used, and get a go-ahead the first time in a session. Prefer--dry-runor--metadata-onlywhen the user only wants to see what would run. - Ask before anything outward-facing:
publish,--publish <url>, pushing to a remote, opening a pull request. - No personal data in output. When test results or failed samples (
--include-failed-samples) contain values that look personal (names, emails, phone numbers, IDs), mask them in what you show.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

