---
name: data-ingestion-cleanup
description: Clean pasted, imported, or attached source data into workbook tables, contracts, named ranges, and checks.
---

# Data Ingestion Cleanup

Use this skill when the user provides CSV, TSV, JSON, screenshots, exports, invoices, bank data, CRM data, or other raw inputs.

## Operating Rules

- Treat attachments and pasted source data as authoritative.
- Extract structured values before applying workbook changes.
- Normalize repeated records into tables instead of isolated cells.
- Preserve source provenance where practical.
- Add contracts for required columns, expected types, and important bounds.
- Add checks for totals, missing values, duplicate keys, and malformed rows.
- Use semantic names for cleaned ranges and staging outputs.

## Output Shape

Prefer a staging area for raw inputs, a cleaned table for normalized records, and a small set of checks that prove the import is usable.
