git-timesheet
Stop filling timesheets manually. Let your commits tell the story.
A Claude Code plugin that turns your git history into realistic weekly timesheets.
Hours are allocated by commit complexity, not split evenly.
Install ·
Quick start ·
How it works ·
Templates ·
Integrations
Why
- Realistic hours — 8h split proportionally by commit weight, never a flat 4+4
- Invoice totals — set your hourly rate once, get
hours × rate computed
- Zero data entry — pick a date range, the rest comes from git
- Multi-format — print-ready PDF, importable CSV, or both
- Push integrations — Toggl, Clockify, TMetric, Harvest APIs
- Custom PDF layouts — import your company's timesheet and match it
- International — 9 countries of holidays, 6 built-in languages + dynamic translation
Sample PDF output
Install
Install via the Claude Code plugin marketplace — one command:
/plugin marketplace add MarcinSufa/git-timesheet
/plugin install git-timesheet@marcin-sufa-plugins
That's it. /timesheet is now available in any Claude Code session.
To update later:
/plugin marketplace update marcin-sufa-plugins
Quick start
# Interactive — walks you through setup
/timesheet
# Pick a preset period
/timesheet --range first-half # 1st-15th of current month
/timesheet --range second-half # 16th-end of current month
/timesheet --range last-month # 1st-end of previous month
# Custom date range
/timesheet 16 Mar to 15 Apr
# Use a saved profile
/timesheet --profile my-profile
# Import your company's timesheet format
/timesheet --import-template ~/Downloads/company-timesheet.pdf
# Generate and push to time tracker
/timesheet --range first-half --push toggl
On first run, the skill asks a handful of questions (git authors, repos, hours/day, country, language, output format). Save the answers as a profile and never set up again.
How it works
flowchart LR
A[Git history<br/>for date range] --> B[Commit<br/>complexity<br/>scoring]
B -->|"lines + files × 10"| C[Time<br/>allocation<br/>per day]
C --> D[PDF<br/>timesheet]
C --> E[CSV<br/>export]
C --> F[Invoice<br/>summary]
D -.-> G[Toggl · Clockify<br/>TMetric · Harvest]
E -.-> G
style A fill:#1e293b,stroke:#334155,color:#e2e8f0
style B fill:#0f172a,stroke:#475569,color:#e2e8f0
style C fill:#0f172a,stroke:#475569,color:#e2e8f0
style D fill:#064e3b,stroke:#10b981,color:#d1fae5
style E fill:#064e3b,stroke:#10b981,color:#d1fae5
style F fill:#064e3b,stroke:#10b981,color:#d1fae5
style G fill:#1e293b,stroke:#475569,color:#94a3b8
Allocation example — a day with two commits:
| Commit | Lines | Files | Score | Time |
|---|
feat(auth): Add OAuth2 flow | 150 | 8 | 230 | 7:00 |
fix(ui): Button alignment | 3 | 1 | 20 (floor) | 1:00 |
Result: 7:00 + 1:00 = 8:00 — not 4:00 + 4:00.
Formula: score = lines_changed + (files_changed × 10), minimum 20 (every fix takes investigation + testing). On a day with several entries each gets at least 1:00 and the rest is shared by score, with a little seeded variation so weeks don't look machine-made — the same input always gives the same timesheet. Full rules: allocation.md.
Features
Generation
- Weekly timesheets (Mon-Sun) per member, per week in range
- Time allocated proportionally by commit complexity
- Default 8h/day, configurable (8h, 7.5h, 7h, 6h, custom)
- 15-min, 30-min, or 1-hour increments
- Optional overtime cap
Invoicing
- Post-generation invoice summary
hours × hourlyRate with currency
- Saves your rate to profile for reuse
- Only
Billable: Yes rows count toward the total
Holidays & days off