Overview
A scheduled Claude Code GitHub Action lists the week's merged pull requests, reads product metrics through an MCP server, and writes a brief that sets releases next to KPI changes without claiming cause.
Problem or Objective
- Which assistants prepare a daily summary for you?
- Which agents clean, chart and explain a dataset you provide?
More in Business Operations
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code · GitHub Actions
- Prerequisites
- A GitHub repository with the Claude GitHub App installed and an API key or subscription token stored as a repository secret, plus read access to your product analytics through an MCP server or an exported file (check what your analytics tool offers).
How It Works
Install the Claude GitHub App and add your API key or token as a repository secret, as the GitHub Actions page describes. Add a workflow on the default branch that runs the Claude Code action on a weekly cron schedule with a prompt. In that prompt, ask Claude to list pull requests merged in the last seven days with their titles, labels and merge dates, and to read the week's product KPIs through an MCP server for your analytics tool (check that your analytics vendor offers one and that it works in a GitHub Actions run; otherwise export the weekly figures to a file in the repository). Ask for a brief that lists each release with its date, the KPI changes in the same window, and a clear statement that timing alone does not show a release caused a change. The report lands in the workflow run log; read it there and decide what to share.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code, GitHub Actions.
- Check the prerequisitesA GitHub repository with the Claude GitHub App installed and an API key or subscription token stored as a repository secret, plus read access to your product analytics through an MCP server or an exported file (check what your analytics tool offers).
- Gather your detailsCollect what the prompt asks for: Branch releases merge into, Days to cover, KPIs to read, Who the brief is for.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Write the weekly release and KPI brief
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
List pull requests merged into [Branch releases merge into] in the last [Days to cover] days with title, labels and merge date. Read these KPIs for the same window from the analytics tool: [KPIs to read]. Write a brief for [Who the brief is for]: one section listing releases by date, one showing each KPI's change with its source figure, and a short note on releases that line up in time with a KPI change. State plainly that timing alone does not show cause. Do not post or send the brief anywhere; leave it in the run log.Read the brief in the workflow run log and check its figures against your analytics dashboard before sharing it yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Claude Code docs support running the GitHub Action on a cron schedule with a prompt, producing a report in the workflow run log, and connecting MCP servers to analyse monitoring data. The analytics connection was not checked here, and nothing here tested whether the brief matched the real figures.
Limitations and Considerations
A release and a KPI change in the same week is a coincidence until an experiment or a closer analysis says otherwise; keep that warning in every brief. GitHub runs scheduled workflows only from the default branch, and in public repositories it can disable a schedule when the repository has been inactive for a while, so check that the job still runs. Keep analytics credentials in repository secrets and give the MCP server read-only access. Each run uses API usage on your Anthropic account. Check the figures in the brief against your analytics dashboard before sharing it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Claude Code GitHub Actions - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- With a prompt input, the Claude Code GitHub Action runs in automation mode on any GitHub event, including a cron schedule.
- This workflow generates a report in the workflow run log at 09:00 UTC each day.
- GitHub runs scheduled workflows only from the default branch and, in public repositories, disables the schedule after 60 days without repository activity.
- Connect Claude Code to tools via MCP - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- MCP servers give Claude Code access to your tools, databases, and APIs.

