How I let Claude log my Tempo timesheet

Every Friday I used to rebuild my week from memory. What was that call on Monday? Which ticket did the fix go under? Was the 9:45 meeting billable?

I work at 7EDGE, where a timesheet is a financial record, not a diary. Pick the wrong account and a client invoice is wrong. Forget to zero out the billable time on a retro and it is wrong in the other direction. So I couldn’t just log eight hours and move on.

Over the past few months I’ve handed most of this chore to Claude. It logs the obvious parts of my day on its own and asks me about the rest. Here is how the setup works, including the parts that broke.

Three pieces, one job each

  1. A Tempo MCP server. I wrote it in TypeScript on Bun and open sourced it. It gives Claude tools to list, create, update and delete worklogs.
  2. A skill called tempo-timesheet-logger. It holds the rules. Which account a meeting belongs to, when time is non-billable, what a description must say.
  3. A skill called timesheet-automation. It holds the procedure. Fetch the calendar, fetch the worklogs, sort everything out, show me one plan.

The split between the two skills is the part I like most. The workflow skill has no ticket numbers or account codes in it. It says to apply the user’s classification rules and goes looking for them. The rules skill knows how 7EDGE accounts for time. My own mappings, like which card my daily stand-up goes to, are things I told Claude once and it kept.

If company policy changes, I touch one skill. If I want a different workflow, I touch the other.

The rules skill

The policy is detailed, so the skill turns it into a decision tree. Is the work for a customer? Is it delivery or governance? Is it org-wide, innovation time or functional work? Every branch ends in an account.

A handful of rules do most of the work.

  • A meeting about an existing work item is logged to that item, not to a generic meeting card.
  • A retro or a client check-in is non-billable, and the billable seconds must be set to zero by hand. Picking a non-billable account does not do it for you.
  • Helping someone on another project is logged to my own functional account, never to their project.
  • Every entry needs a description that says what happened. “Internal meeting” gets rejected.
  • Declined invites are never logged.

The skill calls a missing zero a compliance violation, not a nitpick. Claude treats it that way, which is exactly what I want from something that writes to a financial system.

The workflow skill

When I ask Claude to run my timesheet workflow, it follows the same ten steps every time.

It pulls my calendar for the week. It pulls my existing Tempo worklogs, fresh, because commits sync in from the pipeline all day and a fetch from an hour ago may already be stale. It resolves unfamiliar ticket ids in one query. It classifies each calendar event against the rules, checks the dev worklogs that already exist, and looks for gaps in each day.

Then it stops. I get one table with every entry, its ticket, its account and its duration. Under that sits a short numbered list of questions. Under that, one sentence saying nothing has been written yet.

Nothing reaches Tempo until I answer. After I confirm, Claude sends the updates and the creates in bulk, then tells me what landed and what failed.

When it isn’t sure, it asks instead of guessing. An invite I never responded to. A meeting that matches no known ticket. A dev worklog on a ticket outside my usual boards. Two worklogs on one ticket, minutes apart, with the same text. Each goes on the question list and none goes into Tempo.

The daily run

The weekly session worked, but I still had to remember to start it. So I added a scheduled task that runs the workflow skill every day, shortly before my 18:30 reminder to log time. The first run was on 4 September.

The scheduled run is more careful than the weekly one, because nobody is watching when it fires. It logs only entries with no doubt, meaning events that match a rule in the skill or a pattern in my own history. Anything ambiguous it leaves alone. I answer those live when I sit down at 18:30.

Before it classifies anything, the run reads my last four to six weeks of worklogs and calendar events. If a recurring meeting went to the same ticket and account at least three times with no exceptions, that counts as a learned rule. One past instance does not count, and neither does a meeting I logged two different ways. Each answer I give live adds a data point, and after a few consistent ones the run logs that meeting by itself.

The prompt also sets hard limits. The run never deletes a worklog. It never changes the time, date or description of an existing one, and the only update it may make is adding a missing account attribute. It touches only my own entries, and only for today. Each run ends with one push notification listing what it logged and the questions it left for me. If an API fails halfway, the notification says exactly what succeeded, what failed and what was never attempted.

It also skips the “Daily Timesheet Logging” block itself. My older manual sessions used to log 15 minutes for it, so this was a rule change, and the scheduled task’s own instructions now say to leave it out.

By the time I open the timesheet, most of the day is already there. What remains is the leftovers Claude could not have known.

What broke along the way

Most of the learning came from small, boring failures.

  • Dev worklogs sync in from commits with no account attached. Every week they need a bulk fix to the client’s billable account, so the plan now includes that fix by default.
  • Tempo’s bulk update does not accept partial payloads. Changing one field means resending the date, start time, duration, billable seconds, description, author and attributes.
  • One internal account returns a 403 if the billable seconds field is present at all, even when the value is right. The fix is to omit the field entirely.
  • Two worklogs on the same ticket with identical descriptions, a few minutes apart, are almost always a double log. In the weekly session I now delete one and keep the other. The daily run never deletes, so it flags the pair for me instead.
  • Results go stale. Claude re-fetches worklogs before every write and never reuses an earlier fetch.

