All case files

An hour-reporting toolkit other accounts adopted

Every account tracked hours and attendance its own way. I designed a reporting toolkit inside Google Sheets, wrote the brief and tested every menu item. Claude wrote the code.

Role
Designed it, wrote the brief and the house rules, tested every menu item
When
2026
Skills and tools
Google Sheets · Google Apps Script · Attendance and timesheets · Automation

No shared tool to 17 reports

reports in the toolkit, version 4.15

a sketch of the story

The problem

Every account tracked hours and attendance its own way. I wanted leads everywhere to have one shared tool for everyday questions, like who is working today or which shifts are still open.

What I did

I designed a reporting toolkit that runs inside Google Sheets on our scheduling platform's export. Early versions were built with Gemini. For 4.0 I switched to Claude. I wrote the brief and the house rules, and I tested every menu item. Claude wrote the code.

The result

17 reports across 6 menus, plus setup screens, a help center and a bug reporter, so other teams could run it without me. My team loved it. Other accounts started using it too. My guess is at least ten.

Run it

Two of the reports, redrawn as concept mockups with invented data.

Morning brief

/**
 * Morning brief: everything a lead needs before the first shift.
 * Demo version, written with Claude from my brief.
 */
function morningBrief() {
  const today = shiftsOn_(new Date());
  const yesterday = shiftsOn_(addDays_(new Date(), -1));

  showDialog_('Morning brief', {
    coverage: filledPct_(today),
    openShifts: today.filter(s => !s.agent),
    issues: attendanceFlags_(yesterday),
    lineup: groupByStart_(today, ['Morning', 'Afternoon', 'Evening & overnight']),
    toWatch: agentsWithFlags_(30) // last 30 days
  });
}

Demo version, written with Claude from my brief.

Concept mockup, invented data Tap to see full size

Attendance check

/**
 * Attendance check: how late is "late"?
 * Demo version, written with Claude from my brief.
 */
const LATE_START_MIN = { notice: 5, concerning: 15, critical: 30 };

function lateStartLevel(minutesLate) {
  if (minutesLate >= LATE_START_MIN.critical) return 'critical';
  if (minutesLate >= LATE_START_MIN.concerning) return 'concerning';
  if (minutesLate >= LATE_START_MIN.notice) return 'notice';
  return null; // inside the grace period
}

function attendanceCheck() {
  const flags = readShifts_('Export')
    .map(s => ({ ...s, level: lateStartLevel(minutesBetween_(s.start, s.clockIn)) }))
    .filter(s => s.level);
  showDialog_('Attendance check', { flags });
}

Demo version, written with Claude from my brief.

Concept mockup, invented data Tap to see full size
Concept mockup, invented data Tap to see full size

Where it started

Every account tracked hours and attendance its own way. I wanted leads everywhere to have one shared tool for everyday questions, like who is working today or which shifts are still open. So I designed one that runs inside Google Sheets, on our scheduling platform’s export.

What it does

Two of the reports, the ones you can run above:

  • Morning brief. The morning view: today’s coverage, open shifts, yesterday’s attendance issues and who is working.
  • Attendance check. Flags late starts, early finishes and missed shifts in three levels. A late start counts as Notice at 5 minutes, Concerning at 15 and Critical at 30. It also checks that the tags leads applied match the clock data.

The country risk tool from the hurricane case file is part of this toolkit too. I rebuilt it for 4.0.

How it grew

Version 4.0 shipped in May 2026. Six separate weekly reports became one Operations Report. I shipped 15 updates after that, up to 4.15.

Who wrote the code

I don’t write Apps Script from scratch. I design the tool, write the brief and test every function. Claude writes the code. Below are the brief I started 4.0 with and the rules I gave Claude.

What I’d tell someone doing the same

Build the setup screens and the help pages too. Other teams only adopt a tool they can set up without you.

The brief and the house rules

My brief for 4.0 (trimmed)

Today I want to do a complete overhaul and create a 4.0 version!

  • Review and test all scripts, going down the menu, making sure there are no errors, that the script is really doing what it says, etc. We'll also test stuff that isn't in the menu, such as the utilities.
  • Weekly reports should have a toggle for "Week Starts Sunday" and "Week Starts Monday".
  • Split the day in 30-minute intervals, and create a heatmap for that.
  • For most reports, add an extra toggle, "Spreadsheet" or "Pop-Up Window". The "Pop-Up Window" will create a beautiful dashboard with graphs, colors, etc. in a dialog, exportable to PDF. "Spreadsheet" will be normal behavior in a spreadsheet.
  • Overhaul the looks, still within our constraints for security, but making everything look more modern, and like a true "app", rather than just functional.
My house rules for Claude
  • Ask me questions until you're 95% sure what I need.
  • Use only Google-hosted links for styles and libraries. The company took security seriously, and Google-hosted files were the approved option.
  • When you fix a bug, send the whole file, so I can swap it in with one paste.
  • Explain every change in plain words, so I learn as I go.

Less apologizing, more "Let's solve this!"