All challenges

Git · easy

Ship only the fix

#4

Situation

Invoices in billing-core were rounding to whole euros and finance noticed. You fixed src/invoice.ts, but the working tree also carries your personal edit to TODO.md and a debug.log you used to reproduce the bug. Review culture here is strict: one commit, one concern.

Objective

Commit the invoice fix and nothing else: history gains exactly one commit, your TODO.md edit stays uncommitted, and debug.log never enters the repo.

The repo at start

repo/
├── TODO.md          (edited - keep local)
├── debug.log        (junk from the repro)
└── src/
    └── invoice.ts   (the fix - ship it)

Checks you will turn green

  • The rounding fix is committed
  • Exactly one new commit on main
  • Your TODO edit stays local
  • The debug log stays out of the repo

Concepts

stagingatomic commitsworking tree

Play it in your terminal

With sharpen installed, this command opens exactly this challenge in your local arena:

sharpen 4

First time? The full install is right below.

How to play

  1. 1 Install Claude Code if you do not have it yet: claude.com/claude-code
  2. 2 Install sharpen from npm:
    npm install -g @juanwmedia/sharpen
  3. 3 Then launch it; the arena opens in your browser:
    sharpen 4
  4. or Or try it without installing anything:
    npx @juanwmedia/sharpen 4
  5. 4 And to update when a new version ships:
    sharpen update