The messiest problem was a recurring team meeting with two possible accounts depending on its title. A tactical meeting was non-billable. An internal meeting in the same slot was billable. I answered it once, and it became a standing rule. The calendar series also gets recreated now and then with a new recurring id, so Claude matches on title and time slot, not on the event id.

Set this up for yourself.

None of this is specific to me. The Tempo MCP is already available to enable for the 7EDGE team, the skills can be shared, and the scheduled task is a saved prompt. You can have the same setup running in an afternoon.

You need three connectors switched on. Open Customize > Connectors in the Claude web app and look for these.

  • Tempo. This is the MCP server that reads and writes worklogs. It is a cloud connector that 7EDGE has made available org-wide, so there is nothing to install. You just connect it. Its server address is https://tempo.7edge.io/mcp, which you need if it isn’t in your list and you have to add it by hand.
  • Google Calendar. The workflow starts from your meetings, so Claude needs to see them.
  • Atlassian. Claude uses it to look up ticket ids and summaries.

Then open the Tempo connector and look at its tool permissions. Every tool can be set to always allow, ask first, or block. I allow Create worklog and Bulk create worklogs, and I leave Delete worklog and Approve timesheet on ask first. That way an unattended run can add entries but cannot delete or approve anything. Allow the update tools as well if you want the run to fix missing account attributes.

Add the two skills

You need tempo-timesheet-logger and timesheet-automation. Both are shareable, so you can open them from the direct links below or find them in your skills list.

Direct links to the two skills, each opening in your Customize > Skills page: Skill 1 and Skill 2.

  1. In the Claude web app, go to Customize > Skills.
  2. Look for the two skills in the list. On Team and Enterprise plans, skills shared with you appear there next to your own.
  3. Switch both on.
  4. If they aren’t there, ask me to share them. Sharing needs an owner to have turned it on in Organization settings > Skills.

Skills also need code execution enabled, so if they look greyed out, check that first. To browse more skills or build your own, the Use skills in Claude guide covers discovery, uploading a skill folder and sharing.

One warning. The rules skill is written for how 7EDGE accounts for time, but your tickets are not mine. The first time you run the workflow, it will ask which ticket and account your recurring meetings belong to. Answer in the chat. Those answers become your history, and once a recurring meeting has been logged the same way about three times, the scheduled run starts logging it for you. Until then it leaves that meeting for you.

Schedule the daily run

  1. Run the workflow by hand for a few days first. Ask Claude to run your timesheet workflow, read the plan it gives you, and answer its questions. This is how your own rules get built.
  2. Click Scheduled in the left sidebar. You can create a task with Claude, type /schedule in a chat, or fill in the form yourself.
  3. Paste the instructions from the block below as the task prompt.
  4. Pick a daily schedule, shortly before the time you normally fill in your timesheet. Mine repeats daily at 6:20 PM, ten minutes before my 18:30 habit.
  5. Set the task’s permissions to Automatically approve, which is what mine uses. Claude then runs on its own and pauses to ask if anything looks unsafe.
  6. Use Run now to test it before the first scheduled time. Then check the first few runs in the task’s history, and switch the task off if anything looks wrong.

The Schedule recurring tasks in Claude Cowork guide walks through each screen. Read its note on whether your computer must be awake and the Desktop app open, because that decides when the task can fire.

My exact scheduled task instructions

This is the prompt my scheduled task runs. It has no ticket numbers, account ids or dates in it, and it looks up who you are at the start of every run, so you can paste it as it is.

Run the timesheet-automation skill for today's date. Resolve "today" freshly at run time in the user's local timezone — never hardcode a date. This is scheduled to fire shortly before the user's recurring daily timesheet-logging habit (whatever time that is for them), so the goal is to have today's Tempo timesheet already filled in for everything unambiguous by the time that habit starts, with only the genuinely uncertain items left for the user to resolve.

Context (this is a fresh session with no memory of prior runs — the user is not watching live):
- Resolve the current user's Jira/Tempo accountId at the start of the run via the Atlassian "who am I" tool (or equivalent). Do not hardcode any person's accountId — this same prompt is meant to run for anyone in the org who sets up their own copy of this schedule.
- Account/ticket classification rules live in the org's tempo-timesheet-logger skill (account hierarchy, ticket resolution, description standards, billability flags). Load and apply them exactly — never guess an account or ticket mapping; anything unmapped is an unknown, not a guess.
- Query the org's Tempo accounts and Jira boards live via the Tempo and Atlassian MCP tools for each run — don't rely on stale account lists from a prior conversation.
- The user's own worklog history is a second source of established mappings, alongside the skill's static rules — see step 1 below.

