CSV export sequencing
You're using an AI agent to build a feature in a TypeScript/React app: a CSV export button that streams a filtered table to a downloadable file. Sequence the build so each step is independently verifiable before the next, rather than asking the agent for the whole feature at once. Explain why your ordering makes each step checkable in isolation.
Implement
rows_to_csv(rows: list[list[str]], columns: list[str]) → strExamples
in
[[["Ada","42"],["Bob, Jr.","7"]],["name","score"]]out"name,score\nAda,42\n\"Bob, Jr.\",7"in
[[["say \"hi\"","line1\nline2"]],["a","b"]]out"a,b\n\"say \"\"hi\"\"\",\"line1\nline2\""in
[[],["id","email"]]out"id,email"What a strong answer looks like
Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.
0:00 of about 20 min
Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.
Run or narrate your approach, then ask the coach.