Lesson · 14 min
A first session that does not wreck the branch
Clean tree, small task, explicit verify step.
- 01Start from a clean git status. Commit or stash anything you care about.
- 02Pick a task you could finish in 20 minutes by hand. Not a rewrite.
- 03Tell Grok Build the outcome and how you will know: 'Add a failing test for X, then make it pass. Run npm test.'
- 04Watch the first run. If it starts refactoring neighbors, stop it and tighten the brief.
- 05Read the diff. Run the tests yourself. Then commit, or revert.
In this repo, the date formatter in src/lib/dates.ts drops the timezone. Write a unit test that fails on UTC+2, then fix the formatter. Do not touch unrelated files. Run the existing test command when you are done and paste the output.