agentsclimarketplace

Data defect investigator

Skill nicholashidalgo/claude-skillforge/data-engineering/data-defect-investigator

Install
npx -y skills add nicholashidalgo/claude-skillforge --skill data-defect-investigator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Investigate mismatches, duplicates, missing records, broken keys, and reconciliation defects using structured SQL or Python diagnostics.

SKILL.md

2.7 KB, as published. Nobody here has run it

Runtime Configuration

version: "1.0.0"
gotcha_pack: "sql-data-gotcha-pack"
gotcha_pack_version: "1.0.0"
gotcha_enforcement: "block_on_high"

Purpose

Investigate data issues with disciplined, staged diagnostics.

Process

  1. Restate the defect in operational terms.
  2. Define expected grain, source of truth, and scope.
  3. Start with row-count and date-range checks.
  4. Check duplicates, orphan keys, null rates, and mapping drift.
  5. Compare totals by meaningful business slices.
  6. Narrow to exception populations.
  7. State likely root cause and next test.

Required mindset

  • Separate confirmed facts from hypotheses.
  • Do not jump to a root cause without evidence.
  • Prefer targeted diagnostics over broad speculation.

Output format

  1. Issue framing
  2. Diagnostic plan
  3. SQL or Python checks in sequence
  4. Findings
  5. Most likely root cause
  6. Next action

Gotcha Enforcement

Apply these rules while building diagnostic SQL and interpreting results. A HIGH violation in any diagnostic query you write must be corrected before presenting it. Flag behavioral violations as part of the hypothesis tree.

IDSevCheck
G001HIGHNo SELECT * in any diagnostic query produced
G002HIGHState join cardinality before building any diagnostic join query
G003HIGHDocument NULL behavior in every aggregation in the diagnostic SQL
G004HIGHFlag LEFT JOIN + WHERE on right side as a candidate root cause class
G005HIGHFlag missing SCD current-row filter as a candidate root cause class
G007HIGHDiagnostic queries must use a different access path than the report being tested
G009MEDIUMInclude null rate check for every measure column in the investigation
G010MEDIUMCardinality of every join key in diagnostic SQL must be stated or checked
G011MEDIUMIf DISTINCT appears in the defective report SQL, call it out as a root-cause candidate
G012HIGHConfirm grain, period, and filter alignment before declaring a difference meaningful
G014HIGHValidation must compare a measure value, not just row count
G015MEDIUMIf net difference is zero, run segment-level check before declaring it clean

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.