Skip to main content

/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:

  1. IMMEDIATELY execute - no questions first
  2. Load the agent team-pr-digest
  3. Collect PR data (merged, open, draft) via GitHub API
  4. Group by contributor with authoring and review stats
  5. Group by theme (area, label, milestone)
  6. Detect risks (stale PRs, bottlenecks, bus factor, no tests)
  7. Calculate velocity metrics with trend comparison
  8. 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

OptionDescriptionDefault
--windowAnalysis time window7d
--teamFilter to specific teamall contributors
--repoTarget repositorycurrent repo
--no-draftsExclude draft PRsfalse
--risk-stale-daysDays before marking PR as stale5
  • /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-PatternProblemSolution
Rank by outputToxic competitionShow activity, not rankings
Ignore reviewersUndervalue reviewsTrack reviews equally
Report absencesPrivacy violationOnly 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