| name | repo-metrics |
| description | Track GitHub repo metrics over time — stars, forks, watches, issues, PRs, traffic. JSON storage + trends. |
Repo Metrics
Track GitHub repository metrics over time. Stars, forks, watchers, issues, PRs, traffic data. Store as JSON, generate trend reports.
Setup
mkdir -p repo-metrics
cd repo-metrics
touch metrics.json
Collect Metrics
REPO="adelpro/open-mushaf"
gh api repos/$REPO --jq '{
stars: .stargazers_count,
forks: .forks_count,
watchers: .subscribers_count,
open_issues: .open_issues_count,
language: .language,
updated: .updated_at
}' > metrics/$(date +%Y-%m-%d)-${REPO##*/}.json
gh repo list adelpro --json name,stargazers_count,forks_count,pushed_at --limit 100
Store as Time Series
echo $(date -I):$(gh api repos/{owner}/{repo} --jq '.stargazers_count') >> stars-history.jsonl
Generate Trend Report
cat stars-history.jsonl | \
jq -r 'split(":")[0] + " " + split(":")[1]' | \
awk '{print NR, $2}' | \
gnuplot -e "set terminal png; set output 'stars-trend.png'; plot '-' with lines"
Weekly Report Format
📊 REPO METRICS — Week of March 14-21, 2026
open-mushaf
Stars: 25 (+3 this week)
Forks: 8
Issues: 3 open / 12 closed
open-tarteel
Stars: 21 (+2 this week)
Forks: 5
Issues: 1 open / 4 closed
quran-search-engine
Stars: 13 (+1 this week)
Forks: 3
Issues: 0 open / 7 closed
Cron Job
0 9 * * * SKILL:repo-metrics && gh api graphql --paginate ... >> repo-metrics/metrics.jsonl
Skills Used
| Skill | Purpose |
|---|
table-image-generator | Render metrics as PNG |
github | GitHub API queries |
weekly-recap | Weekly digest |
See Also