/billables:reconcilefrom billables
Reconcile a month against the activity data — find the days that were worked but never billed, or billed short, and say what was happening on each. Produces a worklist to take into the daily skill; records no time itself. User-invoked.
Ships in billables. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One question, asked of a month: which days were worked but never billed, or billed short — and what was actually happening on them.
The answer is a worklist, not a report. Every row names a date, what the evidence says was going on, and the next action. Nothing here records time: a day this run finds is billed by the daily skill, which drafts it properly against the rubric and asks before it writes.
The shape below is what makes it affordable. Two cheap reads find the month's gaps; only the gaps are investigated, and that is usually two to five days rather than all twenty-two. Read the whole file before starting — Step 2 is where the cost is decided.
daily skill, entries are recorded by it, and both happen on one date at a time behind its confirmation gate. This run opens nothing to draft.daily skill's already-covered branch, and it belongs to a run scoped to that date.Every command below runs a script that ships with the daily skill, in a directory beside this one. Resolve this skill's folder from where this SKILL.md was read, then look for a sibling named daily — or, in the shared export, billables-daily, because that directory is flat and every skill in it is prefixed. Check which of the two exists rather than guessing; a wrong prefix fails as "file not found", which reads like a broken install rather than a wrong path. Resolve it once and reuse it for the whole run.
python in those commands means the interpreter this machine actually uses. Timesheets/.context.md records one if a previous run resolved it; otherwise, on Windows prefer py — a bare python is often the Store app-execution stub, whose tell is a help message about installing from the Store and exit code 49.
The month listing needs the configured Harvest credentials. A run that stops naming one of those keys is a configuration gap: route it to /plugin configure billables, or to the .env beside the sibling skill's SKILL.md on an exported install. Do not ask for a value here. The day skeletons need a zone, which is TIMESHEET_TIMEZONE where it is set and this machine's own zone where it is not — the skeleton's header says which, and a skeleton read in a derived zone carries that label into the worklist. Only a run that stops saying it could read neither is the same gap.
Resolve the month first. "August", "last month", "this month" convert using today's date in the user's timezone. The range is the first of the month to the last, and it stops at yesterday — today is in progress, so its billed total is not short, it is unfinished, and sweeping it produces a worklist row for a day that is still being worked. Where today falls inside the month asked for, say so at the end rather than listing it as a worklist date.
On the first of a month there is no range left. "This month", asked on the 1st, ends the day before it starts; so does a month that has not begun. Say there is nothing in it to reconcile yet and offer the month before — do not hand the reversed range to the listing, which refuses it with an error that reads like a broken install.
Then two reads, in parallel, and nothing else:
python "<daily>/scripts/provider/bin/timesheet-provider" list <first> <last> --by-day
Every date in the range gets a row, including the ones holding nothing: <date> <Day> <total>h <n> entries <project codes>. The dates holding nothing are the candidates; the codes on a thin day are what a short day was billed to.TIMESHEET_SCREENSHOTS_DIR, or ~/Pictures/WorkScreenshots where that is unset. Substitute the resolved path — reading the literal one on a machine that configured another finds an empty folder, and an empty index makes a healthy month look like a month nobody worked. Resolve it in the Bash tool, with python "<daily>/scripts/screenshot_capture.py" --where, and paste the quoted result into the PowerShell listing. Two reasons, and either one alone produces the empty index this bullet exists to prevent: the configuration is published to Bash tool calls alone, so reading the setting from PowerShell's own environment gives nothing whatever the user set; and echoing it in Bash reads only the process environment, which is not where an exported install keeps it. The script applies the same precedence the capture script writes by, which is what makes the reader and the writer agree. One listing of directory names, not their contents:
Get-ChildItem "<screenshots-dir>" -Directory | Select-Object -ExpandProperty Name
daily_exports/ carries the same index where it exists and is the fallback when the capture directory is absent.The index is a proxy, and a narrow one. It answers "was this machine used" only for the hours the capture task runs — weekdays, roughly 08:30 to 20:00, on Windows. It is silent, not negative, about a weekend, an evening, a second machine, and every macOS and Linux install, where no capture pipeline ships at all. So a date the index does not list is a date with no evidence either way, never a date nobody worked.
Where the index is silent for the whole month — a non-Windows install, or every date after the capture task died — say so and ask the user which dates they worked. Ask it that way round, not "which were leave": the sort below promotes a date on evidence that it was worked, so a list of days off leaves every remaining date unexplained and nothing gets investigated. A date the user names is treated exactly as an indexed one from here on. Ask before Step 3 dispatches anything.
The authority on whether a given date holds activity is the activity source, one afk_blocks.py run per date. That is the right answer for a date the user disputes and the wrong one for a whole month, which is why neither read above touches it. Open no day here.
Every date in the range gets one of five verdicts, decided from the two reads alone. The first two are the subtraction — they are settled here and never reach a subagent.
| Billed total | The index | Verdict |
|---|---|---|
| at or above the floor | either | Billed — out of scope. Not investigated, not dispatched, not mentioned again except in the count |
| any | date named by the user as leave, a holiday or a day off | Not worked — out of scope, for the reason the user gave |
| none | lists the date, or the user says they worked it | Gap — investigate |
| under the floor | lists the date, or the user says they worked it | Short — investigate |
| none or under the floor | silent, and unnamed either way | Unexplained — named in the worklist, not a dispatch |
Unexplained is a real verdict, not a rounding error. It is where a weekend, an evening, a second machine and every non-Windows install land, and there is nothing to investigate on it because there is no evidence that anything happened. Never fold it into "not worked": the index being silent is not the machine being idle. Name those dates and let the user answer — a "yes, I worked that Saturday" turns one of them into a gap, and then it is worth a subagent. The counts have to add up to the days in the range, which is what stops a date falling between the rows.
The short-day floor is a preference, not a fact about anyone's day: ## Preferences in Timesheets/.context.md sets it, defaulting to 6.0 hrs. It decides only who gets investigated. Whether a day was genuinely billed short is a comparison of its billed hours against its own active minutes, and that happens in Step 3 with the day skeleton in hand — a four-hour day that was a four-hour day is not short, and the floor cannot know that.
A run of capture-less days is one finding, not many. When the index stops on a date and never resumes, that is a capture task that stopped firing — the failure that arrives silently and looks exactly like a month of not working. Every date after it is Unexplained by the rule above, so the sweep already declines to call them idle; what it owes the user is the maintenance finding, once. references/first-run.md in the daily skill owns the diagnosis; the health check is Get-ScheduledTaskInfo -TaskName WorkScreenshots, where LastTaskResult of 0 is a task that last ran cleanly and 0x80070002 is the interpreter having moved.
State the split before going further — how many dates the month holds and how many fall in each group — so the user can see the shape of the month and stop an investigation that is about to be pointless. If more than about eight days are candidates, ask before dispatching. A month nobody billed is usually explained by a fact this run does not have — leave, a contract that started mid-month, a second timesheet — and eight investigations are an expensive way to be told that.
Each day is independent: nothing one day learns applies to another, and dispatching them together means one messy day neither slows the others down nor contaminates them with its evidence. The work per day is mechanical — run two scripts, read the output, report what is in it — so use the cheapest model that can do it (model: "haiku").
One subagent per day. Never one per block: splitting a day into blocks is drafting, and drafting is the daily skill's with the rubric in hand.
A subagent has no conversation context, so its brief carries everything it needs:
Timesheets/.context.md, to be read whole, for that user's clients, signals and exclusions;python scripts/… spelling hands on a path that resolves against the workspace, where those scripts are not, and every day comes back as a missing file:
python "<daily>/scripts/afk_blocks.py" <date> — the day skeleton: work start, work end, breaks, active spans, active minutes;python "<daily>/scripts/activity_timeline.py" <date> — the categorized window timeline. Compact output is the default and is enough; --window HH:MM-HH:MM zooms one ambiguous stretch. Never --full;Report back in a fixed shape, so the worklist assembles without re-reading anything and a day that resolved to nothing is visibly a day that resolved to nothing:
<date> — work HH:MM–HH:MM, active N min, billed X.XXh
Evidence: <client and work-item signals, with the timestamps they came from>
Unaccounted: <stretches of active time the billed total does not cover>
Unclear: <what could not be resolved, and what would resolve it>
Oldest date first, the order the daily skill takes them in. For each date: the date and weekday, its active hours, what is already billed (none, where nothing is), what was happening in a phrase built from the investigation's evidence, and the command that bills it — /billables:daily <date> — plus the zone label on any date whose skeleton was read in a derived zone. The content is fixed; how it is laid out is yours, in whatever form this harness shows best.
After the dates, in this order: the Unexplained dates, named, with a question asking which of them were worked; a day whose investigation came back Unclear, with what would resolve it; any maintenance finding from Step 2; and today, if the month asked for is the current one, as a day still in progress rather than a gap.
Close by saying plainly that nothing was recorded and nothing was changed, and that each date is billed by invoking /billables:daily <date> for one date at a time.
A day the user explains — leave, a holiday, a client that bills elsewhere — is worth keeping. Propose it for Timesheets/.context.md as one line under the exclusions, showing the exact diff, so next month's sweep does not ask the same question again. That file is the user's, so propose; never write it silently.
daily skill's, on that date's own run, and it asks first.afk_blocks.py and the by-day listing own them, and a total summed by eye off a month of rows is wrong quietly.SKILL.md — this file. The reporting, correcting and month-close material arrives later, as references beside it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/dailyFill in, review, regenerate, or backfill a daily timesheet from ActivityWatch data and log the time to the timesheet provider (Harvest by default). User-invoked./setupWalk a first-time user through installing this plugin — offering to install what the machine is missing, installing the activity source and the browser extensions, interviewing them about their clients to tag single-client browser profiles, write a starter workspace context file and write and verify their category rules, getting the screenshot task past endpoint security, settling whether the Outlook calendar is read, and offering the two optional check-in watchers that ask what you were doing while you were away — verifying each one before moving on, in plain language for a non-technical user. User-invoked.npx claudepluginhub cordedmink2/activity-to-timesheet --plugin billables