Skip to content
Agentmart
Submit a tool

data-semantic-quality

Portable methodology for semantic (row-truth) data quality — write-time quality attributes, trust ladders, cohort fences, golden entity packs with dual error…

Skill by Evan-Kim2028

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/evan-kim2028-data-semantic-quality

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Portable methodology for semantic (row-truth) data quality — write-time quality attributes, trust ladders, cohort fences, golden entity packs with dual error budgets. Use when designing quality flags, outlier rules, confidence gates, split-brain lake vs API filters, or golden-pack regression. Don't use for schema fences (data hub / data-apache-lakehouse), admission or OOM (data-pipeline-operations), table-lifecycle, DuckDB tuning, identity attach (data-identity-resolution), estimate scoring (data-product-eval), or domain thresholds (product repo). Prefer the data hub when the specialist isn't obvious.

Use cases: backend, data, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/data-semantic-quality

What's inside

Skill name
data-semantic-quality
Description
Portable methodology for semantic (row-truth) data quality — write-time quality attributes, trust ladders, cohort fences, golden entity packs with dual error budgets. Use when designing quality flags, outlier rules, confidence gates, split-brain lake vs API filters, or golden-pack regression. Don't use for schema fences (data hub / data-apache-lakehouse), admission or OOM (data-pipeline-operations), table-lifecycle, DuckDB tuning, identity attach (data-identity-resolution), estimate scoring (data-product-eval), or domain thresholds (product repo). Prefer the data hub when the specialist isn't obvious.
License
MIT
Instructions
170 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: "data-semantic-quality" does not match folder "semantic-quality"

Files (4)

  • SKILL.md
  • quality-attributes.md · references/
  • rule-scoping.md · references/
  • validate_skill.py · scripts/

SKILL.md (first lines)

# Semantic data quality — row truth, not just schema

The **data** hub fences structure (types, nulls, atomic publish). This skill is the
discipline for **semantic** correctness: is this row the right real-world entity with
attributes fit for the consumer? It is methodology only — no product thresholds, no
marketplace or catalog rule books. Domain rule encyclopedias stay in the product repo.

## When to invoke this skill

- Designing quality flags, outlier/anomaly rules, or include-in-downstream predicates.
- Fixing split-brain: lake/table says clean, API or UI re-scores differently.
- Entity resolution or classification where weak signals must not override strong ones.
- Adding a golden pack (known-good / known-bad entities) with precision and recall budgets.
- Writing a producer–consumer contract that includes quality expectations, not only schema.
- Choosing whether a fence is absolute (global physical invariant) or cohort-relative.

## Don't use

| Task | Go here instead |
|---|---|
| Schema, types, null fractions, required columns | **data** hub / **data-apache-lakehouse** |
| Watermarks, O(history) rebuilds, bounded memory | **data** hub |
| Multi-pipeline admission, MemoryMax, timer stacking | **data-pipeline-operations** |
| Drop/deprecate tables, maintenance coverage lists | **data-table-lifecycle** |
| Rate limits, pushdown, pagination, cache keys | **data-api** (honors attributes; does not invent rules) |
| Attach / remap / unresolved-null identity workflow | **data-identity-resolution** (this skill owns the ladder rules only) |
| Score a published estimate vs later realized facts | **data-product-eval** |
| Concrete domain thresholds or product-specific junk taxonomies | **product-repo skill**, not this pack |

## Non-negotiables

1. **No domain product nouns or concrete business thresholds** in advice generated from this skill. Patterns only (cohort fence, trust ladder, quality attribute). Thresholds and product taxonomies live in the domain repo.
2. **Quality attributes are write-time and single-sourced.** Read sites trust stored state; they do not re-derive a parallel truth.
3. **Rule evaluation scope matches evidence scope.** If anchors span partitions or sources, score at entity (or declared cohort) scope — not an arbitrary write chunk. **Entity scope is not lifetime history by default.** Declare the cohort as entity × time window for incremental scoring; lifetime is an explicit `--rebuild`. "Need the whole card for IQR" without a declared window is how a watermarked job still COWs 2016.
4. **Golden packs require dual error budgets:** known-bad must stay bad (false-negative budget); known-good must stay good (false-positive budget).
5. **Enforcement is layered** (hub principle 8): runtime guard > CI pack > checklist > review convention.

