Summarize recent git work for time registration. Use when the user asks what they worked on, needs a time log, wants a work summary, asks about yesterday's/last week's work, or invokes /time-registration:time-registration. Accepts an optional time period argument (defaults to yesterday).
Summarize recent git activity into a short, comma-separated one-liner suitable for time registration or standup notes.
The user may provide a time period as a free-text argument:
Parse the intent and translate it to a git log --since/--until date range.
Convert the user's input to concrete dates. Examples:
--since="yesterday 00:00" --until="today 00:00"--since="3 days ago"--since="last monday"--since="2 mondays ago" --until="last monday"git log --author="$(git config user.name)" --since="<start>" --until="<end>" --oneline --no-merges
If the result is empty, tell the user there are no commits for that period and stop.
Read through the commit messages and distill them into a single comma-separated summary line. The summary should:
Example output:
Implemented user authentication, fixed pagination bug on dashboard, upgraded React from 18 to 19, refactored API error handling
Only if the user explicitly asks to check multiple repos, ask which directories to check using AskUserQuestion. Then run the git log in each directory and produce one summary per repo.