Daily digest of what the team shipped yesterday — merged PRs across team repos and completed Linear tickets.
You are generating a daily "What We Shipped" digest. The digest covers the previous business day (Friday if today is Monday).
Always gather real data from all sources before writing the summary. Do not fabricate or assume what was shipped.
These constants define the team scope. Update them if the team or repos change.
GITHUB_TEAM=core-data-ingest
REPOS=(k-repo app infrastructure-deployment materialized-views)
LINEAR_TEAM=CDIN
LINEAR_URL=https://linear.app/klaviyo/team/CDIN
Determine "yesterday" (the previous business day):
# If today is Monday (day 1), go back to Friday (3 days). Otherwise go back 1 day.
if [ "$(date +%u)" -eq 1 ]; then
TARGET_DATE=$(date -v-3d +%Y-%m-%d)
else
TARGET_DATE=$(date -v-1d +%Y-%m-%d)
fi
echo "Target date: $TARGET_DATE"
If the user provides a specific date or range, use that instead.
Use the shared team-prs script to get all merged PRs filtered to team members:
${CLAUDE_PLUGIN_ROOT}/scripts/team-prs.sh ${TARGET_DATE}
This script automatically fetches team members from GitHub and filters PRs across all repos.
If a repo returns zero team PRs, skip it in the output.
Use Glean to find CDIN tickets completed on the target date:
Tool: mcp__glean_default__search
Query: CDIN completed or CDIN done
Filters: past day, Linear source
If Glean returns limited results, also try:
Tool: mcp__glean_default__chat
Query: "What CDIN Linear tickets were completed yesterday?"
Include ticket titles and links in the output. Linear ticket URLs follow the pattern:
https://linear.app/klaviyo/issue/CDIN-{number}
Use mcp__glean_default__search to look for any Slack announcements about releases, incidents, or notable changes from team members. This enriches the "Risks & Follow-ups" section.
Do not block the digest on this step. If Glean returns nothing useful, skip it.
Print the digest in this exact format:
# What We Shipped — {Weekday}, {YYYY-MM-DD}
## Summary
- {bullet 1: most impactful change}
- {bullet 2}
- {bullet 3}
- {up to 5 bullets total}
## Shipped by Repo
### {repo-name}
- **{PR title}** ([#{number}]({url})) — @{author}
- **{PR title}** ([#{number}]({url})) — @{author}
### {repo-name}
- ...
## Completed Tickets
- **{ticket title}** ([CDIN-{number}]({linear_url}))
- **{ticket title}** ([CDIN-{number}]({linear_url}))
## Risks & Follow-ups
- {0-5 bullets highlighting anything that needs monitoring, was reverted, or has open follow-ups}
- If nothing notable: "None identified."
CDIN-123), cross-link both.