Logo: Data Quality

Data Quality

Communautéit
nahid-sparktales
data-quality

Decide what must be true of a dataset and where that assertion belongs — freshness against event time, volume floors and bands, distribution and referential checks, source reconciliation, and whether it should be a schema constraint, a blocking publish gate or an alert. Use when adding or reviewing data checks, when a wrong number reached a consumer and nothing caught it, or when a check fires so often it is being ignored. Not for proving a specific migration did what it claimed (database-migration-verification), not for building the pipeline itself (data-pipelines), and not for interpreting what the numbers mean.

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummdata-quality
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Data Quality an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/database/data-quality
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/database/data-quality .claude/skills/data-quality
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Data Quality an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Data Quality automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Data Quality net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Data quality assertions

A wrong number looks exactly like a right one. Nothing about a dashboard, a type check or a green job reveals that the load was half-empty, that a join fanned out, or that a column has been null since Tuesday. The only thing that reveals it is an assertion someone wrote in advance — placed where it fires before a consumer acts on the number, not after.

When this fires

Checks are being added to or reviewed on a dataset; a bad value reached a consumer and no check caught it; or an existing check is noisy enough that people are muting it. It does not fire for a one-off verification of a migration, for enforcing an invariant inside a single application write path, or for deciding what a metric means.

Procedure

  1. Start from the failure that hurt, not from a catalog of check types. Which wrong value reached whom, how long it took to notice, and what would have caught it earliest. Generic not-null checks generated across four hundred columns produce noise, and a noisy channel is a muted channel — that is a net loss, not a neutral one.

  2. Place each assertion on the lowest rung that can hold it. This is the load-bearing decision and it is usually made by accident:

    • A schema constraint — NOT NULL, UNIQUE, a foreign key, a CHECK. It cannot be bypassed by any writer and fails at write time. If the rule can be a constraint, it is a constraint (schema-design covers designing it).
    • A gate at the pipeline's write boundary — runs before publish and blocks it. Use when the rule needs the whole batch, or the destination cannot express the constraint.
    • A scheduled check against the landed table — alerts after the fact. Use when the rule needs cross-table or historical context that only exists once the data is landed.
    • A check in the consumer's own query or report — last resort. Cheapest to add, latest to fire, and the easiest for everyone to scroll past.

    For each assertion, record the rung and why not the one above it.

  3. Write every assertion as a query that returns the offending rows, not a boolean and not a count. Zero rows is the pass; a non-zero result hands the next person the reproduction case instead of a number to go and re-derive.

  4. Assert freshness against event time, not against the job. A job that succeeded and wrote nothing passes every liveness check there is. Assert that the maximum event timestamp in the table is within the consumer's stated tolerance of now, per partition or per source, and derive that tolerance from what the consumer actually needs rather than from how often the job happens to run.

  5. Assert volume with both a floor and a band. An absolute floor catches the empty load. A relative band against comparable recent windows — same weekday, same hour — catches the half-load that a floor sails past. Neither alone is enough: a floor misses a fifty percent drop, a band alone fires every holiday and every launch. State the comparison window you chose.

  6. Assert distribution on the fields decisions depend on. Null rate, distinct cardinality, category mix against the known set of allowed values, numeric range, and a mean or percentile within a band. A column full of schema-valid wrong values passes every type check in the stack. Anchor to a known-correct set — an enum, a dimension table, a reference feed — wherever one exists; comparing to yesterday only inherits yesterday's defects.

  7. Assert referential integrity and grain in the same pass. Orphans at each join key (fact rows with no matching dimension row, and the reverse where it matters), and uniqueness of the key that defines the grain. Then check fan-out explicitly: a join emitting more rows than its left side is a duplicate-key defect, and it inflates every sum computed downstream of it while leaving each individual row looking correct.

  8. Reconcile against the system of record, not just internally. Row count and the sums of additive measures per window, compared to the source. Internal consistency proves the transform agrees with itself. State the tolerance and where it comes from; a tolerance chosen after seeing the discrepancy is not a tolerance.

  9. Give every check a severity, an owner and an action, decided at the same time as the threshold. Blocking the publish, or alerting a named person. A check with no action is a metric. A blocking check with no recorded override path gets deleted during the first incident where someone needs the data anyway — provide the override and log its use instead.

  10. Make each check fail on purpose before trusting it. Run it against a deliberately broken fixture or a slice you have corrupted — a nulled column, a dropped day, a duplicated key. An assertion never observed failing is not known to work, and this is the step almost every check skips. A check that cannot be made to fail is asserting nothing.

  11. Stop before touching data to satisfy a check. Quarantining, deleting, overwriting or excluding rows so a check passes is destructive and is the user's call, not yours. So is wiring a check to page a team. Report the offending rows; propose the remedy; ask.

  12. Keep the words apart in the report — asserted, executed, failed on purpose, reconciled, deployed. A check that exists in a file is written, not running.

Checklist

  • Assertions derived from a real failure or a real consumer need
  • Each one placed on a named rung, with the reason it is not one rung lower
  • Every check returns offending rows rather than a boolean
  • Freshness measured on event time, against a consumer-stated tolerance
  • Volume has both an absolute floor and a relative band, with the comparison window named
  • Distribution checks cover the fields decisions depend on, anchored to a known-correct set
  • Orphan, grain-uniqueness and fan-out checks all present
  • Source reconciliation run, with a tolerance set in advance
  • Severity, owner, action and override path recorded per check
  • Each check observed failing against a broken fixture
  • Anything left unasserted stated explicitly

Failure handling

  • A check fires and the data is fine — that is a defect in the check. Tune the threshold using the observed history or delete it. Muting it is deleting it while pretending otherwise.
  • A check fires and the data is wrong — capture the offending keys before anything reruns or overwrites them; those rows are the reproduction case, and the next run may erase them.
  • Reconciliation is off by a small amount — do not widen the tolerance to cover it. Find which rows account for the difference; a persistent small gap is usually a systematic rule, not noise.
  • Nobody can state a freshness or volume expectation — say the check is unanchored rather than inventing a threshold. An invented threshold fires on the wrong things and teaches people the channel is unreliable.
  • Only read access to the target — the assertions still stand as queries and still run. Report them as run and any gating or scheduling as not installed, rather than downgrading the whole thing to an opinion.

Evidence to report

Each assertion: the query verbatim, the rung it sits on, the threshold and where the threshold came from. The result of running it now, as rows or as an explicit zero. The deliberate-failure run that showed it works. The reconciliation figures against the source, per window, with the tolerance stated in advance. The severity, owner and action for each check. Then the fields, tables and windows deliberately left unasserted — the gap is part of the report, not an omission from it.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Data Quality?

Decide what must be true of a dataset and where that assertion belongs — freshness against event time, volume floors and bands, distribution and referential checks, source reconciliation, and whether it should be a schema constraint, a blocking publish gate or an alert. Use when adding or reviewing data checks, when a wrong number reached a consumer and nothing caught it, or when a check fires so often it is being ignored. Not for proving a specific migration did what it claimed (database-migration-verification), not for building the pipeline itself (data-pipelines), and not for interpretin...

Firwat Data Quality op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Data Quality besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Data Quality an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/database/data-quality an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Data Quality benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Data Quality benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Data Quality domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Data Quality gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