6 added, 7 removed. Audit A to A.
---
name: timesheet
- description: Use when the user needs a monthly work summary, time-tracking report, or commit-based activity recap.
+ description: Prepare monthly timesheet entries from Git commits.
+ disable-model-invocation: true
---
- Generate a markdown table of the current user's git commits for the current month.
+ Generate a markdown table of the current user's git commits for the requested month, defaulting to the current month.
## Data Collection
- Repo in working directory. Scope: current month (1st → today), current user only — filter by `git config user.name`. (Multi-committer repos otherwise leak others' commits.)
-
- Reference command: `git log --author="$(git config user.name)" --since="{year}-{month}-01" --until="{year}-{month}-{today+1}" --format="%ad | %an | %s" --date=short --no-merges`
+ Repo in working directory. Scope: requested month, defaulting to the current month (1st → now), current user only — filter by `git config user.name`.
- Run with `dangerouslyDisableSandbox: true` — git hooks fail sandboxed.
+ Use local calendar boundaries: midnight on the first day of the requested month through the current time, or the next month’s midnight for a completed month. Calculate dates with calendar-aware arithmetic. Filter the author name literally and exclude merge commits; never construct an invalid date by incrementing the day number.
## Output Format
Markdown table, one row per day with commits:
| Day | Summary |
|-----|---------|
| **DD.MM.** | Short summary of work themes |
## Summary Style
Write like personal shorthand — work-log note, not PR description.
- **Group by theme**, not by commit. "knowledgebase + RAG tools" over listing each commit separately.
- - **Target 10-20 words per day** (minimum 8 — expand terse single-commit days with enough context to be useful later).
+ - **Target 10-20 words per day** (minimum 8, retaining useful context).
- **Skip noise**: lint fixes, merge commits, trivial reformats — unless they represent significant effort.
- **Terse phrasing**: "form table extraction + compliance" not "Added form table extraction feature and implemented compliance checks."