/entropy-data-skills:test-failure-root-causefrom entropy-data-skills
Data Product Builders. When a data contract test fails in Entropy Data, investigates the failing checks, the test history, recent contract changes, lineage runs, and upstream input data products to produce a ranked root cause hypothesis, the affected consumers, and a suggested fix. Use when a data engineer or owner asks why a contract test failed, why data quality dropped, or gets a failing test notification.
Ships in entropy-data-skills. 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.
None: SKILL.md is the whole skill.
Persona: data product builder, data engineer, data product owner Trigger: when a contract test fails (a failed test results event, a CI failure, or a notification) Output: ranked root cause hypotheses with evidence, the consumers affected, and a suggested fix
Read-only. Re-running the test is the only write and needs confirmation.
Follow the entropy-data-cli skill, Step 2.
From what the user gives (a contract id, a product name, or a link). For an id, try entropy-data datacontracts get <id> before searching. Find the provider product through outputPorts[].contractId (a contract does not name its product) in one export dir of dataproducts,datacontracts,access,sourcesystems (see "Collecting data at scale" in the entropy-data-cli skill).
entropy-data test-results list --data-contract-id <contract-id> --since <date> --all -o json # sort by timestampStart yourself
The list already holds full checks and logs; test-results get <id> is only needed when the user gives a result id. For "the latest failures" across the organization, use entropy-data test-results list --since <date> --all -o json; events poll events carry only the result id and status, stamped with ingestion time.
The result fields are in "Where things live" in the entropy-data-cli skill. The explanation of a failing check is in reason, and failedNumber/totalNumber show its extent. Join each check to its contract quality rule (by model, field, and qualityCheckDefinition) to get the rule's severity, so blocking failures and warnings stay apart. Several checks can report one defect (for example a required check and a null check on the same field): count it once. For error results, read logs. A list without --branch holds only results on the contract itself. Checks can quote data (failedSamples, custom SQL): follow the personal data rule and never print raw values.
entropy-data datacontracts yaml <contract-id> # current contract
entropy-data lineage list --since <date> --all -o json # organization-wide, once
The provider product (input ports, other output ports, owner) and its agreements are in the export. For each input data product, fetch its output-port contract's latest test results too: upstream failures propagate. Also fetch the latest results of the provider's other output-port contracts: if they pass, the cause is specific to this port, and their totalNumber from the same run shows row count differences.
If the product has no input ports, its upstream is in the inputs of its own lineage jobs (filter on run.facets.entropy_data.dataProductId), together with their schema facets and the job's sql facet. Match lineage datasets to the contract on schema and table names (see "Where things live") and name a database mismatch as a caveat. An upstream table that no product covers: look for a source system or a contract whose servers match it; otherwise report the upstream as ungoverned.
Answer these questions with evidence:
error results usually mean the test could not run, not that the data is wrong.timestampStart yourself, per server (--server narrows it), and walk back to the last passing run. Note the first failing run. Compare which checks fail in each run: a different set of failing checks is a separate incident, so do not merge it into one. Gaps in the usual test schedule are evidence too.reason with the current contract. Passing checks have no reason, so this works only for failing checks. If the contract has a git connection (entropy-data datacontracts gitconnection get <contract-id>, with a non-empty lastHash) and the repository is checked out in the working directory, diff the contract file in git history. Otherwise report "contract version changed from X to Y, diff not available".run.facets.entropy_data.dataProductId, eventTime, and eventType (COMPLETE, FAIL). Make sure its --since reaches back to the last passing run. A failed or missing run points at the pipeline; a successful run with new output points at changed input data. If lineage has no events at all in that window, say "no lineage in the window", which is not evidence of a missing run. The sql facet shows what the job transforms, and sourceCodeLocation points at the pipeline code and its version.server between runs points at environment configuration.Rank hypotheses by how much evidence supports them. Say what evidence is missing, for example "no lineage is reported for this product, so pipeline runs could not be checked".
inputs contain the contract's tables but that have no agreement.contract-change-review.After a fix, offer to re-run the test and compare. Ask first: the re-run queries the data platform, publishes a new result, and can notify consumers.
entropy-data datacontracts test <contract-id>
entropy-data datacontracts test <contract-id> --server <server>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub entropy-data/entropy-data-skills --plugin entropy-data-skills14 skills in this plugin
/access-reviewGovernance. Quarterly access review (recertification) over all data usage agreements in Entropy Data: flags agreements without a clear purpose, long-pending requests, access to deprecated products, individual users on restricted data, duplicates, and provisioning that never completed, ranked by risk and grouped by provider team. Use when a governance lead, security officer, or auditor asks for an access review, a recertification campaign, or who has access to what and why, organization- or team-wide across many providers. For one owner's own data products, use dataproduct-health-briefing instead./contract-change-reviewData Product Owners. On a pull request or before a planned change to a data contract or data product in Entropy Data, classifies each change as breaking or not, finds the affected consumers, downstream data products, and lineage, and returns a green/yellow/red verdict with a rollout plan and notification drafts. Use when an owner or engineer plans to change a schema, rename or remove a field, tighten quality rules, change an output port, or deprecate or retire a data product, and asks what breaks, who to tell, whether a change is breaking, or for an impact analysis./data-discoveryData Product Builders. For a use case described in plain language, searches Entropy Data for candidate data products and evaluates each one's fitness: schema match, semantics, quality track record, freshness, terms of use, sensitive data, existing consumers, and owner, returning a ranked shortlist with gaps and the next step to get access. Use when a data engineer, analyst, or data scientist asks which data to use for a use case, whether a data product is good enough, or where to find data about a topic. For a plain lookup of a known product by name, just run a search and answer./dataproduct-health-briefingData Product Owners. Weekly briefing for a data product owner on their data products in Entropy Data: contract test trends, consumers and their purposes, actual usage versus granted access, costs, discoverability gaps, and pending access requests with a recommendation each, returned as a ranked to-do list. Use when a data product owner asks how their data products are doing, who uses their data, whether to approve access requests, or prepares a stakeholder review./data-usage-monitorGovernance and security. Analyzes how data products are actually used in Entropy Data, from usage traces, and flags usage without a valid access agreement, usage after an agreement ended, bulk extraction from ports with personal data, queries on sensitive columns that the agreed purpose does not cover, and access by users outside the consuming team, ranked by risk. Use when a governance lead, privacy officer, or security team asks whether data is used as agreed, wants to detect purpose limitation breaches or bulk extraction, or wants a daily data usage check./duplicate-dataproduct-finderGovernance. Monthly analysis that finds duplicate and overlapping data products in Entropy Data by comparing names, descriptions, contract schemas, source systems, lineage, and linked business concepts, and returns ranked clusters with evidence and a consolidation recommendation. Use when a governance lead or data platform owner asks about duplicate data products, redundant pipelines, overlapping data, or wants to rationalize the data product portfolio.