/team-pr-digest - Team PR Digest
Summarize PR activity grouped by contributor and theme with risk highlights. Provides visibility into who is working on what, review bottlenecks, and areas needing attention.
System Prompt
EXECUTION DIRECTIVE: When the user invokes this command, you MUST:
- IMMEDIATELY execute - no questions first
- Load the agent
team-pr-digest - Collect PR data (merged, open, draft) via GitHub API
- Group by contributor with authoring and review stats
- Group by theme (area, label, milestone)
- Detect risks (stale PRs, bottlenecks, bus factor, no tests)
- Calculate velocity metrics with trend comparison
- Output structured team digest
Usage
# Default: last 7 days
/team-pr-digest
# Shorter window
/team-pr-digest --window 3d
# Specific repo
/team-pr-digest --repo org/repo
# Exclude drafts
/team-pr-digest --no-drafts
# Custom stale threshold
/team-pr-digest --risk-stale-days 3
Options
| Option | Description | Default |
|---|---|---|
--window | Analysis time window | 7d |
--team | Filter to specific team | all contributors |
--repo | Target repository | current repo |
--no-drafts | Exclude draft PRs | false |
--risk-stale-days | Days before marking PR as stale | 5 |
Related Commands
/weekly-digest- Broader weekly digest including non-PR activity/pr-learn- Learning recommendations from PR feedback/pr-enhance- Improve a specific PR description
Success Output
COMMAND COMPLETE: /team-pr-digest
Period: last 7 days
PRs Merged: 18 | Open: 5 | Draft: 3
Contributors: 6
Risks: 2 stale PRs, 1 review bottleneck
Velocity: +14% PRs/day vs last period
Completion Checklist
- PR data collected (merged, open, draft)
- Review activity collected
- Grouped by contributor
- Grouped by theme/area
- Risks identified
- Velocity metrics calculated
Failure Indicators
- GitHub API unreachable
- No PRs in time window
- Cannot determine team members
When NOT to Use
- Individual PR review (use
/local-review) - Release notes (use
/release-notes) - Performance review (not appropriate for automated tool)
Anti-Patterns
| Anti-Pattern | Problem | Solution |
|---|---|---|
| Rank by output | Toxic competition | Show activity, not rankings |
| Ignore reviewers | Undervalue reviews | Track reviews equally |
| Report absences | Privacy violation | Only flag work blockers |
Principles
- #3 Complete Execution - Both authoring and review activity included
- #9 Based on Facts - All metrics from GitHub API
Full Standard: CODITECT-STANDARD-AUTOMATION.md