## Principles

Each principle has a falsifiable **Test:**. If the test fails, the principle is violated.

### 1. Separate mechanical validation from semantic validation

Mechanical: columns, types, null fractions, required keys. Semantic: right entity, right
attributes for the stated consumer use. Dimensions (accuracy, completeness, consistency,
uniqueness, validity, timeliness, usefulness) **label** what you measure; they are not a
test suite by themselves.

**Test:** can you name which checks are mechanical vs semantic for this table, and which
skill owns each? If everything is filed under "data quality" with no split, the fence is muddled.

### 2. Quality attributes are first-class, write-time fields

Persist flags, reason lists, confidence, or include-in-X predicates on the fact table (or a
documentedly coupled sidecar of attributes). Emit them in the same publish path that lands
rows. Details: [`references/quality-attributes.md`](references/quality-attributes.md).

**Test:** after publish, does a cold reader (new process, no in-memory scorer) see the same
quality decision as the write path? If only the API rescores in memory, attributes are not first-class.

### 3. Single score path — no multi-reader re-derivation

One function (or job) owns scoring/reconcile for a given attribute set. Rollup builders, APIs,
and UIs consume the result. Temporary dual-read during cutover is allowed only behind an
explicit env/flag with a deletion date.

**Test:** change one rule threshold in one place. Do all consumers move together on the next
publish, or does one site still use old logic?

### 4. Group or stratify before fencing

Anomaly and outlier rules run **after** grouping by the dimensions that define a fair cohort
(entity, variant, grade band, region, …). Fencing a mixed cohort produces false positives.

**Test:** take two legitimate sub-populations with different price/volume levels. Does a
single global fence flag one of them incorrectly? If yes, stratification is missing.

### 5. Prefer cohort-relative fences over absolute constants when distributions vary

Absolute floors/caps are fine for global physical impossibilities (negative price, impossible
range). For "implausible relative to peers," use ratios or percentiles of a defined cohort.
Details: [`references/rule-scoping.md`](references/rule-scoping.md).

**Test:** does the same absolute constant pass junk on expensive entities and thrash cheap
ones? If yes, the fence should be relative (or dual: absolute floor *and* cohort ratio).

### 6. Provenance trust ladder for classification

Every classification dimension (identity, category, state) uses ordered evidence: stronger
sources override weaker ones; strong-vs-weak mismatch **quarantines** rather than guessing.
Weak signals never win by running first. The attach/remap *procedure* is
**data-identity-resolution**; this skill owns the ladder rules only.

**Test:** invent a row where weak evidence and strong evidence disagree. Is the row quarantined
or soft-failed, or does the weak path still win?

### 7. Confidence is a gate when identity is inferred

Inferred entity links carry a confidence score. Below threshold, the row does not enter
downstream aggregates that assume identity — not "average in with a discount."

**Test:** can low-confidence rows appear in the primary rollup or oracle path without an
explicit override flag? If yes, confidence is decoration, not a gate.

### 8. Contracts include meaning and quality expectations

Producer–consumer agreements cover schema **and** what fields mean, which quality attributes
exist, and what consumers may assume (e.g. "filtered rows are excluded from default charts").
Schema-only contracts leave semantic drift free.

**Test:** if a new quality attribute is added, does any contract artifact or OpenAPI/docs path
require updating, or can consumers only discover it by reading source?

### 9. Golden packs are domain-owned; this skill requires they exist for rule changes

The pack contents (entity ids, expected flags) live in the product repo. The portable
requirement: any rule change ships with positive and negative cases and dual error budgets.

**Test:** delete the pack or empty the known-bad set. Does CI or publish still go green for a

From Evan-Kim2028/agent-skills, MIT.

More from Evan-Kim2028/agent-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Jun 22, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Evan-Kim2028

Cite this page

data-semantic-quality skill. Agent Mart. https://agentmart.dev/skills/evan-kim2028-data-semantic-quality (last updated 2026-10-24)