name: data-spreadsheet-driver description: Use for CSV, JSON, Excel-like tables, statistics, cleaning, aggregation, or schema transforms. Do NOT use for code-logic tasks (use code-driver) or prose documents (use document-driver).
data-spreadsheet-driver
Domain-specific moves for tabular/data tasks. The OS layer still applies.
Procedure
- Inspect columns, types, row count, and missing values before transforming.
- Infer the required output schema from the task (columns, names, types, order).
- Preserve original row ordering unless the task says otherwise.
- Validate totals, row counts, and null handling after the transform.
- Save in the requested format only — no extra files.
Notes
- Do not drop or reorder columns the task did not mention.
- Preserve key uniqueness; check for duplicate keys before merging/aggregating.
- Match the requested delimiter, header, encoding, and number formatting exactly.
Optional scripts
scripts/inspect_table.py <file>— summarize columns, dtypes, row count, and missingness for CSV/JSON.scripts/validate_csv.py <file> --expect-cols a,b,c [--key id]— check schema, duplicate keys, and nulls.
Scripts are optional. Prefer native data tools (pandas, etc.) when available; the scripts are dependency-light fallbacks.