Generate a weekly commit summary for timesheets, grouped by day with ticket ID extraction
Generate a weekly timesheet from your git commits, grouped by day with ticket IDs extracted. Use it to quickly create copy-paste ready summaries for timesheets or status reports.
/plugin marketplace add zero-copy-labs/zcl-claude-code-plugins/plugin install team-tools@zcl-claude-code-pluginsGenerate a copy-paste ready timesheet from your git commit history.
/timesheet [days] - Generate timesheet for the last N days (default: 7)
When invoked, follow these steps:
Run this command to get the current git user's email:
git config user.email
Run this command to get commits for the specified date range (replace {days} with the argument or default to 7):
git log --author="$(git config user.email)" --since="{days} days ago" --format="%H|%ad|%s" --date=short
Parse the output and:
[A-Z]+-[0-9]+ (e.g., PROJ-123, FEAT-456)#[0-9]+ (e.g., #42, #100)Present the timesheet in this format:
TIMESHEET - Week of [start date] to [end date]
[Day, Date]
• [Ticket ID]: [Summary of work]
• [Ticket ID]: [Summary of work]
[Day, Date]
• [Ticket ID]: [Summary of work]
---
Total commits: [count]
Days with activity: [count]
Ask the user if they want:
TIMESHEET - Week of Jan 1 to Jan 7
Monday, Jan 6
• PROJ-123: Implemented user authentication flow
• PROJ-124: Fixed login redirect issue
Tuesday, Jan 7
• #42: Added unit tests for auth module
• PROJ-125: Code review feedback addressed
---
Total commits: 8
Days with activity: 2