time-tracker
Installation
SKILL.md
Time Tracker
Reconstructs the user's working hours over a date range by inspecting:
- Git commits — every non-merge commit authored by the user across every repo under
~/ttg-workspace/<client>/, estimated as realistic dev-hours from the diff size + diff content + commit message. - Teams chat sessions — for each client's configured chats (
m365.chatsinsettings.jsonandsettings.local.json), pull the day's messages in range, cluster into sessions, and estimate engagement time from the transcript. - Outlook calendar events — the user's own calendar over the same range, mapped to a client via attendee email domain (fallback to subject keyword), counted as
Meetings. - Claude Code interaction — per-client interaction log written by the
UserPromptSubmit+Stophooks (~/.claude/assets/claude-activity-log.sh). Each prompt→stop pair is a turn; consecutive turns ≤15 min apart roll up into a session. Tracks design/pairing time that wouldn't otherwise appear in commits.
Output: a single Excel workbook at ~/ttg-workspace/.timetracker/timesheet_<from>_<to>.xlsx with one tab per client. Each row has columns Date | Time | Category | Type | Source | Hours | Billable | Billable Hours | Summary, sorted chronologically. The Summary tab pivots client × category and shows both Total hours and Billable hours.
Billable flag — defaults from category:
Meetings→Billable = 0(internal coordination time, not billed)- everything else (Development, Fix, Support, Design, Deployment) →
Billable = 1
The default can be overridden per row by setting billable: 0|1 in the row JSON (e.g. an admin commit on internal tooling can be flagged non-billable, or an external client meeting can be marked billable). Billable Hours = Hours × Billable is computed automatically by build_xlsx.py.