agentleFS
DataWithBaraaDataWithBaraa/claude-code-data-engineering-skills/skills/contract/SKILL.md

contract

Skill84 starsChanged 14 days agoMITView on GitHub

Use when a new source is connected or a source changes how it delivers, to write the data contract with the source system, the format, the schema, the quality rules, the delivery, the owner and the change process.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start from the profile of the source: every finding marked for the contract.

    line 15
  2. Distinctive:

    Write it in the Open Data Contract Standard, one file per source, and validate it against the schema of the standard.

    line 22
  3. Distinctive:

    Never sends the contract: the data engineer agrees it with the source owner.

    line 39
  4. Distinctive:

    Never writes a transformation into the contract: it describes the data, and the pipeline is a separate change.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Contract

The job: the data contract between the data platform and one source system, written from the profile and the metadata, and agreed with the source owner. It holds facts and agreements, never steps and never SQL. The contract with the consumers of a table is part of the data-product skill.

Input: the name of the source, with its profile and its metadata.

Steps

  1. Start from the profile of the source: every finding marked for the contract.
  2. The format the source delivers: one delimiter, one encoding, one date format, one decimal separator, one null token.
  3. The schema: take the tables, columns, types, keys and descriptions from the metadata file, never retype them. Mark the required columns.
  4. The quality rules the source agrees to: unique keys, no empty required columns, values in range.
  5. The delivery: how often, by what time, full or only the changes, and how a deleted row is marked.
  6. The owner and the support channel on the source side.
  7. The change process: the version of the contract, and how many days before a change the source announces it.
  8. Write it in the Open Data Contract Standard, one file per source, and validate it against the schema of the standard.
  9. List the open points for the meeting with the source owner.

Output

One YAML file per source, like references/purchasing.odcs.yaml: the format, the schema with the keys and the required columns, the quality rules, the delivery, the owner, the support channel and the change process.

Reads

  • the profile, the metadata, the documents of the source, the existing contracts

Writes

  • the data contract of the source, and the list of open points

Never

  • Never sends the contract: the data engineer agrees it with the source owner.
  • Never writes a transformation into the contract: it describes the data, and the pipeline is a separate change.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.