activity-to-timesheet
A Claude Code skill that reconstructs your workday from
ActivityWatch + periodic screenshots, classifies the activity into
per-client time blocks, shows them to you for review, and (only after you confirm) posts the entries
to Harvest.
It's built for consultants who bill multiple clients out of one machine and are tired of
reconstructing "what did I actually do today?" from memory. ActivityWatch records the raw activity;
this skill turns it into a reviewable, billable timesheet.
You stay in control. Nothing is ever posted to Harvest without an explicit "yes". The skill
proposes; you approve.
Install
This repo is a plugin marketplace holding one plugin, billables. From inside Claude Code:
/plugin marketplace add Cordedmink2/activity-to-timesheet
/plugin install billables@activity-to-timesheet
Take the user-scope install if you are offered the choice, so the plugin is enabled in every
directory you work in. A local-scope install is bound to the one folder you installed it from:
start a session anywhere else and the plugin is disabled there, its session hook never runs, and
every command reports your credentials missing however carefully you filled them in.
That one is worth avoiding rather than diagnosing — it looks identical to having configured
nothing, and it is missing in both shells, so none of the usual fixes apply.
claude plugin list shows which scope you got and whether the plugin is enabled where you are.
That gives you /billables:daily, /billables:reconcile and /billables:setup, and asks you
for your own details, once:
| |
|---|
| Harvest account ID and personal access token | From https://id.getharvest.com/developers. Both are marked sensitive, so Claude Code keeps them in its own credential store — the OS keychain on macOS, ~/.claude/.credentials.json elsewhere — rather than in a file inside the plugin or in settings.json. |
| Your timezone | Optional. An IANA name (Europe/London, Pacific/Auckland); it decides where your day starts and ends. Blank means your machine's own zone, and every run then says the zone came from the machine — so a wrong one is seen, not billed from. There is no fixed default: a machine whose zone cannot be read stops and asks, because a guess would date someone else's timesheet wrong without anything visibly failing. |
| ActivityWatch address | Optional. Leave blank unless AW runs somewhere other than http://localhost:5600. |
| Screenshot directory | Optional. Blank means ~/Pictures/WorkScreenshots. |
| Workspace directory | Optional. Blank means the folder you run Claude Code from, if it already looks like a workspace (.mcp/ or Timesheets/) — which is the normal case. Set it if you start sessions elsewhere: a plugin is never installed inside a workspace, so there is no second place to fall back to. /billables:setup creates the workspace and tells you when to answer this. |
| Read my Outlook calendar | Optional, off by default. On, the daily skill reads your default calendar in classic Outlook (Windows only) as a fourth source — a calendar event your activity corroborates is drafted, one it does not is put to you as a question. Off is exactly today's behaviour. |
To change any of them later: /plugin configure billables.
Then run /billables:setup
It offers to install whatever your machine is missing — ActivityWatch, Python, Git Bash — and runs
each install only once you say yes. It walks you through the browser extensions, asks you about
your clients in plain language, tags the profiles that belong to one client, creates your workspace
with a starter .context.md naming each client, writes your category rules for you, sets up the
screenshot task, settles whether your Outlook calendar is read and offers the optional check-in watchers that ask
what you were doing while you were away — and verifies each one before
moving on, which is the difference that matters: every one of those
steps can look like it worked and have done nothing, and the symptom arrives days later as an
empty timesheet. It tells you when setup is finished.
That is the whole path — you don't need to clone this repo, read the rest of this file, or run a
script by hand. What is left afterwards is the rest of your .context.md — colleagues, work kinds, how you
bill — which the daily skill's first run does with you.