| name | data-audit |
| description | Audit supplied research data for identity, provenance, schema, missingness, duplicates, impossible values, temporal and unit consistency, leakage, and transformation traceability. Use before analysis to determine data readiness without claiming to detect fabrication. |
Data Audit
Audit what can be observed and traced. This Skill is a data-quality and
integrity screen, not a fraud detector.
Required boundary
Use ../../templates/data-audit.md. Inventory every file or object actually
supplied, its intended role, and the data documentation available. Do not open
unrelated paths or run user data through an external service.
Only report a check as executed when a tool actually completed it. Record the
method, scope, and output anchor. A tool error, parse failure, unsupported
format, missing required file, or incomplete transformation chain fails closed
as BLOCKED or UNKNOWN; it must never produce a ready or green result.
Audit layers
- Identity — file role, size, digest when computed, schema, version, and
duplicate-file relationships.
- Provenance — source, access basis, acquisition date, immutable raw input,
transformations, and output lineage.
- Structure — columns, types, labels, units, encodings, keys, and
referential integrity.
- Quality — missingness, duplicates, impossible values, range and unit
inconsistencies, temporal order, and internal arithmetic.
- Analysis construction — eligibility, exposure, outcome, covariates,
weights, time zero, exclusions, leakage, and derived-variable trace.
- Reproducibility — transformation code or instructions, deterministic
settings, environment, and output identity.
Treat missing documentation as missing evidence. Treat a directly observed
contradiction as negative evidence. Treat unusual distributions as signals for
domain review, never proof of fabrication.
Decision
DATA_READY: required identity, provenance, construction, and quality gates
pass for the stated analysis;
REVIEW_REQUIRED: no blocker is demonstrated, but material checks require
domain or human review;
BLOCKED: identity, provenance, parsing, transformation trace, or a
consequential quality issue prevents responsible analysis.
Do not auto-modify, impute, delete, rename, or overwrite user data. Recommend a
repair plan instead.
Call record_checkpoint with the strongest provenance boundary, unresolved
uncertainty, or stop rule. Prefix the statement with [data-audit].
Output
Write data-audit.md and include:
- audit boundary and executed checks;
- dataset identity and provenance;
- prioritized findings with evidence anchors;
- analysis-readiness gates;
- unexecuted checks and limitations;
DATA_READY, REVIEW_REQUIRED, or BLOCKED.