Steps:
1. Before classifying anything, fetch the user's own past Tempo worklogs (roughly the last 4-6 weeks) for their accountId, and their calendar events over that same span. For each recurring calendar event (matched by recurringEventId where the calendar API provides one, or by normalized title otherwise), work out what ticket + account it was logged against historically. Treat that mapping as established/learned only if it is consistent across at least 3 past occurrences (or all available occurrences, if fewer than 3 exist) with no conflicting ticket/account used for the same recurring event. A single past instance, or occurrences that were logged inconsistently, is NOT enough — leave those as unknown rather than picking one. This learned-mapping table is used the same way as the skill's static rules below; it does not override an explicit static rule if one already exists and disagrees.
2. Fetch all of today's calendar events (user's local timezone) for the user's primary calendar, and all existing Tempo worklogs already logged for today against their accountId.
3. Resolve any unfamiliar Jira issue references from those worklogs (batch the lookup).
4. Classify every calendar event and cross-reference every existing dev worklog per the tempo-timesheet-logger rules, using both the skill's static classification rules and the learned-mapping table from step 1. Skip declined events and generic buffer/focus-time blocks. Do NOT log the user's own timesheet-logging block itself as a meeting entry — recognize it by its title/description describing timesheet/Tempo logging, not by a fixed name; it's the user doing this task, not work to log.
5. Identify gaps: compare calendar + worklog coverage against a standard workday and note large uncovered stretches, without inventing work to fill them.
6. Split everything into two buckets:
   - KNOWN: an entry qualifies only if it maps to an established rule with zero doubt — either a static rule from the tempo-timesheet-logger skill, or a consistent learned mapping from step 1 — plus: response status clearly accepted, not a possible duplicate, and (for existing worklogs) simply missing a billing attribute that the documented sync-fix pattern covers. If there is any doubt at all, it is not known.
   - UNKNOWN: everything else — unclear response status, unmapped event or first-time-seen recurring event with no rule and no consistent history yet, an event whose history is inconsistent, off-project worklog, vague/non-compliant description, possible duplicate, unexplained gap, or anything the rules and history don't cover with certainty.
7. Auto-log the KNOWN bucket now, within this run, subject to these hard limits (no destructive actions, ever):
   - Never call a delete/remove worklog tool, for any reason.
   - Never modify an existing worklog's time span, date, or description. The only permitted "update" is adding a missing billing/account attribute via the documented sync-fix pattern — if the API requires a full-payload resend to do that, resend every existing field unchanged except the one attribute being added.
   - Never create an entry for anything that already has coverage (an existing worklog, or one you already created earlier in this same run) — check first, skip if it's already covered, and treat it as a possible duplicate (UNKNOWN) instead of creating a second one.
   - Only touch worklogs already scoped to the resolved user's own accountId — never another person's entries.
   - Only touch today's date — never retroactively edit prior days in this run.
   - Batch the creates/updates in as few bulk calls as the API allows.
8. Leave the UNKNOWN bucket completely unlogged — do not create placeholder entries, do not guess, do not pick the closest-looking account even if history has one weak/inconsistent data point.
9. Always send exactly one push notification for this run. Report what was auto-logged (entries created, attributes fixed, how many came from a learned historical mapping vs. a static rule, total hours now covered vs. a standard workday) and a short numbered list of open questions for the UNKNOWN bucket, each phrased as a specific question the user can answer directly (e.g. "'Client sync w/ Acme' at 2pm — which ticket does this go against?"). When you resolve one of these, note that it becomes a new data point toward a future learned mapping — mention that a consistent answer over a few occurrences will let the run auto-log it going forward. Make clear that nothing further will be logged for UNKNOWN items until the user answers in a live conversation, and that everything already logged in this run is additive and reversible by hand if wrong (nothing was deleted or overwritten).
10. If the calendar or Tempo/Jira APIs are unreachable, or auth fails partway through, do not leave the run in a half-done state silently — send a push notification reporting exactly what succeeded, what failed, and what was never attempted.

Where this leaves me

The timesheet is still mine. I just stopped being the one who has to remember it.

What I like most is the division of labour. Claude handles the entries that follow a rule, and I handle the ones that don’t. Every answer I give moves one more meeting from my side to its side, so the list of questions in the evening notification should keep getting shorter.

If your week is full of recurring meetings and commits, you will probably see the same thing. Start with the weekly plan and answer its questions. Schedule the daily run once you trust the table it gives you. The Tempo connector is already waiting in your list.

What does your team still log by hand that follows a rule nobody has written down yet?

2 Likes