agentleFS
datacontractdatacontract/datacontract-skills/skills/breaking-change-check/SKILL.md

breaking-change-check

Skill4 starsChanged 49 days agoMITView on GitHub

Data Product Owners and Builders. Compares two versions of an ODCS data contract (a working copy against git HEAD, a branch, a pull request, or two files or URLs) with `datacontract changelog` and `datacontract breaking`, adds the semantic changes no tool detects, and returns a verdict (breaking, needs review, safe), the version bump, a changelog entry, and a migration note for consumers. Use when the user changes a data contract and asks whether the change is breaking or backward compatible, which version to bump, what changed between two contract versions, or wants to review a contract pull request.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Trigger: before merging a change to a data contract

    line 9
  2. Very specific:

    Follow the datacontract-cli skill, Step 1.

    line 16
  3. Distinctive:

    If the PR touches several contracts, check each.

    line 28
  4. Distinctive:

    Read the diff yourself and check for changes that are breaking in meaning but not in structure:

    line 49
  5. Very specific:

    Tighter quality thresholds or service levels: not breaking for consumers, but they can break the provider's own pipeline.

    line 54
  6. Very specific:

    Keep the consumer note short and concrete.

    line 86

≈ “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.

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

Breaking Change Check

Persona: data product owner, data engineer, reviewer of a contract pull request Trigger: before merging a change to a data contract Output: a verdict, the classified changes, the version bump, a changelog entry, and a note for consumers

Works locally on files with the Data Contract CLI. If the contract is managed in Entropy Data and the user wants to know which consumers are affected, the contract-change-review skill of the Entropy Data skills adds the consumer and lineage impact.

Step 0: CLI

Follow the datacontract-cli skill, Step 1.

Step 1: Get both versions

Work in a scratch directory $SCRATCH outside the repository. Get the before (v1) and after (v2) version:

Situationv1v2
Uncommitted editgit show HEAD:<path> > "$SCRATCH/v1.yaml"the working copy
Branch or PR against maingit show origin/main:<path> > "$SCRATCH/v1.yaml" (after git fetch)git show <branch>:<path> or the working copy; for a PR, gh pr diff <n> lists the contract files
Two files or URLsthe olderthe newer

If the PR touches several contracts, check each. A contract that is new in the PR has no v1: lint it instead and report it as added.

Lint v2 first (datacontract lint): an invalid contract is a blocker regardless of compatibility.

Step 2: Let the CLI classify

datacontract changelog "$SCRATCH/v1.yaml" path/to/contract.odcs.yaml
datacontract breaking  "$SCRATCH/v1.yaml" path/to/contract.odcs.yaml

breaking adds a severity to every change and exits with 1 if any change is breaking:

  • ERROR: backward-incompatible, existing consumers or tests can fail (a removed property, a narrowed type, a new required, a removed enum value, ...).
  • WARNING: potentially incompatible, needs a human decision.
  • INFO: metadata, relaxed constraints, additions.

The detail table is long because every nested attribute is listed. Summarize by the top-level element (the property, schema, server, or service level) and keep the highest severity per element.

Step 3: Add what the tool cannot see

Read the diff yourself and check for changes that are breaking in meaning but not in structure:

  • Semantics changed under the same name: a different unit (euros to cents), currency, time zone, grain (one row per order to one row per line item), or definition (revenue now includes refunds). These are breaking. A changed description is often the only hint; ask the owner when in doubt.
  • Renames show up as a removal plus an addition: breaking for consumers, even if the data is the same.
  • physicalName, server schema, database, location, or topic changes: consumers query a different place.
  • Tighter quality thresholds or service levels: not breaking for consumers, but they can break the provider's own pipeline. Run datacontract test --dry-run on v2 to see the planned checks.
  • Looser guarantees (removed required, lowered freshness, removed quality rule): structurally relaxed, but consumers may rely on them. Classify as needs review.
  • status to deprecated or retired: breaking announcement; needs a sunset date and a successor.

Step 4: Verdict and version

VerdictWhenVersion bump
🔴 Breakingany ERROR, or a semantic break from Step 3major (1.4.2 to 2.0.0)
🟡 Needs reviewWARNINGs or relaxed guarantees, no ERRORminor, after the owner decides
🟢 Safeonly additions and documentationminor for additions, patch for documentation only

Check that v2's version is bumped accordingly; if not, propose the bump. For a breaking change, propose the usual ways to avoid breaking consumers: add the new field next to the old one and deprecate the old one first, or publish the new version as a separate contract (orders-v2) and run both in parallel for a transition period.

Step 5: Report

Contract: contracts/orders.odcs.yaml   1.4.2 -> 1.5.0 (proposed: 2.0.0)
Verdict: 🔴 Breaking

Breaking
- orders.order_status removed                             (CLI: ERROR)
- orders.order_total now in cents instead of euros        (semantic, from description)
Needs review
- orders.customer_email no longer required
Safe
- orders.channel added (optional)

Changelog entry: ...
Note to consumers: what changes, from which version or date, what to do.

Keep the consumer note short and concrete. Do not post comments on the pull request or notify anyone without the user's confirmation; offer the text as a draft. Delete $SCRATCH. To run this check on every pull request, see contract-ci.

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.