mitigated

An agent builds my Friday wins slide. A script checks its maths.

Every Friday I had to remember what I shipped, and a list of forty commits isn't a story.

Every Friday my team shares its wins: each of us shows a slide of what we got done that week. It’s a small ritual, and research on small wins finds that seeing progress is one of the strongest motivators at work.

The hard part is remembering. With agents doing much of the typing, a busy week can go upwards of 30 pull requests, and by Friday, Monday is a blur. So Claude Code now builds the slide from git and GitHub. The first version got its own numbers wrong, so a script now refuses to render a slide whose buckets don’t add up.

Where the wins come from

Git is the record. A small script, worklog, reads the week’s commits and merged pull requests straight from git and gh. It only counts work repos, so dotfiles and side projects stay out. Nothing has to be captured at commit time, so no hook can silently fail to fire.

A skill, not a prompt

The steps live in a Claude Code skill, so I just ask for “the weekly note”. It produces two things:

  • A Markdown note in my Obsidian vault: a headline, then the work day by day, grouped by repo, plus the open queue of tasks.
  • An HTML slide: four tiles and one line per highlight. Its pull request list comes from a separate gh search call, because the slide needs the date each one was opened.

The skill’s main rule: write a review, not a changelog. Ten commits refining one feature are one bullet. A squash merge and its pull request are the same work, so count it once.

Four buckets

Every merged pull request goes into exactly one bucket:

BucketMeans
ShippedA capability that didn’t exist before
FixedSomething that was wrong is now right
RemovedCode or config deleted, nothing new in exchange
UpkeepTests, renames, dependency bumps

One tie-break settles most arguments. If deleting something closes a gap that was already causing harm, such as a leak, it’s Fixed, not Removed.

Under Fixed, a bullet names the defect, not the repair. “Failed emails were counted as sent” reads as a win. “Fixed email counting” reads as a chore.

Where it went wrong

The first slide’s tiles counted my bullets, not the pull requests. The real split was 12, 26, 4, and 8 across 50 pull requests. The footer repeated the mistake: “21 of the 50”, where 21 was the bullet count.

The HTML was fine. The arithmetic was not, and nobody checked it. Now the agent writes only a JSON file of counts and bullets, and a small Node.js script renders the slide from a template. The script, the template, an example week, and worklog are in a gist. The script refuses to render if the four buckets don’t sum to the total, and says which number is off. It computes the coverage and bullet counts itself, and checks the total and the repo count against what gh says merged.

The check has limits: the agent still sorts each pull request into a bucket, and a wrong call that sums correctly passes.

Terms of use

The commit messages and PR titles go to the model provider under its terms. Check what your employer allows before pointing this at work repos.

Where it ended up

Mitigated. A script refuses to render a slide whose numbers don’t match git, but the agent still sorts the pull requests and writes the footer.