Build Your First Internal Business Tool With Codex

Turn a manual spreadsheet step into a tested internal tool your team can run.

A first project can be a job CSV checker that catches blank IDs, invalid dates and repeated rows before a file reaches the reporting workbook. The checker produces a report and leaves the input file untouched.

How to run the workflow

  1. Write a sample CSV and an expected exception report. Use fictional rows for development.
  2. Ask Codex to build the smallest local command that reads the file and produces that report.
  3. Ask for tests showing that valid rows pass and that malformed rows are surfaced with useful messages.
  4. Have a second person run it from the documented instructions. Use the existing workbook during the pilot and retain the prior process as a fallback.

Worked example

A file has a valid header and no records. Set the expected behavior before building. An explicit ‘no records received’ result gives an operator a reason to check the export before assuming there are no jobs.

Prompt to adapt

Build a local job-export checker from the fictional sample and expected exception report. Preserve the input file. Include tests for an empty export, duplicate IDs and malformed dates, and write the exact command an operator should run.

Test the checker with a fictional export

Save this fixture as jobs.csv. The checker should report each exception with the row number and reason. Row numbers below count the header as row 1.

job_id,due_date,status
J-101,2026-12-01,open
J-102,2026-12-02,complete
J-101,2026-12-03,open
J-103,2026-02-30,open
,2026-12-04,open
RowExpected result
2–3Accepted
4Duplicate J-101
5Invalid calendar date
6Missing job ID

Run a second fixture with just the header. Expect zero accepted rows and an explicit empty-export message. Check that both runs leave the source files unchanged.

Product documentation

Related business guides