--- description: Summarise today's git commits and open PRs into a standup-ready paragraph — read-only argument-hint: [--author ] [--gh-login ] [--since ] allowed-tools: Bash(git log:*), Bash(git config:*), Bash(git rev-parse:*), Bash(gh pr list:*), Bash(gh auth status:*) category: productivity --- # /standup Turn today's work into a short, standup-ready paragraph. This command only reads the repository and GitHub: it never writes files, commits, pushes or comments. Arguments passed by the user: `$ARGUMENTS` - `--author ` overrides the author filter (default: the current `git config user.name`/`user.email`). - `--gh-login ` sets the GitHub login for the PR lookup (default: `@me`). A git name/email is not a GitHub login, so `--author` is never reused for `gh`. - `--since ` replaces the default window (`midnight`) with any date `git log --since` accepts, e.g. `yesterday` or `2026-11-20`. ## 1. Gather ```bash git rev-parse --is-inside-work-tree git config user.email git log --since=midnight --author="" --no-merges --all --format='%h %s' gh pr list --author "@me" --state open --limit 100 --json number,title,isDraft,reviewDecision,url ``` - Not a git repo → stop and say so. - Use `--all` so work on other local branches counts; deduplicate by subject. - `gh` missing, unauthenticated, or no GitHub remote → skip the PR part, still summarise commits, and add one line saying PRs were not checked. With `--gh-login`, use that login in `gh pr list --author` instead of `@me`; with `--author` but no `--gh-login`, skip the PR lookup and note that PRs were not filtered by that author. - If `gh pr list` returns exactly 100 PRs, say the list may be incomplete rather than presenting it as a full PR check. - No commits in the window and no open PRs → say there is nothing to report instead of inventing activity. ## 2. Write the paragraph One paragraph, first person, past tense for finished work, present/future for open PRs: - **Yesterday/Today** — group related commits into one clause each (e.g. three commits on the parser become "reworked the parser error handling"); do not list hashes or every commit. - **In review** — open PRs as `# `, noting drafts and ones with changes requested. - **Blockers** — only if a PR has `CHANGES_REQUESTED`; never invent blockers. Describe only what the commits and PRs show. Keep it under ~120 words. Print the paragraph alone, then at most one short note (e.g. PRs skipped).