Combine CSV files into one report
Turn a folder of exports into one clean spreadsheet.
The prompt
Combine all CSV files in ~/Downloads/exports into one Excel file. Keep the header once, add a column with the source file name, and remove exact duplicate rows. Tell me how many rows came from each file.
What the AI will do
- Reads every CSV file in the exports folder.
- Joins them under one header, adds a source-file column and removes exact duplicate rows.
- Saves one Excel file and says how many rows came from each file.
On Windows, Mac and Linux
All three: writing an Excel file needs a program like Python already installed. On Windows the folder is C:\Users\<you>\Downloads\exports.
How to use it
- Make sure Shellway is connected in ChatGPT, Claude or Cursor.
- Paste the prompt and change the folder names or paths to match your computer.
- Review the plan your AI shows before you confirm any changes.
Example reply
An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.
Combined 6 CSV files into exports-combined.xlsx: orders-jan.csv 1,204 rows orders-feb.csv 1,118 rows ... Total 6,912 rows, 37 exact duplicates removed. All files had the same 11 columns.
Good to know
Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).