I work in industrial facilities and utilities, and I’m exploring how to use AI to build small tools for maintenance. One project I’d like to try is a Python script that checks a CSV incident log before a shift handover.

I’d start with one task: flag rows missing a timestamp, equipment ID, observed condition, or follow-up. The first version would report the row number and missing field so someone can fix the source record.

  1. Write fictional sample rows with a complete entry, a missing field, and an invalid timestamp.
  2. Ask AI to draft the validator and propose a test for each sample.
  3. Run the tests and read the code. Add a case with a comma in a note to check that the script handles quoted CSV fields.

I want to learn how to turn a vague request like ‘clean up this log’ into behavior I can check. If you build small tools with AI, what do you put in your first prompt?