Use when the user wants to generate standup notes from their git history, PRs, and issues.
Generate standup notes summarizing recent work from git history, merged PRs, and open issues.
Infer from the user's message:
SINCE="${SINCE:-yesterday}"
AUTHOR=$(git config user.name 2>/dev/null || echo "")
GH_USER=$(gh api user --jq '.login' 2>/dev/null || echo "")
# Commits by author in time range
git log --since="$SINCE" --author="$AUTHOR" \
--pretty=format:"%h %s" --no-merges | head -30
# Merged PRs
gh pr list --state merged --author "$GH_USER" \
--search "merged:>=$SINCE" \
--json number,title,mergedAt \
--limit 10 2>/dev/null | jq -r '.[] | "#\(.number) \(.title)"'
# Open PRs awaiting review or in progress
gh pr list --state open --author "$GH_USER" \
--json number,title,reviewDecision,isDraft \
--limit 10 2>/dev/null | \
jq -r '.[] | "#\(.number) \(.title) [\(if .isDraft then "draft" else .reviewDecision // "open" end)]"'
# Recently closed issues
gh issue list --state closed --assignee "$GH_USER" \
--search "closed:>=$SINCE" \
--json number,title --limit 10 2>/dev/null | \
jq -r '.[] | "#\(.number) \(.title)"'
# Open issues assigned to me
gh issue list --state open --assignee "$GH_USER" \
--json number,title,labels --limit 10 2>/dev/null | \
jq -r '.[] | "#\(.number) \(.title)"'
Format output in standard standup structure:
## Standup — [DATE]
### Yesterday / Since [DATE]
- [what was completed — commits, merged PRs, closed issues]
### Today
- [open PRs in review, active issues, planned work]
### Blockers
- [anything blocked or waiting on others]
Rules: