2 / 6

Lesson · 14 min

A first session that does not wreck the branch

Clean tree, small task, explicit verify step.

  1. 01Start from a clean git status. Commit or stash anything you care about.
  2. 02Pick a task you could finish in 20 minutes by hand. Not a rewrite.
  3. 03Tell Grok Build the outcome and how you will know: 'Add a failing test for X, then make it pass. Run npm test.'
  4. 04Watch the first run. If it starts refactoring neighbors, stop it and tighten the brief.
  5. 05Read the diff. Run the tests yourself. Then commit, or revert.
A good first task
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.