Automated n8n workflow that generates a narrative weekly summary of your GitHub repository activity using Claude AI.
This workflow runs every Monday at 9 AM UTC and:
- 🔍 Fetches merged PRs, closed issues, commits, and releases from your repo
- 🤖 Sends the data to Claude Sonnet 4 for a narrative summary
- 📄 Formats a beautiful Markdown summary
- 📬 Delivers to Slack + optionally a custom webhook + saves locally
# 1. Download the workflow JSON
curl -sfL https://raw.githubusercontent.com/claude-builders-bounty/claude-weekly-summary/main/weekly-summary-workflow.json \
-o weekly-summary-workflow.jsonThen in n8n:
- Open n8n → Workflows → Import from File
- Upload
weekly-summary-workflow.json - Configure credentials (see below)
- Activate the workflow ✅
Set these as environment variables in your n8n Docker/Hosting:
# Required
ANTHROPIC_API_KEY=sk-ant-... # Claude API key
GITHUB_PAT=ghp_... # GitHub Personal Access Token
SLACK_BOT_TOKEN=xoxb-... # Slack bot token
SLACK_CHANNEL=#engineering # Target Slack channel
# Optional overrides
GITHUB_REPO=owner/repo # Default repo (can override per run)
CLAUDE_MODEL=claude-sonnet-4-20250514
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
WEBHOOK_URL=https://... # Custom webhook for downstream pipelines| Credential Type | Field | Value |
|---|---|---|
| Header Auth (for GitHub) | Header Name: Authorization |
Value: Bearer {{ $env.GITHUB_PAT }} |
| Header Auth (for Claude) | Header Name: x-api-key |
Value: {{ $env.ANTHROPIC_API_KEY }} |
| Slack OAuth2 | Access Token | {{ $env.SLACK_BOT_TOKEN }} |
After importing, click Execute Workflow in n8n. Set the repo parameter:
owner/repo
The workflow will run immediately and generate a summary.
# Weekly Dev Summary: vercel/next.js
**Week ending:** 2026-05-16 | **Generated:** 5/16/2026, 9:00 AM
---
## This Week in next.js
### 🔥 Big News
This was a major week for the Next.js team with **12 merged PRs** and a
**v15.5.2 patch release** focused on stability and edge case handling.
### ✨ New Features & Improvements
- Turbopack incremental compilation defaults to expanded scope
- Middleware matcher now supports pattern negation
### 🐛 Bug Fixes
- Fixed edge runtime memory leak in server actions
- Corrected CSS injection order in static generation
### 🔧 Behind the Scenes
- Updated React peer dependency to 19.1
- CI pipeline migrated to GitHub Actions large runners
---
*Generated by n8n workflow using Claude AI*
⏰ Schedule (Mon 9AM)
│
▼
🐙 Fetch GitHub Data
├── 📥 Merged PRs (20 most recent)
├── 🐛 Closed Issues (20 most recent)
├── 📝 Recent Commits (20 most recent)
└── 🏷 Latest Releases (5 most recent)
│
▼
🔗 Merge & Filter (last 7 days)
│
▼
🤖 Claude API → Narrative Summary
│
▼
📄 Format Markdown
│
▼
┌────┼────┐
▼ ▼ ▼
📬 💾 🔌
Slack File Webhook
- Change schedule: Edit the Schedule Trigger node
- Change AI model: Set
CLAUDE_MODELenv var or edit the HTTP Request body - Add more data sources: Connect additional GitHub endpoints (stars, forks, etc.)
- Add outputs: Email, Discord, Telegram — wire up any n8n node
Submission for Bounty #4 — $200.
Acceptance Criteria:
- Complete n8n workflow
- Weekly narrative summary of GitHub repo activity
- Uses Claude Code API
- Outputs formatted summary
- Full README with setup instructions