github-weekly-report
Skill1 starsChanged 4 months agoApache-2.0View on GitHub
Generate comprehensive weekly activity reports for GitHub organizations showing merged PRs, open PR review status, new issues, CI health, active epics, and multi-repo contributor highlights with AI-synthesized Cross-Repo Highlights and Action Items. Use when the user wants a weekly summary, org activity report, "what happened this week" recap, or a GitHub org status update for a specific date range.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- automation-health-dashboardSkill
- byo-rossoctl-cortexSkill
- dep-bump-fixerSkill
- dep-bump-scannerSkill
- github-pr-reviewSkill
- hypershift-cleanupSkill
- hypershift-clusterSkill
- hypershift-debugSkill
- hypershift-preflightSkill
- hypershift-quotasSkill
- hypershift-setupSkill
- hypershiftSkill
- link-health-fixerSkill
- link-health-scannerSkill
- repo-syncSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
When --repos is omitted, the report discovers all repos in the org (the unchanged default).
- Very specific: line 61
After running report.py, read both the generated report.md and report-data.json.
- Distinctive: line 81
If the script produced a fallback-mode table (no Projects v2 access), the status column is derived from sub-issue state — keep the section
- Distinctive: line 89
Call out the dominant contributor in the most active repo by name with a one-line summary of their impact.
- Distinctive: line 93
Call out which repos drag the average down and name the specific failing workflow(s).
- Distinctive: line 100
If the total open dependabot PRs across the org is significant (>10), call it out with a per-repo breakdown.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Weekly Report
Generate comprehensive weekly activity reports for GitHub organizations. Produces clean Markdown perfect for GitHub issues or documentation.
The report is produced in two phases:
- Phase 1 — Data collection (
report.py): fetches PRs, issues, CI runs, and active epics via theghCLI and renders the mechanical sections. - Phase 2 — AI synthesis (you, the agent): reads the generated report and structured JSON, then writes the Cross-Repo Highlights, Active Epics, and Action Items sections using your own reasoning.
Prerequisites
- Python 3.8+
- GitHub CLI (
gh) — authenticated with access to the target org - Token scope:
read:projectis optional — it only enriches the epic Status column from the Projects v2 board. Active-epic detection is sub-issue-based and works without it.
Requirements (machine-readable)
- pat_scopes: [repo, read:org]
- labels_required: [epic]
- labels_applied: []
- programs: [report]
Quick Start
# Report on current week (last 7 days) — also emit JSON for AI synthesis
python3 {baseDir}/scripts/report.py --org <org> --output report.md --json-output report-data.json
# Report on specific date range
python3 {baseDir}/scripts/report.py --org <org> --since 2026-03-23 --until 2026-03-30 --output report.md --json-output report-data.json
# Report on an explicit repo set (owner-qualified); skips org-wide discovery
python3 {baseDir}/scripts/report.py --org <org> --repos <org>/repo-a <org>/repo-b --output report.md --json-output report-data.json
# Run epic tracker standalone (for debugging)
python3 {baseDir}/scripts/epic-tracker.py --org <org> --since 2026-03-23 --until 2026-03-30
# Post report to a GitHub issue
gh issue create -R <org>/<repo> --title "Weekly Report $(date +%Y-%m-%d)" --body-file report.mdWhen --repos is omitted, the report discovers all repos in the org (the unchanged default). Automation deployments pass the curated core-repo allowlist via the weekly-report.sh wrapper, which resolves the list and calls report.py --repos for you.
What the Report Includes
- Org-Wide Summary — table with merged PRs, open PRs, open issues, new issues, CI pass rate, and status per repo
- Active Epics — table of in-progress epics with leads, Key Results, and this-week activity
- Cross-Repo Highlights — AI-synthesized narrative (see Phase 2 below)
- Per-Repo Deep Dives — top contributors, merged PR table, open PRs by status (Ready to Merge / Changes Requested / Needs Review / Draft) with Notes flags, CI Health section, new issues
- Action Items — AI-synthesized prioritized table (see Phase 2 below)
Phase 2: AI Synthesis
After running report.py, read both the generated report.md and report-data.json. Use them to write three sections that require reasoning across the whole dataset.
Active Epics
The script generates a baseline Active Epics table from epic-tracker.py output. Review it and enhance:
| Epic | Lead | Key Result | This Week |
| kagenti/kagenti#1789 OPA Authorization | @davidhadas | KR2: Zero-trust agent auth | 3 sub-issues closed, 4 open |
| kagenti/kagenti-extensions#501 Session Mgmt | @sahilsuneja1 | KR1: Stateful agent infra | 2 open, 1 PR merged |
Rules:
- Scan for the
epiclabel across all repos in the org - Detection is sub-issue-based (the primary signal): an epic is active if it has open sub-issues (backlog / in-progress) OR a sub-issue closed within the reporting window. This does not depend on the project board and needs no
read:projectscope. A merged-PR cross-reference in the window also counts. - Board Status (Projects v2), when available, is display-only enrichment — it fills the status label but never gates inclusion. Teams often park active epics in an "Epics" column rather than "In Progress", so board status alone misses them.
- Lead = first assignee on the epic issue
- Epic reference = full
org/repo#Nwith link to the source repo - Key Result = extracted from epic body (
## Key Resultssection) or inferred from title/labels - "This Week" = brief summary of sub-issues closed / open, plus any PRs merged referencing this epic
- Cap the list (configurable via
--max-epics, default 10); sort by recent activity (sub-issues closed this week, then open count) descending to keep the section a focused planning input - If the script produced a fallback-mode table (no Projects v2 access), the status column is derived from sub-issue state — keep the section
Cross-Repo Highlights
Replace the scaffold in ## Cross-Repo Highlights with a rich narrative. Write bullet points covering all of the following that are relevant:
Multi-repo contributors
- For each person who merged PRs in more than one repo, describe what they worked on — not just a count. Name the repos and the themes.
- Call out the dominant contributor in the most active repo by name with a one-line summary of their impact.
Org-wide CI narrative
- State the overall org CI pass rate (compute as total passed / total runs across all repos).
- Call out which repos drag the average down and name the specific failing workflow(s).
- Highlight repos at 100% by name.
Security concerns
- List any open PRs flagged SECURITY that have been open >7 days without review. Link to the PR. Note the age.
Dependabot accumulation
- If the total open dependabot PRs across the org is significant (>10), call it out with a per-repo breakdown.
Shared patterns / themes
- Identify recurring themes across repos this week.
Action Items
Append a ## Action Items section at the end of the report. Produce a prioritized table of concrete actions.
Priority criteria:
| Priority | Criteria |
| P0 | Security PRs unreviewed >7 days; CI broken on main for multiple consecutive days; active data/credential leak |
| P1 | APPROVED PRs not yet merged; critical/regression bugs with no assignee; operator bugs causing pod restart loops |
| P2 | PRs with CHANGES_REQUESTED where author has not responded >5 days; dependabot batch reviews; stale draft PRs blocking others |
| P3 | Stale issues >30 days; ancient PRs >90 days with no review; quiet-repo triage; documentation gaps |
Table format:
| # | Action | Repo | Owner | Priority |
|---|--------|------|-------|----------|
| 1 | Review and merge security fix #188 | agent-examples | @pdettori | P0 |Rules for Action Items:
- Include only actionable items — skip things already in progress with healthy momentum
- Assign a named owner where obvious
- Limit to 15 items max, highest-priority first
- Reference GitHub issue/PR numbers with links
Automation
The cron job runs weekly on Mondays at 05:01 UTC. The agent:
- Runs
report.pywith--json-output - Reads the structured JSON and markdown
- Enhances the Active Epics, Cross-Repo Highlights, and Action Items sections
- Closes previous weekly report issues
- Posts the final report as a new GitHub issue
See Also
- GitHub CLI docs: https://cli.github.com/manual/
- Example report: https://github.com/kagenti/kagenti/issues/1110
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

