Report generator
How to process GitHub API JSON output into a structured report.json for monthly analytics. Use this whenever you have raw JSON data from the gh CLI.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill report-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.9 KB, 201 tokens by cl100k_base, as published. Nobody here has run it
Overview
This skill outlines how to process raw JSON output from gh into the required report.json format.
Required Fields
- PRs:
total: Count of created PRs.merged: Count of merged PRs.closed: Count of closed (not merged) PRs.avg_merge_days: Average days from creation to merge.top_contributor: Person with the most opened PRs.
- Issues:
total: Count of created issues.bug: Count of issues labeled with 'bug' (substring match).resolved_bugs: Count of bug issues closed within the month.
Process
- Save raw data to temporary files (e.g.,
prs.json,issues.json). - Use Python (or jq) to aggregate the metrics.
- Output the JSON in the exact schema provided in the request.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.