Data Lineage Tracker
Use this skill whenever raw data are cleaned, transformed, merged, analyzed, or exported.
Inputs
- Raw data folder.
- Processed data folder.
- Scripts or notebooks.
- Output files.
- Cleaning and exclusion rules.
Workflow
- Inventory raw, intermediate, processed, and output files.
- Map each processed file to its raw inputs and script.
- Record cleaning rules, exclusion rules, variable construction, and dates.
- Identify orphan outputs and untracked transformations.
- Produce a data lineage table and reproducibility checklist.
Hard Constraints
- Never overwrite raw data.
- Do not describe a dataset as reproducible if scripts or inputs are missing.
- Do not hide manual edits; mark them clearly.
Script
Use scripts/create_data_lineage_template.py to create a lineage CSV.
Output
Data inventory:
Lineage table:
Untracked transformations:
Raw data protection check:
Reproducibility gaps:
Next fixes: